From ed3ffa137236b667ab187dbae93be83ffd524065 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Tue, 27 Nov 2018 13:56:23 -0800 Subject: [PATCH 01/12] [AutoPR] network/resource-manager (#3779) * Generated from 52981377b86caf85843799cd4294ec9101af0dcf (#3777) Make NIC VM readOnly * [AutoPR network/resource-manager] [Portal Generated] Review request for Microsoft.Network to add version 2018-10-01 (#3718) * Generated from 1c4c94911c840bcab2e7e7541433713f9de4a819 Updates API version in new specs and examples * Packaging update of azure-mgmt-network * Generated from dd13fa490b5666f900241da864fd4213652d1770 (#3776) Make NIC VM ref readonly * Generated from a8dc3164dab1737d09b57c3ada8c1132aaddfd66 (#3794) change container nics property type on container nic config to resourceid * Generated from a18fe30f1349bb8e07d0ec1f3bf977b0e70d48a0 Revert "Model ContainerNic refs under ContainerNicConfig as sub resources" (#4467) * Revert "Application Gateway - Adds Rewrite rule set for Header CRUD (#4331)" This reverts commit 633d12d5b552b102f874182b8f50266eb97fdc85. * Revert "Port fix from PR 4459 to 2018-10-01 (#4463)" This reverts commit 5ea0c7b8bcf16d992bb1f2b5f3b52208354a4391. * Revert "change container nics property type on container nic config to resourceid (#4459)" This reverts commit baf31d901254dd4bf4f1813e9faeec1c9805f775. * Generated from a34ad413b26c915dad887c853358c77b1c76ee5a (#3798) Revert "change container nics property type on container nic config to resourceid (#4459)" This reverts commit baf31d901254dd4bf4f1813e9faeec1c9805f775. * Generated from f321a6cb703b15bbe927a4b34005830c495c4e34 Fixes the missing array for the header actions (#4497) * Generated from 8f92958053478b5df8f9489654192a68a1532578 Network py 2018-10 * Generated from e58229772d0b26de18f701e416410521e358bb00 Application gateway Identity and Keyvault support (#4387) * identity and keyvault * Capitalization comment * Generated from 428b52b308b52edc6e1dd617cb96ba8ee59e7b92 (#3842) Capitalization comment * Generated from 3749af17da52fd48f69870d8bacc577a54650ad1 (#3861) Ported fix from master branch * Rebuild by https://github.com/Azure/azure-sdk-for-python/pull/3779 * 2018-10-01 as new latest * 2.4.0 * Network 2018-10-01 test re-recordings * Generated from b9c1d4353fbd76618c6f3f73d9d5e0b508b843e5 (#3884) Add support for list api for global reach connections --- azure-mgmt-network/HISTORY.rst | 18 + .../mgmt/network/network_management_client.py | 205 +- .../v2018_08_01/models/network_interface.py | 8 +- .../models/network_interface_py3.py | 10 +- .../mgmt/network/v2018_10_01/__init__.py | 18 + .../network/v2018_10_01/models/__init__.py | 1163 ++++++ .../v2018_10_01/models/address_space.py | 30 + .../v2018_10_01/models/address_space_py3.py | 30 + .../v2018_10_01/models/application_gateway.py | 196 + ...tion_gateway_authentication_certificate.py | 51 + ..._gateway_authentication_certificate_py3.py | 51 + ...ication_gateway_autoscale_configuration.py | 35 + ...ion_gateway_autoscale_configuration_py3.py | 35 + ...plication_gateway_available_ssl_options.py | 70 + ...ation_gateway_available_ssl_options_py3.py | 70 + ..._gateway_available_waf_rule_sets_result.py | 29 + ...eway_available_waf_rule_sets_result_py3.py | 29 + .../application_gateway_backend_address.py | 32 + ...pplication_gateway_backend_address_pool.py | 57 + ...cation_gateway_backend_address_pool_py3.py | 57 + ...application_gateway_backend_address_py3.py | 32 + .../application_gateway_backend_health.py | 29 + ...on_gateway_backend_health_http_settings.py | 35 + ...ateway_backend_health_http_settings_py3.py | 35 + ...application_gateway_backend_health_pool.py | 36 + ...ication_gateway_backend_health_pool_py3.py | 36 + .../application_gateway_backend_health_py3.py | 29 + ...plication_gateway_backend_health_server.py | 39 + ...ation_gateway_backend_health_server_py3.py | 39 + ...plication_gateway_backend_http_settings.py | 115 + ...ation_gateway_backend_http_settings_py3.py | 115 + ...application_gateway_connection_draining.py | 42 + ...ication_gateway_connection_draining_py3.py | 42 + .../application_gateway_custom_error.py | 35 + .../application_gateway_custom_error_py3.py | 35 + ...on_gateway_firewall_disabled_rule_group.py | 40 + ...ateway_firewall_disabled_rule_group_py3.py | 40 + .../application_gateway_firewall_exclusion.py | 48 + ...lication_gateway_firewall_exclusion_py3.py | 48 + .../application_gateway_firewall_rule.py | 39 + ...application_gateway_firewall_rule_group.py | 47 + ...ication_gateway_firewall_rule_group_py3.py | 47 + .../application_gateway_firewall_rule_py3.py | 39 + .../application_gateway_firewall_rule_set.py | 73 + ...plication_gateway_firewall_rule_set_py3.py | 73 + ...ation_gateway_frontend_ip_configuration.py | 66 + ...n_gateway_frontend_ip_configuration_py3.py | 66 + .../application_gateway_frontend_port.py | 50 + .../application_gateway_frontend_port_py3.py | 50 + ...pplication_gateway_header_configuration.py | 32 + ...cation_gateway_header_configuration_py3.py | 32 + .../application_gateway_http_listener.py | 82 + .../application_gateway_http_listener_py3.py | 82 + .../application_gateway_ip_configuration.py | 53 + ...pplication_gateway_ip_configuration_py3.py | 53 + .../models/application_gateway_paged.py | 27 + .../models/application_gateway_path_rule.py | 73 + .../application_gateway_path_rule_py3.py | 73 + .../models/application_gateway_probe.py | 94 + ...ion_gateway_probe_health_response_match.py | 34 + ...gateway_probe_health_response_match_py3.py | 34 + .../models/application_gateway_probe_py3.py | 94 + .../models/application_gateway_py3.py | 196 + ...lication_gateway_redirect_configuration.py | 81 + ...tion_gateway_redirect_configuration_py3.py | 81 + ...pplication_gateway_request_routing_rule.py | 83 + ...cation_gateway_request_routing_rule_py3.py | 83 + .../application_gateway_rewrite_rule.py | 34 + ...ication_gateway_rewrite_rule_action_set.py | 36 + ...ion_gateway_rewrite_rule_action_set_py3.py | 36 + .../application_gateway_rewrite_rule_py3.py | 34 + .../application_gateway_rewrite_rule_set.py | 55 + ...pplication_gateway_rewrite_rule_set_py3.py | 55 + .../models/application_gateway_sku.py | 41 + .../models/application_gateway_sku_py3.py | 41 + .../application_gateway_ssl_certificate.py | 66 + ...application_gateway_ssl_certificate_py3.py | 66 + .../models/application_gateway_ssl_policy.py | 56 + .../application_gateway_ssl_policy_py3.py | 56 + ...plication_gateway_ssl_predefined_policy.py | 44 + ...ion_gateway_ssl_predefined_policy_paged.py | 27 + ...ation_gateway_ssl_predefined_policy_py3.py | 44 + ...cation_gateway_trusted_root_certificate.py | 56 + ...on_gateway_trusted_root_certificate_py3.py | 56 + .../application_gateway_url_path_map.py | 76 + .../application_gateway_url_path_map_py3.py | 76 + ..._web_application_firewall_configuration.py | 83 + ..._application_firewall_configuration_py3.py | 83 + .../models/application_security_group.py | 68 + .../application_security_group_paged.py | 27 + .../models/application_security_group_py3.py | 68 + .../v2018_10_01/models/availability.py | 36 + .../v2018_10_01/models/availability_py3.py | 36 + .../models/available_delegation.py | 46 + .../models/available_delegation_paged.py | 27 + .../models/available_delegation_py3.py | 46 + .../models/available_providers_list.py | 35 + .../models/available_providers_list_city.py | 32 + .../available_providers_list_city_py3.py | 32 + .../available_providers_list_country.py | 37 + .../available_providers_list_country_py3.py | 37 + .../available_providers_list_parameters.py | 41 + ...available_providers_list_parameters_py3.py | 41 + .../models/available_providers_list_py3.py | 35 + .../models/available_providers_list_state.py | 37 + .../available_providers_list_state_py3.py | 37 + .../models/azure_async_operation_result.py | 42 + .../azure_async_operation_result_py3.py | 42 + .../v2018_10_01/models/azure_firewall.py | 82 + .../models/azure_firewall_application_rule.py | 49 + ...re_firewall_application_rule_collection.py | 64 + ...irewall_application_rule_collection_py3.py | 64 + ...zure_firewall_application_rule_protocol.py | 39 + ..._firewall_application_rule_protocol_py3.py | 39 + .../azure_firewall_application_rule_py3.py | 49 + .../models/azure_firewall_fqdn_tag.py | 63 + .../models/azure_firewall_fqdn_tag_paged.py | 27 + .../models/azure_firewall_fqdn_tag_py3.py | 63 + .../models/azure_firewall_ip_configuration.py | 67 + .../azure_firewall_ip_configuration_py3.py | 67 + .../models/azure_firewall_nat_rc_action.py | 29 + .../azure_firewall_nat_rc_action_py3.py | 29 + .../models/azure_firewall_nat_rule.py | 59 + .../azure_firewall_nat_rule_collection.py | 65 + .../azure_firewall_nat_rule_collection_py3.py | 65 + .../models/azure_firewall_nat_rule_py3.py | 59 + .../models/azure_firewall_network_rule.py | 49 + .../azure_firewall_network_rule_collection.py | 64 + ...re_firewall_network_rule_collection_py3.py | 64 + .../models/azure_firewall_network_rule_py3.py | 49 + .../models/azure_firewall_paged.py | 27 + .../v2018_10_01/models/azure_firewall_py3.py | 82 + .../models/azure_firewall_rc_action.py | 29 + .../models/azure_firewall_rc_action_py3.py | 29 + .../models/azure_reachability_report.py | 48 + .../models/azure_reachability_report_item.py | 37 + .../azure_reachability_report_item_py3.py | 37 + .../azure_reachability_report_latency_info.py | 37 + ...re_reachability_report_latency_info_py3.py | 37 + .../azure_reachability_report_location.py | 42 + .../azure_reachability_report_location_py3.py | 42 + .../azure_reachability_report_parameters.py | 54 + ...zure_reachability_report_parameters_py3.py | 54 + .../models/azure_reachability_report_py3.py | 48 + .../models/backend_address_pool.py | 68 + .../models/backend_address_pool_paged.py | 27 + .../models/backend_address_pool_py3.py | 68 + .../v2018_10_01/models/bgp_community.py | 52 + .../v2018_10_01/models/bgp_community_py3.py | 52 + .../v2018_10_01/models/bgp_peer_status.py | 71 + .../models/bgp_peer_status_list_result.py | 28 + .../models/bgp_peer_status_list_result_py3.py | 28 + .../v2018_10_01/models/bgp_peer_status_py3.py | 71 + .../models/bgp_service_community.py | 56 + .../models/bgp_service_community_paged.py | 27 + .../models/bgp_service_community_py3.py | 56 + .../v2018_10_01/models/bgp_settings.py | 38 + .../v2018_10_01/models/bgp_settings_py3.py | 38 + .../v2018_10_01/models/connection_monitor.py | 59 + .../models/connection_monitor_destination.py | 38 + .../connection_monitor_destination_py3.py | 38 + .../models/connection_monitor_parameters.py | 51 + .../connection_monitor_parameters_py3.py | 51 + .../models/connection_monitor_py3.py | 59 + .../models/connection_monitor_query_result.py | 35 + .../connection_monitor_query_result_py3.py | 35 + .../models/connection_monitor_result.py | 98 + .../models/connection_monitor_result_paged.py | 27 + .../models/connection_monitor_result_py3.py | 98 + .../models/connection_monitor_source.py | 39 + .../models/connection_monitor_source_py3.py | 39 + .../models/connection_reset_shared_key.py | 35 + .../models/connection_reset_shared_key_py3.py | 35 + .../models/connection_shared_key.py | 37 + .../models/connection_shared_key_py3.py | 37 + .../models/connection_state_snapshot.py | 76 + .../models/connection_state_snapshot_py3.py | 76 + .../models/connectivity_destination.py | 38 + .../models/connectivity_destination_py3.py | 38 + .../v2018_10_01/models/connectivity_hop.py | 61 + .../models/connectivity_hop_py3.py | 61 + .../models/connectivity_information.py | 68 + .../models/connectivity_information_py3.py | 68 + .../v2018_10_01/models/connectivity_issue.py | 55 + .../models/connectivity_issue_py3.py | 55 + .../models/connectivity_parameters.py | 50 + .../models/connectivity_parameters_py3.py | 50 + .../v2018_10_01/models/connectivity_source.py | 40 + .../models/connectivity_source_py3.py | 40 + .../network/v2018_10_01/models/container.py | 27 + .../models/container_network_interface.py | 71 + ...ntainer_network_interface_configuration.py | 65 + ...ner_network_interface_configuration_py3.py | 65 + ...iner_network_interface_ip_configuration.py | 50 + ..._network_interface_ip_configuration_py3.py | 50 + .../models/container_network_interface_py3.py | 71 + .../v2018_10_01/models/container_py3.py | 27 + .../models/ddos_protection_plan.py | 81 + .../models/ddos_protection_plan_paged.py | 27 + .../models/ddos_protection_plan_py3.py | 81 + .../network/v2018_10_01/models/delegation.py | 58 + .../v2018_10_01/models/delegation_py3.py | 58 + .../v2018_10_01/models/device_properties.py | 36 + .../models/device_properties_py3.py | 36 + .../v2018_10_01/models/dhcp_options.py | 30 + .../v2018_10_01/models/dhcp_options_py3.py | 30 + .../network/v2018_10_01/models/dimension.py | 36 + .../v2018_10_01/models/dimension_py3.py | 36 + .../models/dns_name_availability_result.py | 28 + .../dns_name_availability_result_py3.py | 28 + .../effective_network_security_group.py | 45 + ...tive_network_security_group_association.py | 33 + ..._network_security_group_association_py3.py | 33 + ...tive_network_security_group_list_result.py | 40 + ..._network_security_group_list_result_py3.py | 40 + .../effective_network_security_group_py3.py | 45 + .../models/effective_network_security_rule.py | 101 + .../effective_network_security_rule_py3.py | 101 + .../v2018_10_01/models/effective_route.py | 60 + .../models/effective_route_list_result.py | 39 + .../models/effective_route_list_result_py3.py | 39 + .../v2018_10_01/models/effective_route_py3.py | 60 + .../v2018_10_01/models/endpoint_service.py | 29 + .../models/endpoint_service_py3.py | 29 + .../models/endpoint_service_result.py | 43 + .../models/endpoint_service_result_paged.py | 27 + .../models/endpoint_service_result_py3.py | 43 + .../mgmt/network/v2018_10_01/models/error.py | 57 + .../v2018_10_01/models/error_details.py | 36 + .../v2018_10_01/models/error_details_py3.py | 36 + .../network/v2018_10_01/models/error_py3.py | 57 + .../v2018_10_01/models/error_response.py | 41 + .../v2018_10_01/models/error_response_py3.py | 41 + .../evaluated_network_security_group.py | 50 + .../evaluated_network_security_group_py3.py | 50 + .../models/express_route_circuit.py | 128 + .../models/express_route_circuit_arp_table.py | 40 + .../express_route_circuit_arp_table_py3.py | 40 + .../express_route_circuit_authorization.py | 60 + ...press_route_circuit_authorization_paged.py | 27 + ...express_route_circuit_authorization_py3.py | 60 + .../express_route_circuit_connection.py | 80 + .../express_route_circuit_connection_paged.py | 27 + .../express_route_circuit_connection_py3.py | 80 + .../models/express_route_circuit_paged.py | 27 + .../models/express_route_circuit_peering.py | 133 + .../express_route_circuit_peering_config.py | 55 + ...xpress_route_circuit_peering_config_py3.py | 55 + .../express_route_circuit_peering_id.py | 28 + .../express_route_circuit_peering_id_py3.py | 28 + .../express_route_circuit_peering_paged.py | 27 + .../express_route_circuit_peering_py3.py | 133 + .../models/express_route_circuit_py3.py | 128 + .../models/express_route_circuit_reference.py | 28 + .../express_route_circuit_reference_py3.py | 28 + .../express_route_circuit_routes_table.py | 45 + .../express_route_circuit_routes_table_py3.py | 45 + ...ress_route_circuit_routes_table_summary.py | 46 + ..._route_circuit_routes_table_summary_py3.py | 46 + ...ute_circuit_service_provider_properties.py | 36 + ...circuit_service_provider_properties_py3.py | 36 + .../models/express_route_circuit_sku.py | 41 + .../models/express_route_circuit_sku_py3.py | 41 + .../models/express_route_circuit_stats.py | 40 + .../models/express_route_circuit_stats_py3.py | 40 + ...ss_route_circuits_arp_table_list_result.py | 33 + ...oute_circuits_arp_table_list_result_py3.py | 33 + ...route_circuits_routes_table_list_result.py | 34 + ...e_circuits_routes_table_list_result_py3.py | 34 + ...rcuits_routes_table_summary_list_result.py | 34 + ...ts_routes_table_summary_list_result_py3.py | 34 + .../models/express_route_connection.py | 62 + .../models/express_route_connection_id.py | 35 + .../models/express_route_connection_id_py3.py | 35 + .../models/express_route_connection_list.py | 29 + .../express_route_connection_list_py3.py | 29 + .../models/express_route_connection_py3.py | 62 + .../models/express_route_cross_connection.py | 105 + .../express_route_cross_connection_paged.py | 27 + .../express_route_cross_connection_peering.py | 117 + ...ss_route_cross_connection_peering_paged.py | 27 + ...ress_route_cross_connection_peering_py3.py | 117 + .../express_route_cross_connection_py3.py | 105 + ...e_cross_connection_routes_table_summary.py | 43 + ...oss_connection_routes_table_summary_py3.py | 43 + ...ctions_routes_table_summary_list_result.py | 41 + ...ns_routes_table_summary_list_result_py3.py | 41 + .../models/express_route_gateway.py | 80 + .../models/express_route_gateway_list.py | 29 + .../models/express_route_gateway_list_py3.py | 29 + ...way_properties_auto_scale_configuration.py | 29 + ...perties_auto_scale_configuration_bounds.py | 34 + ...ies_auto_scale_configuration_bounds_py3.py | 34 + ...properties_auto_scale_configuration_py3.py | 29 + .../models/express_route_gateway_py3.py | 80 + .../v2018_10_01/models/express_route_link.py | 86 + .../models/express_route_link_paged.py | 27 + .../models/express_route_link_py3.py | 86 + .../v2018_10_01/models/express_route_port.py | 116 + .../models/express_route_port_paged.py | 27 + .../models/express_route_port_py3.py | 116 + .../models/express_route_ports_location.py | 72 + ...express_route_ports_location_bandwidths.py | 42 + ...ess_route_ports_location_bandwidths_py3.py | 42 + .../express_route_ports_location_paged.py | 27 + .../express_route_ports_location_py3.py | 72 + .../models/express_route_service_provider.py | 60 + ...ute_service_provider_bandwidths_offered.py | 32 + ...service_provider_bandwidths_offered_py3.py | 32 + .../express_route_service_provider_paged.py | 27 + .../express_route_service_provider_py3.py | 60 + .../models/flow_log_format_parameters.py | 33 + .../models/flow_log_format_parameters_py3.py | 33 + .../models/flow_log_information.py | 62 + .../models/flow_log_information_py3.py | 62 + .../models/flow_log_status_parameters.py | 36 + .../models/flow_log_status_parameters_py3.py | 36 + .../models/frontend_ip_configuration.py | 105 + .../models/frontend_ip_configuration_paged.py | 27 + .../models/frontend_ip_configuration_py3.py | 105 + .../v2018_10_01/models/gateway_route.py | 65 + .../models/gateway_route_list_result.py | 28 + .../models/gateway_route_list_result_py3.py | 28 + .../v2018_10_01/models/gateway_route_py3.py | 65 + .../get_vpn_sites_configuration_request.py | 34 + ...get_vpn_sites_configuration_request_py3.py | 34 + .../v2018_10_01/models/http_configuration.py | 36 + .../models/http_configuration_py3.py | 36 + .../network/v2018_10_01/models/http_header.py | 32 + .../v2018_10_01/models/http_header_py3.py | 32 + .../models/hub_virtual_network_connection.py | 69 + .../hub_virtual_network_connection_paged.py | 27 + .../hub_virtual_network_connection_py3.py | 69 + .../v2018_10_01/models/inbound_nat_pool.py | 100 + .../models/inbound_nat_pool_py3.py | 100 + .../v2018_10_01/models/inbound_nat_rule.py | 97 + .../models/inbound_nat_rule_paged.py | 27 + .../models/inbound_nat_rule_py3.py | 97 + .../v2018_10_01/models/interface_endpoint.py | 87 + .../models/interface_endpoint_paged.py | 27 + .../models/interface_endpoint_py3.py | 87 + .../models/ip_address_availability_result.py | 33 + .../ip_address_availability_result_py3.py | 33 + .../v2018_10_01/models/ip_configuration.py | 62 + .../models/ip_configuration_profile.py | 58 + .../models/ip_configuration_profile_py3.py | 58 + .../models/ip_configuration_py3.py | 62 + .../mgmt/network/v2018_10_01/models/ip_tag.py | 33 + .../network/v2018_10_01/models/ip_tag_py3.py | 33 + .../v2018_10_01/models/ipsec_policy.py | 89 + .../v2018_10_01/models/ipsec_policy_py3.py | 89 + ...v6_express_route_circuit_peering_config.py | 47 + ...xpress_route_circuit_peering_config_py3.py | 47 + .../v2018_10_01/models/load_balancer.py | 115 + .../v2018_10_01/models/load_balancer_paged.py | 27 + .../v2018_10_01/models/load_balancer_py3.py | 115 + .../v2018_10_01/models/load_balancer_sku.py | 30 + .../models/load_balancer_sku_py3.py | 30 + .../v2018_10_01/models/load_balancing_rule.py | 115 + .../models/load_balancing_rule_paged.py | 27 + .../models/load_balancing_rule_py3.py | 115 + .../models/local_network_gateway.py | 77 + .../models/local_network_gateway_paged.py | 27 + .../models/local_network_gateway_py3.py | 77 + .../v2018_10_01/models/log_specification.py | 36 + .../models/log_specification_py3.py | 36 + .../models/managed_service_identity.py | 59 + .../models/managed_service_identity_py3.py | 59 + ...identity_user_assigned_identities_value.py | 40 + ...tity_user_assigned_identities_value_py3.py | 40 + .../v2018_10_01/models/matched_rule.py | 33 + .../v2018_10_01/models/matched_rule_py3.py | 33 + .../models/metric_specification.py | 82 + .../models/metric_specification_py3.py | 82 + ...ork_configuration_diagnostic_parameters.py | 49 + ...configuration_diagnostic_parameters_py3.py | 49 + ...etwork_configuration_diagnostic_profile.py | 61 + ...rk_configuration_diagnostic_profile_py3.py | 61 + ...twork_configuration_diagnostic_response.py | 36 + ...k_configuration_diagnostic_response_py3.py | 36 + ...network_configuration_diagnostic_result.py | 35 + ...ork_configuration_diagnostic_result_py3.py | 35 + .../v2018_10_01/models/network_interface.py | 122 + .../models/network_interface_association.py | 40 + .../network_interface_association_py3.py | 40 + .../models/network_interface_dns_settings.py | 55 + .../network_interface_dns_settings_py3.py | 55 + .../network_interface_ip_configuration.py | 105 + ...etwork_interface_ip_configuration_paged.py | 27 + .../network_interface_ip_configuration_py3.py | 105 + .../models/network_interface_paged.py | 27 + .../models/network_interface_py3.py | 122 + .../network_interface_tap_configuration.py | 61 + ...twork_interface_tap_configuration_paged.py | 27 + ...network_interface_tap_configuration_py3.py | 61 + .../models/network_management_client_enums.py | 717 ++++ .../v2018_10_01/models/network_profile.py | 75 + .../models/network_profile_paged.py | 27 + .../v2018_10_01/models/network_profile_py3.py | 75 + .../models/network_security_group.py | 86 + .../models/network_security_group_paged.py | 27 + .../models/network_security_group_py3.py | 86 + .../models/network_security_group_result.py | 45 + .../network_security_group_result_py3.py | 45 + ...etwork_security_rules_evaluation_result.py | 51 + ...rk_security_rules_evaluation_result_py3.py | 51 + .../v2018_10_01/models/network_watcher.py | 59 + .../models/network_watcher_paged.py | 27 + .../v2018_10_01/models/network_watcher_py3.py | 59 + .../v2018_10_01/models/next_hop_parameters.py | 51 + .../models/next_hop_parameters_py3.py | 51 + .../v2018_10_01/models/next_hop_result.py | 42 + .../v2018_10_01/models/next_hop_result_py3.py | 42 + .../network/v2018_10_01/models/operation.py | 41 + .../v2018_10_01/models/operation_display.py | 40 + .../models/operation_display_py3.py | 40 + .../v2018_10_01/models/operation_paged.py | 27 + ...properties_format_service_specification.py | 34 + ...erties_format_service_specification_py3.py | 34 + .../v2018_10_01/models/operation_py3.py | 41 + .../v2018_10_01/models/outbound_rule.py | 82 + .../v2018_10_01/models/outbound_rule_paged.py | 27 + .../v2018_10_01/models/outbound_rule_py3.py | 82 + .../v2018_10_01/models/p2_svpn_gateway.py | 86 + .../models/p2_svpn_gateway_paged.py | 27 + .../v2018_10_01/models/p2_svpn_gateway_py3.py | 86 + .../models/p2_svpn_profile_parameters.py | 31 + .../models/p2_svpn_profile_parameters_py3.py | 31 + ...r_config_radius_client_root_certificate.py | 54 + ...nfig_radius_client_root_certificate_py3.py | 54 + ...r_config_radius_server_root_certificate.py | 57 + ...nfig_radius_server_root_certificate_py3.py | 57 + ...r_config_vpn_client_revoked_certificate.py | 54 + ...nfig_vpn_client_revoked_certificate_py3.py | 54 + ...rver_config_vpn_client_root_certificate.py | 57 + ..._config_vpn_client_root_certificate_py3.py | 57 + .../models/p2_svpn_server_configuration.py | 115 + .../p2_svpn_server_configuration_paged.py | 27 + .../p2_svpn_server_configuration_py3.py | 115 + .../v2018_10_01/models/packet_capture.py | 61 + .../models/packet_capture_filter.py | 60 + .../models/packet_capture_filter_py3.py | 60 + .../models/packet_capture_parameters.py | 61 + .../models/packet_capture_parameters_py3.py | 61 + .../v2018_10_01/models/packet_capture_py3.py | 61 + .../packet_capture_query_status_result.py | 53 + .../packet_capture_query_status_result_py3.py | 53 + .../models/packet_capture_result.py | 86 + .../models/packet_capture_result_paged.py | 27 + .../models/packet_capture_result_py3.py | 86 + .../models/packet_capture_storage_location.py | 42 + .../packet_capture_storage_location_py3.py | 42 + .../v2018_10_01/models/patch_route_filter.py | 71 + .../models/patch_route_filter_py3.py | 71 + .../models/patch_route_filter_rule.py | 72 + .../models/patch_route_filter_rule_py3.py | 72 + .../mgmt/network/v2018_10_01/models/probe.py | 93 + .../network/v2018_10_01/models/probe_paged.py | 27 + .../network/v2018_10_01/models/probe_py3.py | 93 + .../models/protocol_configuration.py | 29 + .../models/protocol_configuration_py3.py | 29 + .../v2018_10_01/models/public_ip_address.py | 115 + .../models/public_ip_address_dns_settings.py | 45 + .../public_ip_address_dns_settings_py3.py | 45 + .../models/public_ip_address_paged.py | 27 + .../models/public_ip_address_py3.py | 115 + .../models/public_ip_address_sku.py | 30 + .../models/public_ip_address_sku_py3.py | 30 + .../v2018_10_01/models/public_ip_prefix.py | 94 + .../models/public_ip_prefix_paged.py | 27 + .../models/public_ip_prefix_py3.py | 94 + .../models/public_ip_prefix_sku.py | 30 + .../models/public_ip_prefix_sku_py3.py | 30 + .../query_troubleshooting_parameters.py | 35 + .../query_troubleshooting_parameters_py3.py | 35 + .../models/referenced_public_ip_address.py | 28 + .../referenced_public_ip_address_py3.py | 28 + .../network/v2018_10_01/models/resource.py | 52 + .../models/resource_navigation_link.py | 58 + .../models/resource_navigation_link_py3.py | 58 + .../v2018_10_01/models/resource_py3.py | 52 + .../models/retention_policy_parameters.py | 32 + .../models/retention_policy_parameters_py3.py | 32 + .../mgmt/network/v2018_10_01/models/route.py | 67 + .../v2018_10_01/models/route_filter.py | 70 + .../v2018_10_01/models/route_filter_paged.py | 27 + .../v2018_10_01/models/route_filter_py3.py | 70 + .../v2018_10_01/models/route_filter_rule.py | 75 + .../models/route_filter_rule_paged.py | 27 + .../models/route_filter_rule_py3.py | 75 + .../network/v2018_10_01/models/route_paged.py | 27 + .../network/v2018_10_01/models/route_py3.py | 67 + .../network/v2018_10_01/models/route_table.py | 71 + .../v2018_10_01/models/route_table_paged.py | 27 + .../v2018_10_01/models/route_table_py3.py | 71 + .../security_group_network_interface.py | 33 + .../security_group_network_interface_py3.py | 33 + .../models/security_group_view_parameters.py | 34 + .../security_group_view_parameters_py3.py | 34 + .../models/security_group_view_result.py | 29 + .../models/security_group_view_result_py3.py | 29 + .../v2018_10_01/models/security_rule.py | 137 + .../models/security_rule_associations.py | 45 + .../models/security_rule_associations_py3.py | 45 + .../v2018_10_01/models/security_rule_paged.py | 27 + .../v2018_10_01/models/security_rule_py3.py | 137 + .../models/service_association_link.py | 58 + .../models/service_association_link_py3.py | 58 + .../models/service_endpoint_policy.py | 75 + .../service_endpoint_policy_definition.py | 62 + ...ervice_endpoint_policy_definition_paged.py | 27 + .../service_endpoint_policy_definition_py3.py | 62 + .../models/service_endpoint_policy_paged.py | 27 + .../models/service_endpoint_policy_py3.py | 75 + .../service_endpoint_properties_format.py | 36 + .../service_endpoint_properties_format_py3.py | 36 + .../v2018_10_01/models/sub_resource.py | 28 + .../v2018_10_01/models/sub_resource_py3.py | 28 + .../mgmt/network/v2018_10_01/models/subnet.py | 118 + .../v2018_10_01/models/subnet_association.py | 40 + .../models/subnet_association_py3.py | 40 + .../v2018_10_01/models/subnet_paged.py | 27 + .../network/v2018_10_01/models/subnet_py3.py | 118 + .../network/v2018_10_01/models/tags_object.py | 28 + .../v2018_10_01/models/tags_object_py3.py | 28 + .../network/v2018_10_01/models/topology.py | 51 + .../models/topology_association.py | 40 + .../models/topology_association_py3.py | 40 + .../v2018_10_01/models/topology_parameters.py | 39 + .../models/topology_parameters_py3.py | 39 + .../v2018_10_01/models/topology_py3.py | 51 + .../v2018_10_01/models/topology_resource.py | 42 + .../models/topology_resource_py3.py | 42 + ...ffic_analytics_configuration_properties.py | 55 + ..._analytics_configuration_properties_py3.py | 55 + .../models/traffic_analytics_properties.py | 35 + .../traffic_analytics_properties_py3.py | 35 + .../models/troubleshooting_details.py | 45 + .../models/troubleshooting_details_py3.py | 45 + .../models/troubleshooting_parameters.py | 46 + .../models/troubleshooting_parameters_py3.py | 46 + .../troubleshooting_recommended_actions.py | 42 + ...troubleshooting_recommended_actions_py3.py | 42 + .../models/troubleshooting_result.py | 41 + .../models/troubleshooting_result_py3.py | 41 + .../models/tunnel_connection_health.py | 61 + .../models/tunnel_connection_health_py3.py | 61 + .../mgmt/network/v2018_10_01/models/usage.py | 59 + .../network/v2018_10_01/models/usage_name.py | 32 + .../v2018_10_01/models/usage_name_py3.py | 32 + .../network/v2018_10_01/models/usage_paged.py | 27 + .../network/v2018_10_01/models/usage_py3.py | 59 + .../models/verification_ip_flow_parameters.py | 80 + .../verification_ip_flow_parameters_py3.py | 80 + .../models/verification_ip_flow_result.py | 34 + .../models/verification_ip_flow_result_py3.py | 34 + .../network/v2018_10_01/models/virtual_hub.py | 92 + .../v2018_10_01/models/virtual_hub_id.py | 30 + .../v2018_10_01/models/virtual_hub_id_py3.py | 30 + .../v2018_10_01/models/virtual_hub_paged.py | 27 + .../v2018_10_01/models/virtual_hub_py3.py | 92 + .../v2018_10_01/models/virtual_hub_route.py | 32 + .../models/virtual_hub_route_py3.py | 32 + .../models/virtual_hub_route_table.py | 28 + .../models/virtual_hub_route_table_py3.py | 28 + .../v2018_10_01/models/virtual_network.py | 98 + ...al_network_connection_gateway_reference.py | 35 + ...etwork_connection_gateway_reference_py3.py | 35 + .../models/virtual_network_gateway.py | 114 + .../virtual_network_gateway_connection.py | 163 + ..._network_gateway_connection_list_entity.py | 163 + ...rk_gateway_connection_list_entity_paged.py | 27 + ...work_gateway_connection_list_entity_py3.py | 163 + ...irtual_network_gateway_connection_paged.py | 27 + .../virtual_network_gateway_connection_py3.py | 163 + ...irtual_network_gateway_ip_configuration.py | 65 + ...al_network_gateway_ip_configuration_py3.py | 65 + .../models/virtual_network_gateway_paged.py | 27 + .../models/virtual_network_gateway_py3.py | 114 + .../models/virtual_network_gateway_sku.py | 44 + .../models/virtual_network_gateway_sku_py3.py | 44 + .../models/virtual_network_paged.py | 27 + .../models/virtual_network_peering.py | 86 + .../models/virtual_network_peering_paged.py | 27 + .../models/virtual_network_peering_py3.py | 86 + .../v2018_10_01/models/virtual_network_py3.py | 98 + .../v2018_10_01/models/virtual_network_tap.py | 88 + .../models/virtual_network_tap_paged.py | 27 + .../models/virtual_network_tap_py3.py | 88 + .../models/virtual_network_usage.py | 56 + .../models/virtual_network_usage_name.py | 40 + .../models/virtual_network_usage_name_py3.py | 40 + .../models/virtual_network_usage_paged.py | 27 + .../models/virtual_network_usage_py3.py | 56 + .../network/v2018_10_01/models/virtual_wan.py | 102 + .../v2018_10_01/models/virtual_wan_paged.py | 27 + .../v2018_10_01/models/virtual_wan_py3.py | 102 + .../models/virtual_wan_security_provider.py | 38 + .../virtual_wan_security_provider_py3.py | 38 + .../models/virtual_wan_security_providers.py | 29 + .../virtual_wan_security_providers_py3.py | 29 + .../models/vpn_client_configuration.py | 64 + .../models/vpn_client_configuration_py3.py | 64 + .../models/vpn_client_connection_health.py | 52 + .../vpn_client_connection_health_py3.py | 52 + .../models/vpn_client_ipsec_parameters.py | 87 + .../models/vpn_client_ipsec_parameters_py3.py | 87 + .../models/vpn_client_parameters.py | 50 + .../models/vpn_client_parameters_py3.py | 50 + .../models/vpn_client_revoked_certificate.py | 54 + .../vpn_client_revoked_certificate_py3.py | 54 + .../models/vpn_client_root_certificate.py | 57 + .../models/vpn_client_root_certificate_py3.py | 57 + .../v2018_10_01/models/vpn_connection.py | 106 + .../models/vpn_connection_paged.py | 27 + .../v2018_10_01/models/vpn_connection_py3.py | 106 + .../models/vpn_device_script_parameters.py | 36 + .../vpn_device_script_parameters_py3.py | 36 + .../network/v2018_10_01/models/vpn_gateway.py | 76 + .../v2018_10_01/models/vpn_gateway_paged.py | 27 + .../v2018_10_01/models/vpn_gateway_py3.py | 76 + .../models/vpn_profile_response.py | 28 + .../models/vpn_profile_response_py3.py | 28 + .../network/v2018_10_01/models/vpn_site.py | 89 + .../network/v2018_10_01/models/vpn_site_id.py | 36 + .../v2018_10_01/models/vpn_site_id_py3.py | 36 + .../v2018_10_01/models/vpn_site_paged.py | 27 + .../v2018_10_01/models/vpn_site_py3.py | 89 + .../v2018_10_01/network_management_client.py | 552 +++ .../v2018_10_01/operations/__init__.py | 148 + .../application_gateways_operations.py | 1019 ++++++ .../application_security_groups_operations.py | 421 +++ .../available_delegations_operations.py | 106 + .../available_endpoint_services_operations.py | 105 + ...e_resource_group_delegations_operations.py | 109 + .../azure_firewall_fqdn_tags_operations.py | 102 + .../operations/azure_firewalls_operations.py | 415 +++ .../bgp_service_communities_operations.py | 102 + .../connection_monitors_operations.py | 632 ++++ .../ddos_protection_plans_operations.py | 422 +++ .../default_security_rules_operations.py | 176 + ...route_circuit_authorizations_operations.py | 372 ++ ...ss_route_circuit_connections_operations.py | 391 ++ ...press_route_circuit_peerings_operations.py | 368 ++ .../express_route_circuits_operations.py | 958 +++++ .../express_route_connections_operations.py | 364 ++ ...te_cross_connection_peerings_operations.py | 375 ++ ...ress_route_cross_connections_operations.py | 757 ++++ .../express_route_gateways_operations.py | 406 +++ .../express_route_links_operations.py | 176 + ...xpress_route_ports_locations_operations.py | 166 + .../express_route_ports_operations.py | 522 +++ ...ress_route_service_providers_operations.py | 102 + ..._virtual_network_connections_operations.py | 171 + .../inbound_nat_rules_operations.py | 370 ++ .../interface_endpoints_operations.py | 421 +++ ...lancer_backend_address_pools_operations.py | 174 + ...r_frontend_ip_configurations_operations.py | 174 + ...alancer_load_balancing_rules_operations.py | 173 + ..._balancer_network_interfaces_operations.py | 108 + ...load_balancer_outbound_rules_operations.py | 173 + .../load_balancer_probes_operations.py | 173 + .../operations/load_balancers_operations.py | 521 +++ .../local_network_gateways_operations.py | 459 +++ ..._interface_ip_configurations_operations.py | 175 + ...ork_interface_load_balancers_operations.py | 108 + ...interface_tap_configurations_operations.py | 370 ++ .../network_interfaces_operations.py | 1115 ++++++ .../operations/network_profiles_operations.py | 522 +++ .../network_security_groups_operations.py | 527 +++ .../operations/network_watchers_operations.py | 1664 +++++++++ .../v2018_10_01/operations/operations.py | 98 + .../operations/p2s_vpn_gateways_operations.py | 626 ++++ ...2s_vpn_server_configurations_operations.py | 369 ++ .../operations/packet_captures_operations.py | 540 +++ .../public_ip_addresses_operations.py | 770 ++++ .../public_ip_prefixes_operations.py | 522 +++ .../route_filter_rules_operations.py | 472 +++ .../operations/route_filters_operations.py | 522 +++ .../operations/route_tables_operations.py | 521 +++ .../operations/routes_operations.py | 365 ++ .../operations/security_rules_operations.py | 371 ++ .../service_endpoint_policies_operations.py | 527 +++ ..._endpoint_policy_definitions_operations.py | 379 ++ .../operations/subnets_operations.py | 369 ++ .../operations/usages_operations.py | 105 + .../operations/virtual_hubs_operations.py | 514 +++ ..._network_gateway_connections_operations.py | 749 ++++ .../virtual_network_gateways_operations.py | 1641 +++++++++ .../virtual_network_peerings_operations.py | 368 ++ .../virtual_network_taps_operations.py | 518 +++ .../operations/virtual_networks_operations.py | 658 ++++ .../operations/virtual_wans_operations.py | 515 +++ .../operations/vpn_connections_operations.py | 362 ++ .../operations/vpn_gateways_operations.py | 514 +++ .../vpn_sites_configuration_operations.py | 133 + .../operations/vpn_sites_operations.py | 515 +++ .../azure/mgmt/network/v2018_10_01/version.py | 13 + .../azure/mgmt/network/version.py | 2 +- ...st_mgmt_network.test_dns_availability.yaml | 6 +- ...mt_network.test_express_route_circuit.yaml | 92 +- ....test_express_route_service_providers.yaml | 66 +- ...test_mgmt_network.test_load_balancers.yaml | 196 +- ...t_network.test_network_interface_card.yaml | 249 +- ..._network.test_network_security_groups.yaml | 376 +- ...mgmt_network.test_public_ip_addresses.yaml | 106 +- .../test_mgmt_network.test_routes.yaml | 174 +- .../test_mgmt_network.test_subnets.yaml | 142 +- .../test_mgmt_network.test_usages.yaml | 164 +- ...st_virtual_network_gateway_operations.yaml | 3162 ++++------------- ...st_mgmt_network.test_virtual_networks.yaml | 131 +- 711 files changed, 66641 insertions(+), 3297 deletions(-) create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/__init__.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/__init__.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/address_space.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/address_space_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_authentication_certificate.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_authentication_certificate_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_autoscale_configuration.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_autoscale_configuration_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_available_ssl_options.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_available_ssl_options_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_available_waf_rule_sets_result.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_available_waf_rule_sets_result_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_backend_address.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_backend_address_pool.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_backend_address_pool_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_backend_address_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_backend_health.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_backend_health_http_settings.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_backend_health_http_settings_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_backend_health_pool.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_backend_health_pool_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_backend_health_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_backend_health_server.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_backend_health_server_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_backend_http_settings.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_backend_http_settings_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_connection_draining.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_connection_draining_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_custom_error.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_custom_error_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_firewall_disabled_rule_group.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_firewall_disabled_rule_group_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_firewall_exclusion.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_firewall_exclusion_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_firewall_rule.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_firewall_rule_group.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_firewall_rule_group_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_firewall_rule_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_firewall_rule_set.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_firewall_rule_set_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_frontend_ip_configuration.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_frontend_ip_configuration_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_frontend_port.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_frontend_port_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_header_configuration.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_header_configuration_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_http_listener.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_http_listener_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_ip_configuration.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_ip_configuration_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_paged.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_path_rule.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_path_rule_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_probe.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_probe_health_response_match.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_probe_health_response_match_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_probe_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_redirect_configuration.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_redirect_configuration_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_request_routing_rule.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_request_routing_rule_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_rewrite_rule.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_rewrite_rule_action_set.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_rewrite_rule_action_set_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_rewrite_rule_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_rewrite_rule_set.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_rewrite_rule_set_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_sku.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_sku_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_ssl_certificate.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_ssl_certificate_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_ssl_policy.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_ssl_policy_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_ssl_predefined_policy.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_ssl_predefined_policy_paged.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_ssl_predefined_policy_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_trusted_root_certificate.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_trusted_root_certificate_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_url_path_map.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_url_path_map_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_web_application_firewall_configuration.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_web_application_firewall_configuration_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_security_group.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_security_group_paged.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_security_group_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/availability.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/availability_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/available_delegation.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/available_delegation_paged.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/available_delegation_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/available_providers_list.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/available_providers_list_city.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/available_providers_list_city_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/available_providers_list_country.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/available_providers_list_country_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/available_providers_list_parameters.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/available_providers_list_parameters_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/available_providers_list_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/available_providers_list_state.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/available_providers_list_state_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_async_operation_result.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_async_operation_result_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_application_rule.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_application_rule_collection.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_application_rule_collection_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_application_rule_protocol.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_application_rule_protocol_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_application_rule_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_fqdn_tag.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_fqdn_tag_paged.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_fqdn_tag_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_ip_configuration.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_ip_configuration_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_nat_rc_action.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_nat_rc_action_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_nat_rule.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_nat_rule_collection.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_nat_rule_collection_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_nat_rule_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_network_rule.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_network_rule_collection.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_network_rule_collection_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_network_rule_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_paged.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_rc_action.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_rc_action_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_reachability_report.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_reachability_report_item.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_reachability_report_item_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_reachability_report_latency_info.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_reachability_report_latency_info_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_reachability_report_location.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_reachability_report_location_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_reachability_report_parameters.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_reachability_report_parameters_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_reachability_report_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/backend_address_pool.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/backend_address_pool_paged.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/backend_address_pool_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/bgp_community.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/bgp_community_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/bgp_peer_status.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/bgp_peer_status_list_result.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/bgp_peer_status_list_result_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/bgp_peer_status_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/bgp_service_community.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/bgp_service_community_paged.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/bgp_service_community_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/bgp_settings.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/bgp_settings_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connection_monitor.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connection_monitor_destination.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connection_monitor_destination_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connection_monitor_parameters.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connection_monitor_parameters_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connection_monitor_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connection_monitor_query_result.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connection_monitor_query_result_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connection_monitor_result.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connection_monitor_result_paged.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connection_monitor_result_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connection_monitor_source.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connection_monitor_source_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connection_reset_shared_key.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connection_reset_shared_key_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connection_shared_key.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connection_shared_key_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connection_state_snapshot.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connection_state_snapshot_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connectivity_destination.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connectivity_destination_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connectivity_hop.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connectivity_hop_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connectivity_information.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connectivity_information_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connectivity_issue.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connectivity_issue_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connectivity_parameters.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connectivity_parameters_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connectivity_source.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connectivity_source_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/container.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/container_network_interface.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/container_network_interface_configuration.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/container_network_interface_configuration_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/container_network_interface_ip_configuration.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/container_network_interface_ip_configuration_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/container_network_interface_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/container_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/ddos_protection_plan.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/ddos_protection_plan_paged.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/ddos_protection_plan_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/delegation.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/delegation_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/device_properties.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/device_properties_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/dhcp_options.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/dhcp_options_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/dimension.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/dimension_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/dns_name_availability_result.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/dns_name_availability_result_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/effective_network_security_group.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/effective_network_security_group_association.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/effective_network_security_group_association_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/effective_network_security_group_list_result.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/effective_network_security_group_list_result_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/effective_network_security_group_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/effective_network_security_rule.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/effective_network_security_rule_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/effective_route.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/effective_route_list_result.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/effective_route_list_result_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/effective_route_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/endpoint_service.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/endpoint_service_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/endpoint_service_result.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/endpoint_service_result_paged.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/endpoint_service_result_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/error.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/error_details.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/error_details_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/error_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/error_response.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/error_response_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/evaluated_network_security_group.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/evaluated_network_security_group_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_arp_table.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_arp_table_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_authorization.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_authorization_paged.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_authorization_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_connection.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_connection_paged.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_connection_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_paged.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_peering.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_peering_config.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_peering_config_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_peering_id.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_peering_id_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_peering_paged.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_peering_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_reference.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_reference_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_routes_table.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_routes_table_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_routes_table_summary.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_routes_table_summary_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_service_provider_properties.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_service_provider_properties_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_sku.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_sku_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_stats.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_stats_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuits_arp_table_list_result.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuits_arp_table_list_result_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuits_routes_table_list_result.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuits_routes_table_list_result_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuits_routes_table_summary_list_result.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuits_routes_table_summary_list_result_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_connection.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_connection_id.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_connection_id_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_connection_list.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_connection_list_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_connection_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_cross_connection.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_cross_connection_paged.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_cross_connection_peering.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_cross_connection_peering_paged.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_cross_connection_peering_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_cross_connection_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_cross_connection_routes_table_summary.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_cross_connection_routes_table_summary_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_cross_connections_routes_table_summary_list_result.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_cross_connections_routes_table_summary_list_result_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_gateway.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_gateway_list.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_gateway_list_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_gateway_properties_auto_scale_configuration.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_gateway_properties_auto_scale_configuration_bounds.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_gateway_properties_auto_scale_configuration_bounds_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_gateway_properties_auto_scale_configuration_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_gateway_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_link.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_link_paged.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_link_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_port.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_port_paged.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_port_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_ports_location.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_ports_location_bandwidths.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_ports_location_bandwidths_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_ports_location_paged.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_ports_location_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_service_provider.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_service_provider_bandwidths_offered.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_service_provider_bandwidths_offered_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_service_provider_paged.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_service_provider_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/flow_log_format_parameters.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/flow_log_format_parameters_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/flow_log_information.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/flow_log_information_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/flow_log_status_parameters.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/flow_log_status_parameters_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/frontend_ip_configuration.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/frontend_ip_configuration_paged.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/frontend_ip_configuration_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/gateway_route.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/gateway_route_list_result.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/gateway_route_list_result_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/gateway_route_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/get_vpn_sites_configuration_request.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/get_vpn_sites_configuration_request_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/http_configuration.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/http_configuration_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/http_header.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/http_header_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/hub_virtual_network_connection.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/hub_virtual_network_connection_paged.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/hub_virtual_network_connection_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/inbound_nat_pool.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/inbound_nat_pool_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/inbound_nat_rule.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/inbound_nat_rule_paged.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/inbound_nat_rule_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/interface_endpoint.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/interface_endpoint_paged.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/interface_endpoint_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/ip_address_availability_result.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/ip_address_availability_result_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/ip_configuration.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/ip_configuration_profile.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/ip_configuration_profile_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/ip_configuration_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/ip_tag.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/ip_tag_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/ipsec_policy.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/ipsec_policy_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/ipv6_express_route_circuit_peering_config.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/ipv6_express_route_circuit_peering_config_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/load_balancer.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/load_balancer_paged.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/load_balancer_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/load_balancer_sku.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/load_balancer_sku_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/load_balancing_rule.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/load_balancing_rule_paged.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/load_balancing_rule_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/local_network_gateway.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/local_network_gateway_paged.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/local_network_gateway_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/log_specification.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/log_specification_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/managed_service_identity.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/managed_service_identity_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/managed_service_identity_user_assigned_identities_value.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/managed_service_identity_user_assigned_identities_value_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/matched_rule.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/matched_rule_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/metric_specification.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/metric_specification_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_configuration_diagnostic_parameters.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_configuration_diagnostic_parameters_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_configuration_diagnostic_profile.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_configuration_diagnostic_profile_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_configuration_diagnostic_response.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_configuration_diagnostic_response_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_configuration_diagnostic_result.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_configuration_diagnostic_result_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_interface.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_interface_association.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_interface_association_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_interface_dns_settings.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_interface_dns_settings_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_interface_ip_configuration.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_interface_ip_configuration_paged.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_interface_ip_configuration_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_interface_paged.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_interface_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_interface_tap_configuration.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_interface_tap_configuration_paged.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_interface_tap_configuration_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_management_client_enums.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_profile.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_profile_paged.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_profile_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_security_group.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_security_group_paged.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_security_group_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_security_group_result.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_security_group_result_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_security_rules_evaluation_result.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_security_rules_evaluation_result_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_watcher.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_watcher_paged.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_watcher_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/next_hop_parameters.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/next_hop_parameters_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/next_hop_result.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/next_hop_result_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/operation.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/operation_display.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/operation_display_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/operation_paged.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/operation_properties_format_service_specification.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/operation_properties_format_service_specification_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/operation_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/outbound_rule.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/outbound_rule_paged.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/outbound_rule_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/p2_svpn_gateway.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/p2_svpn_gateway_paged.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/p2_svpn_gateway_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/p2_svpn_profile_parameters.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/p2_svpn_profile_parameters_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/p2_svpn_server_config_radius_client_root_certificate.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/p2_svpn_server_config_radius_client_root_certificate_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/p2_svpn_server_config_radius_server_root_certificate.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/p2_svpn_server_config_radius_server_root_certificate_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/p2_svpn_server_config_vpn_client_revoked_certificate.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/p2_svpn_server_config_vpn_client_revoked_certificate_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/p2_svpn_server_config_vpn_client_root_certificate.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/p2_svpn_server_config_vpn_client_root_certificate_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/p2_svpn_server_configuration.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/p2_svpn_server_configuration_paged.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/p2_svpn_server_configuration_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/packet_capture.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/packet_capture_filter.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/packet_capture_filter_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/packet_capture_parameters.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/packet_capture_parameters_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/packet_capture_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/packet_capture_query_status_result.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/packet_capture_query_status_result_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/packet_capture_result.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/packet_capture_result_paged.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/packet_capture_result_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/packet_capture_storage_location.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/packet_capture_storage_location_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/patch_route_filter.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/patch_route_filter_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/patch_route_filter_rule.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/patch_route_filter_rule_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/probe.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/probe_paged.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/probe_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/protocol_configuration.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/protocol_configuration_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/public_ip_address.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/public_ip_address_dns_settings.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/public_ip_address_dns_settings_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/public_ip_address_paged.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/public_ip_address_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/public_ip_address_sku.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/public_ip_address_sku_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/public_ip_prefix.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/public_ip_prefix_paged.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/public_ip_prefix_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/public_ip_prefix_sku.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/public_ip_prefix_sku_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/query_troubleshooting_parameters.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/query_troubleshooting_parameters_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/referenced_public_ip_address.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/referenced_public_ip_address_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/resource.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/resource_navigation_link.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/resource_navigation_link_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/resource_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/retention_policy_parameters.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/retention_policy_parameters_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/route.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/route_filter.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/route_filter_paged.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/route_filter_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/route_filter_rule.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/route_filter_rule_paged.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/route_filter_rule_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/route_paged.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/route_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/route_table.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/route_table_paged.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/route_table_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/security_group_network_interface.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/security_group_network_interface_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/security_group_view_parameters.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/security_group_view_parameters_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/security_group_view_result.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/security_group_view_result_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/security_rule.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/security_rule_associations.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/security_rule_associations_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/security_rule_paged.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/security_rule_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/service_association_link.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/service_association_link_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/service_endpoint_policy.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/service_endpoint_policy_definition.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/service_endpoint_policy_definition_paged.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/service_endpoint_policy_definition_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/service_endpoint_policy_paged.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/service_endpoint_policy_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/service_endpoint_properties_format.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/service_endpoint_properties_format_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/sub_resource.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/sub_resource_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/subnet.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/subnet_association.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/subnet_association_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/subnet_paged.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/subnet_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/tags_object.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/tags_object_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/topology.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/topology_association.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/topology_association_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/topology_parameters.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/topology_parameters_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/topology_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/topology_resource.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/topology_resource_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/traffic_analytics_configuration_properties.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/traffic_analytics_configuration_properties_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/traffic_analytics_properties.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/traffic_analytics_properties_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/troubleshooting_details.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/troubleshooting_details_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/troubleshooting_parameters.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/troubleshooting_parameters_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/troubleshooting_recommended_actions.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/troubleshooting_recommended_actions_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/troubleshooting_result.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/troubleshooting_result_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/tunnel_connection_health.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/tunnel_connection_health_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/usage.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/usage_name.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/usage_name_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/usage_paged.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/usage_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/verification_ip_flow_parameters.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/verification_ip_flow_parameters_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/verification_ip_flow_result.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/verification_ip_flow_result_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_hub.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_hub_id.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_hub_id_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_hub_paged.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_hub_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_hub_route.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_hub_route_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_hub_route_table.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_hub_route_table_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_connection_gateway_reference.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_connection_gateway_reference_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_gateway.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_gateway_connection.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_gateway_connection_list_entity.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_gateway_connection_list_entity_paged.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_gateway_connection_list_entity_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_gateway_connection_paged.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_gateway_connection_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_gateway_ip_configuration.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_gateway_ip_configuration_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_gateway_paged.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_gateway_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_gateway_sku.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_gateway_sku_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_paged.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_peering.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_peering_paged.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_peering_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_tap.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_tap_paged.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_tap_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_usage.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_usage_name.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_usage_name_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_usage_paged.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_usage_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_wan.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_wan_paged.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_wan_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_wan_security_provider.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_wan_security_provider_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_wan_security_providers.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_wan_security_providers_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_client_configuration.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_client_configuration_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_client_connection_health.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_client_connection_health_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_client_ipsec_parameters.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_client_ipsec_parameters_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_client_parameters.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_client_parameters_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_client_revoked_certificate.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_client_revoked_certificate_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_client_root_certificate.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_client_root_certificate_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_connection.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_connection_paged.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_connection_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_device_script_parameters.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_device_script_parameters_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_gateway.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_gateway_paged.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_gateway_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_profile_response.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_profile_response_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_site.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_site_id.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_site_id_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_site_paged.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_site_py3.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/network_management_client.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/__init__.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/application_gateways_operations.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/application_security_groups_operations.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/available_delegations_operations.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/available_endpoint_services_operations.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/available_resource_group_delegations_operations.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/azure_firewall_fqdn_tags_operations.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/azure_firewalls_operations.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/bgp_service_communities_operations.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/connection_monitors_operations.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/ddos_protection_plans_operations.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/default_security_rules_operations.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/express_route_circuit_authorizations_operations.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/express_route_circuit_connections_operations.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/express_route_circuit_peerings_operations.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/express_route_circuits_operations.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/express_route_connections_operations.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/express_route_cross_connection_peerings_operations.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/express_route_cross_connections_operations.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/express_route_gateways_operations.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/express_route_links_operations.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/express_route_ports_locations_operations.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/express_route_ports_operations.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/express_route_service_providers_operations.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/hub_virtual_network_connections_operations.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/inbound_nat_rules_operations.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/interface_endpoints_operations.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/load_balancer_backend_address_pools_operations.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/load_balancer_frontend_ip_configurations_operations.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/load_balancer_load_balancing_rules_operations.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/load_balancer_network_interfaces_operations.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/load_balancer_outbound_rules_operations.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/load_balancer_probes_operations.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/load_balancers_operations.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/local_network_gateways_operations.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/network_interface_ip_configurations_operations.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/network_interface_load_balancers_operations.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/network_interface_tap_configurations_operations.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/network_interfaces_operations.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/network_profiles_operations.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/network_security_groups_operations.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/network_watchers_operations.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/operations.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/p2s_vpn_gateways_operations.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/p2s_vpn_server_configurations_operations.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/packet_captures_operations.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/public_ip_addresses_operations.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/public_ip_prefixes_operations.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/route_filter_rules_operations.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/route_filters_operations.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/route_tables_operations.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/routes_operations.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/security_rules_operations.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/service_endpoint_policies_operations.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/service_endpoint_policy_definitions_operations.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/subnets_operations.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/usages_operations.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/virtual_hubs_operations.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/virtual_network_gateway_connections_operations.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/virtual_network_gateways_operations.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/virtual_network_peerings_operations.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/virtual_network_taps_operations.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/virtual_networks_operations.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/virtual_wans_operations.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/vpn_connections_operations.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/vpn_gateways_operations.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/vpn_sites_configuration_operations.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/vpn_sites_operations.py create mode 100644 azure-mgmt-network/azure/mgmt/network/v2018_10_01/version.py diff --git a/azure-mgmt-network/HISTORY.rst b/azure-mgmt-network/HISTORY.rst index 3730767c9f25..9d9b8cb3ce13 100644 --- a/azure-mgmt-network/HISTORY.rst +++ b/azure-mgmt-network/HISTORY.rst @@ -3,6 +3,24 @@ Release History =============== +2.4.0 (2018-11-27) +++++++++++++++++++ + +**Features** + +- Model ApplicationGatewaySslCertificate has a new parameter key_vault_secret_id +- Model ApplicationGatewayRequestRoutingRule has a new parameter rewrite_rule_set +- Model FlowLogInformation has a new parameter format +- Model ApplicationGateway has a new parameter identity +- Model ApplicationGateway has a new parameter rewrite_rule_sets +- Model TrafficAnalyticsConfigurationProperties has a new parameter traffic_analytics_interval +- Model ApplicationGatewayPathRule has a new parameter rewrite_rule_set +- Model ApplicationGatewayUrlPathMap has a new parameter default_rewrite_rule_set + +**Breaking changes** + +- Model ApplicationGatewayTrustedRootCertificate no longer has parameter keyvault_secret_id (replaced by key_vault_secret_id) + 2.3.0 (2018-11-07) ++++++++++++++++++ diff --git a/azure-mgmt-network/azure/mgmt/network/network_management_client.py b/azure-mgmt-network/azure/mgmt/network/network_management_client.py index 4693a070b758..9468205cc5b6 100644 --- a/azure-mgmt-network/azure/mgmt/network/network_management_client.py +++ b/azure-mgmt-network/azure/mgmt/network/network_management_client.py @@ -79,7 +79,7 @@ class NetworkManagementClient(MultiApiClientMixin, SDKClient): :type profile: azure.profiles.KnownProfiles """ - DEFAULT_API_VERSION = '2018-08-01' + DEFAULT_API_VERSION = '2018-10-01' _PROFILE_TAG = "azure.mgmt.network.NetworkManagementClient" LATEST_PROFILE = ProfileDefinition({ _PROFILE_TAG: { @@ -123,7 +123,9 @@ def check_dns_name_availability( :raises: :class:`CloudError` """ api_version = self._get_api_version('check_dns_name_availability') - if api_version == '2018-08-01': + if api_version == '2018-10-01': + from .v2018_08_01 import NetworkManagementClient as ClientClass + elif api_version == '2018-08-01': from .v2018_08_01 import NetworkManagementClient as ClientClass elif api_version == '2018-07-01': from .v2018_07_01 import NetworkManagementClient as ClientClass @@ -187,6 +189,7 @@ def models(cls, api_version=DEFAULT_API_VERSION): * 2018-06-01: :mod:`v2018_06_01.models` * 2018-07-01: :mod:`v2018_07_01.models` * 2018-08-01: :mod:`v2018_08_01.models` + * 2018-10-01: :mod:`v2018_10_01.models` """ if api_version == '2015-06-15': from .v2015_06_15 import models @@ -233,6 +236,9 @@ def models(cls, api_version=DEFAULT_API_VERSION): elif api_version == '2018-08-01': from .v2018_08_01 import models return models + elif api_version == '2018-10-01': + from .v2018_10_01 import models + return models raise NotImplementedError("APIVersion {} is not available".format(api_version)) @property @@ -254,6 +260,7 @@ def application_gateways(self): * 2018-06-01: :class:`ApplicationGatewaysOperations` * 2018-07-01: :class:`ApplicationGatewaysOperations` * 2018-08-01: :class:`ApplicationGatewaysOperations` + * 2018-10-01: :class:`ApplicationGatewaysOperations` """ api_version = self._get_api_version('application_gateways') if api_version == '2015-06-15': @@ -286,6 +293,8 @@ def application_gateways(self): from .v2018_07_01.operations import ApplicationGatewaysOperations as OperationClass elif api_version == '2018-08-01': from .v2018_08_01.operations import ApplicationGatewaysOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import ApplicationGatewaysOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -303,6 +312,7 @@ def application_security_groups(self): * 2018-06-01: :class:`ApplicationSecurityGroupsOperations` * 2018-07-01: :class:`ApplicationSecurityGroupsOperations` * 2018-08-01: :class:`ApplicationSecurityGroupsOperations` + * 2018-10-01: :class:`ApplicationSecurityGroupsOperations` """ api_version = self._get_api_version('application_security_groups') if api_version == '2017-09-01': @@ -323,6 +333,8 @@ def application_security_groups(self): from .v2018_07_01.operations import ApplicationSecurityGroupsOperations as OperationClass elif api_version == '2018-08-01': from .v2018_08_01.operations import ApplicationSecurityGroupsOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import ApplicationSecurityGroupsOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -332,10 +344,13 @@ def available_delegations(self): """Instance depends on the API version: * 2018-08-01: :class:`AvailableDelegationsOperations` + * 2018-10-01: :class:`AvailableDelegationsOperations` """ api_version = self._get_api_version('available_delegations') if api_version == '2018-08-01': from .v2018_08_01.operations import AvailableDelegationsOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import AvailableDelegationsOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -355,6 +370,7 @@ def available_endpoint_services(self): * 2018-06-01: :class:`AvailableEndpointServicesOperations` * 2018-07-01: :class:`AvailableEndpointServicesOperations` * 2018-08-01: :class:`AvailableEndpointServicesOperations` + * 2018-10-01: :class:`AvailableEndpointServicesOperations` """ api_version = self._get_api_version('available_endpoint_services') if api_version == '2017-06-01': @@ -379,6 +395,8 @@ def available_endpoint_services(self): from .v2018_07_01.operations import AvailableEndpointServicesOperations as OperationClass elif api_version == '2018-08-01': from .v2018_08_01.operations import AvailableEndpointServicesOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import AvailableEndpointServicesOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -388,10 +406,13 @@ def available_resource_group_delegations(self): """Instance depends on the API version: * 2018-08-01: :class:`AvailableResourceGroupDelegationsOperations` + * 2018-10-01: :class:`AvailableResourceGroupDelegationsOperations` """ api_version = self._get_api_version('available_resource_group_delegations') if api_version == '2018-08-01': from .v2018_08_01.operations import AvailableResourceGroupDelegationsOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import AvailableResourceGroupDelegationsOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -401,10 +422,13 @@ def azure_firewall_fqdn_tags(self): """Instance depends on the API version: * 2018-08-01: :class:`AzureFirewallFqdnTagsOperations` + * 2018-10-01: :class:`AzureFirewallFqdnTagsOperations` """ api_version = self._get_api_version('azure_firewall_fqdn_tags') if api_version == '2018-08-01': from .v2018_08_01.operations import AzureFirewallFqdnTagsOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import AzureFirewallFqdnTagsOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -417,6 +441,7 @@ def azure_firewalls(self): * 2018-06-01: :class:`AzureFirewallsOperations` * 2018-07-01: :class:`AzureFirewallsOperations` * 2018-08-01: :class:`AzureFirewallsOperations` + * 2018-10-01: :class:`AzureFirewallsOperations` """ api_version = self._get_api_version('azure_firewalls') if api_version == '2018-04-01': @@ -427,6 +452,8 @@ def azure_firewalls(self): from .v2018_07_01.operations import AzureFirewallsOperations as OperationClass elif api_version == '2018-08-01': from .v2018_08_01.operations import AzureFirewallsOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import AzureFirewallsOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -448,6 +475,7 @@ def bgp_service_communities(self): * 2018-06-01: :class:`BgpServiceCommunitiesOperations` * 2018-07-01: :class:`BgpServiceCommunitiesOperations` * 2018-08-01: :class:`BgpServiceCommunitiesOperations` + * 2018-10-01: :class:`BgpServiceCommunitiesOperations` """ api_version = self._get_api_version('bgp_service_communities') if api_version == '2016-12-01': @@ -476,6 +504,8 @@ def bgp_service_communities(self): from .v2018_07_01.operations import BgpServiceCommunitiesOperations as OperationClass elif api_version == '2018-08-01': from .v2018_08_01.operations import BgpServiceCommunitiesOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import BgpServiceCommunitiesOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -492,6 +522,7 @@ def connection_monitors(self): * 2018-06-01: :class:`ConnectionMonitorsOperations` * 2018-07-01: :class:`ConnectionMonitorsOperations` * 2018-08-01: :class:`ConnectionMonitorsOperations` + * 2018-10-01: :class:`ConnectionMonitorsOperations` """ api_version = self._get_api_version('connection_monitors') if api_version == '2017-10-01': @@ -510,6 +541,8 @@ def connection_monitors(self): from .v2018_07_01.operations import ConnectionMonitorsOperations as OperationClass elif api_version == '2018-08-01': from .v2018_08_01.operations import ConnectionMonitorsOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import ConnectionMonitorsOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -523,6 +556,7 @@ def ddos_protection_plans(self): * 2018-06-01: :class:`DdosProtectionPlansOperations` * 2018-07-01: :class:`DdosProtectionPlansOperations` * 2018-08-01: :class:`DdosProtectionPlansOperations` + * 2018-10-01: :class:`DdosProtectionPlansOperations` """ api_version = self._get_api_version('ddos_protection_plans') if api_version == '2018-02-01': @@ -535,6 +569,8 @@ def ddos_protection_plans(self): from .v2018_07_01.operations import DdosProtectionPlansOperations as OperationClass elif api_version == '2018-08-01': from .v2018_08_01.operations import DdosProtectionPlansOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import DdosProtectionPlansOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -554,6 +590,7 @@ def default_security_rules(self): * 2018-06-01: :class:`DefaultSecurityRulesOperations` * 2018-07-01: :class:`DefaultSecurityRulesOperations` * 2018-08-01: :class:`DefaultSecurityRulesOperations` + * 2018-10-01: :class:`DefaultSecurityRulesOperations` """ api_version = self._get_api_version('default_security_rules') if api_version == '2017-06-01': @@ -578,6 +615,8 @@ def default_security_rules(self): from .v2018_07_01.operations import DefaultSecurityRulesOperations as OperationClass elif api_version == '2018-08-01': from .v2018_08_01.operations import DefaultSecurityRulesOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import DefaultSecurityRulesOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -601,6 +640,7 @@ def express_route_circuit_authorizations(self): * 2018-06-01: :class:`ExpressRouteCircuitAuthorizationsOperations` * 2018-07-01: :class:`ExpressRouteCircuitAuthorizationsOperations` * 2018-08-01: :class:`ExpressRouteCircuitAuthorizationsOperations` + * 2018-10-01: :class:`ExpressRouteCircuitAuthorizationsOperations` """ api_version = self._get_api_version('express_route_circuit_authorizations') if api_version == '2015-06-15': @@ -633,6 +673,8 @@ def express_route_circuit_authorizations(self): from .v2018_07_01.operations import ExpressRouteCircuitAuthorizationsOperations as OperationClass elif api_version == '2018-08-01': from .v2018_08_01.operations import ExpressRouteCircuitAuthorizationsOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import ExpressRouteCircuitAuthorizationsOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -646,6 +688,7 @@ def express_route_circuit_connections(self): * 2018-06-01: :class:`ExpressRouteCircuitConnectionsOperations` * 2018-07-01: :class:`ExpressRouteCircuitConnectionsOperations` * 2018-08-01: :class:`ExpressRouteCircuitConnectionsOperations` + * 2018-10-01: :class:`ExpressRouteCircuitConnectionsOperations` """ api_version = self._get_api_version('express_route_circuit_connections') if api_version == '2018-02-01': @@ -658,6 +701,8 @@ def express_route_circuit_connections(self): from .v2018_07_01.operations import ExpressRouteCircuitConnectionsOperations as OperationClass elif api_version == '2018-08-01': from .v2018_08_01.operations import ExpressRouteCircuitConnectionsOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import ExpressRouteCircuitConnectionsOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -681,6 +726,7 @@ def express_route_circuit_peerings(self): * 2018-06-01: :class:`ExpressRouteCircuitPeeringsOperations` * 2018-07-01: :class:`ExpressRouteCircuitPeeringsOperations` * 2018-08-01: :class:`ExpressRouteCircuitPeeringsOperations` + * 2018-10-01: :class:`ExpressRouteCircuitPeeringsOperations` """ api_version = self._get_api_version('express_route_circuit_peerings') if api_version == '2015-06-15': @@ -713,6 +759,8 @@ def express_route_circuit_peerings(self): from .v2018_07_01.operations import ExpressRouteCircuitPeeringsOperations as OperationClass elif api_version == '2018-08-01': from .v2018_08_01.operations import ExpressRouteCircuitPeeringsOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import ExpressRouteCircuitPeeringsOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -736,6 +784,7 @@ def express_route_circuits(self): * 2018-06-01: :class:`ExpressRouteCircuitsOperations` * 2018-07-01: :class:`ExpressRouteCircuitsOperations` * 2018-08-01: :class:`ExpressRouteCircuitsOperations` + * 2018-10-01: :class:`ExpressRouteCircuitsOperations` """ api_version = self._get_api_version('express_route_circuits') if api_version == '2015-06-15': @@ -768,6 +817,8 @@ def express_route_circuits(self): from .v2018_07_01.operations import ExpressRouteCircuitsOperations as OperationClass elif api_version == '2018-08-01': from .v2018_08_01.operations import ExpressRouteCircuitsOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import ExpressRouteCircuitsOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -777,10 +828,13 @@ def express_route_connections(self): """Instance depends on the API version: * 2018-08-01: :class:`ExpressRouteConnectionsOperations` + * 2018-10-01: :class:`ExpressRouteConnectionsOperations` """ api_version = self._get_api_version('express_route_connections') if api_version == '2018-08-01': from .v2018_08_01.operations import ExpressRouteConnectionsOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import ExpressRouteConnectionsOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -794,6 +848,7 @@ def express_route_cross_connection_peerings(self): * 2018-06-01: :class:`ExpressRouteCrossConnectionPeeringsOperations` * 2018-07-01: :class:`ExpressRouteCrossConnectionPeeringsOperations` * 2018-08-01: :class:`ExpressRouteCrossConnectionPeeringsOperations` + * 2018-10-01: :class:`ExpressRouteCrossConnectionPeeringsOperations` """ api_version = self._get_api_version('express_route_cross_connection_peerings') if api_version == '2018-02-01': @@ -806,6 +861,8 @@ def express_route_cross_connection_peerings(self): from .v2018_07_01.operations import ExpressRouteCrossConnectionPeeringsOperations as OperationClass elif api_version == '2018-08-01': from .v2018_08_01.operations import ExpressRouteCrossConnectionPeeringsOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import ExpressRouteCrossConnectionPeeringsOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -819,6 +876,7 @@ def express_route_cross_connections(self): * 2018-06-01: :class:`ExpressRouteCrossConnectionsOperations` * 2018-07-01: :class:`ExpressRouteCrossConnectionsOperations` * 2018-08-01: :class:`ExpressRouteCrossConnectionsOperations` + * 2018-10-01: :class:`ExpressRouteCrossConnectionsOperations` """ api_version = self._get_api_version('express_route_cross_connections') if api_version == '2018-02-01': @@ -831,6 +889,8 @@ def express_route_cross_connections(self): from .v2018_07_01.operations import ExpressRouteCrossConnectionsOperations as OperationClass elif api_version == '2018-08-01': from .v2018_08_01.operations import ExpressRouteCrossConnectionsOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import ExpressRouteCrossConnectionsOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -840,10 +900,13 @@ def express_route_gateways(self): """Instance depends on the API version: * 2018-08-01: :class:`ExpressRouteGatewaysOperations` + * 2018-10-01: :class:`ExpressRouteGatewaysOperations` """ api_version = self._get_api_version('express_route_gateways') if api_version == '2018-08-01': from .v2018_08_01.operations import ExpressRouteGatewaysOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import ExpressRouteGatewaysOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -853,10 +916,13 @@ def express_route_links(self): """Instance depends on the API version: * 2018-08-01: :class:`ExpressRouteLinksOperations` + * 2018-10-01: :class:`ExpressRouteLinksOperations` """ api_version = self._get_api_version('express_route_links') if api_version == '2018-08-01': from .v2018_08_01.operations import ExpressRouteLinksOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import ExpressRouteLinksOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -866,10 +932,13 @@ def express_route_ports(self): """Instance depends on the API version: * 2018-08-01: :class:`ExpressRoutePortsOperations` + * 2018-10-01: :class:`ExpressRoutePortsOperations` """ api_version = self._get_api_version('express_route_ports') if api_version == '2018-08-01': from .v2018_08_01.operations import ExpressRoutePortsOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import ExpressRoutePortsOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -879,10 +948,13 @@ def express_route_ports_locations(self): """Instance depends on the API version: * 2018-08-01: :class:`ExpressRoutePortsLocationsOperations` + * 2018-10-01: :class:`ExpressRoutePortsLocationsOperations` """ api_version = self._get_api_version('express_route_ports_locations') if api_version == '2018-08-01': from .v2018_08_01.operations import ExpressRoutePortsLocationsOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import ExpressRoutePortsLocationsOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -906,6 +978,7 @@ def express_route_service_providers(self): * 2018-06-01: :class:`ExpressRouteServiceProvidersOperations` * 2018-07-01: :class:`ExpressRouteServiceProvidersOperations` * 2018-08-01: :class:`ExpressRouteServiceProvidersOperations` + * 2018-10-01: :class:`ExpressRouteServiceProvidersOperations` """ api_version = self._get_api_version('express_route_service_providers') if api_version == '2015-06-15': @@ -938,6 +1011,8 @@ def express_route_service_providers(self): from .v2018_07_01.operations import ExpressRouteServiceProvidersOperations as OperationClass elif api_version == '2018-08-01': from .v2018_08_01.operations import ExpressRouteServiceProvidersOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import ExpressRouteServiceProvidersOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -950,6 +1025,7 @@ def hub_virtual_network_connections(self): * 2018-06-01: :class:`HubVirtualNetworkConnectionsOperations` * 2018-07-01: :class:`HubVirtualNetworkConnectionsOperations` * 2018-08-01: :class:`HubVirtualNetworkConnectionsOperations` + * 2018-10-01: :class:`HubVirtualNetworkConnectionsOperations` """ api_version = self._get_api_version('hub_virtual_network_connections') if api_version == '2018-04-01': @@ -960,6 +1036,8 @@ def hub_virtual_network_connections(self): from .v2018_07_01.operations import HubVirtualNetworkConnectionsOperations as OperationClass elif api_version == '2018-08-01': from .v2018_08_01.operations import HubVirtualNetworkConnectionsOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import HubVirtualNetworkConnectionsOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -979,6 +1057,7 @@ def inbound_nat_rules(self): * 2018-06-01: :class:`InboundNatRulesOperations` * 2018-07-01: :class:`InboundNatRulesOperations` * 2018-08-01: :class:`InboundNatRulesOperations` + * 2018-10-01: :class:`InboundNatRulesOperations` """ api_version = self._get_api_version('inbound_nat_rules') if api_version == '2017-06-01': @@ -1003,6 +1082,8 @@ def inbound_nat_rules(self): from .v2018_07_01.operations import InboundNatRulesOperations as OperationClass elif api_version == '2018-08-01': from .v2018_08_01.operations import InboundNatRulesOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import InboundNatRulesOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -1012,10 +1093,13 @@ def interface_endpoints(self): """Instance depends on the API version: * 2018-08-01: :class:`InterfaceEndpointsOperations` + * 2018-10-01: :class:`InterfaceEndpointsOperations` """ api_version = self._get_api_version('interface_endpoints') if api_version == '2018-08-01': from .v2018_08_01.operations import InterfaceEndpointsOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import InterfaceEndpointsOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -1035,6 +1119,7 @@ def load_balancer_backend_address_pools(self): * 2018-06-01: :class:`LoadBalancerBackendAddressPoolsOperations` * 2018-07-01: :class:`LoadBalancerBackendAddressPoolsOperations` * 2018-08-01: :class:`LoadBalancerBackendAddressPoolsOperations` + * 2018-10-01: :class:`LoadBalancerBackendAddressPoolsOperations` """ api_version = self._get_api_version('load_balancer_backend_address_pools') if api_version == '2017-06-01': @@ -1059,6 +1144,8 @@ def load_balancer_backend_address_pools(self): from .v2018_07_01.operations import LoadBalancerBackendAddressPoolsOperations as OperationClass elif api_version == '2018-08-01': from .v2018_08_01.operations import LoadBalancerBackendAddressPoolsOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import LoadBalancerBackendAddressPoolsOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -1078,6 +1165,7 @@ def load_balancer_frontend_ip_configurations(self): * 2018-06-01: :class:`LoadBalancerFrontendIPConfigurationsOperations` * 2018-07-01: :class:`LoadBalancerFrontendIPConfigurationsOperations` * 2018-08-01: :class:`LoadBalancerFrontendIPConfigurationsOperations` + * 2018-10-01: :class:`LoadBalancerFrontendIPConfigurationsOperations` """ api_version = self._get_api_version('load_balancer_frontend_ip_configurations') if api_version == '2017-06-01': @@ -1102,6 +1190,8 @@ def load_balancer_frontend_ip_configurations(self): from .v2018_07_01.operations import LoadBalancerFrontendIPConfigurationsOperations as OperationClass elif api_version == '2018-08-01': from .v2018_08_01.operations import LoadBalancerFrontendIPConfigurationsOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import LoadBalancerFrontendIPConfigurationsOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -1121,6 +1211,7 @@ def load_balancer_load_balancing_rules(self): * 2018-06-01: :class:`LoadBalancerLoadBalancingRulesOperations` * 2018-07-01: :class:`LoadBalancerLoadBalancingRulesOperations` * 2018-08-01: :class:`LoadBalancerLoadBalancingRulesOperations` + * 2018-10-01: :class:`LoadBalancerLoadBalancingRulesOperations` """ api_version = self._get_api_version('load_balancer_load_balancing_rules') if api_version == '2017-06-01': @@ -1145,6 +1236,8 @@ def load_balancer_load_balancing_rules(self): from .v2018_07_01.operations import LoadBalancerLoadBalancingRulesOperations as OperationClass elif api_version == '2018-08-01': from .v2018_08_01.operations import LoadBalancerLoadBalancingRulesOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import LoadBalancerLoadBalancingRulesOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -1164,6 +1257,7 @@ def load_balancer_network_interfaces(self): * 2018-06-01: :class:`LoadBalancerNetworkInterfacesOperations` * 2018-07-01: :class:`LoadBalancerNetworkInterfacesOperations` * 2018-08-01: :class:`LoadBalancerNetworkInterfacesOperations` + * 2018-10-01: :class:`LoadBalancerNetworkInterfacesOperations` """ api_version = self._get_api_version('load_balancer_network_interfaces') if api_version == '2017-06-01': @@ -1188,6 +1282,8 @@ def load_balancer_network_interfaces(self): from .v2018_07_01.operations import LoadBalancerNetworkInterfacesOperations as OperationClass elif api_version == '2018-08-01': from .v2018_08_01.operations import LoadBalancerNetworkInterfacesOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import LoadBalancerNetworkInterfacesOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -1197,10 +1293,13 @@ def load_balancer_outbound_rules(self): """Instance depends on the API version: * 2018-08-01: :class:`LoadBalancerOutboundRulesOperations` + * 2018-10-01: :class:`LoadBalancerOutboundRulesOperations` """ api_version = self._get_api_version('load_balancer_outbound_rules') if api_version == '2018-08-01': from .v2018_08_01.operations import LoadBalancerOutboundRulesOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import LoadBalancerOutboundRulesOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -1220,6 +1319,7 @@ def load_balancer_probes(self): * 2018-06-01: :class:`LoadBalancerProbesOperations` * 2018-07-01: :class:`LoadBalancerProbesOperations` * 2018-08-01: :class:`LoadBalancerProbesOperations` + * 2018-10-01: :class:`LoadBalancerProbesOperations` """ api_version = self._get_api_version('load_balancer_probes') if api_version == '2017-06-01': @@ -1244,6 +1344,8 @@ def load_balancer_probes(self): from .v2018_07_01.operations import LoadBalancerProbesOperations as OperationClass elif api_version == '2018-08-01': from .v2018_08_01.operations import LoadBalancerProbesOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import LoadBalancerProbesOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -1267,6 +1369,7 @@ def load_balancers(self): * 2018-06-01: :class:`LoadBalancersOperations` * 2018-07-01: :class:`LoadBalancersOperations` * 2018-08-01: :class:`LoadBalancersOperations` + * 2018-10-01: :class:`LoadBalancersOperations` """ api_version = self._get_api_version('load_balancers') if api_version == '2015-06-15': @@ -1299,6 +1402,8 @@ def load_balancers(self): from .v2018_07_01.operations import LoadBalancersOperations as OperationClass elif api_version == '2018-08-01': from .v2018_08_01.operations import LoadBalancersOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import LoadBalancersOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -1322,6 +1427,7 @@ def local_network_gateways(self): * 2018-06-01: :class:`LocalNetworkGatewaysOperations` * 2018-07-01: :class:`LocalNetworkGatewaysOperations` * 2018-08-01: :class:`LocalNetworkGatewaysOperations` + * 2018-10-01: :class:`LocalNetworkGatewaysOperations` """ api_version = self._get_api_version('local_network_gateways') if api_version == '2015-06-15': @@ -1354,6 +1460,8 @@ def local_network_gateways(self): from .v2018_07_01.operations import LocalNetworkGatewaysOperations as OperationClass elif api_version == '2018-08-01': from .v2018_08_01.operations import LocalNetworkGatewaysOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import LocalNetworkGatewaysOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -1373,6 +1481,7 @@ def network_interface_ip_configurations(self): * 2018-06-01: :class:`NetworkInterfaceIPConfigurationsOperations` * 2018-07-01: :class:`NetworkInterfaceIPConfigurationsOperations` * 2018-08-01: :class:`NetworkInterfaceIPConfigurationsOperations` + * 2018-10-01: :class:`NetworkInterfaceIPConfigurationsOperations` """ api_version = self._get_api_version('network_interface_ip_configurations') if api_version == '2017-06-01': @@ -1397,6 +1506,8 @@ def network_interface_ip_configurations(self): from .v2018_07_01.operations import NetworkInterfaceIPConfigurationsOperations as OperationClass elif api_version == '2018-08-01': from .v2018_08_01.operations import NetworkInterfaceIPConfigurationsOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import NetworkInterfaceIPConfigurationsOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -1416,6 +1527,7 @@ def network_interface_load_balancers(self): * 2018-06-01: :class:`NetworkInterfaceLoadBalancersOperations` * 2018-07-01: :class:`NetworkInterfaceLoadBalancersOperations` * 2018-08-01: :class:`NetworkInterfaceLoadBalancersOperations` + * 2018-10-01: :class:`NetworkInterfaceLoadBalancersOperations` """ api_version = self._get_api_version('network_interface_load_balancers') if api_version == '2017-06-01': @@ -1440,6 +1552,8 @@ def network_interface_load_balancers(self): from .v2018_07_01.operations import NetworkInterfaceLoadBalancersOperations as OperationClass elif api_version == '2018-08-01': from .v2018_08_01.operations import NetworkInterfaceLoadBalancersOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import NetworkInterfaceLoadBalancersOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -1449,10 +1563,13 @@ def network_interface_tap_configurations(self): """Instance depends on the API version: * 2018-08-01: :class:`NetworkInterfaceTapConfigurationsOperations` + * 2018-10-01: :class:`NetworkInterfaceTapConfigurationsOperations` """ api_version = self._get_api_version('network_interface_tap_configurations') if api_version == '2018-08-01': from .v2018_08_01.operations import NetworkInterfaceTapConfigurationsOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import NetworkInterfaceTapConfigurationsOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -1476,6 +1593,7 @@ def network_interfaces(self): * 2018-06-01: :class:`NetworkInterfacesOperations` * 2018-07-01: :class:`NetworkInterfacesOperations` * 2018-08-01: :class:`NetworkInterfacesOperations` + * 2018-10-01: :class:`NetworkInterfacesOperations` """ api_version = self._get_api_version('network_interfaces') if api_version == '2015-06-15': @@ -1508,6 +1626,8 @@ def network_interfaces(self): from .v2018_07_01.operations import NetworkInterfacesOperations as OperationClass elif api_version == '2018-08-01': from .v2018_08_01.operations import NetworkInterfacesOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import NetworkInterfacesOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -1517,10 +1637,13 @@ def network_profiles(self): """Instance depends on the API version: * 2018-08-01: :class:`NetworkProfilesOperations` + * 2018-10-01: :class:`NetworkProfilesOperations` """ api_version = self._get_api_version('network_profiles') if api_version == '2018-08-01': from .v2018_08_01.operations import NetworkProfilesOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import NetworkProfilesOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -1544,6 +1667,7 @@ def network_security_groups(self): * 2018-06-01: :class:`NetworkSecurityGroupsOperations` * 2018-07-01: :class:`NetworkSecurityGroupsOperations` * 2018-08-01: :class:`NetworkSecurityGroupsOperations` + * 2018-10-01: :class:`NetworkSecurityGroupsOperations` """ api_version = self._get_api_version('network_security_groups') if api_version == '2015-06-15': @@ -1576,6 +1700,8 @@ def network_security_groups(self): from .v2018_07_01.operations import NetworkSecurityGroupsOperations as OperationClass elif api_version == '2018-08-01': from .v2018_08_01.operations import NetworkSecurityGroupsOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import NetworkSecurityGroupsOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -1598,6 +1724,7 @@ def network_watchers(self): * 2018-06-01: :class:`NetworkWatchersOperations` * 2018-07-01: :class:`NetworkWatchersOperations` * 2018-08-01: :class:`NetworkWatchersOperations` + * 2018-10-01: :class:`NetworkWatchersOperations` """ api_version = self._get_api_version('network_watchers') if api_version == '2016-09-01': @@ -1628,6 +1755,8 @@ def network_watchers(self): from .v2018_07_01.operations import NetworkWatchersOperations as OperationClass elif api_version == '2018-08-01': from .v2018_08_01.operations import NetworkWatchersOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import NetworkWatchersOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -1645,6 +1774,7 @@ def operations(self): * 2018-06-01: :class:`Operations` * 2018-07-01: :class:`Operations` * 2018-08-01: :class:`Operations` + * 2018-10-01: :class:`Operations` """ api_version = self._get_api_version('operations') if api_version == '2017-09-01': @@ -1665,6 +1795,8 @@ def operations(self): from .v2018_07_01.operations import Operations as OperationClass elif api_version == '2018-08-01': from .v2018_08_01.operations import Operations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import Operations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -1687,6 +1819,7 @@ def packet_captures(self): * 2018-06-01: :class:`PacketCapturesOperations` * 2018-07-01: :class:`PacketCapturesOperations` * 2018-08-01: :class:`PacketCapturesOperations` + * 2018-10-01: :class:`PacketCapturesOperations` """ api_version = self._get_api_version('packet_captures') if api_version == '2016-09-01': @@ -1717,6 +1850,8 @@ def packet_captures(self): from .v2018_07_01.operations import PacketCapturesOperations as OperationClass elif api_version == '2018-08-01': from .v2018_08_01.operations import PacketCapturesOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import PacketCapturesOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -1740,6 +1875,7 @@ def public_ip_addresses(self): * 2018-06-01: :class:`PublicIPAddressesOperations` * 2018-07-01: :class:`PublicIPAddressesOperations` * 2018-08-01: :class:`PublicIPAddressesOperations` + * 2018-10-01: :class:`PublicIPAddressesOperations` """ api_version = self._get_api_version('public_ip_addresses') if api_version == '2015-06-15': @@ -1772,6 +1908,8 @@ def public_ip_addresses(self): from .v2018_07_01.operations import PublicIPAddressesOperations as OperationClass elif api_version == '2018-08-01': from .v2018_08_01.operations import PublicIPAddressesOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import PublicIPAddressesOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -1782,12 +1920,15 @@ def public_ip_prefixes(self): * 2018-07-01: :class:`PublicIPPrefixesOperations` * 2018-08-01: :class:`PublicIPPrefixesOperations` + * 2018-10-01: :class:`PublicIPPrefixesOperations` """ api_version = self._get_api_version('public_ip_prefixes') if api_version == '2018-07-01': from .v2018_07_01.operations import PublicIPPrefixesOperations as OperationClass elif api_version == '2018-08-01': from .v2018_08_01.operations import PublicIPPrefixesOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import PublicIPPrefixesOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -1809,6 +1950,7 @@ def route_filter_rules(self): * 2018-06-01: :class:`RouteFilterRulesOperations` * 2018-07-01: :class:`RouteFilterRulesOperations` * 2018-08-01: :class:`RouteFilterRulesOperations` + * 2018-10-01: :class:`RouteFilterRulesOperations` """ api_version = self._get_api_version('route_filter_rules') if api_version == '2016-12-01': @@ -1837,6 +1979,8 @@ def route_filter_rules(self): from .v2018_07_01.operations import RouteFilterRulesOperations as OperationClass elif api_version == '2018-08-01': from .v2018_08_01.operations import RouteFilterRulesOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import RouteFilterRulesOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -1858,6 +2002,7 @@ def route_filters(self): * 2018-06-01: :class:`RouteFiltersOperations` * 2018-07-01: :class:`RouteFiltersOperations` * 2018-08-01: :class:`RouteFiltersOperations` + * 2018-10-01: :class:`RouteFiltersOperations` """ api_version = self._get_api_version('route_filters') if api_version == '2016-12-01': @@ -1886,6 +2031,8 @@ def route_filters(self): from .v2018_07_01.operations import RouteFiltersOperations as OperationClass elif api_version == '2018-08-01': from .v2018_08_01.operations import RouteFiltersOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import RouteFiltersOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -1909,6 +2056,7 @@ def route_tables(self): * 2018-06-01: :class:`RouteTablesOperations` * 2018-07-01: :class:`RouteTablesOperations` * 2018-08-01: :class:`RouteTablesOperations` + * 2018-10-01: :class:`RouteTablesOperations` """ api_version = self._get_api_version('route_tables') if api_version == '2015-06-15': @@ -1941,6 +2089,8 @@ def route_tables(self): from .v2018_07_01.operations import RouteTablesOperations as OperationClass elif api_version == '2018-08-01': from .v2018_08_01.operations import RouteTablesOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import RouteTablesOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -1964,6 +2114,7 @@ def routes(self): * 2018-06-01: :class:`RoutesOperations` * 2018-07-01: :class:`RoutesOperations` * 2018-08-01: :class:`RoutesOperations` + * 2018-10-01: :class:`RoutesOperations` """ api_version = self._get_api_version('routes') if api_version == '2015-06-15': @@ -1996,6 +2147,8 @@ def routes(self): from .v2018_07_01.operations import RoutesOperations as OperationClass elif api_version == '2018-08-01': from .v2018_08_01.operations import RoutesOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import RoutesOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -2019,6 +2172,7 @@ def security_rules(self): * 2018-06-01: :class:`SecurityRulesOperations` * 2018-07-01: :class:`SecurityRulesOperations` * 2018-08-01: :class:`SecurityRulesOperations` + * 2018-10-01: :class:`SecurityRulesOperations` """ api_version = self._get_api_version('security_rules') if api_version == '2015-06-15': @@ -2051,6 +2205,8 @@ def security_rules(self): from .v2018_07_01.operations import SecurityRulesOperations as OperationClass elif api_version == '2018-08-01': from .v2018_08_01.operations import SecurityRulesOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import SecurityRulesOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -2061,12 +2217,15 @@ def service_endpoint_policies(self): * 2018-07-01: :class:`ServiceEndpointPoliciesOperations` * 2018-08-01: :class:`ServiceEndpointPoliciesOperations` + * 2018-10-01: :class:`ServiceEndpointPoliciesOperations` """ api_version = self._get_api_version('service_endpoint_policies') if api_version == '2018-07-01': from .v2018_07_01.operations import ServiceEndpointPoliciesOperations as OperationClass elif api_version == '2018-08-01': from .v2018_08_01.operations import ServiceEndpointPoliciesOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import ServiceEndpointPoliciesOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -2077,12 +2236,15 @@ def service_endpoint_policy_definitions(self): * 2018-07-01: :class:`ServiceEndpointPolicyDefinitionsOperations` * 2018-08-01: :class:`ServiceEndpointPolicyDefinitionsOperations` + * 2018-10-01: :class:`ServiceEndpointPolicyDefinitionsOperations` """ api_version = self._get_api_version('service_endpoint_policy_definitions') if api_version == '2018-07-01': from .v2018_07_01.operations import ServiceEndpointPolicyDefinitionsOperations as OperationClass elif api_version == '2018-08-01': from .v2018_08_01.operations import ServiceEndpointPolicyDefinitionsOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import ServiceEndpointPolicyDefinitionsOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -2106,6 +2268,7 @@ def subnets(self): * 2018-06-01: :class:`SubnetsOperations` * 2018-07-01: :class:`SubnetsOperations` * 2018-08-01: :class:`SubnetsOperations` + * 2018-10-01: :class:`SubnetsOperations` """ api_version = self._get_api_version('subnets') if api_version == '2015-06-15': @@ -2138,6 +2301,8 @@ def subnets(self): from .v2018_07_01.operations import SubnetsOperations as OperationClass elif api_version == '2018-08-01': from .v2018_08_01.operations import SubnetsOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import SubnetsOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -2161,6 +2326,7 @@ def usages(self): * 2018-06-01: :class:`UsagesOperations` * 2018-07-01: :class:`UsagesOperations` * 2018-08-01: :class:`UsagesOperations` + * 2018-10-01: :class:`UsagesOperations` """ api_version = self._get_api_version('usages') if api_version == '2015-06-15': @@ -2193,6 +2359,8 @@ def usages(self): from .v2018_07_01.operations import UsagesOperations as OperationClass elif api_version == '2018-08-01': from .v2018_08_01.operations import UsagesOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import UsagesOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -2205,6 +2373,7 @@ def virtual_hubs(self): * 2018-06-01: :class:`VirtualHubsOperations` * 2018-07-01: :class:`VirtualHubsOperations` * 2018-08-01: :class:`VirtualHubsOperations` + * 2018-10-01: :class:`VirtualHubsOperations` """ api_version = self._get_api_version('virtual_hubs') if api_version == '2018-04-01': @@ -2215,6 +2384,8 @@ def virtual_hubs(self): from .v2018_07_01.operations import VirtualHubsOperations as OperationClass elif api_version == '2018-08-01': from .v2018_08_01.operations import VirtualHubsOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import VirtualHubsOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -2238,6 +2409,7 @@ def virtual_network_gateway_connections(self): * 2018-06-01: :class:`VirtualNetworkGatewayConnectionsOperations` * 2018-07-01: :class:`VirtualNetworkGatewayConnectionsOperations` * 2018-08-01: :class:`VirtualNetworkGatewayConnectionsOperations` + * 2018-10-01: :class:`VirtualNetworkGatewayConnectionsOperations` """ api_version = self._get_api_version('virtual_network_gateway_connections') if api_version == '2015-06-15': @@ -2270,6 +2442,8 @@ def virtual_network_gateway_connections(self): from .v2018_07_01.operations import VirtualNetworkGatewayConnectionsOperations as OperationClass elif api_version == '2018-08-01': from .v2018_08_01.operations import VirtualNetworkGatewayConnectionsOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import VirtualNetworkGatewayConnectionsOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -2293,6 +2467,7 @@ def virtual_network_gateways(self): * 2018-06-01: :class:`VirtualNetworkGatewaysOperations` * 2018-07-01: :class:`VirtualNetworkGatewaysOperations` * 2018-08-01: :class:`VirtualNetworkGatewaysOperations` + * 2018-10-01: :class:`VirtualNetworkGatewaysOperations` """ api_version = self._get_api_version('virtual_network_gateways') if api_version == '2015-06-15': @@ -2325,6 +2500,8 @@ def virtual_network_gateways(self): from .v2018_07_01.operations import VirtualNetworkGatewaysOperations as OperationClass elif api_version == '2018-08-01': from .v2018_08_01.operations import VirtualNetworkGatewaysOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import VirtualNetworkGatewaysOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -2347,6 +2524,7 @@ def virtual_network_peerings(self): * 2018-06-01: :class:`VirtualNetworkPeeringsOperations` * 2018-07-01: :class:`VirtualNetworkPeeringsOperations` * 2018-08-01: :class:`VirtualNetworkPeeringsOperations` + * 2018-10-01: :class:`VirtualNetworkPeeringsOperations` """ api_version = self._get_api_version('virtual_network_peerings') if api_version == '2016-09-01': @@ -2377,6 +2555,8 @@ def virtual_network_peerings(self): from .v2018_07_01.operations import VirtualNetworkPeeringsOperations as OperationClass elif api_version == '2018-08-01': from .v2018_08_01.operations import VirtualNetworkPeeringsOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import VirtualNetworkPeeringsOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -2386,10 +2566,13 @@ def virtual_network_taps(self): """Instance depends on the API version: * 2018-08-01: :class:`VirtualNetworkTapsOperations` + * 2018-10-01: :class:`VirtualNetworkTapsOperations` """ api_version = self._get_api_version('virtual_network_taps') if api_version == '2018-08-01': from .v2018_08_01.operations import VirtualNetworkTapsOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import VirtualNetworkTapsOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -2413,6 +2596,7 @@ def virtual_networks(self): * 2018-06-01: :class:`VirtualNetworksOperations` * 2018-07-01: :class:`VirtualNetworksOperations` * 2018-08-01: :class:`VirtualNetworksOperations` + * 2018-10-01: :class:`VirtualNetworksOperations` """ api_version = self._get_api_version('virtual_networks') if api_version == '2015-06-15': @@ -2445,6 +2629,8 @@ def virtual_networks(self): from .v2018_07_01.operations import VirtualNetworksOperations as OperationClass elif api_version == '2018-08-01': from .v2018_08_01.operations import VirtualNetworksOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import VirtualNetworksOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -2473,10 +2659,13 @@ def virtual_wans(self): """Instance depends on the API version: * 2018-08-01: :class:`VirtualWansOperations` + * 2018-10-01: :class:`VirtualWansOperations` """ api_version = self._get_api_version('virtual_wans') if api_version == '2018-08-01': from .v2018_08_01.operations import VirtualWansOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import VirtualWansOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -2489,6 +2678,7 @@ def vpn_connections(self): * 2018-06-01: :class:`VpnConnectionsOperations` * 2018-07-01: :class:`VpnConnectionsOperations` * 2018-08-01: :class:`VpnConnectionsOperations` + * 2018-10-01: :class:`VpnConnectionsOperations` """ api_version = self._get_api_version('vpn_connections') if api_version == '2018-04-01': @@ -2499,6 +2689,8 @@ def vpn_connections(self): from .v2018_07_01.operations import VpnConnectionsOperations as OperationClass elif api_version == '2018-08-01': from .v2018_08_01.operations import VpnConnectionsOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import VpnConnectionsOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -2511,6 +2703,7 @@ def vpn_gateways(self): * 2018-06-01: :class:`VpnGatewaysOperations` * 2018-07-01: :class:`VpnGatewaysOperations` * 2018-08-01: :class:`VpnGatewaysOperations` + * 2018-10-01: :class:`VpnGatewaysOperations` """ api_version = self._get_api_version('vpn_gateways') if api_version == '2018-04-01': @@ -2521,6 +2714,8 @@ def vpn_gateways(self): from .v2018_07_01.operations import VpnGatewaysOperations as OperationClass elif api_version == '2018-08-01': from .v2018_08_01.operations import VpnGatewaysOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import VpnGatewaysOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -2533,6 +2728,7 @@ def vpn_sites(self): * 2018-06-01: :class:`VpnSitesOperations` * 2018-07-01: :class:`VpnSitesOperations` * 2018-08-01: :class:`VpnSitesOperations` + * 2018-10-01: :class:`VpnSitesOperations` """ api_version = self._get_api_version('vpn_sites') if api_version == '2018-04-01': @@ -2543,6 +2739,8 @@ def vpn_sites(self): from .v2018_07_01.operations import VpnSitesOperations as OperationClass elif api_version == '2018-08-01': from .v2018_08_01.operations import VpnSitesOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import VpnSitesOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) @@ -2555,6 +2753,7 @@ def vpn_sites_configuration(self): * 2018-06-01: :class:`VpnSitesConfigurationOperations` * 2018-07-01: :class:`VpnSitesConfigurationOperations` * 2018-08-01: :class:`VpnSitesConfigurationOperations` + * 2018-10-01: :class:`VpnSitesConfigurationOperations` """ api_version = self._get_api_version('vpn_sites_configuration') if api_version == '2018-04-01': @@ -2565,6 +2764,8 @@ def vpn_sites_configuration(self): from .v2018_07_01.operations import VpnSitesConfigurationOperations as OperationClass elif api_version == '2018-08-01': from .v2018_08_01.operations import VpnSitesConfigurationOperations as OperationClass + elif api_version == '2018-10-01': + from .v2018_10_01.operations import VpnSitesConfigurationOperations as OperationClass else: raise NotImplementedError("APIVersion {} is not available".format(api_version)) return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/network_interface.py b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/network_interface.py index 0c17094c3751..f8b9bcb4e2ed 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/network_interface.py +++ b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/network_interface.py @@ -28,8 +28,9 @@ class NetworkInterface(Resource): :type location: str :param tags: Resource tags. :type tags: dict[str, str] - :param virtual_machine: The reference of a virtual machine. - :type virtual_machine: ~azure.mgmt.network.v2018_08_01.models.SubResource + :ivar virtual_machine: The reference of a virtual machine. + :vartype virtual_machine: + ~azure.mgmt.network.v2018_08_01.models.SubResource :param network_security_group: The reference of the NetworkSecurityGroup resource. :type network_security_group: @@ -76,6 +77,7 @@ class NetworkInterface(Resource): _validation = { 'name': {'readonly': True}, 'type': {'readonly': True}, + 'virtual_machine': {'readonly': True}, 'interface_endpoint': {'readonly': True}, 'hosted_workloads': {'readonly': True}, } @@ -104,7 +106,7 @@ class NetworkInterface(Resource): def __init__(self, **kwargs): super(NetworkInterface, self).__init__(**kwargs) - self.virtual_machine = kwargs.get('virtual_machine', None) + self.virtual_machine = None self.network_security_group = kwargs.get('network_security_group', None) self.interface_endpoint = None self.ip_configurations = kwargs.get('ip_configurations', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/network_interface_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/network_interface_py3.py index cb7f1e39b06f..518481171ffc 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/network_interface_py3.py +++ b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/network_interface_py3.py @@ -28,8 +28,9 @@ class NetworkInterface(Resource): :type location: str :param tags: Resource tags. :type tags: dict[str, str] - :param virtual_machine: The reference of a virtual machine. - :type virtual_machine: ~azure.mgmt.network.v2018_08_01.models.SubResource + :ivar virtual_machine: The reference of a virtual machine. + :vartype virtual_machine: + ~azure.mgmt.network.v2018_08_01.models.SubResource :param network_security_group: The reference of the NetworkSecurityGroup resource. :type network_security_group: @@ -76,6 +77,7 @@ class NetworkInterface(Resource): _validation = { 'name': {'readonly': True}, 'type': {'readonly': True}, + 'virtual_machine': {'readonly': True}, 'interface_endpoint': {'readonly': True}, 'hosted_workloads': {'readonly': True}, } @@ -102,9 +104,9 @@ class NetworkInterface(Resource): 'etag': {'key': 'etag', 'type': 'str'}, } - def __init__(self, *, id: str=None, location: str=None, tags=None, virtual_machine=None, network_security_group=None, ip_configurations=None, tap_configurations=None, dns_settings=None, mac_address: str=None, primary: bool=None, enable_accelerated_networking: bool=None, enable_ip_forwarding: bool=None, resource_guid: str=None, provisioning_state: str=None, etag: str=None, **kwargs) -> None: + def __init__(self, *, id: str=None, location: str=None, tags=None, network_security_group=None, ip_configurations=None, tap_configurations=None, dns_settings=None, mac_address: str=None, primary: bool=None, enable_accelerated_networking: bool=None, enable_ip_forwarding: bool=None, resource_guid: str=None, provisioning_state: str=None, etag: str=None, **kwargs) -> None: super(NetworkInterface, self).__init__(id=id, location=location, tags=tags, **kwargs) - self.virtual_machine = virtual_machine + self.virtual_machine = None self.network_security_group = network_security_group self.interface_endpoint = None self.ip_configurations = ip_configurations diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/__init__.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/__init__.py new file mode 100644 index 000000000000..2a2f032f38aa --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/__init__.py @@ -0,0 +1,18 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .network_management_client import NetworkManagementClient +from .version import VERSION + +__all__ = ['NetworkManagementClient'] + +__version__ = VERSION + diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/__init__.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/__init__.py new file mode 100644 index 000000000000..f07806bcb9d5 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/__init__.py @@ -0,0 +1,1163 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +try: + from .network_interface_tap_configuration_py3 import NetworkInterfaceTapConfiguration + from .sub_resource_py3 import SubResource + from .application_security_group_py3 import ApplicationSecurityGroup + from .security_rule_py3 import SecurityRule + from .endpoint_service_py3 import EndpointService + from .interface_endpoint_py3 import InterfaceEndpoint + from .network_interface_dns_settings_py3 import NetworkInterfaceDnsSettings + from .network_interface_py3 import NetworkInterface + from .network_security_group_py3 import NetworkSecurityGroup + from .route_py3 import Route + from .route_table_py3 import RouteTable + from .service_endpoint_properties_format_py3 import ServiceEndpointPropertiesFormat + from .service_endpoint_policy_definition_py3 import ServiceEndpointPolicyDefinition + from .service_endpoint_policy_py3 import ServiceEndpointPolicy + from .public_ip_address_sku_py3 import PublicIPAddressSku + from .public_ip_address_dns_settings_py3 import PublicIPAddressDnsSettings + from .ip_tag_py3 import IpTag + from .public_ip_address_py3 import PublicIPAddress + from .ip_configuration_py3 import IPConfiguration + from .ip_configuration_profile_py3 import IPConfigurationProfile + from .resource_navigation_link_py3 import ResourceNavigationLink + from .service_association_link_py3 import ServiceAssociationLink + from .delegation_py3 import Delegation + from .subnet_py3 import Subnet + from .frontend_ip_configuration_py3 import FrontendIPConfiguration + from .virtual_network_tap_py3 import VirtualNetworkTap + from .backend_address_pool_py3 import BackendAddressPool + from .inbound_nat_rule_py3 import InboundNatRule + from .network_interface_ip_configuration_py3 import NetworkInterfaceIPConfiguration + from .application_gateway_backend_address_py3 import ApplicationGatewayBackendAddress + from .application_gateway_backend_address_pool_py3 import ApplicationGatewayBackendAddressPool + from .application_gateway_connection_draining_py3 import ApplicationGatewayConnectionDraining + from .application_gateway_backend_http_settings_py3 import ApplicationGatewayBackendHttpSettings + from .application_gateway_backend_health_server_py3 import ApplicationGatewayBackendHealthServer + from .application_gateway_backend_health_http_settings_py3 import ApplicationGatewayBackendHealthHttpSettings + from .application_gateway_backend_health_pool_py3 import ApplicationGatewayBackendHealthPool + from .application_gateway_backend_health_py3 import ApplicationGatewayBackendHealth + from .application_gateway_sku_py3 import ApplicationGatewaySku + from .application_gateway_ssl_policy_py3 import ApplicationGatewaySslPolicy + from .application_gateway_ip_configuration_py3 import ApplicationGatewayIPConfiguration + from .application_gateway_authentication_certificate_py3 import ApplicationGatewayAuthenticationCertificate + from .application_gateway_trusted_root_certificate_py3 import ApplicationGatewayTrustedRootCertificate + from .application_gateway_ssl_certificate_py3 import ApplicationGatewaySslCertificate + from .application_gateway_frontend_ip_configuration_py3 import ApplicationGatewayFrontendIPConfiguration + from .application_gateway_frontend_port_py3 import ApplicationGatewayFrontendPort + from .application_gateway_custom_error_py3 import ApplicationGatewayCustomError + from .application_gateway_http_listener_py3 import ApplicationGatewayHttpListener + from .application_gateway_path_rule_py3 import ApplicationGatewayPathRule + from .application_gateway_probe_health_response_match_py3 import ApplicationGatewayProbeHealthResponseMatch + from .application_gateway_probe_py3 import ApplicationGatewayProbe + from .application_gateway_request_routing_rule_py3 import ApplicationGatewayRequestRoutingRule + from .application_gateway_header_configuration_py3 import ApplicationGatewayHeaderConfiguration + from .application_gateway_rewrite_rule_action_set_py3 import ApplicationGatewayRewriteRuleActionSet + from .application_gateway_rewrite_rule_py3 import ApplicationGatewayRewriteRule + from .application_gateway_rewrite_rule_set_py3 import ApplicationGatewayRewriteRuleSet + from .application_gateway_redirect_configuration_py3 import ApplicationGatewayRedirectConfiguration + from .application_gateway_url_path_map_py3 import ApplicationGatewayUrlPathMap + from .application_gateway_firewall_disabled_rule_group_py3 import ApplicationGatewayFirewallDisabledRuleGroup + from .application_gateway_firewall_exclusion_py3 import ApplicationGatewayFirewallExclusion + from .application_gateway_web_application_firewall_configuration_py3 import ApplicationGatewayWebApplicationFirewallConfiguration + from .application_gateway_autoscale_configuration_py3 import ApplicationGatewayAutoscaleConfiguration + from .managed_service_identity_user_assigned_identities_value_py3 import ManagedServiceIdentityUserAssignedIdentitiesValue + from .managed_service_identity_py3 import ManagedServiceIdentity + from .application_gateway_py3 import ApplicationGateway + from .application_gateway_firewall_rule_py3 import ApplicationGatewayFirewallRule + from .application_gateway_firewall_rule_group_py3 import ApplicationGatewayFirewallRuleGroup + from .application_gateway_firewall_rule_set_py3 import ApplicationGatewayFirewallRuleSet + from .application_gateway_available_waf_rule_sets_result_py3 import ApplicationGatewayAvailableWafRuleSetsResult + from .application_gateway_available_ssl_options_py3 import ApplicationGatewayAvailableSslOptions + from .application_gateway_ssl_predefined_policy_py3 import ApplicationGatewaySslPredefinedPolicy + from .resource_py3 import Resource + from .tags_object_py3 import TagsObject + from .available_delegation_py3 import AvailableDelegation + from .azure_firewall_ip_configuration_py3 import AzureFirewallIPConfiguration + from .azure_firewall_rc_action_py3 import AzureFirewallRCAction + from .azure_firewall_application_rule_protocol_py3 import AzureFirewallApplicationRuleProtocol + from .azure_firewall_application_rule_py3 import AzureFirewallApplicationRule + from .azure_firewall_application_rule_collection_py3 import AzureFirewallApplicationRuleCollection + from .azure_firewall_nat_rc_action_py3 import AzureFirewallNatRCAction + from .azure_firewall_nat_rule_py3 import AzureFirewallNatRule + from .azure_firewall_nat_rule_collection_py3 import AzureFirewallNatRuleCollection + from .azure_firewall_network_rule_py3 import AzureFirewallNetworkRule + from .azure_firewall_network_rule_collection_py3 import AzureFirewallNetworkRuleCollection + from .azure_firewall_py3 import AzureFirewall + from .azure_firewall_fqdn_tag_py3 import AzureFirewallFqdnTag + from .dns_name_availability_result_py3 import DnsNameAvailabilityResult + from .ddos_protection_plan_py3 import DdosProtectionPlan + from .endpoint_service_result_py3 import EndpointServiceResult + from .express_route_circuit_authorization_py3 import ExpressRouteCircuitAuthorization + from .express_route_circuit_peering_config_py3 import ExpressRouteCircuitPeeringConfig + from .route_filter_rule_py3 import RouteFilterRule + from .express_route_circuit_stats_py3 import ExpressRouteCircuitStats + from .express_route_connection_id_py3 import ExpressRouteConnectionId + from .express_route_circuit_connection_py3 import ExpressRouteCircuitConnection + from .express_route_circuit_peering_py3 import ExpressRouteCircuitPeering + from .route_filter_py3 import RouteFilter + from .ipv6_express_route_circuit_peering_config_py3 import Ipv6ExpressRouteCircuitPeeringConfig + from .express_route_circuit_sku_py3 import ExpressRouteCircuitSku + from .express_route_circuit_service_provider_properties_py3 import ExpressRouteCircuitServiceProviderProperties + from .express_route_circuit_py3 import ExpressRouteCircuit + from .express_route_circuit_arp_table_py3 import ExpressRouteCircuitArpTable + from .express_route_circuits_arp_table_list_result_py3 import ExpressRouteCircuitsArpTableListResult + from .express_route_circuit_routes_table_py3 import ExpressRouteCircuitRoutesTable + from .express_route_circuits_routes_table_list_result_py3 import ExpressRouteCircuitsRoutesTableListResult + from .express_route_circuit_routes_table_summary_py3 import ExpressRouteCircuitRoutesTableSummary + from .express_route_circuits_routes_table_summary_list_result_py3 import ExpressRouteCircuitsRoutesTableSummaryListResult + from .express_route_service_provider_bandwidths_offered_py3 import ExpressRouteServiceProviderBandwidthsOffered + from .express_route_service_provider_py3 import ExpressRouteServiceProvider + from .express_route_cross_connection_routes_table_summary_py3 import ExpressRouteCrossConnectionRoutesTableSummary + from .express_route_cross_connections_routes_table_summary_list_result_py3 import ExpressRouteCrossConnectionsRoutesTableSummaryListResult + from .express_route_circuit_reference_py3 import ExpressRouteCircuitReference + from .express_route_cross_connection_peering_py3 import ExpressRouteCrossConnectionPeering + from .express_route_cross_connection_py3 import ExpressRouteCrossConnection + from .virtual_hub_id_py3 import VirtualHubId + from .express_route_circuit_peering_id_py3 import ExpressRouteCircuitPeeringId + from .express_route_gateway_properties_auto_scale_configuration_bounds_py3 import ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds + from .express_route_gateway_properties_auto_scale_configuration_py3 import ExpressRouteGatewayPropertiesAutoScaleConfiguration + from .express_route_connection_py3 import ExpressRouteConnection + from .express_route_gateway_py3 import ExpressRouteGateway + from .express_route_gateway_list_py3 import ExpressRouteGatewayList + from .express_route_connection_list_py3 import ExpressRouteConnectionList + from .express_route_ports_location_bandwidths_py3 import ExpressRoutePortsLocationBandwidths + from .express_route_ports_location_py3 import ExpressRoutePortsLocation + from .express_route_link_py3 import ExpressRouteLink + from .express_route_port_py3 import ExpressRoutePort + from .load_balancer_sku_py3 import LoadBalancerSku + from .load_balancing_rule_py3 import LoadBalancingRule + from .probe_py3 import Probe + from .inbound_nat_pool_py3 import InboundNatPool + from .outbound_rule_py3 import OutboundRule + from .load_balancer_py3 import LoadBalancer + from .error_details_py3 import ErrorDetails + from .error_py3 import Error, ErrorException + from .azure_async_operation_result_py3 import AzureAsyncOperationResult + from .effective_network_security_group_association_py3 import EffectiveNetworkSecurityGroupAssociation + from .effective_network_security_rule_py3 import EffectiveNetworkSecurityRule + from .effective_network_security_group_py3 import EffectiveNetworkSecurityGroup + from .effective_network_security_group_list_result_py3 import EffectiveNetworkSecurityGroupListResult + from .effective_route_py3 import EffectiveRoute + from .effective_route_list_result_py3 import EffectiveRouteListResult + from .container_network_interface_configuration_py3 import ContainerNetworkInterfaceConfiguration + from .container_py3 import Container + from .container_network_interface_ip_configuration_py3 import ContainerNetworkInterfaceIpConfiguration + from .container_network_interface_py3 import ContainerNetworkInterface + from .network_profile_py3 import NetworkProfile + from .error_response_py3 import ErrorResponse, ErrorResponseException + from .network_watcher_py3 import NetworkWatcher + from .topology_parameters_py3 import TopologyParameters + from .topology_association_py3 import TopologyAssociation + from .topology_resource_py3 import TopologyResource + from .topology_py3 import Topology + from .verification_ip_flow_parameters_py3 import VerificationIPFlowParameters + from .verification_ip_flow_result_py3 import VerificationIPFlowResult + from .next_hop_parameters_py3 import NextHopParameters + from .next_hop_result_py3 import NextHopResult + from .security_group_view_parameters_py3 import SecurityGroupViewParameters + from .network_interface_association_py3 import NetworkInterfaceAssociation + from .subnet_association_py3 import SubnetAssociation + from .security_rule_associations_py3 import SecurityRuleAssociations + from .security_group_network_interface_py3 import SecurityGroupNetworkInterface + from .security_group_view_result_py3 import SecurityGroupViewResult + from .packet_capture_storage_location_py3 import PacketCaptureStorageLocation + from .packet_capture_filter_py3 import PacketCaptureFilter + from .packet_capture_parameters_py3 import PacketCaptureParameters + from .packet_capture_py3 import PacketCapture + from .packet_capture_result_py3 import PacketCaptureResult + from .packet_capture_query_status_result_py3 import PacketCaptureQueryStatusResult + from .troubleshooting_parameters_py3 import TroubleshootingParameters + from .query_troubleshooting_parameters_py3 import QueryTroubleshootingParameters + from .troubleshooting_recommended_actions_py3 import TroubleshootingRecommendedActions + from .troubleshooting_details_py3 import TroubleshootingDetails + from .troubleshooting_result_py3 import TroubleshootingResult + from .retention_policy_parameters_py3 import RetentionPolicyParameters + from .flow_log_format_parameters_py3 import FlowLogFormatParameters + from .flow_log_status_parameters_py3 import FlowLogStatusParameters + from .traffic_analytics_configuration_properties_py3 import TrafficAnalyticsConfigurationProperties + from .traffic_analytics_properties_py3 import TrafficAnalyticsProperties + from .flow_log_information_py3 import FlowLogInformation + from .connectivity_source_py3 import ConnectivitySource + from .connectivity_destination_py3 import ConnectivityDestination + from .http_header_py3 import HTTPHeader + from .http_configuration_py3 import HTTPConfiguration + from .protocol_configuration_py3 import ProtocolConfiguration + from .connectivity_parameters_py3 import ConnectivityParameters + from .connectivity_issue_py3 import ConnectivityIssue + from .connectivity_hop_py3 import ConnectivityHop + from .connectivity_information_py3 import ConnectivityInformation + from .azure_reachability_report_location_py3 import AzureReachabilityReportLocation + from .azure_reachability_report_parameters_py3 import AzureReachabilityReportParameters + from .azure_reachability_report_latency_info_py3 import AzureReachabilityReportLatencyInfo + from .azure_reachability_report_item_py3 import AzureReachabilityReportItem + from .azure_reachability_report_py3 import AzureReachabilityReport + from .available_providers_list_parameters_py3 import AvailableProvidersListParameters + from .available_providers_list_city_py3 import AvailableProvidersListCity + from .available_providers_list_state_py3 import AvailableProvidersListState + from .available_providers_list_country_py3 import AvailableProvidersListCountry + from .available_providers_list_py3 import AvailableProvidersList + from .connection_monitor_source_py3 import ConnectionMonitorSource + from .connection_monitor_destination_py3 import ConnectionMonitorDestination + from .connection_monitor_parameters_py3 import ConnectionMonitorParameters + from .connection_monitor_py3 import ConnectionMonitor + from .connection_monitor_result_py3 import ConnectionMonitorResult + from .connection_state_snapshot_py3 import ConnectionStateSnapshot + from .connection_monitor_query_result_py3 import ConnectionMonitorQueryResult + from .network_configuration_diagnostic_profile_py3 import NetworkConfigurationDiagnosticProfile + from .network_configuration_diagnostic_parameters_py3 import NetworkConfigurationDiagnosticParameters + from .matched_rule_py3 import MatchedRule + from .network_security_rules_evaluation_result_py3 import NetworkSecurityRulesEvaluationResult + from .evaluated_network_security_group_py3 import EvaluatedNetworkSecurityGroup + from .network_security_group_result_py3 import NetworkSecurityGroupResult + from .network_configuration_diagnostic_result_py3 import NetworkConfigurationDiagnosticResult + from .network_configuration_diagnostic_response_py3 import NetworkConfigurationDiagnosticResponse + from .operation_display_py3 import OperationDisplay + from .availability_py3 import Availability + from .dimension_py3 import Dimension + from .metric_specification_py3 import MetricSpecification + from .log_specification_py3 import LogSpecification + from .operation_properties_format_service_specification_py3 import OperationPropertiesFormatServiceSpecification + from .operation_py3 import Operation + from .public_ip_prefix_sku_py3 import PublicIPPrefixSku + from .referenced_public_ip_address_py3 import ReferencedPublicIpAddress + from .public_ip_prefix_py3 import PublicIPPrefix + from .patch_route_filter_rule_py3 import PatchRouteFilterRule + from .patch_route_filter_py3 import PatchRouteFilter + from .bgp_community_py3 import BGPCommunity + from .bgp_service_community_py3 import BgpServiceCommunity + from .usage_name_py3 import UsageName + from .usage_py3 import Usage + from .address_space_py3 import AddressSpace + from .virtual_network_peering_py3 import VirtualNetworkPeering + from .dhcp_options_py3 import DhcpOptions + from .virtual_network_py3 import VirtualNetwork + from .ip_address_availability_result_py3 import IPAddressAvailabilityResult + from .virtual_network_usage_name_py3 import VirtualNetworkUsageName + from .virtual_network_usage_py3 import VirtualNetworkUsage + from .virtual_network_gateway_ip_configuration_py3 import VirtualNetworkGatewayIPConfiguration + from .virtual_network_gateway_sku_py3 import VirtualNetworkGatewaySku + from .vpn_client_root_certificate_py3 import VpnClientRootCertificate + from .vpn_client_revoked_certificate_py3 import VpnClientRevokedCertificate + from .ipsec_policy_py3 import IpsecPolicy + from .vpn_client_configuration_py3 import VpnClientConfiguration + from .bgp_settings_py3 import BgpSettings + from .bgp_peer_status_py3 import BgpPeerStatus + from .gateway_route_py3 import GatewayRoute + from .virtual_network_gateway_py3 import VirtualNetworkGateway + from .vpn_client_parameters_py3 import VpnClientParameters + from .bgp_peer_status_list_result_py3 import BgpPeerStatusListResult + from .gateway_route_list_result_py3 import GatewayRouteListResult + from .tunnel_connection_health_py3 import TunnelConnectionHealth + from .local_network_gateway_py3 import LocalNetworkGateway + from .virtual_network_gateway_connection_py3 import VirtualNetworkGatewayConnection + from .connection_reset_shared_key_py3 import ConnectionResetSharedKey + from .connection_shared_key_py3 import ConnectionSharedKey + from .vpn_client_ipsec_parameters_py3 import VpnClientIPsecParameters + from .virtual_network_connection_gateway_reference_py3 import VirtualNetworkConnectionGatewayReference + from .virtual_network_gateway_connection_list_entity_py3 import VirtualNetworkGatewayConnectionListEntity + from .vpn_device_script_parameters_py3 import VpnDeviceScriptParameters + from .p2_svpn_server_config_vpn_client_root_certificate_py3 import P2SVpnServerConfigVpnClientRootCertificate + from .p2_svpn_server_config_vpn_client_revoked_certificate_py3 import P2SVpnServerConfigVpnClientRevokedCertificate + from .p2_svpn_server_config_radius_server_root_certificate_py3 import P2SVpnServerConfigRadiusServerRootCertificate + from .p2_svpn_server_config_radius_client_root_certificate_py3 import P2SVpnServerConfigRadiusClientRootCertificate + from .p2_svpn_server_configuration_py3 import P2SVpnServerConfiguration + from .virtual_wan_py3 import VirtualWAN + from .device_properties_py3 import DeviceProperties + from .vpn_site_py3 import VpnSite + from .get_vpn_sites_configuration_request_py3 import GetVpnSitesConfigurationRequest + from .hub_virtual_network_connection_py3 import HubVirtualNetworkConnection + from .virtual_hub_route_py3 import VirtualHubRoute + from .virtual_hub_route_table_py3 import VirtualHubRouteTable + from .virtual_hub_py3 import VirtualHub + from .vpn_connection_py3 import VpnConnection + from .vpn_gateway_py3 import VpnGateway + from .vpn_site_id_py3 import VpnSiteId + from .virtual_wan_security_provider_py3 import VirtualWanSecurityProvider + from .virtual_wan_security_providers_py3 import VirtualWanSecurityProviders + from .vpn_client_connection_health_py3 import VpnClientConnectionHealth + from .p2_svpn_gateway_py3 import P2SVpnGateway + from .p2_svpn_profile_parameters_py3 import P2SVpnProfileParameters + from .vpn_profile_response_py3 import VpnProfileResponse +except (SyntaxError, ImportError): + from .network_interface_tap_configuration import NetworkInterfaceTapConfiguration + from .sub_resource import SubResource + from .application_security_group import ApplicationSecurityGroup + from .security_rule import SecurityRule + from .endpoint_service import EndpointService + from .interface_endpoint import InterfaceEndpoint + from .network_interface_dns_settings import NetworkInterfaceDnsSettings + from .network_interface import NetworkInterface + from .network_security_group import NetworkSecurityGroup + from .route import Route + from .route_table import RouteTable + from .service_endpoint_properties_format import ServiceEndpointPropertiesFormat + from .service_endpoint_policy_definition import ServiceEndpointPolicyDefinition + from .service_endpoint_policy import ServiceEndpointPolicy + from .public_ip_address_sku import PublicIPAddressSku + from .public_ip_address_dns_settings import PublicIPAddressDnsSettings + from .ip_tag import IpTag + from .public_ip_address import PublicIPAddress + from .ip_configuration import IPConfiguration + from .ip_configuration_profile import IPConfigurationProfile + from .resource_navigation_link import ResourceNavigationLink + from .service_association_link import ServiceAssociationLink + from .delegation import Delegation + from .subnet import Subnet + from .frontend_ip_configuration import FrontendIPConfiguration + from .virtual_network_tap import VirtualNetworkTap + from .backend_address_pool import BackendAddressPool + from .inbound_nat_rule import InboundNatRule + from .network_interface_ip_configuration import NetworkInterfaceIPConfiguration + from .application_gateway_backend_address import ApplicationGatewayBackendAddress + from .application_gateway_backend_address_pool import ApplicationGatewayBackendAddressPool + from .application_gateway_connection_draining import ApplicationGatewayConnectionDraining + from .application_gateway_backend_http_settings import ApplicationGatewayBackendHttpSettings + from .application_gateway_backend_health_server import ApplicationGatewayBackendHealthServer + from .application_gateway_backend_health_http_settings import ApplicationGatewayBackendHealthHttpSettings + from .application_gateway_backend_health_pool import ApplicationGatewayBackendHealthPool + from .application_gateway_backend_health import ApplicationGatewayBackendHealth + from .application_gateway_sku import ApplicationGatewaySku + from .application_gateway_ssl_policy import ApplicationGatewaySslPolicy + from .application_gateway_ip_configuration import ApplicationGatewayIPConfiguration + from .application_gateway_authentication_certificate import ApplicationGatewayAuthenticationCertificate + from .application_gateway_trusted_root_certificate import ApplicationGatewayTrustedRootCertificate + from .application_gateway_ssl_certificate import ApplicationGatewaySslCertificate + from .application_gateway_frontend_ip_configuration import ApplicationGatewayFrontendIPConfiguration + from .application_gateway_frontend_port import ApplicationGatewayFrontendPort + from .application_gateway_custom_error import ApplicationGatewayCustomError + from .application_gateway_http_listener import ApplicationGatewayHttpListener + from .application_gateway_path_rule import ApplicationGatewayPathRule + from .application_gateway_probe_health_response_match import ApplicationGatewayProbeHealthResponseMatch + from .application_gateway_probe import ApplicationGatewayProbe + from .application_gateway_request_routing_rule import ApplicationGatewayRequestRoutingRule + from .application_gateway_header_configuration import ApplicationGatewayHeaderConfiguration + from .application_gateway_rewrite_rule_action_set import ApplicationGatewayRewriteRuleActionSet + from .application_gateway_rewrite_rule import ApplicationGatewayRewriteRule + from .application_gateway_rewrite_rule_set import ApplicationGatewayRewriteRuleSet + from .application_gateway_redirect_configuration import ApplicationGatewayRedirectConfiguration + from .application_gateway_url_path_map import ApplicationGatewayUrlPathMap + from .application_gateway_firewall_disabled_rule_group import ApplicationGatewayFirewallDisabledRuleGroup + from .application_gateway_firewall_exclusion import ApplicationGatewayFirewallExclusion + from .application_gateway_web_application_firewall_configuration import ApplicationGatewayWebApplicationFirewallConfiguration + from .application_gateway_autoscale_configuration import ApplicationGatewayAutoscaleConfiguration + from .managed_service_identity_user_assigned_identities_value import ManagedServiceIdentityUserAssignedIdentitiesValue + from .managed_service_identity import ManagedServiceIdentity + from .application_gateway import ApplicationGateway + from .application_gateway_firewall_rule import ApplicationGatewayFirewallRule + from .application_gateway_firewall_rule_group import ApplicationGatewayFirewallRuleGroup + from .application_gateway_firewall_rule_set import ApplicationGatewayFirewallRuleSet + from .application_gateway_available_waf_rule_sets_result import ApplicationGatewayAvailableWafRuleSetsResult + from .application_gateway_available_ssl_options import ApplicationGatewayAvailableSslOptions + from .application_gateway_ssl_predefined_policy import ApplicationGatewaySslPredefinedPolicy + from .resource import Resource + from .tags_object import TagsObject + from .available_delegation import AvailableDelegation + from .azure_firewall_ip_configuration import AzureFirewallIPConfiguration + from .azure_firewall_rc_action import AzureFirewallRCAction + from .azure_firewall_application_rule_protocol import AzureFirewallApplicationRuleProtocol + from .azure_firewall_application_rule import AzureFirewallApplicationRule + from .azure_firewall_application_rule_collection import AzureFirewallApplicationRuleCollection + from .azure_firewall_nat_rc_action import AzureFirewallNatRCAction + from .azure_firewall_nat_rule import AzureFirewallNatRule + from .azure_firewall_nat_rule_collection import AzureFirewallNatRuleCollection + from .azure_firewall_network_rule import AzureFirewallNetworkRule + from .azure_firewall_network_rule_collection import AzureFirewallNetworkRuleCollection + from .azure_firewall import AzureFirewall + from .azure_firewall_fqdn_tag import AzureFirewallFqdnTag + from .dns_name_availability_result import DnsNameAvailabilityResult + from .ddos_protection_plan import DdosProtectionPlan + from .endpoint_service_result import EndpointServiceResult + from .express_route_circuit_authorization import ExpressRouteCircuitAuthorization + from .express_route_circuit_peering_config import ExpressRouteCircuitPeeringConfig + from .route_filter_rule import RouteFilterRule + from .express_route_circuit_stats import ExpressRouteCircuitStats + from .express_route_connection_id import ExpressRouteConnectionId + from .express_route_circuit_connection import ExpressRouteCircuitConnection + from .express_route_circuit_peering import ExpressRouteCircuitPeering + from .route_filter import RouteFilter + from .ipv6_express_route_circuit_peering_config import Ipv6ExpressRouteCircuitPeeringConfig + from .express_route_circuit_sku import ExpressRouteCircuitSku + from .express_route_circuit_service_provider_properties import ExpressRouteCircuitServiceProviderProperties + from .express_route_circuit import ExpressRouteCircuit + from .express_route_circuit_arp_table import ExpressRouteCircuitArpTable + from .express_route_circuits_arp_table_list_result import ExpressRouteCircuitsArpTableListResult + from .express_route_circuit_routes_table import ExpressRouteCircuitRoutesTable + from .express_route_circuits_routes_table_list_result import ExpressRouteCircuitsRoutesTableListResult + from .express_route_circuit_routes_table_summary import ExpressRouteCircuitRoutesTableSummary + from .express_route_circuits_routes_table_summary_list_result import ExpressRouteCircuitsRoutesTableSummaryListResult + from .express_route_service_provider_bandwidths_offered import ExpressRouteServiceProviderBandwidthsOffered + from .express_route_service_provider import ExpressRouteServiceProvider + from .express_route_cross_connection_routes_table_summary import ExpressRouteCrossConnectionRoutesTableSummary + from .express_route_cross_connections_routes_table_summary_list_result import ExpressRouteCrossConnectionsRoutesTableSummaryListResult + from .express_route_circuit_reference import ExpressRouteCircuitReference + from .express_route_cross_connection_peering import ExpressRouteCrossConnectionPeering + from .express_route_cross_connection import ExpressRouteCrossConnection + from .virtual_hub_id import VirtualHubId + from .express_route_circuit_peering_id import ExpressRouteCircuitPeeringId + from .express_route_gateway_properties_auto_scale_configuration_bounds import ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds + from .express_route_gateway_properties_auto_scale_configuration import ExpressRouteGatewayPropertiesAutoScaleConfiguration + from .express_route_connection import ExpressRouteConnection + from .express_route_gateway import ExpressRouteGateway + from .express_route_gateway_list import ExpressRouteGatewayList + from .express_route_connection_list import ExpressRouteConnectionList + from .express_route_ports_location_bandwidths import ExpressRoutePortsLocationBandwidths + from .express_route_ports_location import ExpressRoutePortsLocation + from .express_route_link import ExpressRouteLink + from .express_route_port import ExpressRoutePort + from .load_balancer_sku import LoadBalancerSku + from .load_balancing_rule import LoadBalancingRule + from .probe import Probe + from .inbound_nat_pool import InboundNatPool + from .outbound_rule import OutboundRule + from .load_balancer import LoadBalancer + from .error_details import ErrorDetails + from .error import Error, ErrorException + from .azure_async_operation_result import AzureAsyncOperationResult + from .effective_network_security_group_association import EffectiveNetworkSecurityGroupAssociation + from .effective_network_security_rule import EffectiveNetworkSecurityRule + from .effective_network_security_group import EffectiveNetworkSecurityGroup + from .effective_network_security_group_list_result import EffectiveNetworkSecurityGroupListResult + from .effective_route import EffectiveRoute + from .effective_route_list_result import EffectiveRouteListResult + from .container_network_interface_configuration import ContainerNetworkInterfaceConfiguration + from .container import Container + from .container_network_interface_ip_configuration import ContainerNetworkInterfaceIpConfiguration + from .container_network_interface import ContainerNetworkInterface + from .network_profile import NetworkProfile + from .error_response import ErrorResponse, ErrorResponseException + from .network_watcher import NetworkWatcher + from .topology_parameters import TopologyParameters + from .topology_association import TopologyAssociation + from .topology_resource import TopologyResource + from .topology import Topology + from .verification_ip_flow_parameters import VerificationIPFlowParameters + from .verification_ip_flow_result import VerificationIPFlowResult + from .next_hop_parameters import NextHopParameters + from .next_hop_result import NextHopResult + from .security_group_view_parameters import SecurityGroupViewParameters + from .network_interface_association import NetworkInterfaceAssociation + from .subnet_association import SubnetAssociation + from .security_rule_associations import SecurityRuleAssociations + from .security_group_network_interface import SecurityGroupNetworkInterface + from .security_group_view_result import SecurityGroupViewResult + from .packet_capture_storage_location import PacketCaptureStorageLocation + from .packet_capture_filter import PacketCaptureFilter + from .packet_capture_parameters import PacketCaptureParameters + from .packet_capture import PacketCapture + from .packet_capture_result import PacketCaptureResult + from .packet_capture_query_status_result import PacketCaptureQueryStatusResult + from .troubleshooting_parameters import TroubleshootingParameters + from .query_troubleshooting_parameters import QueryTroubleshootingParameters + from .troubleshooting_recommended_actions import TroubleshootingRecommendedActions + from .troubleshooting_details import TroubleshootingDetails + from .troubleshooting_result import TroubleshootingResult + from .retention_policy_parameters import RetentionPolicyParameters + from .flow_log_format_parameters import FlowLogFormatParameters + from .flow_log_status_parameters import FlowLogStatusParameters + from .traffic_analytics_configuration_properties import TrafficAnalyticsConfigurationProperties + from .traffic_analytics_properties import TrafficAnalyticsProperties + from .flow_log_information import FlowLogInformation + from .connectivity_source import ConnectivitySource + from .connectivity_destination import ConnectivityDestination + from .http_header import HTTPHeader + from .http_configuration import HTTPConfiguration + from .protocol_configuration import ProtocolConfiguration + from .connectivity_parameters import ConnectivityParameters + from .connectivity_issue import ConnectivityIssue + from .connectivity_hop import ConnectivityHop + from .connectivity_information import ConnectivityInformation + from .azure_reachability_report_location import AzureReachabilityReportLocation + from .azure_reachability_report_parameters import AzureReachabilityReportParameters + from .azure_reachability_report_latency_info import AzureReachabilityReportLatencyInfo + from .azure_reachability_report_item import AzureReachabilityReportItem + from .azure_reachability_report import AzureReachabilityReport + from .available_providers_list_parameters import AvailableProvidersListParameters + from .available_providers_list_city import AvailableProvidersListCity + from .available_providers_list_state import AvailableProvidersListState + from .available_providers_list_country import AvailableProvidersListCountry + from .available_providers_list import AvailableProvidersList + from .connection_monitor_source import ConnectionMonitorSource + from .connection_monitor_destination import ConnectionMonitorDestination + from .connection_monitor_parameters import ConnectionMonitorParameters + from .connection_monitor import ConnectionMonitor + from .connection_monitor_result import ConnectionMonitorResult + from .connection_state_snapshot import ConnectionStateSnapshot + from .connection_monitor_query_result import ConnectionMonitorQueryResult + from .network_configuration_diagnostic_profile import NetworkConfigurationDiagnosticProfile + from .network_configuration_diagnostic_parameters import NetworkConfigurationDiagnosticParameters + from .matched_rule import MatchedRule + from .network_security_rules_evaluation_result import NetworkSecurityRulesEvaluationResult + from .evaluated_network_security_group import EvaluatedNetworkSecurityGroup + from .network_security_group_result import NetworkSecurityGroupResult + from .network_configuration_diagnostic_result import NetworkConfigurationDiagnosticResult + from .network_configuration_diagnostic_response import NetworkConfigurationDiagnosticResponse + from .operation_display import OperationDisplay + from .availability import Availability + from .dimension import Dimension + from .metric_specification import MetricSpecification + from .log_specification import LogSpecification + from .operation_properties_format_service_specification import OperationPropertiesFormatServiceSpecification + from .operation import Operation + from .public_ip_prefix_sku import PublicIPPrefixSku + from .referenced_public_ip_address import ReferencedPublicIpAddress + from .public_ip_prefix import PublicIPPrefix + from .patch_route_filter_rule import PatchRouteFilterRule + from .patch_route_filter import PatchRouteFilter + from .bgp_community import BGPCommunity + from .bgp_service_community import BgpServiceCommunity + from .usage_name import UsageName + from .usage import Usage + from .address_space import AddressSpace + from .virtual_network_peering import VirtualNetworkPeering + from .dhcp_options import DhcpOptions + from .virtual_network import VirtualNetwork + from .ip_address_availability_result import IPAddressAvailabilityResult + from .virtual_network_usage_name import VirtualNetworkUsageName + from .virtual_network_usage import VirtualNetworkUsage + from .virtual_network_gateway_ip_configuration import VirtualNetworkGatewayIPConfiguration + from .virtual_network_gateway_sku import VirtualNetworkGatewaySku + from .vpn_client_root_certificate import VpnClientRootCertificate + from .vpn_client_revoked_certificate import VpnClientRevokedCertificate + from .ipsec_policy import IpsecPolicy + from .vpn_client_configuration import VpnClientConfiguration + from .bgp_settings import BgpSettings + from .bgp_peer_status import BgpPeerStatus + from .gateway_route import GatewayRoute + from .virtual_network_gateway import VirtualNetworkGateway + from .vpn_client_parameters import VpnClientParameters + from .bgp_peer_status_list_result import BgpPeerStatusListResult + from .gateway_route_list_result import GatewayRouteListResult + from .tunnel_connection_health import TunnelConnectionHealth + from .local_network_gateway import LocalNetworkGateway + from .virtual_network_gateway_connection import VirtualNetworkGatewayConnection + from .connection_reset_shared_key import ConnectionResetSharedKey + from .connection_shared_key import ConnectionSharedKey + from .vpn_client_ipsec_parameters import VpnClientIPsecParameters + from .virtual_network_connection_gateway_reference import VirtualNetworkConnectionGatewayReference + from .virtual_network_gateway_connection_list_entity import VirtualNetworkGatewayConnectionListEntity + from .vpn_device_script_parameters import VpnDeviceScriptParameters + from .p2_svpn_server_config_vpn_client_root_certificate import P2SVpnServerConfigVpnClientRootCertificate + from .p2_svpn_server_config_vpn_client_revoked_certificate import P2SVpnServerConfigVpnClientRevokedCertificate + from .p2_svpn_server_config_radius_server_root_certificate import P2SVpnServerConfigRadiusServerRootCertificate + from .p2_svpn_server_config_radius_client_root_certificate import P2SVpnServerConfigRadiusClientRootCertificate + from .p2_svpn_server_configuration import P2SVpnServerConfiguration + from .virtual_wan import VirtualWAN + from .device_properties import DeviceProperties + from .vpn_site import VpnSite + from .get_vpn_sites_configuration_request import GetVpnSitesConfigurationRequest + from .hub_virtual_network_connection import HubVirtualNetworkConnection + from .virtual_hub_route import VirtualHubRoute + from .virtual_hub_route_table import VirtualHubRouteTable + from .virtual_hub import VirtualHub + from .vpn_connection import VpnConnection + from .vpn_gateway import VpnGateway + from .vpn_site_id import VpnSiteId + from .virtual_wan_security_provider import VirtualWanSecurityProvider + from .virtual_wan_security_providers import VirtualWanSecurityProviders + from .vpn_client_connection_health import VpnClientConnectionHealth + from .p2_svpn_gateway import P2SVpnGateway + from .p2_svpn_profile_parameters import P2SVpnProfileParameters + from .vpn_profile_response import VpnProfileResponse +from .application_gateway_paged import ApplicationGatewayPaged +from .application_gateway_ssl_predefined_policy_paged import ApplicationGatewaySslPredefinedPolicyPaged +from .application_security_group_paged import ApplicationSecurityGroupPaged +from .available_delegation_paged import AvailableDelegationPaged +from .azure_firewall_paged import AzureFirewallPaged +from .azure_firewall_fqdn_tag_paged import AzureFirewallFqdnTagPaged +from .ddos_protection_plan_paged import DdosProtectionPlanPaged +from .endpoint_service_result_paged import EndpointServiceResultPaged +from .express_route_circuit_authorization_paged import ExpressRouteCircuitAuthorizationPaged +from .express_route_circuit_peering_paged import ExpressRouteCircuitPeeringPaged +from .express_route_circuit_connection_paged import ExpressRouteCircuitConnectionPaged +from .express_route_circuit_paged import ExpressRouteCircuitPaged +from .express_route_service_provider_paged import ExpressRouteServiceProviderPaged +from .express_route_cross_connection_paged import ExpressRouteCrossConnectionPaged +from .express_route_cross_connection_peering_paged import ExpressRouteCrossConnectionPeeringPaged +from .express_route_ports_location_paged import ExpressRoutePortsLocationPaged +from .express_route_port_paged import ExpressRoutePortPaged +from .express_route_link_paged import ExpressRouteLinkPaged +from .interface_endpoint_paged import InterfaceEndpointPaged +from .load_balancer_paged import LoadBalancerPaged +from .backend_address_pool_paged import BackendAddressPoolPaged +from .frontend_ip_configuration_paged import FrontendIPConfigurationPaged +from .inbound_nat_rule_paged import InboundNatRulePaged +from .load_balancing_rule_paged import LoadBalancingRulePaged +from .outbound_rule_paged import OutboundRulePaged +from .network_interface_paged import NetworkInterfacePaged +from .probe_paged import ProbePaged +from .network_interface_ip_configuration_paged import NetworkInterfaceIPConfigurationPaged +from .network_interface_tap_configuration_paged import NetworkInterfaceTapConfigurationPaged +from .network_profile_paged import NetworkProfilePaged +from .network_security_group_paged import NetworkSecurityGroupPaged +from .security_rule_paged import SecurityRulePaged +from .network_watcher_paged import NetworkWatcherPaged +from .packet_capture_result_paged import PacketCaptureResultPaged +from .connection_monitor_result_paged import ConnectionMonitorResultPaged +from .operation_paged import OperationPaged +from .public_ip_address_paged import PublicIPAddressPaged +from .public_ip_prefix_paged import PublicIPPrefixPaged +from .route_filter_paged import RouteFilterPaged +from .route_filter_rule_paged import RouteFilterRulePaged +from .route_table_paged import RouteTablePaged +from .route_paged import RoutePaged +from .bgp_service_community_paged import BgpServiceCommunityPaged +from .service_endpoint_policy_paged import ServiceEndpointPolicyPaged +from .service_endpoint_policy_definition_paged import ServiceEndpointPolicyDefinitionPaged +from .usage_paged import UsagePaged +from .virtual_network_paged import VirtualNetworkPaged +from .virtual_network_usage_paged import VirtualNetworkUsagePaged +from .subnet_paged import SubnetPaged +from .virtual_network_peering_paged import VirtualNetworkPeeringPaged +from .virtual_network_gateway_paged import VirtualNetworkGatewayPaged +from .virtual_network_gateway_connection_list_entity_paged import VirtualNetworkGatewayConnectionListEntityPaged +from .virtual_network_gateway_connection_paged import VirtualNetworkGatewayConnectionPaged +from .local_network_gateway_paged import LocalNetworkGatewayPaged +from .virtual_network_tap_paged import VirtualNetworkTapPaged +from .virtual_wan_paged import VirtualWANPaged +from .vpn_site_paged import VpnSitePaged +from .virtual_hub_paged import VirtualHubPaged +from .hub_virtual_network_connection_paged import HubVirtualNetworkConnectionPaged +from .vpn_gateway_paged import VpnGatewayPaged +from .vpn_connection_paged import VpnConnectionPaged +from .p2_svpn_server_configuration_paged import P2SVpnServerConfigurationPaged +from .p2_svpn_gateway_paged import P2SVpnGatewayPaged +from .network_management_client_enums import ( + IPAllocationMethod, + SecurityRuleProtocol, + SecurityRuleAccess, + SecurityRuleDirection, + RouteNextHopType, + PublicIPAddressSkuName, + IPVersion, + TransportProtocol, + ApplicationGatewayProtocol, + ApplicationGatewayCookieBasedAffinity, + ApplicationGatewayBackendHealthServerHealth, + ApplicationGatewaySkuName, + ApplicationGatewayTier, + ApplicationGatewaySslProtocol, + ApplicationGatewaySslPolicyType, + ApplicationGatewaySslPolicyName, + ApplicationGatewaySslCipherSuite, + ApplicationGatewayCustomErrorStatusCode, + ApplicationGatewayRequestRoutingRuleType, + ApplicationGatewayRedirectType, + ApplicationGatewayOperationalState, + ApplicationGatewayFirewallMode, + ResourceIdentityType, + ProvisioningState, + AzureFirewallRCActionType, + AzureFirewallApplicationRuleProtocolType, + AzureFirewallNatRCActionType, + AzureFirewallNetworkRuleProtocol, + AuthorizationUseStatus, + ExpressRouteCircuitPeeringAdvertisedPublicPrefixState, + Access, + ExpressRoutePeeringType, + ExpressRoutePeeringState, + CircuitConnectionStatus, + ExpressRouteCircuitPeeringState, + ExpressRouteCircuitSkuTier, + ExpressRouteCircuitSkuFamily, + ServiceProviderProvisioningState, + ExpressRouteLinkConnectorType, + ExpressRouteLinkAdminState, + ExpressRoutePortsEncapsulation, + LoadBalancerSkuName, + LoadDistribution, + ProbeProtocol, + NetworkOperationStatus, + EffectiveSecurityRuleProtocol, + EffectiveRouteSource, + EffectiveRouteState, + AssociationType, + Direction, + IpFlowProtocol, + NextHopType, + PcProtocol, + PcStatus, + PcError, + FlowLogFormatType, + Protocol, + HTTPMethod, + Origin, + Severity, + IssueType, + ConnectionStatus, + ConnectionMonitorSourceStatus, + ConnectionState, + EvaluationState, + VerbosityLevel, + PublicIPPrefixSkuName, + VirtualNetworkPeeringState, + VirtualNetworkGatewayType, + VpnType, + VirtualNetworkGatewaySkuName, + VirtualNetworkGatewaySkuTier, + VpnClientProtocol, + IpsecEncryption, + IpsecIntegrity, + IkeEncryption, + IkeIntegrity, + DhGroup, + PfsGroup, + BgpPeerState, + ProcessorArchitecture, + AuthenticationMethod, + VirtualNetworkGatewayConnectionStatus, + VirtualNetworkGatewayConnectionType, + VirtualNetworkGatewayConnectionProtocol, + OfficeTrafficCategory, + VpnGatewayTunnelingProtocol, + VpnConnectionStatus, + VirtualWanSecurityProviderType, + TunnelConnectionStatus, + HubVirtualNetworkConnectionStatus, +) + +__all__ = [ + 'NetworkInterfaceTapConfiguration', + 'SubResource', + 'ApplicationSecurityGroup', + 'SecurityRule', + 'EndpointService', + 'InterfaceEndpoint', + 'NetworkInterfaceDnsSettings', + 'NetworkInterface', + 'NetworkSecurityGroup', + 'Route', + 'RouteTable', + 'ServiceEndpointPropertiesFormat', + 'ServiceEndpointPolicyDefinition', + 'ServiceEndpointPolicy', + 'PublicIPAddressSku', + 'PublicIPAddressDnsSettings', + 'IpTag', + 'PublicIPAddress', + 'IPConfiguration', + 'IPConfigurationProfile', + 'ResourceNavigationLink', + 'ServiceAssociationLink', + 'Delegation', + 'Subnet', + 'FrontendIPConfiguration', + 'VirtualNetworkTap', + 'BackendAddressPool', + 'InboundNatRule', + 'NetworkInterfaceIPConfiguration', + 'ApplicationGatewayBackendAddress', + 'ApplicationGatewayBackendAddressPool', + 'ApplicationGatewayConnectionDraining', + 'ApplicationGatewayBackendHttpSettings', + 'ApplicationGatewayBackendHealthServer', + 'ApplicationGatewayBackendHealthHttpSettings', + 'ApplicationGatewayBackendHealthPool', + 'ApplicationGatewayBackendHealth', + 'ApplicationGatewaySku', + 'ApplicationGatewaySslPolicy', + 'ApplicationGatewayIPConfiguration', + 'ApplicationGatewayAuthenticationCertificate', + 'ApplicationGatewayTrustedRootCertificate', + 'ApplicationGatewaySslCertificate', + 'ApplicationGatewayFrontendIPConfiguration', + 'ApplicationGatewayFrontendPort', + 'ApplicationGatewayCustomError', + 'ApplicationGatewayHttpListener', + 'ApplicationGatewayPathRule', + 'ApplicationGatewayProbeHealthResponseMatch', + 'ApplicationGatewayProbe', + 'ApplicationGatewayRequestRoutingRule', + 'ApplicationGatewayHeaderConfiguration', + 'ApplicationGatewayRewriteRuleActionSet', + 'ApplicationGatewayRewriteRule', + 'ApplicationGatewayRewriteRuleSet', + 'ApplicationGatewayRedirectConfiguration', + 'ApplicationGatewayUrlPathMap', + 'ApplicationGatewayFirewallDisabledRuleGroup', + 'ApplicationGatewayFirewallExclusion', + 'ApplicationGatewayWebApplicationFirewallConfiguration', + 'ApplicationGatewayAutoscaleConfiguration', + 'ManagedServiceIdentityUserAssignedIdentitiesValue', + 'ManagedServiceIdentity', + 'ApplicationGateway', + 'ApplicationGatewayFirewallRule', + 'ApplicationGatewayFirewallRuleGroup', + 'ApplicationGatewayFirewallRuleSet', + 'ApplicationGatewayAvailableWafRuleSetsResult', + 'ApplicationGatewayAvailableSslOptions', + 'ApplicationGatewaySslPredefinedPolicy', + 'Resource', + 'TagsObject', + 'AvailableDelegation', + 'AzureFirewallIPConfiguration', + 'AzureFirewallRCAction', + 'AzureFirewallApplicationRuleProtocol', + 'AzureFirewallApplicationRule', + 'AzureFirewallApplicationRuleCollection', + 'AzureFirewallNatRCAction', + 'AzureFirewallNatRule', + 'AzureFirewallNatRuleCollection', + 'AzureFirewallNetworkRule', + 'AzureFirewallNetworkRuleCollection', + 'AzureFirewall', + 'AzureFirewallFqdnTag', + 'DnsNameAvailabilityResult', + 'DdosProtectionPlan', + 'EndpointServiceResult', + 'ExpressRouteCircuitAuthorization', + 'ExpressRouteCircuitPeeringConfig', + 'RouteFilterRule', + 'ExpressRouteCircuitStats', + 'ExpressRouteConnectionId', + 'ExpressRouteCircuitConnection', + 'ExpressRouteCircuitPeering', + 'RouteFilter', + 'Ipv6ExpressRouteCircuitPeeringConfig', + 'ExpressRouteCircuitSku', + 'ExpressRouteCircuitServiceProviderProperties', + 'ExpressRouteCircuit', + 'ExpressRouteCircuitArpTable', + 'ExpressRouteCircuitsArpTableListResult', + 'ExpressRouteCircuitRoutesTable', + 'ExpressRouteCircuitsRoutesTableListResult', + 'ExpressRouteCircuitRoutesTableSummary', + 'ExpressRouteCircuitsRoutesTableSummaryListResult', + 'ExpressRouteServiceProviderBandwidthsOffered', + 'ExpressRouteServiceProvider', + 'ExpressRouteCrossConnectionRoutesTableSummary', + 'ExpressRouteCrossConnectionsRoutesTableSummaryListResult', + 'ExpressRouteCircuitReference', + 'ExpressRouteCrossConnectionPeering', + 'ExpressRouteCrossConnection', + 'VirtualHubId', + 'ExpressRouteCircuitPeeringId', + 'ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds', + 'ExpressRouteGatewayPropertiesAutoScaleConfiguration', + 'ExpressRouteConnection', + 'ExpressRouteGateway', + 'ExpressRouteGatewayList', + 'ExpressRouteConnectionList', + 'ExpressRoutePortsLocationBandwidths', + 'ExpressRoutePortsLocation', + 'ExpressRouteLink', + 'ExpressRoutePort', + 'LoadBalancerSku', + 'LoadBalancingRule', + 'Probe', + 'InboundNatPool', + 'OutboundRule', + 'LoadBalancer', + 'ErrorDetails', + 'Error', 'ErrorException', + 'AzureAsyncOperationResult', + 'EffectiveNetworkSecurityGroupAssociation', + 'EffectiveNetworkSecurityRule', + 'EffectiveNetworkSecurityGroup', + 'EffectiveNetworkSecurityGroupListResult', + 'EffectiveRoute', + 'EffectiveRouteListResult', + 'ContainerNetworkInterfaceConfiguration', + 'Container', + 'ContainerNetworkInterfaceIpConfiguration', + 'ContainerNetworkInterface', + 'NetworkProfile', + 'ErrorResponse', 'ErrorResponseException', + 'NetworkWatcher', + 'TopologyParameters', + 'TopologyAssociation', + 'TopologyResource', + 'Topology', + 'VerificationIPFlowParameters', + 'VerificationIPFlowResult', + 'NextHopParameters', + 'NextHopResult', + 'SecurityGroupViewParameters', + 'NetworkInterfaceAssociation', + 'SubnetAssociation', + 'SecurityRuleAssociations', + 'SecurityGroupNetworkInterface', + 'SecurityGroupViewResult', + 'PacketCaptureStorageLocation', + 'PacketCaptureFilter', + 'PacketCaptureParameters', + 'PacketCapture', + 'PacketCaptureResult', + 'PacketCaptureQueryStatusResult', + 'TroubleshootingParameters', + 'QueryTroubleshootingParameters', + 'TroubleshootingRecommendedActions', + 'TroubleshootingDetails', + 'TroubleshootingResult', + 'RetentionPolicyParameters', + 'FlowLogFormatParameters', + 'FlowLogStatusParameters', + 'TrafficAnalyticsConfigurationProperties', + 'TrafficAnalyticsProperties', + 'FlowLogInformation', + 'ConnectivitySource', + 'ConnectivityDestination', + 'HTTPHeader', + 'HTTPConfiguration', + 'ProtocolConfiguration', + 'ConnectivityParameters', + 'ConnectivityIssue', + 'ConnectivityHop', + 'ConnectivityInformation', + 'AzureReachabilityReportLocation', + 'AzureReachabilityReportParameters', + 'AzureReachabilityReportLatencyInfo', + 'AzureReachabilityReportItem', + 'AzureReachabilityReport', + 'AvailableProvidersListParameters', + 'AvailableProvidersListCity', + 'AvailableProvidersListState', + 'AvailableProvidersListCountry', + 'AvailableProvidersList', + 'ConnectionMonitorSource', + 'ConnectionMonitorDestination', + 'ConnectionMonitorParameters', + 'ConnectionMonitor', + 'ConnectionMonitorResult', + 'ConnectionStateSnapshot', + 'ConnectionMonitorQueryResult', + 'NetworkConfigurationDiagnosticProfile', + 'NetworkConfigurationDiagnosticParameters', + 'MatchedRule', + 'NetworkSecurityRulesEvaluationResult', + 'EvaluatedNetworkSecurityGroup', + 'NetworkSecurityGroupResult', + 'NetworkConfigurationDiagnosticResult', + 'NetworkConfigurationDiagnosticResponse', + 'OperationDisplay', + 'Availability', + 'Dimension', + 'MetricSpecification', + 'LogSpecification', + 'OperationPropertiesFormatServiceSpecification', + 'Operation', + 'PublicIPPrefixSku', + 'ReferencedPublicIpAddress', + 'PublicIPPrefix', + 'PatchRouteFilterRule', + 'PatchRouteFilter', + 'BGPCommunity', + 'BgpServiceCommunity', + 'UsageName', + 'Usage', + 'AddressSpace', + 'VirtualNetworkPeering', + 'DhcpOptions', + 'VirtualNetwork', + 'IPAddressAvailabilityResult', + 'VirtualNetworkUsageName', + 'VirtualNetworkUsage', + 'VirtualNetworkGatewayIPConfiguration', + 'VirtualNetworkGatewaySku', + 'VpnClientRootCertificate', + 'VpnClientRevokedCertificate', + 'IpsecPolicy', + 'VpnClientConfiguration', + 'BgpSettings', + 'BgpPeerStatus', + 'GatewayRoute', + 'VirtualNetworkGateway', + 'VpnClientParameters', + 'BgpPeerStatusListResult', + 'GatewayRouteListResult', + 'TunnelConnectionHealth', + 'LocalNetworkGateway', + 'VirtualNetworkGatewayConnection', + 'ConnectionResetSharedKey', + 'ConnectionSharedKey', + 'VpnClientIPsecParameters', + 'VirtualNetworkConnectionGatewayReference', + 'VirtualNetworkGatewayConnectionListEntity', + 'VpnDeviceScriptParameters', + 'P2SVpnServerConfigVpnClientRootCertificate', + 'P2SVpnServerConfigVpnClientRevokedCertificate', + 'P2SVpnServerConfigRadiusServerRootCertificate', + 'P2SVpnServerConfigRadiusClientRootCertificate', + 'P2SVpnServerConfiguration', + 'VirtualWAN', + 'DeviceProperties', + 'VpnSite', + 'GetVpnSitesConfigurationRequest', + 'HubVirtualNetworkConnection', + 'VirtualHubRoute', + 'VirtualHubRouteTable', + 'VirtualHub', + 'VpnConnection', + 'VpnGateway', + 'VpnSiteId', + 'VirtualWanSecurityProvider', + 'VirtualWanSecurityProviders', + 'VpnClientConnectionHealth', + 'P2SVpnGateway', + 'P2SVpnProfileParameters', + 'VpnProfileResponse', + 'ApplicationGatewayPaged', + 'ApplicationGatewaySslPredefinedPolicyPaged', + 'ApplicationSecurityGroupPaged', + 'AvailableDelegationPaged', + 'AzureFirewallPaged', + 'AzureFirewallFqdnTagPaged', + 'DdosProtectionPlanPaged', + 'EndpointServiceResultPaged', + 'ExpressRouteCircuitAuthorizationPaged', + 'ExpressRouteCircuitPeeringPaged', + 'ExpressRouteCircuitConnectionPaged', + 'ExpressRouteCircuitPaged', + 'ExpressRouteServiceProviderPaged', + 'ExpressRouteCrossConnectionPaged', + 'ExpressRouteCrossConnectionPeeringPaged', + 'ExpressRoutePortsLocationPaged', + 'ExpressRoutePortPaged', + 'ExpressRouteLinkPaged', + 'InterfaceEndpointPaged', + 'LoadBalancerPaged', + 'BackendAddressPoolPaged', + 'FrontendIPConfigurationPaged', + 'InboundNatRulePaged', + 'LoadBalancingRulePaged', + 'OutboundRulePaged', + 'NetworkInterfacePaged', + 'ProbePaged', + 'NetworkInterfaceIPConfigurationPaged', + 'NetworkInterfaceTapConfigurationPaged', + 'NetworkProfilePaged', + 'NetworkSecurityGroupPaged', + 'SecurityRulePaged', + 'NetworkWatcherPaged', + 'PacketCaptureResultPaged', + 'ConnectionMonitorResultPaged', + 'OperationPaged', + 'PublicIPAddressPaged', + 'PublicIPPrefixPaged', + 'RouteFilterPaged', + 'RouteFilterRulePaged', + 'RouteTablePaged', + 'RoutePaged', + 'BgpServiceCommunityPaged', + 'ServiceEndpointPolicyPaged', + 'ServiceEndpointPolicyDefinitionPaged', + 'UsagePaged', + 'VirtualNetworkPaged', + 'VirtualNetworkUsagePaged', + 'SubnetPaged', + 'VirtualNetworkPeeringPaged', + 'VirtualNetworkGatewayPaged', + 'VirtualNetworkGatewayConnectionListEntityPaged', + 'VirtualNetworkGatewayConnectionPaged', + 'LocalNetworkGatewayPaged', + 'VirtualNetworkTapPaged', + 'VirtualWANPaged', + 'VpnSitePaged', + 'VirtualHubPaged', + 'HubVirtualNetworkConnectionPaged', + 'VpnGatewayPaged', + 'VpnConnectionPaged', + 'P2SVpnServerConfigurationPaged', + 'P2SVpnGatewayPaged', + 'IPAllocationMethod', + 'SecurityRuleProtocol', + 'SecurityRuleAccess', + 'SecurityRuleDirection', + 'RouteNextHopType', + 'PublicIPAddressSkuName', + 'IPVersion', + 'TransportProtocol', + 'ApplicationGatewayProtocol', + 'ApplicationGatewayCookieBasedAffinity', + 'ApplicationGatewayBackendHealthServerHealth', + 'ApplicationGatewaySkuName', + 'ApplicationGatewayTier', + 'ApplicationGatewaySslProtocol', + 'ApplicationGatewaySslPolicyType', + 'ApplicationGatewaySslPolicyName', + 'ApplicationGatewaySslCipherSuite', + 'ApplicationGatewayCustomErrorStatusCode', + 'ApplicationGatewayRequestRoutingRuleType', + 'ApplicationGatewayRedirectType', + 'ApplicationGatewayOperationalState', + 'ApplicationGatewayFirewallMode', + 'ResourceIdentityType', + 'ProvisioningState', + 'AzureFirewallRCActionType', + 'AzureFirewallApplicationRuleProtocolType', + 'AzureFirewallNatRCActionType', + 'AzureFirewallNetworkRuleProtocol', + 'AuthorizationUseStatus', + 'ExpressRouteCircuitPeeringAdvertisedPublicPrefixState', + 'Access', + 'ExpressRoutePeeringType', + 'ExpressRoutePeeringState', + 'CircuitConnectionStatus', + 'ExpressRouteCircuitPeeringState', + 'ExpressRouteCircuitSkuTier', + 'ExpressRouteCircuitSkuFamily', + 'ServiceProviderProvisioningState', + 'ExpressRouteLinkConnectorType', + 'ExpressRouteLinkAdminState', + 'ExpressRoutePortsEncapsulation', + 'LoadBalancerSkuName', + 'LoadDistribution', + 'ProbeProtocol', + 'NetworkOperationStatus', + 'EffectiveSecurityRuleProtocol', + 'EffectiveRouteSource', + 'EffectiveRouteState', + 'AssociationType', + 'Direction', + 'IpFlowProtocol', + 'NextHopType', + 'PcProtocol', + 'PcStatus', + 'PcError', + 'FlowLogFormatType', + 'Protocol', + 'HTTPMethod', + 'Origin', + 'Severity', + 'IssueType', + 'ConnectionStatus', + 'ConnectionMonitorSourceStatus', + 'ConnectionState', + 'EvaluationState', + 'VerbosityLevel', + 'PublicIPPrefixSkuName', + 'VirtualNetworkPeeringState', + 'VirtualNetworkGatewayType', + 'VpnType', + 'VirtualNetworkGatewaySkuName', + 'VirtualNetworkGatewaySkuTier', + 'VpnClientProtocol', + 'IpsecEncryption', + 'IpsecIntegrity', + 'IkeEncryption', + 'IkeIntegrity', + 'DhGroup', + 'PfsGroup', + 'BgpPeerState', + 'ProcessorArchitecture', + 'AuthenticationMethod', + 'VirtualNetworkGatewayConnectionStatus', + 'VirtualNetworkGatewayConnectionType', + 'VirtualNetworkGatewayConnectionProtocol', + 'OfficeTrafficCategory', + 'VpnGatewayTunnelingProtocol', + 'VpnConnectionStatus', + 'VirtualWanSecurityProviderType', + 'TunnelConnectionStatus', + 'HubVirtualNetworkConnectionStatus', +] diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/address_space.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/address_space.py new file mode 100644 index 000000000000..fbf42c9e0ade --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/address_space.py @@ -0,0 +1,30 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AddressSpace(Model): + """AddressSpace contains an array of IP address ranges that can be used by + subnets of the virtual network. + + :param address_prefixes: A list of address blocks reserved for this + virtual network in CIDR notation. + :type address_prefixes: list[str] + """ + + _attribute_map = { + 'address_prefixes': {'key': 'addressPrefixes', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(AddressSpace, self).__init__(**kwargs) + self.address_prefixes = kwargs.get('address_prefixes', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/address_space_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/address_space_py3.py new file mode 100644 index 000000000000..9794cc805efa --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/address_space_py3.py @@ -0,0 +1,30 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AddressSpace(Model): + """AddressSpace contains an array of IP address ranges that can be used by + subnets of the virtual network. + + :param address_prefixes: A list of address blocks reserved for this + virtual network in CIDR notation. + :type address_prefixes: list[str] + """ + + _attribute_map = { + 'address_prefixes': {'key': 'addressPrefixes', 'type': '[str]'}, + } + + def __init__(self, *, address_prefixes=None, **kwargs) -> None: + super(AddressSpace, self).__init__(**kwargs) + self.address_prefixes = address_prefixes diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway.py new file mode 100644 index 000000000000..dae47e4009a5 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway.py @@ -0,0 +1,196 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource import Resource + + +class ApplicationGateway(Resource): + """Application gateway resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param sku: SKU of the application gateway resource. + :type sku: ~azure.mgmt.network.v2018_10_01.models.ApplicationGatewaySku + :param ssl_policy: SSL policy of the application gateway resource. + :type ssl_policy: + ~azure.mgmt.network.v2018_10_01.models.ApplicationGatewaySslPolicy + :ivar operational_state: Operational state of the application gateway + resource. Possible values include: 'Stopped', 'Starting', 'Running', + 'Stopping' + :vartype operational_state: str or + ~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayOperationalState + :param gateway_ip_configurations: Subnets of application the gateway + resource. + :type gateway_ip_configurations: + list[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayIPConfiguration] + :param authentication_certificates: Authentication certificates of the + application gateway resource. + :type authentication_certificates: + list[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayAuthenticationCertificate] + :param trusted_root_certificates: Trusted Root certificates of the + application gateway resource. + :type trusted_root_certificates: + list[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayTrustedRootCertificate] + :param ssl_certificates: SSL certificates of the application gateway + resource. + :type ssl_certificates: + list[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewaySslCertificate] + :param frontend_ip_configurations: Frontend IP addresses of the + application gateway resource. + :type frontend_ip_configurations: + list[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayFrontendIPConfiguration] + :param frontend_ports: Frontend ports of the application gateway resource. + :type frontend_ports: + list[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayFrontendPort] + :param probes: Probes of the application gateway resource. + :type probes: + list[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayProbe] + :param backend_address_pools: Backend address pool of the application + gateway resource. + :type backend_address_pools: + list[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayBackendAddressPool] + :param backend_http_settings_collection: Backend http settings of the + application gateway resource. + :type backend_http_settings_collection: + list[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayBackendHttpSettings] + :param http_listeners: Http listeners of the application gateway resource. + :type http_listeners: + list[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayHttpListener] + :param url_path_maps: URL path map of the application gateway resource. + :type url_path_maps: + list[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayUrlPathMap] + :param request_routing_rules: Request routing rules of the application + gateway resource. + :type request_routing_rules: + list[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayRequestRoutingRule] + :param rewrite_rule_sets: Rewrite rules for the application gateway + resource. + :type rewrite_rule_sets: + list[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayRewriteRuleSet] + :param redirect_configurations: Redirect configurations of the application + gateway resource. + :type redirect_configurations: + list[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayRedirectConfiguration] + :param web_application_firewall_configuration: Web application firewall + configuration. + :type web_application_firewall_configuration: + ~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayWebApplicationFirewallConfiguration + :param enable_http2: Whether HTTP2 is enabled on the application gateway + resource. + :type enable_http2: bool + :param enable_fips: Whether FIPS is enabled on the application gateway + resource. + :type enable_fips: bool + :param autoscale_configuration: Autoscale Configuration. + :type autoscale_configuration: + ~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayAutoscaleConfiguration + :param resource_guid: Resource GUID property of the application gateway + resource. + :type resource_guid: str + :param provisioning_state: Provisioning state of the application gateway + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param custom_error_configurations: Custom error configurations of the + application gateway resource. + :type custom_error_configurations: + list[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayCustomError] + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + :param zones: A list of availability zones denoting where the resource + needs to come from. + :type zones: list[str] + :param identity: The identity of the application gateway, if configured. + :type identity: + ~azure.mgmt.network.v2018_10_01.models.ManagedServiceIdentity + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'operational_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'sku': {'key': 'properties.sku', 'type': 'ApplicationGatewaySku'}, + 'ssl_policy': {'key': 'properties.sslPolicy', 'type': 'ApplicationGatewaySslPolicy'}, + 'operational_state': {'key': 'properties.operationalState', 'type': 'str'}, + 'gateway_ip_configurations': {'key': 'properties.gatewayIPConfigurations', 'type': '[ApplicationGatewayIPConfiguration]'}, + 'authentication_certificates': {'key': 'properties.authenticationCertificates', 'type': '[ApplicationGatewayAuthenticationCertificate]'}, + 'trusted_root_certificates': {'key': 'properties.trustedRootCertificates', 'type': '[ApplicationGatewayTrustedRootCertificate]'}, + 'ssl_certificates': {'key': 'properties.sslCertificates', 'type': '[ApplicationGatewaySslCertificate]'}, + 'frontend_ip_configurations': {'key': 'properties.frontendIPConfigurations', 'type': '[ApplicationGatewayFrontendIPConfiguration]'}, + 'frontend_ports': {'key': 'properties.frontendPorts', 'type': '[ApplicationGatewayFrontendPort]'}, + 'probes': {'key': 'properties.probes', 'type': '[ApplicationGatewayProbe]'}, + 'backend_address_pools': {'key': 'properties.backendAddressPools', 'type': '[ApplicationGatewayBackendAddressPool]'}, + 'backend_http_settings_collection': {'key': 'properties.backendHttpSettingsCollection', 'type': '[ApplicationGatewayBackendHttpSettings]'}, + 'http_listeners': {'key': 'properties.httpListeners', 'type': '[ApplicationGatewayHttpListener]'}, + 'url_path_maps': {'key': 'properties.urlPathMaps', 'type': '[ApplicationGatewayUrlPathMap]'}, + 'request_routing_rules': {'key': 'properties.requestRoutingRules', 'type': '[ApplicationGatewayRequestRoutingRule]'}, + 'rewrite_rule_sets': {'key': 'properties.rewriteRuleSets', 'type': '[ApplicationGatewayRewriteRuleSet]'}, + 'redirect_configurations': {'key': 'properties.redirectConfigurations', 'type': '[ApplicationGatewayRedirectConfiguration]'}, + 'web_application_firewall_configuration': {'key': 'properties.webApplicationFirewallConfiguration', 'type': 'ApplicationGatewayWebApplicationFirewallConfiguration'}, + 'enable_http2': {'key': 'properties.enableHttp2', 'type': 'bool'}, + 'enable_fips': {'key': 'properties.enableFips', 'type': 'bool'}, + 'autoscale_configuration': {'key': 'properties.autoscaleConfiguration', 'type': 'ApplicationGatewayAutoscaleConfiguration'}, + 'resource_guid': {'key': 'properties.resourceGuid', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'custom_error_configurations': {'key': 'properties.customErrorConfigurations', 'type': '[ApplicationGatewayCustomError]'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'zones': {'key': 'zones', 'type': '[str]'}, + 'identity': {'key': 'identity', 'type': 'ManagedServiceIdentity'}, + } + + def __init__(self, **kwargs): + super(ApplicationGateway, self).__init__(**kwargs) + self.sku = kwargs.get('sku', None) + self.ssl_policy = kwargs.get('ssl_policy', None) + self.operational_state = None + self.gateway_ip_configurations = kwargs.get('gateway_ip_configurations', None) + self.authentication_certificates = kwargs.get('authentication_certificates', None) + self.trusted_root_certificates = kwargs.get('trusted_root_certificates', None) + self.ssl_certificates = kwargs.get('ssl_certificates', None) + self.frontend_ip_configurations = kwargs.get('frontend_ip_configurations', None) + self.frontend_ports = kwargs.get('frontend_ports', None) + self.probes = kwargs.get('probes', None) + self.backend_address_pools = kwargs.get('backend_address_pools', None) + self.backend_http_settings_collection = kwargs.get('backend_http_settings_collection', None) + self.http_listeners = kwargs.get('http_listeners', None) + self.url_path_maps = kwargs.get('url_path_maps', None) + self.request_routing_rules = kwargs.get('request_routing_rules', None) + self.rewrite_rule_sets = kwargs.get('rewrite_rule_sets', None) + self.redirect_configurations = kwargs.get('redirect_configurations', None) + self.web_application_firewall_configuration = kwargs.get('web_application_firewall_configuration', None) + self.enable_http2 = kwargs.get('enable_http2', None) + self.enable_fips = kwargs.get('enable_fips', None) + self.autoscale_configuration = kwargs.get('autoscale_configuration', None) + self.resource_guid = kwargs.get('resource_guid', None) + self.provisioning_state = kwargs.get('provisioning_state', None) + self.custom_error_configurations = kwargs.get('custom_error_configurations', None) + self.etag = kwargs.get('etag', None) + self.zones = kwargs.get('zones', None) + self.identity = kwargs.get('identity', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_authentication_certificate.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_authentication_certificate.py new file mode 100644 index 000000000000..3b766e657c6b --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_authentication_certificate.py @@ -0,0 +1,51 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource import SubResource + + +class ApplicationGatewayAuthenticationCertificate(SubResource): + """Authentication certificates of an application gateway. + + :param id: Resource ID. + :type id: str + :param data: Certificate public data. + :type data: str + :param provisioning_state: Provisioning state of the authentication + certificate resource. Possible values are: 'Updating', 'Deleting', and + 'Failed'. + :type provisioning_state: str + :param name: Name of the authentication certificate that is unique within + an Application Gateway. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + :param type: Type of the resource. + :type type: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'data': {'key': 'properties.data', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ApplicationGatewayAuthenticationCertificate, self).__init__(**kwargs) + self.data = kwargs.get('data', None) + self.provisioning_state = kwargs.get('provisioning_state', None) + self.name = kwargs.get('name', None) + self.etag = kwargs.get('etag', None) + self.type = kwargs.get('type', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_authentication_certificate_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_authentication_certificate_py3.py new file mode 100644 index 000000000000..d0c7f378884b --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_authentication_certificate_py3.py @@ -0,0 +1,51 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource_py3 import SubResource + + +class ApplicationGatewayAuthenticationCertificate(SubResource): + """Authentication certificates of an application gateway. + + :param id: Resource ID. + :type id: str + :param data: Certificate public data. + :type data: str + :param provisioning_state: Provisioning state of the authentication + certificate resource. Possible values are: 'Updating', 'Deleting', and + 'Failed'. + :type provisioning_state: str + :param name: Name of the authentication certificate that is unique within + an Application Gateway. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + :param type: Type of the resource. + :type type: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'data': {'key': 'properties.data', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, data: str=None, provisioning_state: str=None, name: str=None, etag: str=None, type: str=None, **kwargs) -> None: + super(ApplicationGatewayAuthenticationCertificate, self).__init__(id=id, **kwargs) + self.data = data + self.provisioning_state = provisioning_state + self.name = name + self.etag = etag + self.type = type diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_autoscale_configuration.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_autoscale_configuration.py new file mode 100644 index 000000000000..ae12d7fb1ad6 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_autoscale_configuration.py @@ -0,0 +1,35 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ApplicationGatewayAutoscaleConfiguration(Model): + """Application Gateway autoscale configuration. + + All required parameters must be populated in order to send to Azure. + + :param min_capacity: Required. Lower bound on number of Application + Gateway instances + :type min_capacity: int + """ + + _validation = { + 'min_capacity': {'required': True, 'minimum': 2}, + } + + _attribute_map = { + 'min_capacity': {'key': 'minCapacity', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(ApplicationGatewayAutoscaleConfiguration, self).__init__(**kwargs) + self.min_capacity = kwargs.get('min_capacity', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_autoscale_configuration_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_autoscale_configuration_py3.py new file mode 100644 index 000000000000..b5408acfde22 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_autoscale_configuration_py3.py @@ -0,0 +1,35 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ApplicationGatewayAutoscaleConfiguration(Model): + """Application Gateway autoscale configuration. + + All required parameters must be populated in order to send to Azure. + + :param min_capacity: Required. Lower bound on number of Application + Gateway instances + :type min_capacity: int + """ + + _validation = { + 'min_capacity': {'required': True, 'minimum': 2}, + } + + _attribute_map = { + 'min_capacity': {'key': 'minCapacity', 'type': 'int'}, + } + + def __init__(self, *, min_capacity: int, **kwargs) -> None: + super(ApplicationGatewayAutoscaleConfiguration, self).__init__(**kwargs) + self.min_capacity = min_capacity diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_available_ssl_options.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_available_ssl_options.py new file mode 100644 index 000000000000..9e1d2f87d101 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_available_ssl_options.py @@ -0,0 +1,70 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource import Resource + + +class ApplicationGatewayAvailableSslOptions(Resource): + """Response for ApplicationGatewayAvailableSslOptions API service call. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param predefined_policies: List of available Ssl predefined policy. + :type predefined_policies: + list[~azure.mgmt.network.v2018_10_01.models.SubResource] + :param default_policy: Name of the Ssl predefined policy applied by + default to application gateway. Possible values include: + 'AppGwSslPolicy20150501', 'AppGwSslPolicy20170401', + 'AppGwSslPolicy20170401S' + :type default_policy: str or + ~azure.mgmt.network.v2018_10_01.models.ApplicationGatewaySslPolicyName + :param available_cipher_suites: List of available Ssl cipher suites. + :type available_cipher_suites: list[str or + ~azure.mgmt.network.v2018_10_01.models.ApplicationGatewaySslCipherSuite] + :param available_protocols: List of available Ssl protocols. + :type available_protocols: list[str or + ~azure.mgmt.network.v2018_10_01.models.ApplicationGatewaySslProtocol] + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'predefined_policies': {'key': 'properties.predefinedPolicies', 'type': '[SubResource]'}, + 'default_policy': {'key': 'properties.defaultPolicy', 'type': 'str'}, + 'available_cipher_suites': {'key': 'properties.availableCipherSuites', 'type': '[str]'}, + 'available_protocols': {'key': 'properties.availableProtocols', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(ApplicationGatewayAvailableSslOptions, self).__init__(**kwargs) + self.predefined_policies = kwargs.get('predefined_policies', None) + self.default_policy = kwargs.get('default_policy', None) + self.available_cipher_suites = kwargs.get('available_cipher_suites', None) + self.available_protocols = kwargs.get('available_protocols', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_available_ssl_options_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_available_ssl_options_py3.py new file mode 100644 index 000000000000..060735b2a2de --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_available_ssl_options_py3.py @@ -0,0 +1,70 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource_py3 import Resource + + +class ApplicationGatewayAvailableSslOptions(Resource): + """Response for ApplicationGatewayAvailableSslOptions API service call. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param predefined_policies: List of available Ssl predefined policy. + :type predefined_policies: + list[~azure.mgmt.network.v2018_10_01.models.SubResource] + :param default_policy: Name of the Ssl predefined policy applied by + default to application gateway. Possible values include: + 'AppGwSslPolicy20150501', 'AppGwSslPolicy20170401', + 'AppGwSslPolicy20170401S' + :type default_policy: str or + ~azure.mgmt.network.v2018_10_01.models.ApplicationGatewaySslPolicyName + :param available_cipher_suites: List of available Ssl cipher suites. + :type available_cipher_suites: list[str or + ~azure.mgmt.network.v2018_10_01.models.ApplicationGatewaySslCipherSuite] + :param available_protocols: List of available Ssl protocols. + :type available_protocols: list[str or + ~azure.mgmt.network.v2018_10_01.models.ApplicationGatewaySslProtocol] + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'predefined_policies': {'key': 'properties.predefinedPolicies', 'type': '[SubResource]'}, + 'default_policy': {'key': 'properties.defaultPolicy', 'type': 'str'}, + 'available_cipher_suites': {'key': 'properties.availableCipherSuites', 'type': '[str]'}, + 'available_protocols': {'key': 'properties.availableProtocols', 'type': '[str]'}, + } + + def __init__(self, *, id: str=None, location: str=None, tags=None, predefined_policies=None, default_policy=None, available_cipher_suites=None, available_protocols=None, **kwargs) -> None: + super(ApplicationGatewayAvailableSslOptions, self).__init__(id=id, location=location, tags=tags, **kwargs) + self.predefined_policies = predefined_policies + self.default_policy = default_policy + self.available_cipher_suites = available_cipher_suites + self.available_protocols = available_protocols diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_available_waf_rule_sets_result.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_available_waf_rule_sets_result.py new file mode 100644 index 000000000000..f2f9f9a0aeef --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_available_waf_rule_sets_result.py @@ -0,0 +1,29 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ApplicationGatewayAvailableWafRuleSetsResult(Model): + """Response for ApplicationGatewayAvailableWafRuleSets API service call. + + :param value: The list of application gateway rule sets. + :type value: + list[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayFirewallRuleSet] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ApplicationGatewayFirewallRuleSet]'}, + } + + def __init__(self, **kwargs): + super(ApplicationGatewayAvailableWafRuleSetsResult, self).__init__(**kwargs) + self.value = kwargs.get('value', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_available_waf_rule_sets_result_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_available_waf_rule_sets_result_py3.py new file mode 100644 index 000000000000..1615b66ae725 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_available_waf_rule_sets_result_py3.py @@ -0,0 +1,29 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ApplicationGatewayAvailableWafRuleSetsResult(Model): + """Response for ApplicationGatewayAvailableWafRuleSets API service call. + + :param value: The list of application gateway rule sets. + :type value: + list[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayFirewallRuleSet] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ApplicationGatewayFirewallRuleSet]'}, + } + + def __init__(self, *, value=None, **kwargs) -> None: + super(ApplicationGatewayAvailableWafRuleSetsResult, self).__init__(**kwargs) + self.value = value diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_backend_address.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_backend_address.py new file mode 100644 index 000000000000..e7a61fe1705c --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_backend_address.py @@ -0,0 +1,32 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ApplicationGatewayBackendAddress(Model): + """Backend address of an application gateway. + + :param fqdn: Fully qualified domain name (FQDN). + :type fqdn: str + :param ip_address: IP address + :type ip_address: str + """ + + _attribute_map = { + 'fqdn': {'key': 'fqdn', 'type': 'str'}, + 'ip_address': {'key': 'ipAddress', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ApplicationGatewayBackendAddress, self).__init__(**kwargs) + self.fqdn = kwargs.get('fqdn', None) + self.ip_address = kwargs.get('ip_address', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_backend_address_pool.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_backend_address_pool.py new file mode 100644 index 000000000000..027a6916ab69 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_backend_address_pool.py @@ -0,0 +1,57 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource import SubResource + + +class ApplicationGatewayBackendAddressPool(SubResource): + """Backend Address Pool of an application gateway. + + :param id: Resource ID. + :type id: str + :param backend_ip_configurations: Collection of references to IPs defined + in network interfaces. + :type backend_ip_configurations: + list[~azure.mgmt.network.v2018_10_01.models.NetworkInterfaceIPConfiguration] + :param backend_addresses: Backend addresses + :type backend_addresses: + list[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayBackendAddress] + :param provisioning_state: Provisioning state of the backend address pool + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param name: Name of the backend address pool that is unique within an + Application Gateway. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + :param type: Type of the resource. + :type type: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'backend_ip_configurations': {'key': 'properties.backendIPConfigurations', 'type': '[NetworkInterfaceIPConfiguration]'}, + 'backend_addresses': {'key': 'properties.backendAddresses', 'type': '[ApplicationGatewayBackendAddress]'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ApplicationGatewayBackendAddressPool, self).__init__(**kwargs) + self.backend_ip_configurations = kwargs.get('backend_ip_configurations', None) + self.backend_addresses = kwargs.get('backend_addresses', None) + self.provisioning_state = kwargs.get('provisioning_state', None) + self.name = kwargs.get('name', None) + self.etag = kwargs.get('etag', None) + self.type = kwargs.get('type', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_backend_address_pool_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_backend_address_pool_py3.py new file mode 100644 index 000000000000..e0a59df19c49 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_backend_address_pool_py3.py @@ -0,0 +1,57 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource_py3 import SubResource + + +class ApplicationGatewayBackendAddressPool(SubResource): + """Backend Address Pool of an application gateway. + + :param id: Resource ID. + :type id: str + :param backend_ip_configurations: Collection of references to IPs defined + in network interfaces. + :type backend_ip_configurations: + list[~azure.mgmt.network.v2018_10_01.models.NetworkInterfaceIPConfiguration] + :param backend_addresses: Backend addresses + :type backend_addresses: + list[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayBackendAddress] + :param provisioning_state: Provisioning state of the backend address pool + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param name: Name of the backend address pool that is unique within an + Application Gateway. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + :param type: Type of the resource. + :type type: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'backend_ip_configurations': {'key': 'properties.backendIPConfigurations', 'type': '[NetworkInterfaceIPConfiguration]'}, + 'backend_addresses': {'key': 'properties.backendAddresses', 'type': '[ApplicationGatewayBackendAddress]'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, backend_ip_configurations=None, backend_addresses=None, provisioning_state: str=None, name: str=None, etag: str=None, type: str=None, **kwargs) -> None: + super(ApplicationGatewayBackendAddressPool, self).__init__(id=id, **kwargs) + self.backend_ip_configurations = backend_ip_configurations + self.backend_addresses = backend_addresses + self.provisioning_state = provisioning_state + self.name = name + self.etag = etag + self.type = type diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_backend_address_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_backend_address_py3.py new file mode 100644 index 000000000000..d18e476244d8 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_backend_address_py3.py @@ -0,0 +1,32 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ApplicationGatewayBackendAddress(Model): + """Backend address of an application gateway. + + :param fqdn: Fully qualified domain name (FQDN). + :type fqdn: str + :param ip_address: IP address + :type ip_address: str + """ + + _attribute_map = { + 'fqdn': {'key': 'fqdn', 'type': 'str'}, + 'ip_address': {'key': 'ipAddress', 'type': 'str'}, + } + + def __init__(self, *, fqdn: str=None, ip_address: str=None, **kwargs) -> None: + super(ApplicationGatewayBackendAddress, self).__init__(**kwargs) + self.fqdn = fqdn + self.ip_address = ip_address diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_backend_health.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_backend_health.py new file mode 100644 index 000000000000..50d4a2304693 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_backend_health.py @@ -0,0 +1,29 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ApplicationGatewayBackendHealth(Model): + """List of ApplicationGatewayBackendHealthPool resources. + + :param backend_address_pools: + :type backend_address_pools: + list[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayBackendHealthPool] + """ + + _attribute_map = { + 'backend_address_pools': {'key': 'backendAddressPools', 'type': '[ApplicationGatewayBackendHealthPool]'}, + } + + def __init__(self, **kwargs): + super(ApplicationGatewayBackendHealth, self).__init__(**kwargs) + self.backend_address_pools = kwargs.get('backend_address_pools', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_backend_health_http_settings.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_backend_health_http_settings.py new file mode 100644 index 000000000000..464c2d12b333 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_backend_health_http_settings.py @@ -0,0 +1,35 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ApplicationGatewayBackendHealthHttpSettings(Model): + """Application gateway BackendHealthHttp settings. + + :param backend_http_settings: Reference of an + ApplicationGatewayBackendHttpSettings resource. + :type backend_http_settings: + ~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayBackendHttpSettings + :param servers: List of ApplicationGatewayBackendHealthServer resources. + :type servers: + list[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayBackendHealthServer] + """ + + _attribute_map = { + 'backend_http_settings': {'key': 'backendHttpSettings', 'type': 'ApplicationGatewayBackendHttpSettings'}, + 'servers': {'key': 'servers', 'type': '[ApplicationGatewayBackendHealthServer]'}, + } + + def __init__(self, **kwargs): + super(ApplicationGatewayBackendHealthHttpSettings, self).__init__(**kwargs) + self.backend_http_settings = kwargs.get('backend_http_settings', None) + self.servers = kwargs.get('servers', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_backend_health_http_settings_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_backend_health_http_settings_py3.py new file mode 100644 index 000000000000..e115685ae606 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_backend_health_http_settings_py3.py @@ -0,0 +1,35 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ApplicationGatewayBackendHealthHttpSettings(Model): + """Application gateway BackendHealthHttp settings. + + :param backend_http_settings: Reference of an + ApplicationGatewayBackendHttpSettings resource. + :type backend_http_settings: + ~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayBackendHttpSettings + :param servers: List of ApplicationGatewayBackendHealthServer resources. + :type servers: + list[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayBackendHealthServer] + """ + + _attribute_map = { + 'backend_http_settings': {'key': 'backendHttpSettings', 'type': 'ApplicationGatewayBackendHttpSettings'}, + 'servers': {'key': 'servers', 'type': '[ApplicationGatewayBackendHealthServer]'}, + } + + def __init__(self, *, backend_http_settings=None, servers=None, **kwargs) -> None: + super(ApplicationGatewayBackendHealthHttpSettings, self).__init__(**kwargs) + self.backend_http_settings = backend_http_settings + self.servers = servers diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_backend_health_pool.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_backend_health_pool.py new file mode 100644 index 000000000000..95574401c770 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_backend_health_pool.py @@ -0,0 +1,36 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ApplicationGatewayBackendHealthPool(Model): + """Application gateway BackendHealth pool. + + :param backend_address_pool: Reference of an + ApplicationGatewayBackendAddressPool resource. + :type backend_address_pool: + ~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayBackendAddressPool + :param backend_http_settings_collection: List of + ApplicationGatewayBackendHealthHttpSettings resources. + :type backend_http_settings_collection: + list[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayBackendHealthHttpSettings] + """ + + _attribute_map = { + 'backend_address_pool': {'key': 'backendAddressPool', 'type': 'ApplicationGatewayBackendAddressPool'}, + 'backend_http_settings_collection': {'key': 'backendHttpSettingsCollection', 'type': '[ApplicationGatewayBackendHealthHttpSettings]'}, + } + + def __init__(self, **kwargs): + super(ApplicationGatewayBackendHealthPool, self).__init__(**kwargs) + self.backend_address_pool = kwargs.get('backend_address_pool', None) + self.backend_http_settings_collection = kwargs.get('backend_http_settings_collection', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_backend_health_pool_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_backend_health_pool_py3.py new file mode 100644 index 000000000000..b44a28a102d6 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_backend_health_pool_py3.py @@ -0,0 +1,36 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ApplicationGatewayBackendHealthPool(Model): + """Application gateway BackendHealth pool. + + :param backend_address_pool: Reference of an + ApplicationGatewayBackendAddressPool resource. + :type backend_address_pool: + ~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayBackendAddressPool + :param backend_http_settings_collection: List of + ApplicationGatewayBackendHealthHttpSettings resources. + :type backend_http_settings_collection: + list[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayBackendHealthHttpSettings] + """ + + _attribute_map = { + 'backend_address_pool': {'key': 'backendAddressPool', 'type': 'ApplicationGatewayBackendAddressPool'}, + 'backend_http_settings_collection': {'key': 'backendHttpSettingsCollection', 'type': '[ApplicationGatewayBackendHealthHttpSettings]'}, + } + + def __init__(self, *, backend_address_pool=None, backend_http_settings_collection=None, **kwargs) -> None: + super(ApplicationGatewayBackendHealthPool, self).__init__(**kwargs) + self.backend_address_pool = backend_address_pool + self.backend_http_settings_collection = backend_http_settings_collection diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_backend_health_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_backend_health_py3.py new file mode 100644 index 000000000000..ceccd0aa339b --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_backend_health_py3.py @@ -0,0 +1,29 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ApplicationGatewayBackendHealth(Model): + """List of ApplicationGatewayBackendHealthPool resources. + + :param backend_address_pools: + :type backend_address_pools: + list[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayBackendHealthPool] + """ + + _attribute_map = { + 'backend_address_pools': {'key': 'backendAddressPools', 'type': '[ApplicationGatewayBackendHealthPool]'}, + } + + def __init__(self, *, backend_address_pools=None, **kwargs) -> None: + super(ApplicationGatewayBackendHealth, self).__init__(**kwargs) + self.backend_address_pools = backend_address_pools diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_backend_health_server.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_backend_health_server.py new file mode 100644 index 000000000000..921e5754d8fe --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_backend_health_server.py @@ -0,0 +1,39 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ApplicationGatewayBackendHealthServer(Model): + """Application gateway backendhealth http settings. + + :param address: IP address or FQDN of backend server. + :type address: str + :param ip_configuration: Reference of IP configuration of backend server. + :type ip_configuration: + ~azure.mgmt.network.v2018_10_01.models.NetworkInterfaceIPConfiguration + :param health: Health of backend server. Possible values include: + 'Unknown', 'Up', 'Down', 'Partial', 'Draining' + :type health: str or + ~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayBackendHealthServerHealth + """ + + _attribute_map = { + 'address': {'key': 'address', 'type': 'str'}, + 'ip_configuration': {'key': 'ipConfiguration', 'type': 'NetworkInterfaceIPConfiguration'}, + 'health': {'key': 'health', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ApplicationGatewayBackendHealthServer, self).__init__(**kwargs) + self.address = kwargs.get('address', None) + self.ip_configuration = kwargs.get('ip_configuration', None) + self.health = kwargs.get('health', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_backend_health_server_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_backend_health_server_py3.py new file mode 100644 index 000000000000..b228addfa4db --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_backend_health_server_py3.py @@ -0,0 +1,39 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ApplicationGatewayBackendHealthServer(Model): + """Application gateway backendhealth http settings. + + :param address: IP address or FQDN of backend server. + :type address: str + :param ip_configuration: Reference of IP configuration of backend server. + :type ip_configuration: + ~azure.mgmt.network.v2018_10_01.models.NetworkInterfaceIPConfiguration + :param health: Health of backend server. Possible values include: + 'Unknown', 'Up', 'Down', 'Partial', 'Draining' + :type health: str or + ~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayBackendHealthServerHealth + """ + + _attribute_map = { + 'address': {'key': 'address', 'type': 'str'}, + 'ip_configuration': {'key': 'ipConfiguration', 'type': 'NetworkInterfaceIPConfiguration'}, + 'health': {'key': 'health', 'type': 'str'}, + } + + def __init__(self, *, address: str=None, ip_configuration=None, health=None, **kwargs) -> None: + super(ApplicationGatewayBackendHealthServer, self).__init__(**kwargs) + self.address = address + self.ip_configuration = ip_configuration + self.health = health diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_backend_http_settings.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_backend_http_settings.py new file mode 100644 index 000000000000..331434ba19ce --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_backend_http_settings.py @@ -0,0 +1,115 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource import SubResource + + +class ApplicationGatewayBackendHttpSettings(SubResource): + """Backend address pool settings of an application gateway. + + :param id: Resource ID. + :type id: str + :param port: The destination port on the backend. + :type port: int + :param protocol: The protocol used to communicate with the backend. + Possible values are 'Http' and 'Https'. Possible values include: 'Http', + 'Https' + :type protocol: str or + ~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayProtocol + :param cookie_based_affinity: Cookie based affinity. Possible values + include: 'Enabled', 'Disabled' + :type cookie_based_affinity: str or + ~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayCookieBasedAffinity + :param request_timeout: Request timeout in seconds. Application Gateway + will fail the request if response is not received within RequestTimeout. + Acceptable values are from 1 second to 86400 seconds. + :type request_timeout: int + :param probe: Probe resource of an application gateway. + :type probe: ~azure.mgmt.network.v2018_10_01.models.SubResource + :param authentication_certificates: Array of references to application + gateway authentication certificates. + :type authentication_certificates: + list[~azure.mgmt.network.v2018_10_01.models.SubResource] + :param trusted_root_certificates: Array of references to application + gateway trusted root certificates. + :type trusted_root_certificates: + list[~azure.mgmt.network.v2018_10_01.models.SubResource] + :param connection_draining: Connection draining of the backend http + settings resource. + :type connection_draining: + ~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayConnectionDraining + :param host_name: Host header to be sent to the backend servers. + :type host_name: str + :param pick_host_name_from_backend_address: Whether to pick host header + should be picked from the host name of the backend server. Default value + is false. + :type pick_host_name_from_backend_address: bool + :param affinity_cookie_name: Cookie name to use for the affinity cookie. + :type affinity_cookie_name: str + :param probe_enabled: Whether the probe is enabled. Default value is + false. + :type probe_enabled: bool + :param path: Path which should be used as a prefix for all HTTP requests. + Null means no path will be prefixed. Default value is null. + :type path: str + :param provisioning_state: Provisioning state of the backend http settings + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param name: Name of the backend http settings that is unique within an + Application Gateway. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + :param type: Type of the resource. + :type type: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'port': {'key': 'properties.port', 'type': 'int'}, + 'protocol': {'key': 'properties.protocol', 'type': 'str'}, + 'cookie_based_affinity': {'key': 'properties.cookieBasedAffinity', 'type': 'str'}, + 'request_timeout': {'key': 'properties.requestTimeout', 'type': 'int'}, + 'probe': {'key': 'properties.probe', 'type': 'SubResource'}, + 'authentication_certificates': {'key': 'properties.authenticationCertificates', 'type': '[SubResource]'}, + 'trusted_root_certificates': {'key': 'properties.trustedRootCertificates', 'type': '[SubResource]'}, + 'connection_draining': {'key': 'properties.connectionDraining', 'type': 'ApplicationGatewayConnectionDraining'}, + 'host_name': {'key': 'properties.hostName', 'type': 'str'}, + 'pick_host_name_from_backend_address': {'key': 'properties.pickHostNameFromBackendAddress', 'type': 'bool'}, + 'affinity_cookie_name': {'key': 'properties.affinityCookieName', 'type': 'str'}, + 'probe_enabled': {'key': 'properties.probeEnabled', 'type': 'bool'}, + 'path': {'key': 'properties.path', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ApplicationGatewayBackendHttpSettings, self).__init__(**kwargs) + self.port = kwargs.get('port', None) + self.protocol = kwargs.get('protocol', None) + self.cookie_based_affinity = kwargs.get('cookie_based_affinity', None) + self.request_timeout = kwargs.get('request_timeout', None) + self.probe = kwargs.get('probe', None) + self.authentication_certificates = kwargs.get('authentication_certificates', None) + self.trusted_root_certificates = kwargs.get('trusted_root_certificates', None) + self.connection_draining = kwargs.get('connection_draining', None) + self.host_name = kwargs.get('host_name', None) + self.pick_host_name_from_backend_address = kwargs.get('pick_host_name_from_backend_address', None) + self.affinity_cookie_name = kwargs.get('affinity_cookie_name', None) + self.probe_enabled = kwargs.get('probe_enabled', None) + self.path = kwargs.get('path', None) + self.provisioning_state = kwargs.get('provisioning_state', None) + self.name = kwargs.get('name', None) + self.etag = kwargs.get('etag', None) + self.type = kwargs.get('type', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_backend_http_settings_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_backend_http_settings_py3.py new file mode 100644 index 000000000000..f330f2036973 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_backend_http_settings_py3.py @@ -0,0 +1,115 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource_py3 import SubResource + + +class ApplicationGatewayBackendHttpSettings(SubResource): + """Backend address pool settings of an application gateway. + + :param id: Resource ID. + :type id: str + :param port: The destination port on the backend. + :type port: int + :param protocol: The protocol used to communicate with the backend. + Possible values are 'Http' and 'Https'. Possible values include: 'Http', + 'Https' + :type protocol: str or + ~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayProtocol + :param cookie_based_affinity: Cookie based affinity. Possible values + include: 'Enabled', 'Disabled' + :type cookie_based_affinity: str or + ~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayCookieBasedAffinity + :param request_timeout: Request timeout in seconds. Application Gateway + will fail the request if response is not received within RequestTimeout. + Acceptable values are from 1 second to 86400 seconds. + :type request_timeout: int + :param probe: Probe resource of an application gateway. + :type probe: ~azure.mgmt.network.v2018_10_01.models.SubResource + :param authentication_certificates: Array of references to application + gateway authentication certificates. + :type authentication_certificates: + list[~azure.mgmt.network.v2018_10_01.models.SubResource] + :param trusted_root_certificates: Array of references to application + gateway trusted root certificates. + :type trusted_root_certificates: + list[~azure.mgmt.network.v2018_10_01.models.SubResource] + :param connection_draining: Connection draining of the backend http + settings resource. + :type connection_draining: + ~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayConnectionDraining + :param host_name: Host header to be sent to the backend servers. + :type host_name: str + :param pick_host_name_from_backend_address: Whether to pick host header + should be picked from the host name of the backend server. Default value + is false. + :type pick_host_name_from_backend_address: bool + :param affinity_cookie_name: Cookie name to use for the affinity cookie. + :type affinity_cookie_name: str + :param probe_enabled: Whether the probe is enabled. Default value is + false. + :type probe_enabled: bool + :param path: Path which should be used as a prefix for all HTTP requests. + Null means no path will be prefixed. Default value is null. + :type path: str + :param provisioning_state: Provisioning state of the backend http settings + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param name: Name of the backend http settings that is unique within an + Application Gateway. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + :param type: Type of the resource. + :type type: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'port': {'key': 'properties.port', 'type': 'int'}, + 'protocol': {'key': 'properties.protocol', 'type': 'str'}, + 'cookie_based_affinity': {'key': 'properties.cookieBasedAffinity', 'type': 'str'}, + 'request_timeout': {'key': 'properties.requestTimeout', 'type': 'int'}, + 'probe': {'key': 'properties.probe', 'type': 'SubResource'}, + 'authentication_certificates': {'key': 'properties.authenticationCertificates', 'type': '[SubResource]'}, + 'trusted_root_certificates': {'key': 'properties.trustedRootCertificates', 'type': '[SubResource]'}, + 'connection_draining': {'key': 'properties.connectionDraining', 'type': 'ApplicationGatewayConnectionDraining'}, + 'host_name': {'key': 'properties.hostName', 'type': 'str'}, + 'pick_host_name_from_backend_address': {'key': 'properties.pickHostNameFromBackendAddress', 'type': 'bool'}, + 'affinity_cookie_name': {'key': 'properties.affinityCookieName', 'type': 'str'}, + 'probe_enabled': {'key': 'properties.probeEnabled', 'type': 'bool'}, + 'path': {'key': 'properties.path', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, port: int=None, protocol=None, cookie_based_affinity=None, request_timeout: int=None, probe=None, authentication_certificates=None, trusted_root_certificates=None, connection_draining=None, host_name: str=None, pick_host_name_from_backend_address: bool=None, affinity_cookie_name: str=None, probe_enabled: bool=None, path: str=None, provisioning_state: str=None, name: str=None, etag: str=None, type: str=None, **kwargs) -> None: + super(ApplicationGatewayBackendHttpSettings, self).__init__(id=id, **kwargs) + self.port = port + self.protocol = protocol + self.cookie_based_affinity = cookie_based_affinity + self.request_timeout = request_timeout + self.probe = probe + self.authentication_certificates = authentication_certificates + self.trusted_root_certificates = trusted_root_certificates + self.connection_draining = connection_draining + self.host_name = host_name + self.pick_host_name_from_backend_address = pick_host_name_from_backend_address + self.affinity_cookie_name = affinity_cookie_name + self.probe_enabled = probe_enabled + self.path = path + self.provisioning_state = provisioning_state + self.name = name + self.etag = etag + self.type = type diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_connection_draining.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_connection_draining.py new file mode 100644 index 000000000000..531b3cb05dd3 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_connection_draining.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ApplicationGatewayConnectionDraining(Model): + """Connection draining allows open connections to a backend server to be + active for a specified time after the backend server got removed from the + configuration. + + All required parameters must be populated in order to send to Azure. + + :param enabled: Required. Whether connection draining is enabled or not. + :type enabled: bool + :param drain_timeout_in_sec: Required. The number of seconds connection + draining is active. Acceptable values are from 1 second to 3600 seconds. + :type drain_timeout_in_sec: int + """ + + _validation = { + 'enabled': {'required': True}, + 'drain_timeout_in_sec': {'required': True, 'maximum': 3600, 'minimum': 1}, + } + + _attribute_map = { + 'enabled': {'key': 'enabled', 'type': 'bool'}, + 'drain_timeout_in_sec': {'key': 'drainTimeoutInSec', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(ApplicationGatewayConnectionDraining, self).__init__(**kwargs) + self.enabled = kwargs.get('enabled', None) + self.drain_timeout_in_sec = kwargs.get('drain_timeout_in_sec', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_connection_draining_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_connection_draining_py3.py new file mode 100644 index 000000000000..c46fb01cae72 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_connection_draining_py3.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ApplicationGatewayConnectionDraining(Model): + """Connection draining allows open connections to a backend server to be + active for a specified time after the backend server got removed from the + configuration. + + All required parameters must be populated in order to send to Azure. + + :param enabled: Required. Whether connection draining is enabled or not. + :type enabled: bool + :param drain_timeout_in_sec: Required. The number of seconds connection + draining is active. Acceptable values are from 1 second to 3600 seconds. + :type drain_timeout_in_sec: int + """ + + _validation = { + 'enabled': {'required': True}, + 'drain_timeout_in_sec': {'required': True, 'maximum': 3600, 'minimum': 1}, + } + + _attribute_map = { + 'enabled': {'key': 'enabled', 'type': 'bool'}, + 'drain_timeout_in_sec': {'key': 'drainTimeoutInSec', 'type': 'int'}, + } + + def __init__(self, *, enabled: bool, drain_timeout_in_sec: int, **kwargs) -> None: + super(ApplicationGatewayConnectionDraining, self).__init__(**kwargs) + self.enabled = enabled + self.drain_timeout_in_sec = drain_timeout_in_sec diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_custom_error.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_custom_error.py new file mode 100644 index 000000000000..4319171bc07e --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_custom_error.py @@ -0,0 +1,35 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ApplicationGatewayCustomError(Model): + """Customer error of an application gateway. + + :param status_code: Status code of the application gateway customer error. + Possible values include: 'HttpStatus403', 'HttpStatus502' + :type status_code: str or + ~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayCustomErrorStatusCode + :param custom_error_page_url: Error page URL of the application gateway + customer error. + :type custom_error_page_url: str + """ + + _attribute_map = { + 'status_code': {'key': 'statusCode', 'type': 'str'}, + 'custom_error_page_url': {'key': 'customErrorPageUrl', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ApplicationGatewayCustomError, self).__init__(**kwargs) + self.status_code = kwargs.get('status_code', None) + self.custom_error_page_url = kwargs.get('custom_error_page_url', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_custom_error_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_custom_error_py3.py new file mode 100644 index 000000000000..0d6322ac6229 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_custom_error_py3.py @@ -0,0 +1,35 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ApplicationGatewayCustomError(Model): + """Customer error of an application gateway. + + :param status_code: Status code of the application gateway customer error. + Possible values include: 'HttpStatus403', 'HttpStatus502' + :type status_code: str or + ~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayCustomErrorStatusCode + :param custom_error_page_url: Error page URL of the application gateway + customer error. + :type custom_error_page_url: str + """ + + _attribute_map = { + 'status_code': {'key': 'statusCode', 'type': 'str'}, + 'custom_error_page_url': {'key': 'customErrorPageUrl', 'type': 'str'}, + } + + def __init__(self, *, status_code=None, custom_error_page_url: str=None, **kwargs) -> None: + super(ApplicationGatewayCustomError, self).__init__(**kwargs) + self.status_code = status_code + self.custom_error_page_url = custom_error_page_url diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_firewall_disabled_rule_group.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_firewall_disabled_rule_group.py new file mode 100644 index 000000000000..085ae3d78c5c --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_firewall_disabled_rule_group.py @@ -0,0 +1,40 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ApplicationGatewayFirewallDisabledRuleGroup(Model): + """Allows to disable rules within a rule group or an entire rule group. + + All required parameters must be populated in order to send to Azure. + + :param rule_group_name: Required. The name of the rule group that will be + disabled. + :type rule_group_name: str + :param rules: The list of rules that will be disabled. If null, all rules + of the rule group will be disabled. + :type rules: list[int] + """ + + _validation = { + 'rule_group_name': {'required': True}, + } + + _attribute_map = { + 'rule_group_name': {'key': 'ruleGroupName', 'type': 'str'}, + 'rules': {'key': 'rules', 'type': '[int]'}, + } + + def __init__(self, **kwargs): + super(ApplicationGatewayFirewallDisabledRuleGroup, self).__init__(**kwargs) + self.rule_group_name = kwargs.get('rule_group_name', None) + self.rules = kwargs.get('rules', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_firewall_disabled_rule_group_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_firewall_disabled_rule_group_py3.py new file mode 100644 index 000000000000..44ac696b801c --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_firewall_disabled_rule_group_py3.py @@ -0,0 +1,40 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ApplicationGatewayFirewallDisabledRuleGroup(Model): + """Allows to disable rules within a rule group or an entire rule group. + + All required parameters must be populated in order to send to Azure. + + :param rule_group_name: Required. The name of the rule group that will be + disabled. + :type rule_group_name: str + :param rules: The list of rules that will be disabled. If null, all rules + of the rule group will be disabled. + :type rules: list[int] + """ + + _validation = { + 'rule_group_name': {'required': True}, + } + + _attribute_map = { + 'rule_group_name': {'key': 'ruleGroupName', 'type': 'str'}, + 'rules': {'key': 'rules', 'type': '[int]'}, + } + + def __init__(self, *, rule_group_name: str, rules=None, **kwargs) -> None: + super(ApplicationGatewayFirewallDisabledRuleGroup, self).__init__(**kwargs) + self.rule_group_name = rule_group_name + self.rules = rules diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_firewall_exclusion.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_firewall_exclusion.py new file mode 100644 index 000000000000..93de07754023 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_firewall_exclusion.py @@ -0,0 +1,48 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ApplicationGatewayFirewallExclusion(Model): + """Allow to exclude some variable satisfy the condition for the WAF check. + + All required parameters must be populated in order to send to Azure. + + :param match_variable: Required. The variable to be excluded. + :type match_variable: str + :param selector_match_operator: Required. When matchVariable is a + collection, operate on the selector to specify which elements in the + collection this exclusion applies to. + :type selector_match_operator: str + :param selector: Required. When matchVariable is a collection, operator + used to specify which elements in the collection this exclusion applies + to. + :type selector: str + """ + + _validation = { + 'match_variable': {'required': True}, + 'selector_match_operator': {'required': True}, + 'selector': {'required': True}, + } + + _attribute_map = { + 'match_variable': {'key': 'matchVariable', 'type': 'str'}, + 'selector_match_operator': {'key': 'selectorMatchOperator', 'type': 'str'}, + 'selector': {'key': 'selector', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ApplicationGatewayFirewallExclusion, self).__init__(**kwargs) + self.match_variable = kwargs.get('match_variable', None) + self.selector_match_operator = kwargs.get('selector_match_operator', None) + self.selector = kwargs.get('selector', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_firewall_exclusion_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_firewall_exclusion_py3.py new file mode 100644 index 000000000000..75fa2cdbcf29 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_firewall_exclusion_py3.py @@ -0,0 +1,48 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ApplicationGatewayFirewallExclusion(Model): + """Allow to exclude some variable satisfy the condition for the WAF check. + + All required parameters must be populated in order to send to Azure. + + :param match_variable: Required. The variable to be excluded. + :type match_variable: str + :param selector_match_operator: Required. When matchVariable is a + collection, operate on the selector to specify which elements in the + collection this exclusion applies to. + :type selector_match_operator: str + :param selector: Required. When matchVariable is a collection, operator + used to specify which elements in the collection this exclusion applies + to. + :type selector: str + """ + + _validation = { + 'match_variable': {'required': True}, + 'selector_match_operator': {'required': True}, + 'selector': {'required': True}, + } + + _attribute_map = { + 'match_variable': {'key': 'matchVariable', 'type': 'str'}, + 'selector_match_operator': {'key': 'selectorMatchOperator', 'type': 'str'}, + 'selector': {'key': 'selector', 'type': 'str'}, + } + + def __init__(self, *, match_variable: str, selector_match_operator: str, selector: str, **kwargs) -> None: + super(ApplicationGatewayFirewallExclusion, self).__init__(**kwargs) + self.match_variable = match_variable + self.selector_match_operator = selector_match_operator + self.selector = selector diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_firewall_rule.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_firewall_rule.py new file mode 100644 index 000000000000..661b0d146e16 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_firewall_rule.py @@ -0,0 +1,39 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ApplicationGatewayFirewallRule(Model): + """A web application firewall rule. + + All required parameters must be populated in order to send to Azure. + + :param rule_id: Required. The identifier of the web application firewall + rule. + :type rule_id: int + :param description: The description of the web application firewall rule. + :type description: str + """ + + _validation = { + 'rule_id': {'required': True}, + } + + _attribute_map = { + 'rule_id': {'key': 'ruleId', 'type': 'int'}, + 'description': {'key': 'description', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ApplicationGatewayFirewallRule, self).__init__(**kwargs) + self.rule_id = kwargs.get('rule_id', None) + self.description = kwargs.get('description', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_firewall_rule_group.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_firewall_rule_group.py new file mode 100644 index 000000000000..cb48947e8299 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_firewall_rule_group.py @@ -0,0 +1,47 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ApplicationGatewayFirewallRuleGroup(Model): + """A web application firewall rule group. + + All required parameters must be populated in order to send to Azure. + + :param rule_group_name: Required. The name of the web application firewall + rule group. + :type rule_group_name: str + :param description: The description of the web application firewall rule + group. + :type description: str + :param rules: Required. The rules of the web application firewall rule + group. + :type rules: + list[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayFirewallRule] + """ + + _validation = { + 'rule_group_name': {'required': True}, + 'rules': {'required': True}, + } + + _attribute_map = { + 'rule_group_name': {'key': 'ruleGroupName', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'rules': {'key': 'rules', 'type': '[ApplicationGatewayFirewallRule]'}, + } + + def __init__(self, **kwargs): + super(ApplicationGatewayFirewallRuleGroup, self).__init__(**kwargs) + self.rule_group_name = kwargs.get('rule_group_name', None) + self.description = kwargs.get('description', None) + self.rules = kwargs.get('rules', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_firewall_rule_group_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_firewall_rule_group_py3.py new file mode 100644 index 000000000000..0266d0130ffc --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_firewall_rule_group_py3.py @@ -0,0 +1,47 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ApplicationGatewayFirewallRuleGroup(Model): + """A web application firewall rule group. + + All required parameters must be populated in order to send to Azure. + + :param rule_group_name: Required. The name of the web application firewall + rule group. + :type rule_group_name: str + :param description: The description of the web application firewall rule + group. + :type description: str + :param rules: Required. The rules of the web application firewall rule + group. + :type rules: + list[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayFirewallRule] + """ + + _validation = { + 'rule_group_name': {'required': True}, + 'rules': {'required': True}, + } + + _attribute_map = { + 'rule_group_name': {'key': 'ruleGroupName', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'rules': {'key': 'rules', 'type': '[ApplicationGatewayFirewallRule]'}, + } + + def __init__(self, *, rule_group_name: str, rules, description: str=None, **kwargs) -> None: + super(ApplicationGatewayFirewallRuleGroup, self).__init__(**kwargs) + self.rule_group_name = rule_group_name + self.description = description + self.rules = rules diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_firewall_rule_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_firewall_rule_py3.py new file mode 100644 index 000000000000..e332fbd16853 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_firewall_rule_py3.py @@ -0,0 +1,39 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ApplicationGatewayFirewallRule(Model): + """A web application firewall rule. + + All required parameters must be populated in order to send to Azure. + + :param rule_id: Required. The identifier of the web application firewall + rule. + :type rule_id: int + :param description: The description of the web application firewall rule. + :type description: str + """ + + _validation = { + 'rule_id': {'required': True}, + } + + _attribute_map = { + 'rule_id': {'key': 'ruleId', 'type': 'int'}, + 'description': {'key': 'description', 'type': 'str'}, + } + + def __init__(self, *, rule_id: int, description: str=None, **kwargs) -> None: + super(ApplicationGatewayFirewallRule, self).__init__(**kwargs) + self.rule_id = rule_id + self.description = description diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_firewall_rule_set.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_firewall_rule_set.py new file mode 100644 index 000000000000..7b56718a71e0 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_firewall_rule_set.py @@ -0,0 +1,73 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource import Resource + + +class ApplicationGatewayFirewallRuleSet(Resource): + """A web application firewall rule set. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param provisioning_state: The provisioning state of the web application + firewall rule set. + :type provisioning_state: str + :param rule_set_type: Required. The type of the web application firewall + rule set. + :type rule_set_type: str + :param rule_set_version: Required. The version of the web application + firewall rule set type. + :type rule_set_version: str + :param rule_groups: Required. The rule groups of the web application + firewall rule set. + :type rule_groups: + list[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayFirewallRuleGroup] + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'rule_set_type': {'required': True}, + 'rule_set_version': {'required': True}, + 'rule_groups': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'rule_set_type': {'key': 'properties.ruleSetType', 'type': 'str'}, + 'rule_set_version': {'key': 'properties.ruleSetVersion', 'type': 'str'}, + 'rule_groups': {'key': 'properties.ruleGroups', 'type': '[ApplicationGatewayFirewallRuleGroup]'}, + } + + def __init__(self, **kwargs): + super(ApplicationGatewayFirewallRuleSet, self).__init__(**kwargs) + self.provisioning_state = kwargs.get('provisioning_state', None) + self.rule_set_type = kwargs.get('rule_set_type', None) + self.rule_set_version = kwargs.get('rule_set_version', None) + self.rule_groups = kwargs.get('rule_groups', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_firewall_rule_set_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_firewall_rule_set_py3.py new file mode 100644 index 000000000000..53653cec5330 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_firewall_rule_set_py3.py @@ -0,0 +1,73 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource_py3 import Resource + + +class ApplicationGatewayFirewallRuleSet(Resource): + """A web application firewall rule set. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param provisioning_state: The provisioning state of the web application + firewall rule set. + :type provisioning_state: str + :param rule_set_type: Required. The type of the web application firewall + rule set. + :type rule_set_type: str + :param rule_set_version: Required. The version of the web application + firewall rule set type. + :type rule_set_version: str + :param rule_groups: Required. The rule groups of the web application + firewall rule set. + :type rule_groups: + list[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayFirewallRuleGroup] + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'rule_set_type': {'required': True}, + 'rule_set_version': {'required': True}, + 'rule_groups': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'rule_set_type': {'key': 'properties.ruleSetType', 'type': 'str'}, + 'rule_set_version': {'key': 'properties.ruleSetVersion', 'type': 'str'}, + 'rule_groups': {'key': 'properties.ruleGroups', 'type': '[ApplicationGatewayFirewallRuleGroup]'}, + } + + def __init__(self, *, rule_set_type: str, rule_set_version: str, rule_groups, id: str=None, location: str=None, tags=None, provisioning_state: str=None, **kwargs) -> None: + super(ApplicationGatewayFirewallRuleSet, self).__init__(id=id, location=location, tags=tags, **kwargs) + self.provisioning_state = provisioning_state + self.rule_set_type = rule_set_type + self.rule_set_version = rule_set_version + self.rule_groups = rule_groups diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_frontend_ip_configuration.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_frontend_ip_configuration.py new file mode 100644 index 000000000000..4a4ce7fbb542 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_frontend_ip_configuration.py @@ -0,0 +1,66 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource import SubResource + + +class ApplicationGatewayFrontendIPConfiguration(SubResource): + """Frontend IP configuration of an application gateway. + + :param id: Resource ID. + :type id: str + :param private_ip_address: PrivateIPAddress of the network interface IP + Configuration. + :type private_ip_address: str + :param private_ip_allocation_method: PrivateIP allocation method. Possible + values include: 'Static', 'Dynamic' + :type private_ip_allocation_method: str or + ~azure.mgmt.network.v2018_10_01.models.IPAllocationMethod + :param subnet: Reference of the subnet resource. + :type subnet: ~azure.mgmt.network.v2018_10_01.models.SubResource + :param public_ip_address: Reference of the PublicIP resource. + :type public_ip_address: + ~azure.mgmt.network.v2018_10_01.models.SubResource + :param provisioning_state: Provisioning state of the public IP resource. + Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param name: Name of the frontend IP configuration that is unique within + an Application Gateway. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + :param type: Type of the resource. + :type type: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'private_ip_address': {'key': 'properties.privateIPAddress', 'type': 'str'}, + 'private_ip_allocation_method': {'key': 'properties.privateIPAllocationMethod', 'type': 'str'}, + 'subnet': {'key': 'properties.subnet', 'type': 'SubResource'}, + 'public_ip_address': {'key': 'properties.publicIPAddress', 'type': 'SubResource'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ApplicationGatewayFrontendIPConfiguration, self).__init__(**kwargs) + self.private_ip_address = kwargs.get('private_ip_address', None) + self.private_ip_allocation_method = kwargs.get('private_ip_allocation_method', None) + self.subnet = kwargs.get('subnet', None) + self.public_ip_address = kwargs.get('public_ip_address', None) + self.provisioning_state = kwargs.get('provisioning_state', None) + self.name = kwargs.get('name', None) + self.etag = kwargs.get('etag', None) + self.type = kwargs.get('type', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_frontend_ip_configuration_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_frontend_ip_configuration_py3.py new file mode 100644 index 000000000000..6375353e1159 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_frontend_ip_configuration_py3.py @@ -0,0 +1,66 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource_py3 import SubResource + + +class ApplicationGatewayFrontendIPConfiguration(SubResource): + """Frontend IP configuration of an application gateway. + + :param id: Resource ID. + :type id: str + :param private_ip_address: PrivateIPAddress of the network interface IP + Configuration. + :type private_ip_address: str + :param private_ip_allocation_method: PrivateIP allocation method. Possible + values include: 'Static', 'Dynamic' + :type private_ip_allocation_method: str or + ~azure.mgmt.network.v2018_10_01.models.IPAllocationMethod + :param subnet: Reference of the subnet resource. + :type subnet: ~azure.mgmt.network.v2018_10_01.models.SubResource + :param public_ip_address: Reference of the PublicIP resource. + :type public_ip_address: + ~azure.mgmt.network.v2018_10_01.models.SubResource + :param provisioning_state: Provisioning state of the public IP resource. + Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param name: Name of the frontend IP configuration that is unique within + an Application Gateway. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + :param type: Type of the resource. + :type type: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'private_ip_address': {'key': 'properties.privateIPAddress', 'type': 'str'}, + 'private_ip_allocation_method': {'key': 'properties.privateIPAllocationMethod', 'type': 'str'}, + 'subnet': {'key': 'properties.subnet', 'type': 'SubResource'}, + 'public_ip_address': {'key': 'properties.publicIPAddress', 'type': 'SubResource'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, private_ip_address: str=None, private_ip_allocation_method=None, subnet=None, public_ip_address=None, provisioning_state: str=None, name: str=None, etag: str=None, type: str=None, **kwargs) -> None: + super(ApplicationGatewayFrontendIPConfiguration, self).__init__(id=id, **kwargs) + self.private_ip_address = private_ip_address + self.private_ip_allocation_method = private_ip_allocation_method + self.subnet = subnet + self.public_ip_address = public_ip_address + self.provisioning_state = provisioning_state + self.name = name + self.etag = etag + self.type = type diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_frontend_port.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_frontend_port.py new file mode 100644 index 000000000000..b245c950f3ed --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_frontend_port.py @@ -0,0 +1,50 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource import SubResource + + +class ApplicationGatewayFrontendPort(SubResource): + """Frontend port of an application gateway. + + :param id: Resource ID. + :type id: str + :param port: Frontend port + :type port: int + :param provisioning_state: Provisioning state of the frontend port + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param name: Name of the frontend port that is unique within an + Application Gateway + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + :param type: Type of the resource. + :type type: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'port': {'key': 'properties.port', 'type': 'int'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ApplicationGatewayFrontendPort, self).__init__(**kwargs) + self.port = kwargs.get('port', None) + self.provisioning_state = kwargs.get('provisioning_state', None) + self.name = kwargs.get('name', None) + self.etag = kwargs.get('etag', None) + self.type = kwargs.get('type', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_frontend_port_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_frontend_port_py3.py new file mode 100644 index 000000000000..a6bd3f7a3606 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_frontend_port_py3.py @@ -0,0 +1,50 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource_py3 import SubResource + + +class ApplicationGatewayFrontendPort(SubResource): + """Frontend port of an application gateway. + + :param id: Resource ID. + :type id: str + :param port: Frontend port + :type port: int + :param provisioning_state: Provisioning state of the frontend port + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param name: Name of the frontend port that is unique within an + Application Gateway + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + :param type: Type of the resource. + :type type: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'port': {'key': 'properties.port', 'type': 'int'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, port: int=None, provisioning_state: str=None, name: str=None, etag: str=None, type: str=None, **kwargs) -> None: + super(ApplicationGatewayFrontendPort, self).__init__(id=id, **kwargs) + self.port = port + self.provisioning_state = provisioning_state + self.name = name + self.etag = etag + self.type = type diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_header_configuration.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_header_configuration.py new file mode 100644 index 000000000000..3c8d162579f8 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_header_configuration.py @@ -0,0 +1,32 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ApplicationGatewayHeaderConfiguration(Model): + """Header configuration of the Actions set in Application Gateway. + + :param header_name: Header name of the header configuration + :type header_name: str + :param header_value: Header value of the header configuration + :type header_value: str + """ + + _attribute_map = { + 'header_name': {'key': 'headerName', 'type': 'str'}, + 'header_value': {'key': 'headerValue', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ApplicationGatewayHeaderConfiguration, self).__init__(**kwargs) + self.header_name = kwargs.get('header_name', None) + self.header_value = kwargs.get('header_value', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_header_configuration_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_header_configuration_py3.py new file mode 100644 index 000000000000..decbf18c001f --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_header_configuration_py3.py @@ -0,0 +1,32 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ApplicationGatewayHeaderConfiguration(Model): + """Header configuration of the Actions set in Application Gateway. + + :param header_name: Header name of the header configuration + :type header_name: str + :param header_value: Header value of the header configuration + :type header_value: str + """ + + _attribute_map = { + 'header_name': {'key': 'headerName', 'type': 'str'}, + 'header_value': {'key': 'headerValue', 'type': 'str'}, + } + + def __init__(self, *, header_name: str=None, header_value: str=None, **kwargs) -> None: + super(ApplicationGatewayHeaderConfiguration, self).__init__(**kwargs) + self.header_name = header_name + self.header_value = header_value diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_http_listener.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_http_listener.py new file mode 100644 index 000000000000..1027a2256611 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_http_listener.py @@ -0,0 +1,82 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource import SubResource + + +class ApplicationGatewayHttpListener(SubResource): + """Http listener of an application gateway. + + :param id: Resource ID. + :type id: str + :param frontend_ip_configuration: Frontend IP configuration resource of an + application gateway. + :type frontend_ip_configuration: + ~azure.mgmt.network.v2018_10_01.models.SubResource + :param frontend_port: Frontend port resource of an application gateway. + :type frontend_port: ~azure.mgmt.network.v2018_10_01.models.SubResource + :param protocol: Protocol of the HTTP listener. Possible values are 'Http' + and 'Https'. Possible values include: 'Http', 'Https' + :type protocol: str or + ~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayProtocol + :param host_name: Host name of HTTP listener. + :type host_name: str + :param ssl_certificate: SSL certificate resource of an application + gateway. + :type ssl_certificate: ~azure.mgmt.network.v2018_10_01.models.SubResource + :param require_server_name_indication: Applicable only if protocol is + https. Enables SNI for multi-hosting. + :type require_server_name_indication: bool + :param provisioning_state: Provisioning state of the HTTP listener + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param custom_error_configurations: Custom error configurations of the + HTTP listener. + :type custom_error_configurations: + list[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayCustomError] + :param name: Name of the HTTP listener that is unique within an + Application Gateway. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + :param type: Type of the resource. + :type type: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'frontend_ip_configuration': {'key': 'properties.frontendIPConfiguration', 'type': 'SubResource'}, + 'frontend_port': {'key': 'properties.frontendPort', 'type': 'SubResource'}, + 'protocol': {'key': 'properties.protocol', 'type': 'str'}, + 'host_name': {'key': 'properties.hostName', 'type': 'str'}, + 'ssl_certificate': {'key': 'properties.sslCertificate', 'type': 'SubResource'}, + 'require_server_name_indication': {'key': 'properties.requireServerNameIndication', 'type': 'bool'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'custom_error_configurations': {'key': 'properties.customErrorConfigurations', 'type': '[ApplicationGatewayCustomError]'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ApplicationGatewayHttpListener, self).__init__(**kwargs) + self.frontend_ip_configuration = kwargs.get('frontend_ip_configuration', None) + self.frontend_port = kwargs.get('frontend_port', None) + self.protocol = kwargs.get('protocol', None) + self.host_name = kwargs.get('host_name', None) + self.ssl_certificate = kwargs.get('ssl_certificate', None) + self.require_server_name_indication = kwargs.get('require_server_name_indication', None) + self.provisioning_state = kwargs.get('provisioning_state', None) + self.custom_error_configurations = kwargs.get('custom_error_configurations', None) + self.name = kwargs.get('name', None) + self.etag = kwargs.get('etag', None) + self.type = kwargs.get('type', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_http_listener_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_http_listener_py3.py new file mode 100644 index 000000000000..3e2ec331a971 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_http_listener_py3.py @@ -0,0 +1,82 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource_py3 import SubResource + + +class ApplicationGatewayHttpListener(SubResource): + """Http listener of an application gateway. + + :param id: Resource ID. + :type id: str + :param frontend_ip_configuration: Frontend IP configuration resource of an + application gateway. + :type frontend_ip_configuration: + ~azure.mgmt.network.v2018_10_01.models.SubResource + :param frontend_port: Frontend port resource of an application gateway. + :type frontend_port: ~azure.mgmt.network.v2018_10_01.models.SubResource + :param protocol: Protocol of the HTTP listener. Possible values are 'Http' + and 'Https'. Possible values include: 'Http', 'Https' + :type protocol: str or + ~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayProtocol + :param host_name: Host name of HTTP listener. + :type host_name: str + :param ssl_certificate: SSL certificate resource of an application + gateway. + :type ssl_certificate: ~azure.mgmt.network.v2018_10_01.models.SubResource + :param require_server_name_indication: Applicable only if protocol is + https. Enables SNI for multi-hosting. + :type require_server_name_indication: bool + :param provisioning_state: Provisioning state of the HTTP listener + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param custom_error_configurations: Custom error configurations of the + HTTP listener. + :type custom_error_configurations: + list[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayCustomError] + :param name: Name of the HTTP listener that is unique within an + Application Gateway. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + :param type: Type of the resource. + :type type: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'frontend_ip_configuration': {'key': 'properties.frontendIPConfiguration', 'type': 'SubResource'}, + 'frontend_port': {'key': 'properties.frontendPort', 'type': 'SubResource'}, + 'protocol': {'key': 'properties.protocol', 'type': 'str'}, + 'host_name': {'key': 'properties.hostName', 'type': 'str'}, + 'ssl_certificate': {'key': 'properties.sslCertificate', 'type': 'SubResource'}, + 'require_server_name_indication': {'key': 'properties.requireServerNameIndication', 'type': 'bool'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'custom_error_configurations': {'key': 'properties.customErrorConfigurations', 'type': '[ApplicationGatewayCustomError]'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, frontend_ip_configuration=None, frontend_port=None, protocol=None, host_name: str=None, ssl_certificate=None, require_server_name_indication: bool=None, provisioning_state: str=None, custom_error_configurations=None, name: str=None, etag: str=None, type: str=None, **kwargs) -> None: + super(ApplicationGatewayHttpListener, self).__init__(id=id, **kwargs) + self.frontend_ip_configuration = frontend_ip_configuration + self.frontend_port = frontend_port + self.protocol = protocol + self.host_name = host_name + self.ssl_certificate = ssl_certificate + self.require_server_name_indication = require_server_name_indication + self.provisioning_state = provisioning_state + self.custom_error_configurations = custom_error_configurations + self.name = name + self.etag = etag + self.type = type diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_ip_configuration.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_ip_configuration.py new file mode 100644 index 000000000000..ea38c184c946 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_ip_configuration.py @@ -0,0 +1,53 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource import SubResource + + +class ApplicationGatewayIPConfiguration(SubResource): + """IP configuration of an application gateway. Currently 1 public and 1 + private IP configuration is allowed. + + :param id: Resource ID. + :type id: str + :param subnet: Reference of the subnet resource. A subnet from where + application gateway gets its private address. + :type subnet: ~azure.mgmt.network.v2018_10_01.models.SubResource + :param provisioning_state: Provisioning state of the application gateway + subnet resource. Possible values are: 'Updating', 'Deleting', and + 'Failed'. + :type provisioning_state: str + :param name: Name of the IP configuration that is unique within an + Application Gateway. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + :param type: Type of the resource. + :type type: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'subnet': {'key': 'properties.subnet', 'type': 'SubResource'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ApplicationGatewayIPConfiguration, self).__init__(**kwargs) + self.subnet = kwargs.get('subnet', None) + self.provisioning_state = kwargs.get('provisioning_state', None) + self.name = kwargs.get('name', None) + self.etag = kwargs.get('etag', None) + self.type = kwargs.get('type', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_ip_configuration_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_ip_configuration_py3.py new file mode 100644 index 000000000000..07e4bbce79c4 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_ip_configuration_py3.py @@ -0,0 +1,53 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource_py3 import SubResource + + +class ApplicationGatewayIPConfiguration(SubResource): + """IP configuration of an application gateway. Currently 1 public and 1 + private IP configuration is allowed. + + :param id: Resource ID. + :type id: str + :param subnet: Reference of the subnet resource. A subnet from where + application gateway gets its private address. + :type subnet: ~azure.mgmt.network.v2018_10_01.models.SubResource + :param provisioning_state: Provisioning state of the application gateway + subnet resource. Possible values are: 'Updating', 'Deleting', and + 'Failed'. + :type provisioning_state: str + :param name: Name of the IP configuration that is unique within an + Application Gateway. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + :param type: Type of the resource. + :type type: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'subnet': {'key': 'properties.subnet', 'type': 'SubResource'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, subnet=None, provisioning_state: str=None, name: str=None, etag: str=None, type: str=None, **kwargs) -> None: + super(ApplicationGatewayIPConfiguration, self).__init__(id=id, **kwargs) + self.subnet = subnet + self.provisioning_state = provisioning_state + self.name = name + self.etag = etag + self.type = type diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_paged.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_paged.py new file mode 100644 index 000000000000..e56a1b6905c8 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class ApplicationGatewayPaged(Paged): + """ + A paging container for iterating over a list of :class:`ApplicationGateway ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[ApplicationGateway]'} + } + + def __init__(self, *args, **kwargs): + + super(ApplicationGatewayPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_path_rule.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_path_rule.py new file mode 100644 index 000000000000..ccfad9d39e39 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_path_rule.py @@ -0,0 +1,73 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource import SubResource + + +class ApplicationGatewayPathRule(SubResource): + """Path rule of URL path map of an application gateway. + + :param id: Resource ID. + :type id: str + :param paths: Path rules of URL path map. + :type paths: list[str] + :param backend_address_pool: Backend address pool resource of URL path map + path rule. + :type backend_address_pool: + ~azure.mgmt.network.v2018_10_01.models.SubResource + :param backend_http_settings: Backend http settings resource of URL path + map path rule. + :type backend_http_settings: + ~azure.mgmt.network.v2018_10_01.models.SubResource + :param redirect_configuration: Redirect configuration resource of URL path + map path rule. + :type redirect_configuration: + ~azure.mgmt.network.v2018_10_01.models.SubResource + :param rewrite_rule_set: Rewrite rule set resource of URL path map path + rule. + :type rewrite_rule_set: ~azure.mgmt.network.v2018_10_01.models.SubResource + :param provisioning_state: Path rule of URL path map resource. Possible + values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param name: Name of the path rule that is unique within an Application + Gateway. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + :param type: Type of the resource. + :type type: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'paths': {'key': 'properties.paths', 'type': '[str]'}, + 'backend_address_pool': {'key': 'properties.backendAddressPool', 'type': 'SubResource'}, + 'backend_http_settings': {'key': 'properties.backendHttpSettings', 'type': 'SubResource'}, + 'redirect_configuration': {'key': 'properties.redirectConfiguration', 'type': 'SubResource'}, + 'rewrite_rule_set': {'key': 'properties.rewriteRuleSet', 'type': 'SubResource'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ApplicationGatewayPathRule, self).__init__(**kwargs) + self.paths = kwargs.get('paths', None) + self.backend_address_pool = kwargs.get('backend_address_pool', None) + self.backend_http_settings = kwargs.get('backend_http_settings', None) + self.redirect_configuration = kwargs.get('redirect_configuration', None) + self.rewrite_rule_set = kwargs.get('rewrite_rule_set', None) + self.provisioning_state = kwargs.get('provisioning_state', None) + self.name = kwargs.get('name', None) + self.etag = kwargs.get('etag', None) + self.type = kwargs.get('type', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_path_rule_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_path_rule_py3.py new file mode 100644 index 000000000000..78826f9f390b --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_path_rule_py3.py @@ -0,0 +1,73 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource_py3 import SubResource + + +class ApplicationGatewayPathRule(SubResource): + """Path rule of URL path map of an application gateway. + + :param id: Resource ID. + :type id: str + :param paths: Path rules of URL path map. + :type paths: list[str] + :param backend_address_pool: Backend address pool resource of URL path map + path rule. + :type backend_address_pool: + ~azure.mgmt.network.v2018_10_01.models.SubResource + :param backend_http_settings: Backend http settings resource of URL path + map path rule. + :type backend_http_settings: + ~azure.mgmt.network.v2018_10_01.models.SubResource + :param redirect_configuration: Redirect configuration resource of URL path + map path rule. + :type redirect_configuration: + ~azure.mgmt.network.v2018_10_01.models.SubResource + :param rewrite_rule_set: Rewrite rule set resource of URL path map path + rule. + :type rewrite_rule_set: ~azure.mgmt.network.v2018_10_01.models.SubResource + :param provisioning_state: Path rule of URL path map resource. Possible + values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param name: Name of the path rule that is unique within an Application + Gateway. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + :param type: Type of the resource. + :type type: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'paths': {'key': 'properties.paths', 'type': '[str]'}, + 'backend_address_pool': {'key': 'properties.backendAddressPool', 'type': 'SubResource'}, + 'backend_http_settings': {'key': 'properties.backendHttpSettings', 'type': 'SubResource'}, + 'redirect_configuration': {'key': 'properties.redirectConfiguration', 'type': 'SubResource'}, + 'rewrite_rule_set': {'key': 'properties.rewriteRuleSet', 'type': 'SubResource'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, paths=None, backend_address_pool=None, backend_http_settings=None, redirect_configuration=None, rewrite_rule_set=None, provisioning_state: str=None, name: str=None, etag: str=None, type: str=None, **kwargs) -> None: + super(ApplicationGatewayPathRule, self).__init__(id=id, **kwargs) + self.paths = paths + self.backend_address_pool = backend_address_pool + self.backend_http_settings = backend_http_settings + self.redirect_configuration = redirect_configuration + self.rewrite_rule_set = rewrite_rule_set + self.provisioning_state = provisioning_state + self.name = name + self.etag = etag + self.type = type diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_probe.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_probe.py new file mode 100644 index 000000000000..fbc44059af61 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_probe.py @@ -0,0 +1,94 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource import SubResource + + +class ApplicationGatewayProbe(SubResource): + """Probe of the application gateway. + + :param id: Resource ID. + :type id: str + :param protocol: The protocol used for the probe. Possible values are + 'Http' and 'Https'. Possible values include: 'Http', 'Https' + :type protocol: str or + ~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayProtocol + :param host: Host name to send the probe to. + :type host: str + :param path: Relative path of probe. Valid path starts from '/'. Probe is + sent to ://: + :type path: str + :param interval: The probing interval in seconds. This is the time + interval between two consecutive probes. Acceptable values are from 1 + second to 86400 seconds. + :type interval: int + :param timeout: the probe timeout in seconds. Probe marked as failed if + valid response is not received with this timeout period. Acceptable values + are from 1 second to 86400 seconds. + :type timeout: int + :param unhealthy_threshold: The probe retry count. Backend server is + marked down after consecutive probe failure count reaches + UnhealthyThreshold. Acceptable values are from 1 second to 20. + :type unhealthy_threshold: int + :param pick_host_name_from_backend_http_settings: Whether the host header + should be picked from the backend http settings. Default value is false. + :type pick_host_name_from_backend_http_settings: bool + :param min_servers: Minimum number of servers that are always marked + healthy. Default value is 0. + :type min_servers: int + :param match: Criterion for classifying a healthy probe response. + :type match: + ~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayProbeHealthResponseMatch + :param provisioning_state: Provisioning state of the backend http settings + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param name: Name of the probe that is unique within an Application + Gateway. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + :param type: Type of the resource. + :type type: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'protocol': {'key': 'properties.protocol', 'type': 'str'}, + 'host': {'key': 'properties.host', 'type': 'str'}, + 'path': {'key': 'properties.path', 'type': 'str'}, + 'interval': {'key': 'properties.interval', 'type': 'int'}, + 'timeout': {'key': 'properties.timeout', 'type': 'int'}, + 'unhealthy_threshold': {'key': 'properties.unhealthyThreshold', 'type': 'int'}, + 'pick_host_name_from_backend_http_settings': {'key': 'properties.pickHostNameFromBackendHttpSettings', 'type': 'bool'}, + 'min_servers': {'key': 'properties.minServers', 'type': 'int'}, + 'match': {'key': 'properties.match', 'type': 'ApplicationGatewayProbeHealthResponseMatch'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ApplicationGatewayProbe, self).__init__(**kwargs) + self.protocol = kwargs.get('protocol', None) + self.host = kwargs.get('host', None) + self.path = kwargs.get('path', None) + self.interval = kwargs.get('interval', None) + self.timeout = kwargs.get('timeout', None) + self.unhealthy_threshold = kwargs.get('unhealthy_threshold', None) + self.pick_host_name_from_backend_http_settings = kwargs.get('pick_host_name_from_backend_http_settings', None) + self.min_servers = kwargs.get('min_servers', None) + self.match = kwargs.get('match', None) + self.provisioning_state = kwargs.get('provisioning_state', None) + self.name = kwargs.get('name', None) + self.etag = kwargs.get('etag', None) + self.type = kwargs.get('type', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_probe_health_response_match.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_probe_health_response_match.py new file mode 100644 index 000000000000..b439b9677f8b --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_probe_health_response_match.py @@ -0,0 +1,34 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ApplicationGatewayProbeHealthResponseMatch(Model): + """Application gateway probe health response match. + + :param body: Body that must be contained in the health response. Default + value is empty. + :type body: str + :param status_codes: Allowed ranges of healthy status codes. Default range + of healthy status codes is 200-399. + :type status_codes: list[str] + """ + + _attribute_map = { + 'body': {'key': 'body', 'type': 'str'}, + 'status_codes': {'key': 'statusCodes', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(ApplicationGatewayProbeHealthResponseMatch, self).__init__(**kwargs) + self.body = kwargs.get('body', None) + self.status_codes = kwargs.get('status_codes', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_probe_health_response_match_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_probe_health_response_match_py3.py new file mode 100644 index 000000000000..6ed2ee8c04ed --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_probe_health_response_match_py3.py @@ -0,0 +1,34 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ApplicationGatewayProbeHealthResponseMatch(Model): + """Application gateway probe health response match. + + :param body: Body that must be contained in the health response. Default + value is empty. + :type body: str + :param status_codes: Allowed ranges of healthy status codes. Default range + of healthy status codes is 200-399. + :type status_codes: list[str] + """ + + _attribute_map = { + 'body': {'key': 'body', 'type': 'str'}, + 'status_codes': {'key': 'statusCodes', 'type': '[str]'}, + } + + def __init__(self, *, body: str=None, status_codes=None, **kwargs) -> None: + super(ApplicationGatewayProbeHealthResponseMatch, self).__init__(**kwargs) + self.body = body + self.status_codes = status_codes diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_probe_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_probe_py3.py new file mode 100644 index 000000000000..a3be149e32c1 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_probe_py3.py @@ -0,0 +1,94 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource_py3 import SubResource + + +class ApplicationGatewayProbe(SubResource): + """Probe of the application gateway. + + :param id: Resource ID. + :type id: str + :param protocol: The protocol used for the probe. Possible values are + 'Http' and 'Https'. Possible values include: 'Http', 'Https' + :type protocol: str or + ~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayProtocol + :param host: Host name to send the probe to. + :type host: str + :param path: Relative path of probe. Valid path starts from '/'. Probe is + sent to ://: + :type path: str + :param interval: The probing interval in seconds. This is the time + interval between two consecutive probes. Acceptable values are from 1 + second to 86400 seconds. + :type interval: int + :param timeout: the probe timeout in seconds. Probe marked as failed if + valid response is not received with this timeout period. Acceptable values + are from 1 second to 86400 seconds. + :type timeout: int + :param unhealthy_threshold: The probe retry count. Backend server is + marked down after consecutive probe failure count reaches + UnhealthyThreshold. Acceptable values are from 1 second to 20. + :type unhealthy_threshold: int + :param pick_host_name_from_backend_http_settings: Whether the host header + should be picked from the backend http settings. Default value is false. + :type pick_host_name_from_backend_http_settings: bool + :param min_servers: Minimum number of servers that are always marked + healthy. Default value is 0. + :type min_servers: int + :param match: Criterion for classifying a healthy probe response. + :type match: + ~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayProbeHealthResponseMatch + :param provisioning_state: Provisioning state of the backend http settings + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param name: Name of the probe that is unique within an Application + Gateway. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + :param type: Type of the resource. + :type type: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'protocol': {'key': 'properties.protocol', 'type': 'str'}, + 'host': {'key': 'properties.host', 'type': 'str'}, + 'path': {'key': 'properties.path', 'type': 'str'}, + 'interval': {'key': 'properties.interval', 'type': 'int'}, + 'timeout': {'key': 'properties.timeout', 'type': 'int'}, + 'unhealthy_threshold': {'key': 'properties.unhealthyThreshold', 'type': 'int'}, + 'pick_host_name_from_backend_http_settings': {'key': 'properties.pickHostNameFromBackendHttpSettings', 'type': 'bool'}, + 'min_servers': {'key': 'properties.minServers', 'type': 'int'}, + 'match': {'key': 'properties.match', 'type': 'ApplicationGatewayProbeHealthResponseMatch'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, protocol=None, host: str=None, path: str=None, interval: int=None, timeout: int=None, unhealthy_threshold: int=None, pick_host_name_from_backend_http_settings: bool=None, min_servers: int=None, match=None, provisioning_state: str=None, name: str=None, etag: str=None, type: str=None, **kwargs) -> None: + super(ApplicationGatewayProbe, self).__init__(id=id, **kwargs) + self.protocol = protocol + self.host = host + self.path = path + self.interval = interval + self.timeout = timeout + self.unhealthy_threshold = unhealthy_threshold + self.pick_host_name_from_backend_http_settings = pick_host_name_from_backend_http_settings + self.min_servers = min_servers + self.match = match + self.provisioning_state = provisioning_state + self.name = name + self.etag = etag + self.type = type diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_py3.py new file mode 100644 index 000000000000..74e05bbc6a2b --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_py3.py @@ -0,0 +1,196 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource_py3 import Resource + + +class ApplicationGateway(Resource): + """Application gateway resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param sku: SKU of the application gateway resource. + :type sku: ~azure.mgmt.network.v2018_10_01.models.ApplicationGatewaySku + :param ssl_policy: SSL policy of the application gateway resource. + :type ssl_policy: + ~azure.mgmt.network.v2018_10_01.models.ApplicationGatewaySslPolicy + :ivar operational_state: Operational state of the application gateway + resource. Possible values include: 'Stopped', 'Starting', 'Running', + 'Stopping' + :vartype operational_state: str or + ~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayOperationalState + :param gateway_ip_configurations: Subnets of application the gateway + resource. + :type gateway_ip_configurations: + list[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayIPConfiguration] + :param authentication_certificates: Authentication certificates of the + application gateway resource. + :type authentication_certificates: + list[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayAuthenticationCertificate] + :param trusted_root_certificates: Trusted Root certificates of the + application gateway resource. + :type trusted_root_certificates: + list[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayTrustedRootCertificate] + :param ssl_certificates: SSL certificates of the application gateway + resource. + :type ssl_certificates: + list[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewaySslCertificate] + :param frontend_ip_configurations: Frontend IP addresses of the + application gateway resource. + :type frontend_ip_configurations: + list[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayFrontendIPConfiguration] + :param frontend_ports: Frontend ports of the application gateway resource. + :type frontend_ports: + list[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayFrontendPort] + :param probes: Probes of the application gateway resource. + :type probes: + list[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayProbe] + :param backend_address_pools: Backend address pool of the application + gateway resource. + :type backend_address_pools: + list[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayBackendAddressPool] + :param backend_http_settings_collection: Backend http settings of the + application gateway resource. + :type backend_http_settings_collection: + list[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayBackendHttpSettings] + :param http_listeners: Http listeners of the application gateway resource. + :type http_listeners: + list[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayHttpListener] + :param url_path_maps: URL path map of the application gateway resource. + :type url_path_maps: + list[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayUrlPathMap] + :param request_routing_rules: Request routing rules of the application + gateway resource. + :type request_routing_rules: + list[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayRequestRoutingRule] + :param rewrite_rule_sets: Rewrite rules for the application gateway + resource. + :type rewrite_rule_sets: + list[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayRewriteRuleSet] + :param redirect_configurations: Redirect configurations of the application + gateway resource. + :type redirect_configurations: + list[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayRedirectConfiguration] + :param web_application_firewall_configuration: Web application firewall + configuration. + :type web_application_firewall_configuration: + ~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayWebApplicationFirewallConfiguration + :param enable_http2: Whether HTTP2 is enabled on the application gateway + resource. + :type enable_http2: bool + :param enable_fips: Whether FIPS is enabled on the application gateway + resource. + :type enable_fips: bool + :param autoscale_configuration: Autoscale Configuration. + :type autoscale_configuration: + ~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayAutoscaleConfiguration + :param resource_guid: Resource GUID property of the application gateway + resource. + :type resource_guid: str + :param provisioning_state: Provisioning state of the application gateway + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param custom_error_configurations: Custom error configurations of the + application gateway resource. + :type custom_error_configurations: + list[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayCustomError] + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + :param zones: A list of availability zones denoting where the resource + needs to come from. + :type zones: list[str] + :param identity: The identity of the application gateway, if configured. + :type identity: + ~azure.mgmt.network.v2018_10_01.models.ManagedServiceIdentity + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'operational_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'sku': {'key': 'properties.sku', 'type': 'ApplicationGatewaySku'}, + 'ssl_policy': {'key': 'properties.sslPolicy', 'type': 'ApplicationGatewaySslPolicy'}, + 'operational_state': {'key': 'properties.operationalState', 'type': 'str'}, + 'gateway_ip_configurations': {'key': 'properties.gatewayIPConfigurations', 'type': '[ApplicationGatewayIPConfiguration]'}, + 'authentication_certificates': {'key': 'properties.authenticationCertificates', 'type': '[ApplicationGatewayAuthenticationCertificate]'}, + 'trusted_root_certificates': {'key': 'properties.trustedRootCertificates', 'type': '[ApplicationGatewayTrustedRootCertificate]'}, + 'ssl_certificates': {'key': 'properties.sslCertificates', 'type': '[ApplicationGatewaySslCertificate]'}, + 'frontend_ip_configurations': {'key': 'properties.frontendIPConfigurations', 'type': '[ApplicationGatewayFrontendIPConfiguration]'}, + 'frontend_ports': {'key': 'properties.frontendPorts', 'type': '[ApplicationGatewayFrontendPort]'}, + 'probes': {'key': 'properties.probes', 'type': '[ApplicationGatewayProbe]'}, + 'backend_address_pools': {'key': 'properties.backendAddressPools', 'type': '[ApplicationGatewayBackendAddressPool]'}, + 'backend_http_settings_collection': {'key': 'properties.backendHttpSettingsCollection', 'type': '[ApplicationGatewayBackendHttpSettings]'}, + 'http_listeners': {'key': 'properties.httpListeners', 'type': '[ApplicationGatewayHttpListener]'}, + 'url_path_maps': {'key': 'properties.urlPathMaps', 'type': '[ApplicationGatewayUrlPathMap]'}, + 'request_routing_rules': {'key': 'properties.requestRoutingRules', 'type': '[ApplicationGatewayRequestRoutingRule]'}, + 'rewrite_rule_sets': {'key': 'properties.rewriteRuleSets', 'type': '[ApplicationGatewayRewriteRuleSet]'}, + 'redirect_configurations': {'key': 'properties.redirectConfigurations', 'type': '[ApplicationGatewayRedirectConfiguration]'}, + 'web_application_firewall_configuration': {'key': 'properties.webApplicationFirewallConfiguration', 'type': 'ApplicationGatewayWebApplicationFirewallConfiguration'}, + 'enable_http2': {'key': 'properties.enableHttp2', 'type': 'bool'}, + 'enable_fips': {'key': 'properties.enableFips', 'type': 'bool'}, + 'autoscale_configuration': {'key': 'properties.autoscaleConfiguration', 'type': 'ApplicationGatewayAutoscaleConfiguration'}, + 'resource_guid': {'key': 'properties.resourceGuid', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'custom_error_configurations': {'key': 'properties.customErrorConfigurations', 'type': '[ApplicationGatewayCustomError]'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'zones': {'key': 'zones', 'type': '[str]'}, + 'identity': {'key': 'identity', 'type': 'ManagedServiceIdentity'}, + } + + def __init__(self, *, id: str=None, location: str=None, tags=None, sku=None, ssl_policy=None, gateway_ip_configurations=None, authentication_certificates=None, trusted_root_certificates=None, ssl_certificates=None, frontend_ip_configurations=None, frontend_ports=None, probes=None, backend_address_pools=None, backend_http_settings_collection=None, http_listeners=None, url_path_maps=None, request_routing_rules=None, rewrite_rule_sets=None, redirect_configurations=None, web_application_firewall_configuration=None, enable_http2: bool=None, enable_fips: bool=None, autoscale_configuration=None, resource_guid: str=None, provisioning_state: str=None, custom_error_configurations=None, etag: str=None, zones=None, identity=None, **kwargs) -> None: + super(ApplicationGateway, self).__init__(id=id, location=location, tags=tags, **kwargs) + self.sku = sku + self.ssl_policy = ssl_policy + self.operational_state = None + self.gateway_ip_configurations = gateway_ip_configurations + self.authentication_certificates = authentication_certificates + self.trusted_root_certificates = trusted_root_certificates + self.ssl_certificates = ssl_certificates + self.frontend_ip_configurations = frontend_ip_configurations + self.frontend_ports = frontend_ports + self.probes = probes + self.backend_address_pools = backend_address_pools + self.backend_http_settings_collection = backend_http_settings_collection + self.http_listeners = http_listeners + self.url_path_maps = url_path_maps + self.request_routing_rules = request_routing_rules + self.rewrite_rule_sets = rewrite_rule_sets + self.redirect_configurations = redirect_configurations + self.web_application_firewall_configuration = web_application_firewall_configuration + self.enable_http2 = enable_http2 + self.enable_fips = enable_fips + self.autoscale_configuration = autoscale_configuration + self.resource_guid = resource_guid + self.provisioning_state = provisioning_state + self.custom_error_configurations = custom_error_configurations + self.etag = etag + self.zones = zones + self.identity = identity diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_redirect_configuration.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_redirect_configuration.py new file mode 100644 index 000000000000..fc6ab194b842 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_redirect_configuration.py @@ -0,0 +1,81 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource import SubResource + + +class ApplicationGatewayRedirectConfiguration(SubResource): + """Redirect configuration of an application gateway. + + :param id: Resource ID. + :type id: str + :param redirect_type: Supported http redirection types - Permanent, + Temporary, Found, SeeOther. Possible values include: 'Permanent', 'Found', + 'SeeOther', 'Temporary' + :type redirect_type: str or + ~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayRedirectType + :param target_listener: Reference to a listener to redirect the request + to. + :type target_listener: ~azure.mgmt.network.v2018_10_01.models.SubResource + :param target_url: Url to redirect the request to. + :type target_url: str + :param include_path: Include path in the redirected url. + :type include_path: bool + :param include_query_string: Include query string in the redirected url. + :type include_query_string: bool + :param request_routing_rules: Request routing specifying redirect + configuration. + :type request_routing_rules: + list[~azure.mgmt.network.v2018_10_01.models.SubResource] + :param url_path_maps: Url path maps specifying default redirect + configuration. + :type url_path_maps: + list[~azure.mgmt.network.v2018_10_01.models.SubResource] + :param path_rules: Path rules specifying redirect configuration. + :type path_rules: list[~azure.mgmt.network.v2018_10_01.models.SubResource] + :param name: Name of the redirect configuration that is unique within an + Application Gateway. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + :param type: Type of the resource. + :type type: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'redirect_type': {'key': 'properties.redirectType', 'type': 'str'}, + 'target_listener': {'key': 'properties.targetListener', 'type': 'SubResource'}, + 'target_url': {'key': 'properties.targetUrl', 'type': 'str'}, + 'include_path': {'key': 'properties.includePath', 'type': 'bool'}, + 'include_query_string': {'key': 'properties.includeQueryString', 'type': 'bool'}, + 'request_routing_rules': {'key': 'properties.requestRoutingRules', 'type': '[SubResource]'}, + 'url_path_maps': {'key': 'properties.urlPathMaps', 'type': '[SubResource]'}, + 'path_rules': {'key': 'properties.pathRules', 'type': '[SubResource]'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ApplicationGatewayRedirectConfiguration, self).__init__(**kwargs) + self.redirect_type = kwargs.get('redirect_type', None) + self.target_listener = kwargs.get('target_listener', None) + self.target_url = kwargs.get('target_url', None) + self.include_path = kwargs.get('include_path', None) + self.include_query_string = kwargs.get('include_query_string', None) + self.request_routing_rules = kwargs.get('request_routing_rules', None) + self.url_path_maps = kwargs.get('url_path_maps', None) + self.path_rules = kwargs.get('path_rules', None) + self.name = kwargs.get('name', None) + self.etag = kwargs.get('etag', None) + self.type = kwargs.get('type', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_redirect_configuration_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_redirect_configuration_py3.py new file mode 100644 index 000000000000..105080ee6d6b --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_redirect_configuration_py3.py @@ -0,0 +1,81 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource_py3 import SubResource + + +class ApplicationGatewayRedirectConfiguration(SubResource): + """Redirect configuration of an application gateway. + + :param id: Resource ID. + :type id: str + :param redirect_type: Supported http redirection types - Permanent, + Temporary, Found, SeeOther. Possible values include: 'Permanent', 'Found', + 'SeeOther', 'Temporary' + :type redirect_type: str or + ~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayRedirectType + :param target_listener: Reference to a listener to redirect the request + to. + :type target_listener: ~azure.mgmt.network.v2018_10_01.models.SubResource + :param target_url: Url to redirect the request to. + :type target_url: str + :param include_path: Include path in the redirected url. + :type include_path: bool + :param include_query_string: Include query string in the redirected url. + :type include_query_string: bool + :param request_routing_rules: Request routing specifying redirect + configuration. + :type request_routing_rules: + list[~azure.mgmt.network.v2018_10_01.models.SubResource] + :param url_path_maps: Url path maps specifying default redirect + configuration. + :type url_path_maps: + list[~azure.mgmt.network.v2018_10_01.models.SubResource] + :param path_rules: Path rules specifying redirect configuration. + :type path_rules: list[~azure.mgmt.network.v2018_10_01.models.SubResource] + :param name: Name of the redirect configuration that is unique within an + Application Gateway. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + :param type: Type of the resource. + :type type: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'redirect_type': {'key': 'properties.redirectType', 'type': 'str'}, + 'target_listener': {'key': 'properties.targetListener', 'type': 'SubResource'}, + 'target_url': {'key': 'properties.targetUrl', 'type': 'str'}, + 'include_path': {'key': 'properties.includePath', 'type': 'bool'}, + 'include_query_string': {'key': 'properties.includeQueryString', 'type': 'bool'}, + 'request_routing_rules': {'key': 'properties.requestRoutingRules', 'type': '[SubResource]'}, + 'url_path_maps': {'key': 'properties.urlPathMaps', 'type': '[SubResource]'}, + 'path_rules': {'key': 'properties.pathRules', 'type': '[SubResource]'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, redirect_type=None, target_listener=None, target_url: str=None, include_path: bool=None, include_query_string: bool=None, request_routing_rules=None, url_path_maps=None, path_rules=None, name: str=None, etag: str=None, type: str=None, **kwargs) -> None: + super(ApplicationGatewayRedirectConfiguration, self).__init__(id=id, **kwargs) + self.redirect_type = redirect_type + self.target_listener = target_listener + self.target_url = target_url + self.include_path = include_path + self.include_query_string = include_query_string + self.request_routing_rules = request_routing_rules + self.url_path_maps = url_path_maps + self.path_rules = path_rules + self.name = name + self.etag = etag + self.type = type diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_request_routing_rule.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_request_routing_rule.py new file mode 100644 index 000000000000..e8da699df1c8 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_request_routing_rule.py @@ -0,0 +1,83 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource import SubResource + + +class ApplicationGatewayRequestRoutingRule(SubResource): + """Request routing rule of an application gateway. + + :param id: Resource ID. + :type id: str + :param rule_type: Rule type. Possible values include: 'Basic', + 'PathBasedRouting' + :type rule_type: str or + ~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayRequestRoutingRuleType + :param backend_address_pool: Backend address pool resource of the + application gateway. + :type backend_address_pool: + ~azure.mgmt.network.v2018_10_01.models.SubResource + :param backend_http_settings: Backend http settings resource of the + application gateway. + :type backend_http_settings: + ~azure.mgmt.network.v2018_10_01.models.SubResource + :param http_listener: Http listener resource of the application gateway. + :type http_listener: ~azure.mgmt.network.v2018_10_01.models.SubResource + :param url_path_map: URL path map resource of the application gateway. + :type url_path_map: ~azure.mgmt.network.v2018_10_01.models.SubResource + :param rewrite_rule_set: Rewrite Rule Set resource in Basic rule of the + application gateway. + :type rewrite_rule_set: ~azure.mgmt.network.v2018_10_01.models.SubResource + :param redirect_configuration: Redirect configuration resource of the + application gateway. + :type redirect_configuration: + ~azure.mgmt.network.v2018_10_01.models.SubResource + :param provisioning_state: Provisioning state of the request routing rule + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param name: Name of the request routing rule that is unique within an + Application Gateway. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + :param type: Type of the resource. + :type type: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'rule_type': {'key': 'properties.ruleType', 'type': 'str'}, + 'backend_address_pool': {'key': 'properties.backendAddressPool', 'type': 'SubResource'}, + 'backend_http_settings': {'key': 'properties.backendHttpSettings', 'type': 'SubResource'}, + 'http_listener': {'key': 'properties.httpListener', 'type': 'SubResource'}, + 'url_path_map': {'key': 'properties.urlPathMap', 'type': 'SubResource'}, + 'rewrite_rule_set': {'key': 'properties.rewriteRuleSet', 'type': 'SubResource'}, + 'redirect_configuration': {'key': 'properties.redirectConfiguration', 'type': 'SubResource'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ApplicationGatewayRequestRoutingRule, self).__init__(**kwargs) + self.rule_type = kwargs.get('rule_type', None) + self.backend_address_pool = kwargs.get('backend_address_pool', None) + self.backend_http_settings = kwargs.get('backend_http_settings', None) + self.http_listener = kwargs.get('http_listener', None) + self.url_path_map = kwargs.get('url_path_map', None) + self.rewrite_rule_set = kwargs.get('rewrite_rule_set', None) + self.redirect_configuration = kwargs.get('redirect_configuration', None) + self.provisioning_state = kwargs.get('provisioning_state', None) + self.name = kwargs.get('name', None) + self.etag = kwargs.get('etag', None) + self.type = kwargs.get('type', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_request_routing_rule_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_request_routing_rule_py3.py new file mode 100644 index 000000000000..669e0c318a03 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_request_routing_rule_py3.py @@ -0,0 +1,83 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource_py3 import SubResource + + +class ApplicationGatewayRequestRoutingRule(SubResource): + """Request routing rule of an application gateway. + + :param id: Resource ID. + :type id: str + :param rule_type: Rule type. Possible values include: 'Basic', + 'PathBasedRouting' + :type rule_type: str or + ~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayRequestRoutingRuleType + :param backend_address_pool: Backend address pool resource of the + application gateway. + :type backend_address_pool: + ~azure.mgmt.network.v2018_10_01.models.SubResource + :param backend_http_settings: Backend http settings resource of the + application gateway. + :type backend_http_settings: + ~azure.mgmt.network.v2018_10_01.models.SubResource + :param http_listener: Http listener resource of the application gateway. + :type http_listener: ~azure.mgmt.network.v2018_10_01.models.SubResource + :param url_path_map: URL path map resource of the application gateway. + :type url_path_map: ~azure.mgmt.network.v2018_10_01.models.SubResource + :param rewrite_rule_set: Rewrite Rule Set resource in Basic rule of the + application gateway. + :type rewrite_rule_set: ~azure.mgmt.network.v2018_10_01.models.SubResource + :param redirect_configuration: Redirect configuration resource of the + application gateway. + :type redirect_configuration: + ~azure.mgmt.network.v2018_10_01.models.SubResource + :param provisioning_state: Provisioning state of the request routing rule + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param name: Name of the request routing rule that is unique within an + Application Gateway. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + :param type: Type of the resource. + :type type: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'rule_type': {'key': 'properties.ruleType', 'type': 'str'}, + 'backend_address_pool': {'key': 'properties.backendAddressPool', 'type': 'SubResource'}, + 'backend_http_settings': {'key': 'properties.backendHttpSettings', 'type': 'SubResource'}, + 'http_listener': {'key': 'properties.httpListener', 'type': 'SubResource'}, + 'url_path_map': {'key': 'properties.urlPathMap', 'type': 'SubResource'}, + 'rewrite_rule_set': {'key': 'properties.rewriteRuleSet', 'type': 'SubResource'}, + 'redirect_configuration': {'key': 'properties.redirectConfiguration', 'type': 'SubResource'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, rule_type=None, backend_address_pool=None, backend_http_settings=None, http_listener=None, url_path_map=None, rewrite_rule_set=None, redirect_configuration=None, provisioning_state: str=None, name: str=None, etag: str=None, type: str=None, **kwargs) -> None: + super(ApplicationGatewayRequestRoutingRule, self).__init__(id=id, **kwargs) + self.rule_type = rule_type + self.backend_address_pool = backend_address_pool + self.backend_http_settings = backend_http_settings + self.http_listener = http_listener + self.url_path_map = url_path_map + self.rewrite_rule_set = rewrite_rule_set + self.redirect_configuration = redirect_configuration + self.provisioning_state = provisioning_state + self.name = name + self.etag = etag + self.type = type diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_rewrite_rule.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_rewrite_rule.py new file mode 100644 index 000000000000..fa81b020d77f --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_rewrite_rule.py @@ -0,0 +1,34 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ApplicationGatewayRewriteRule(Model): + """Rewrite rule of an application gateway. + + :param name: Name of the rewrite rule that is unique within an Application + Gateway. + :type name: str + :param action_set: Set of actions to be done as part of the rewrite Rule. + :type action_set: + ~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayRewriteRuleActionSet + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'action_set': {'key': 'actionSet', 'type': 'ApplicationGatewayRewriteRuleActionSet'}, + } + + def __init__(self, **kwargs): + super(ApplicationGatewayRewriteRule, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.action_set = kwargs.get('action_set', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_rewrite_rule_action_set.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_rewrite_rule_action_set.py new file mode 100644 index 000000000000..008eab401e89 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_rewrite_rule_action_set.py @@ -0,0 +1,36 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ApplicationGatewayRewriteRuleActionSet(Model): + """Set of actions in the Rewrite Rule in Application Gateway. + + :param request_header_configurations: Request Header Actions in the Action + Set + :type request_header_configurations: + list[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayHeaderConfiguration] + :param response_header_configurations: Response Header Actions in the + Action Set + :type response_header_configurations: + list[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayHeaderConfiguration] + """ + + _attribute_map = { + 'request_header_configurations': {'key': 'requestHeaderConfigurations', 'type': '[ApplicationGatewayHeaderConfiguration]'}, + 'response_header_configurations': {'key': 'responseHeaderConfigurations', 'type': '[ApplicationGatewayHeaderConfiguration]'}, + } + + def __init__(self, **kwargs): + super(ApplicationGatewayRewriteRuleActionSet, self).__init__(**kwargs) + self.request_header_configurations = kwargs.get('request_header_configurations', None) + self.response_header_configurations = kwargs.get('response_header_configurations', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_rewrite_rule_action_set_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_rewrite_rule_action_set_py3.py new file mode 100644 index 000000000000..517d521cf61b --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_rewrite_rule_action_set_py3.py @@ -0,0 +1,36 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ApplicationGatewayRewriteRuleActionSet(Model): + """Set of actions in the Rewrite Rule in Application Gateway. + + :param request_header_configurations: Request Header Actions in the Action + Set + :type request_header_configurations: + list[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayHeaderConfiguration] + :param response_header_configurations: Response Header Actions in the + Action Set + :type response_header_configurations: + list[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayHeaderConfiguration] + """ + + _attribute_map = { + 'request_header_configurations': {'key': 'requestHeaderConfigurations', 'type': '[ApplicationGatewayHeaderConfiguration]'}, + 'response_header_configurations': {'key': 'responseHeaderConfigurations', 'type': '[ApplicationGatewayHeaderConfiguration]'}, + } + + def __init__(self, *, request_header_configurations=None, response_header_configurations=None, **kwargs) -> None: + super(ApplicationGatewayRewriteRuleActionSet, self).__init__(**kwargs) + self.request_header_configurations = request_header_configurations + self.response_header_configurations = response_header_configurations diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_rewrite_rule_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_rewrite_rule_py3.py new file mode 100644 index 000000000000..1dc36e68cb87 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_rewrite_rule_py3.py @@ -0,0 +1,34 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ApplicationGatewayRewriteRule(Model): + """Rewrite rule of an application gateway. + + :param name: Name of the rewrite rule that is unique within an Application + Gateway. + :type name: str + :param action_set: Set of actions to be done as part of the rewrite Rule. + :type action_set: + ~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayRewriteRuleActionSet + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'action_set': {'key': 'actionSet', 'type': 'ApplicationGatewayRewriteRuleActionSet'}, + } + + def __init__(self, *, name: str=None, action_set=None, **kwargs) -> None: + super(ApplicationGatewayRewriteRule, self).__init__(**kwargs) + self.name = name + self.action_set = action_set diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_rewrite_rule_set.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_rewrite_rule_set.py new file mode 100644 index 000000000000..9df0821f40b8 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_rewrite_rule_set.py @@ -0,0 +1,55 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource import SubResource + + +class ApplicationGatewayRewriteRuleSet(SubResource): + """Rewrite rule set of an application gateway. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :param rewrite_rules: Rewrite rules in the rewrite rule set. + :type rewrite_rules: + list[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayRewriteRule] + :ivar provisioning_state: Provisioning state of the rewrite rule set + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :vartype provisioning_state: str + :param name: Name of the rewrite rule set that is unique within an + Application Gateway. + :type name: str + :ivar etag: A unique read-only string that changes whenever the resource + is updated. + :vartype etag: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'rewrite_rules': {'key': 'properties.rewriteRules', 'type': '[ApplicationGatewayRewriteRule]'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ApplicationGatewayRewriteRuleSet, self).__init__(**kwargs) + self.rewrite_rules = kwargs.get('rewrite_rules', None) + self.provisioning_state = None + self.name = kwargs.get('name', None) + self.etag = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_rewrite_rule_set_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_rewrite_rule_set_py3.py new file mode 100644 index 000000000000..7ecb12191f67 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_rewrite_rule_set_py3.py @@ -0,0 +1,55 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource_py3 import SubResource + + +class ApplicationGatewayRewriteRuleSet(SubResource): + """Rewrite rule set of an application gateway. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :param rewrite_rules: Rewrite rules in the rewrite rule set. + :type rewrite_rules: + list[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayRewriteRule] + :ivar provisioning_state: Provisioning state of the rewrite rule set + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :vartype provisioning_state: str + :param name: Name of the rewrite rule set that is unique within an + Application Gateway. + :type name: str + :ivar etag: A unique read-only string that changes whenever the resource + is updated. + :vartype etag: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'rewrite_rules': {'key': 'properties.rewriteRules', 'type': '[ApplicationGatewayRewriteRule]'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, rewrite_rules=None, name: str=None, **kwargs) -> None: + super(ApplicationGatewayRewriteRuleSet, self).__init__(id=id, **kwargs) + self.rewrite_rules = rewrite_rules + self.provisioning_state = None + self.name = name + self.etag = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_sku.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_sku.py new file mode 100644 index 000000000000..b7cf0b4eedee --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_sku.py @@ -0,0 +1,41 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ApplicationGatewaySku(Model): + """SKU of an application gateway. + + :param name: Name of an application gateway SKU. Possible values include: + 'Standard_Small', 'Standard_Medium', 'Standard_Large', 'WAF_Medium', + 'WAF_Large', 'Standard_v2', 'WAF_v2' + :type name: str or + ~azure.mgmt.network.v2018_10_01.models.ApplicationGatewaySkuName + :param tier: Tier of an application gateway. Possible values include: + 'Standard', 'WAF', 'Standard_v2', 'WAF_v2' + :type tier: str or + ~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayTier + :param capacity: Capacity (instance count) of an application gateway. + :type capacity: int + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'tier': {'key': 'tier', 'type': 'str'}, + 'capacity': {'key': 'capacity', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(ApplicationGatewaySku, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.tier = kwargs.get('tier', None) + self.capacity = kwargs.get('capacity', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_sku_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_sku_py3.py new file mode 100644 index 000000000000..92b94f5efe55 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_sku_py3.py @@ -0,0 +1,41 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ApplicationGatewaySku(Model): + """SKU of an application gateway. + + :param name: Name of an application gateway SKU. Possible values include: + 'Standard_Small', 'Standard_Medium', 'Standard_Large', 'WAF_Medium', + 'WAF_Large', 'Standard_v2', 'WAF_v2' + :type name: str or + ~azure.mgmt.network.v2018_10_01.models.ApplicationGatewaySkuName + :param tier: Tier of an application gateway. Possible values include: + 'Standard', 'WAF', 'Standard_v2', 'WAF_v2' + :type tier: str or + ~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayTier + :param capacity: Capacity (instance count) of an application gateway. + :type capacity: int + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'tier': {'key': 'tier', 'type': 'str'}, + 'capacity': {'key': 'capacity', 'type': 'int'}, + } + + def __init__(self, *, name=None, tier=None, capacity: int=None, **kwargs) -> None: + super(ApplicationGatewaySku, self).__init__(**kwargs) + self.name = name + self.tier = tier + self.capacity = capacity diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_ssl_certificate.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_ssl_certificate.py new file mode 100644 index 000000000000..8256b8e57c91 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_ssl_certificate.py @@ -0,0 +1,66 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource import SubResource + + +class ApplicationGatewaySslCertificate(SubResource): + """SSL certificates of an application gateway. + + :param id: Resource ID. + :type id: str + :param data: Base-64 encoded pfx certificate. Only applicable in PUT + Request. + :type data: str + :param password: Password for the pfx file specified in data. Only + applicable in PUT request. + :type password: str + :param public_cert_data: Base-64 encoded Public cert data corresponding to + pfx specified in data. Only applicable in GET request. + :type public_cert_data: str + :param key_vault_secret_id: Secret Id of (base-64 encoded unencrypted pfx) + 'Secret' or 'Certificate' object stored in KeyVault. + :type key_vault_secret_id: str + :param provisioning_state: Provisioning state of the SSL certificate + resource Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param name: Name of the SSL certificate that is unique within an + Application Gateway. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + :param type: Type of the resource. + :type type: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'data': {'key': 'properties.data', 'type': 'str'}, + 'password': {'key': 'properties.password', 'type': 'str'}, + 'public_cert_data': {'key': 'properties.publicCertData', 'type': 'str'}, + 'key_vault_secret_id': {'key': 'properties.keyVaultSecretId', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ApplicationGatewaySslCertificate, self).__init__(**kwargs) + self.data = kwargs.get('data', None) + self.password = kwargs.get('password', None) + self.public_cert_data = kwargs.get('public_cert_data', None) + self.key_vault_secret_id = kwargs.get('key_vault_secret_id', None) + self.provisioning_state = kwargs.get('provisioning_state', None) + self.name = kwargs.get('name', None) + self.etag = kwargs.get('etag', None) + self.type = kwargs.get('type', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_ssl_certificate_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_ssl_certificate_py3.py new file mode 100644 index 000000000000..f351295dcdb2 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_ssl_certificate_py3.py @@ -0,0 +1,66 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource_py3 import SubResource + + +class ApplicationGatewaySslCertificate(SubResource): + """SSL certificates of an application gateway. + + :param id: Resource ID. + :type id: str + :param data: Base-64 encoded pfx certificate. Only applicable in PUT + Request. + :type data: str + :param password: Password for the pfx file specified in data. Only + applicable in PUT request. + :type password: str + :param public_cert_data: Base-64 encoded Public cert data corresponding to + pfx specified in data. Only applicable in GET request. + :type public_cert_data: str + :param key_vault_secret_id: Secret Id of (base-64 encoded unencrypted pfx) + 'Secret' or 'Certificate' object stored in KeyVault. + :type key_vault_secret_id: str + :param provisioning_state: Provisioning state of the SSL certificate + resource Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param name: Name of the SSL certificate that is unique within an + Application Gateway. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + :param type: Type of the resource. + :type type: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'data': {'key': 'properties.data', 'type': 'str'}, + 'password': {'key': 'properties.password', 'type': 'str'}, + 'public_cert_data': {'key': 'properties.publicCertData', 'type': 'str'}, + 'key_vault_secret_id': {'key': 'properties.keyVaultSecretId', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, data: str=None, password: str=None, public_cert_data: str=None, key_vault_secret_id: str=None, provisioning_state: str=None, name: str=None, etag: str=None, type: str=None, **kwargs) -> None: + super(ApplicationGatewaySslCertificate, self).__init__(id=id, **kwargs) + self.data = data + self.password = password + self.public_cert_data = public_cert_data + self.key_vault_secret_id = key_vault_secret_id + self.provisioning_state = provisioning_state + self.name = name + self.etag = etag + self.type = type diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_ssl_policy.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_ssl_policy.py new file mode 100644 index 000000000000..e9e8d00dbfff --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_ssl_policy.py @@ -0,0 +1,56 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ApplicationGatewaySslPolicy(Model): + """Application Gateway Ssl policy. + + :param disabled_ssl_protocols: Ssl protocols to be disabled on application + gateway. + :type disabled_ssl_protocols: list[str or + ~azure.mgmt.network.v2018_10_01.models.ApplicationGatewaySslProtocol] + :param policy_type: Type of Ssl Policy. Possible values include: + 'Predefined', 'Custom' + :type policy_type: str or + ~azure.mgmt.network.v2018_10_01.models.ApplicationGatewaySslPolicyType + :param policy_name: Name of Ssl predefined policy. Possible values + include: 'AppGwSslPolicy20150501', 'AppGwSslPolicy20170401', + 'AppGwSslPolicy20170401S' + :type policy_name: str or + ~azure.mgmt.network.v2018_10_01.models.ApplicationGatewaySslPolicyName + :param cipher_suites: Ssl cipher suites to be enabled in the specified + order to application gateway. + :type cipher_suites: list[str or + ~azure.mgmt.network.v2018_10_01.models.ApplicationGatewaySslCipherSuite] + :param min_protocol_version: Minimum version of Ssl protocol to be + supported on application gateway. Possible values include: 'TLSv1_0', + 'TLSv1_1', 'TLSv1_2' + :type min_protocol_version: str or + ~azure.mgmt.network.v2018_10_01.models.ApplicationGatewaySslProtocol + """ + + _attribute_map = { + 'disabled_ssl_protocols': {'key': 'disabledSslProtocols', 'type': '[str]'}, + 'policy_type': {'key': 'policyType', 'type': 'str'}, + 'policy_name': {'key': 'policyName', 'type': 'str'}, + 'cipher_suites': {'key': 'cipherSuites', 'type': '[str]'}, + 'min_protocol_version': {'key': 'minProtocolVersion', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ApplicationGatewaySslPolicy, self).__init__(**kwargs) + self.disabled_ssl_protocols = kwargs.get('disabled_ssl_protocols', None) + self.policy_type = kwargs.get('policy_type', None) + self.policy_name = kwargs.get('policy_name', None) + self.cipher_suites = kwargs.get('cipher_suites', None) + self.min_protocol_version = kwargs.get('min_protocol_version', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_ssl_policy_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_ssl_policy_py3.py new file mode 100644 index 000000000000..dfa11bac759d --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_ssl_policy_py3.py @@ -0,0 +1,56 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ApplicationGatewaySslPolicy(Model): + """Application Gateway Ssl policy. + + :param disabled_ssl_protocols: Ssl protocols to be disabled on application + gateway. + :type disabled_ssl_protocols: list[str or + ~azure.mgmt.network.v2018_10_01.models.ApplicationGatewaySslProtocol] + :param policy_type: Type of Ssl Policy. Possible values include: + 'Predefined', 'Custom' + :type policy_type: str or + ~azure.mgmt.network.v2018_10_01.models.ApplicationGatewaySslPolicyType + :param policy_name: Name of Ssl predefined policy. Possible values + include: 'AppGwSslPolicy20150501', 'AppGwSslPolicy20170401', + 'AppGwSslPolicy20170401S' + :type policy_name: str or + ~azure.mgmt.network.v2018_10_01.models.ApplicationGatewaySslPolicyName + :param cipher_suites: Ssl cipher suites to be enabled in the specified + order to application gateway. + :type cipher_suites: list[str or + ~azure.mgmt.network.v2018_10_01.models.ApplicationGatewaySslCipherSuite] + :param min_protocol_version: Minimum version of Ssl protocol to be + supported on application gateway. Possible values include: 'TLSv1_0', + 'TLSv1_1', 'TLSv1_2' + :type min_protocol_version: str or + ~azure.mgmt.network.v2018_10_01.models.ApplicationGatewaySslProtocol + """ + + _attribute_map = { + 'disabled_ssl_protocols': {'key': 'disabledSslProtocols', 'type': '[str]'}, + 'policy_type': {'key': 'policyType', 'type': 'str'}, + 'policy_name': {'key': 'policyName', 'type': 'str'}, + 'cipher_suites': {'key': 'cipherSuites', 'type': '[str]'}, + 'min_protocol_version': {'key': 'minProtocolVersion', 'type': 'str'}, + } + + def __init__(self, *, disabled_ssl_protocols=None, policy_type=None, policy_name=None, cipher_suites=None, min_protocol_version=None, **kwargs) -> None: + super(ApplicationGatewaySslPolicy, self).__init__(**kwargs) + self.disabled_ssl_protocols = disabled_ssl_protocols + self.policy_type = policy_type + self.policy_name = policy_name + self.cipher_suites = cipher_suites + self.min_protocol_version = min_protocol_version diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_ssl_predefined_policy.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_ssl_predefined_policy.py new file mode 100644 index 000000000000..db8df72c2f3f --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_ssl_predefined_policy.py @@ -0,0 +1,44 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource import SubResource + + +class ApplicationGatewaySslPredefinedPolicy(SubResource): + """An Ssl predefined policy. + + :param id: Resource ID. + :type id: str + :param name: Name of the Ssl predefined policy. + :type name: str + :param cipher_suites: Ssl cipher suites to be enabled in the specified + order for application gateway. + :type cipher_suites: list[str or + ~azure.mgmt.network.v2018_10_01.models.ApplicationGatewaySslCipherSuite] + :param min_protocol_version: Minimum version of Ssl protocol to be + supported on application gateway. Possible values include: 'TLSv1_0', + 'TLSv1_1', 'TLSv1_2' + :type min_protocol_version: str or + ~azure.mgmt.network.v2018_10_01.models.ApplicationGatewaySslProtocol + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'cipher_suites': {'key': 'properties.cipherSuites', 'type': '[str]'}, + 'min_protocol_version': {'key': 'properties.minProtocolVersion', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ApplicationGatewaySslPredefinedPolicy, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.cipher_suites = kwargs.get('cipher_suites', None) + self.min_protocol_version = kwargs.get('min_protocol_version', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_ssl_predefined_policy_paged.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_ssl_predefined_policy_paged.py new file mode 100644 index 000000000000..eac83bf14f8c --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_ssl_predefined_policy_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class ApplicationGatewaySslPredefinedPolicyPaged(Paged): + """ + A paging container for iterating over a list of :class:`ApplicationGatewaySslPredefinedPolicy ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[ApplicationGatewaySslPredefinedPolicy]'} + } + + def __init__(self, *args, **kwargs): + + super(ApplicationGatewaySslPredefinedPolicyPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_ssl_predefined_policy_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_ssl_predefined_policy_py3.py new file mode 100644 index 000000000000..c6c159063341 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_ssl_predefined_policy_py3.py @@ -0,0 +1,44 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource_py3 import SubResource + + +class ApplicationGatewaySslPredefinedPolicy(SubResource): + """An Ssl predefined policy. + + :param id: Resource ID. + :type id: str + :param name: Name of the Ssl predefined policy. + :type name: str + :param cipher_suites: Ssl cipher suites to be enabled in the specified + order for application gateway. + :type cipher_suites: list[str or + ~azure.mgmt.network.v2018_10_01.models.ApplicationGatewaySslCipherSuite] + :param min_protocol_version: Minimum version of Ssl protocol to be + supported on application gateway. Possible values include: 'TLSv1_0', + 'TLSv1_1', 'TLSv1_2' + :type min_protocol_version: str or + ~azure.mgmt.network.v2018_10_01.models.ApplicationGatewaySslProtocol + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'cipher_suites': {'key': 'properties.cipherSuites', 'type': '[str]'}, + 'min_protocol_version': {'key': 'properties.minProtocolVersion', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, name: str=None, cipher_suites=None, min_protocol_version=None, **kwargs) -> None: + super(ApplicationGatewaySslPredefinedPolicy, self).__init__(id=id, **kwargs) + self.name = name + self.cipher_suites = cipher_suites + self.min_protocol_version = min_protocol_version diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_trusted_root_certificate.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_trusted_root_certificate.py new file mode 100644 index 000000000000..dda29dbc6621 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_trusted_root_certificate.py @@ -0,0 +1,56 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource import SubResource + + +class ApplicationGatewayTrustedRootCertificate(SubResource): + """Trusted Root certificates of an application gateway. + + :param id: Resource ID. + :type id: str + :param data: Certificate public data. + :type data: str + :param key_vault_secret_id: Secret Id of (base-64 encoded unencrypted pfx) + 'Secret' or 'Certificate' object stored in KeyVault. + :type key_vault_secret_id: str + :param provisioning_state: Provisioning state of the trusted root + certificate resource. Possible values are: 'Updating', 'Deleting', and + 'Failed'. + :type provisioning_state: str + :param name: Name of the trusted root certificate that is unique within an + Application Gateway. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + :param type: Type of the resource. + :type type: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'data': {'key': 'properties.data', 'type': 'str'}, + 'key_vault_secret_id': {'key': 'properties.keyVaultSecretId', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ApplicationGatewayTrustedRootCertificate, self).__init__(**kwargs) + self.data = kwargs.get('data', None) + self.key_vault_secret_id = kwargs.get('key_vault_secret_id', None) + self.provisioning_state = kwargs.get('provisioning_state', None) + self.name = kwargs.get('name', None) + self.etag = kwargs.get('etag', None) + self.type = kwargs.get('type', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_trusted_root_certificate_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_trusted_root_certificate_py3.py new file mode 100644 index 000000000000..32840cf863c5 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_trusted_root_certificate_py3.py @@ -0,0 +1,56 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource_py3 import SubResource + + +class ApplicationGatewayTrustedRootCertificate(SubResource): + """Trusted Root certificates of an application gateway. + + :param id: Resource ID. + :type id: str + :param data: Certificate public data. + :type data: str + :param key_vault_secret_id: Secret Id of (base-64 encoded unencrypted pfx) + 'Secret' or 'Certificate' object stored in KeyVault. + :type key_vault_secret_id: str + :param provisioning_state: Provisioning state of the trusted root + certificate resource. Possible values are: 'Updating', 'Deleting', and + 'Failed'. + :type provisioning_state: str + :param name: Name of the trusted root certificate that is unique within an + Application Gateway. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + :param type: Type of the resource. + :type type: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'data': {'key': 'properties.data', 'type': 'str'}, + 'key_vault_secret_id': {'key': 'properties.keyVaultSecretId', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, data: str=None, key_vault_secret_id: str=None, provisioning_state: str=None, name: str=None, etag: str=None, type: str=None, **kwargs) -> None: + super(ApplicationGatewayTrustedRootCertificate, self).__init__(id=id, **kwargs) + self.data = data + self.key_vault_secret_id = key_vault_secret_id + self.provisioning_state = provisioning_state + self.name = name + self.etag = etag + self.type = type diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_url_path_map.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_url_path_map.py new file mode 100644 index 000000000000..73a90f318984 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_url_path_map.py @@ -0,0 +1,76 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource import SubResource + + +class ApplicationGatewayUrlPathMap(SubResource): + """UrlPathMaps give a url path to the backend mapping information for + PathBasedRouting. + + :param id: Resource ID. + :type id: str + :param default_backend_address_pool: Default backend address pool resource + of URL path map. + :type default_backend_address_pool: + ~azure.mgmt.network.v2018_10_01.models.SubResource + :param default_backend_http_settings: Default backend http settings + resource of URL path map. + :type default_backend_http_settings: + ~azure.mgmt.network.v2018_10_01.models.SubResource + :param default_rewrite_rule_set: Default Rewrite rule set resource of URL + path map. + :type default_rewrite_rule_set: + ~azure.mgmt.network.v2018_10_01.models.SubResource + :param default_redirect_configuration: Default redirect configuration + resource of URL path map. + :type default_redirect_configuration: + ~azure.mgmt.network.v2018_10_01.models.SubResource + :param path_rules: Path rule of URL path map resource. + :type path_rules: + list[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayPathRule] + :param provisioning_state: Provisioning state of the backend http settings + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param name: Name of the URL path map that is unique within an Application + Gateway. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + :param type: Type of the resource. + :type type: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'default_backend_address_pool': {'key': 'properties.defaultBackendAddressPool', 'type': 'SubResource'}, + 'default_backend_http_settings': {'key': 'properties.defaultBackendHttpSettings', 'type': 'SubResource'}, + 'default_rewrite_rule_set': {'key': 'properties.defaultRewriteRuleSet', 'type': 'SubResource'}, + 'default_redirect_configuration': {'key': 'properties.defaultRedirectConfiguration', 'type': 'SubResource'}, + 'path_rules': {'key': 'properties.pathRules', 'type': '[ApplicationGatewayPathRule]'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ApplicationGatewayUrlPathMap, self).__init__(**kwargs) + self.default_backend_address_pool = kwargs.get('default_backend_address_pool', None) + self.default_backend_http_settings = kwargs.get('default_backend_http_settings', None) + self.default_rewrite_rule_set = kwargs.get('default_rewrite_rule_set', None) + self.default_redirect_configuration = kwargs.get('default_redirect_configuration', None) + self.path_rules = kwargs.get('path_rules', None) + self.provisioning_state = kwargs.get('provisioning_state', None) + self.name = kwargs.get('name', None) + self.etag = kwargs.get('etag', None) + self.type = kwargs.get('type', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_url_path_map_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_url_path_map_py3.py new file mode 100644 index 000000000000..0b2ad5e843f5 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_url_path_map_py3.py @@ -0,0 +1,76 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource_py3 import SubResource + + +class ApplicationGatewayUrlPathMap(SubResource): + """UrlPathMaps give a url path to the backend mapping information for + PathBasedRouting. + + :param id: Resource ID. + :type id: str + :param default_backend_address_pool: Default backend address pool resource + of URL path map. + :type default_backend_address_pool: + ~azure.mgmt.network.v2018_10_01.models.SubResource + :param default_backend_http_settings: Default backend http settings + resource of URL path map. + :type default_backend_http_settings: + ~azure.mgmt.network.v2018_10_01.models.SubResource + :param default_rewrite_rule_set: Default Rewrite rule set resource of URL + path map. + :type default_rewrite_rule_set: + ~azure.mgmt.network.v2018_10_01.models.SubResource + :param default_redirect_configuration: Default redirect configuration + resource of URL path map. + :type default_redirect_configuration: + ~azure.mgmt.network.v2018_10_01.models.SubResource + :param path_rules: Path rule of URL path map resource. + :type path_rules: + list[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayPathRule] + :param provisioning_state: Provisioning state of the backend http settings + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param name: Name of the URL path map that is unique within an Application + Gateway. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + :param type: Type of the resource. + :type type: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'default_backend_address_pool': {'key': 'properties.defaultBackendAddressPool', 'type': 'SubResource'}, + 'default_backend_http_settings': {'key': 'properties.defaultBackendHttpSettings', 'type': 'SubResource'}, + 'default_rewrite_rule_set': {'key': 'properties.defaultRewriteRuleSet', 'type': 'SubResource'}, + 'default_redirect_configuration': {'key': 'properties.defaultRedirectConfiguration', 'type': 'SubResource'}, + 'path_rules': {'key': 'properties.pathRules', 'type': '[ApplicationGatewayPathRule]'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, default_backend_address_pool=None, default_backend_http_settings=None, default_rewrite_rule_set=None, default_redirect_configuration=None, path_rules=None, provisioning_state: str=None, name: str=None, etag: str=None, type: str=None, **kwargs) -> None: + super(ApplicationGatewayUrlPathMap, self).__init__(id=id, **kwargs) + self.default_backend_address_pool = default_backend_address_pool + self.default_backend_http_settings = default_backend_http_settings + self.default_rewrite_rule_set = default_rewrite_rule_set + self.default_redirect_configuration = default_redirect_configuration + self.path_rules = path_rules + self.provisioning_state = provisioning_state + self.name = name + self.etag = etag + self.type = type diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_web_application_firewall_configuration.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_web_application_firewall_configuration.py new file mode 100644 index 000000000000..33bd083f04ba --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_web_application_firewall_configuration.py @@ -0,0 +1,83 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ApplicationGatewayWebApplicationFirewallConfiguration(Model): + """Application gateway web application firewall configuration. + + All required parameters must be populated in order to send to Azure. + + :param enabled: Required. Whether the web application firewall is enabled + or not. + :type enabled: bool + :param firewall_mode: Required. Web application firewall mode. Possible + values include: 'Detection', 'Prevention' + :type firewall_mode: str or + ~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayFirewallMode + :param rule_set_type: Required. The type of the web application firewall + rule set. Possible values are: 'OWASP'. + :type rule_set_type: str + :param rule_set_version: Required. The version of the rule set type. + :type rule_set_version: str + :param disabled_rule_groups: The disabled rule groups. + :type disabled_rule_groups: + list[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayFirewallDisabledRuleGroup] + :param request_body_check: Whether allow WAF to check request Body. + :type request_body_check: bool + :param max_request_body_size: Maxium request body size for WAF. + :type max_request_body_size: int + :param max_request_body_size_in_kb: Maxium request body size in Kb for + WAF. + :type max_request_body_size_in_kb: int + :param file_upload_limit_in_mb: Maxium file upload size in Mb for WAF. + :type file_upload_limit_in_mb: int + :param exclusions: The exclusion list. + :type exclusions: + list[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayFirewallExclusion] + """ + + _validation = { + 'enabled': {'required': True}, + 'firewall_mode': {'required': True}, + 'rule_set_type': {'required': True}, + 'rule_set_version': {'required': True}, + 'max_request_body_size': {'maximum': 128, 'minimum': 8}, + 'max_request_body_size_in_kb': {'maximum': 128, 'minimum': 8}, + 'file_upload_limit_in_mb': {'maximum': 500, 'minimum': 0}, + } + + _attribute_map = { + 'enabled': {'key': 'enabled', 'type': 'bool'}, + 'firewall_mode': {'key': 'firewallMode', 'type': 'str'}, + 'rule_set_type': {'key': 'ruleSetType', 'type': 'str'}, + 'rule_set_version': {'key': 'ruleSetVersion', 'type': 'str'}, + 'disabled_rule_groups': {'key': 'disabledRuleGroups', 'type': '[ApplicationGatewayFirewallDisabledRuleGroup]'}, + 'request_body_check': {'key': 'requestBodyCheck', 'type': 'bool'}, + 'max_request_body_size': {'key': 'maxRequestBodySize', 'type': 'int'}, + 'max_request_body_size_in_kb': {'key': 'maxRequestBodySizeInKb', 'type': 'int'}, + 'file_upload_limit_in_mb': {'key': 'fileUploadLimitInMb', 'type': 'int'}, + 'exclusions': {'key': 'exclusions', 'type': '[ApplicationGatewayFirewallExclusion]'}, + } + + def __init__(self, **kwargs): + super(ApplicationGatewayWebApplicationFirewallConfiguration, self).__init__(**kwargs) + self.enabled = kwargs.get('enabled', None) + self.firewall_mode = kwargs.get('firewall_mode', None) + self.rule_set_type = kwargs.get('rule_set_type', None) + self.rule_set_version = kwargs.get('rule_set_version', None) + self.disabled_rule_groups = kwargs.get('disabled_rule_groups', None) + self.request_body_check = kwargs.get('request_body_check', None) + self.max_request_body_size = kwargs.get('max_request_body_size', None) + self.max_request_body_size_in_kb = kwargs.get('max_request_body_size_in_kb', None) + self.file_upload_limit_in_mb = kwargs.get('file_upload_limit_in_mb', None) + self.exclusions = kwargs.get('exclusions', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_web_application_firewall_configuration_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_web_application_firewall_configuration_py3.py new file mode 100644 index 000000000000..b0fc2ca476dd --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_gateway_web_application_firewall_configuration_py3.py @@ -0,0 +1,83 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ApplicationGatewayWebApplicationFirewallConfiguration(Model): + """Application gateway web application firewall configuration. + + All required parameters must be populated in order to send to Azure. + + :param enabled: Required. Whether the web application firewall is enabled + or not. + :type enabled: bool + :param firewall_mode: Required. Web application firewall mode. Possible + values include: 'Detection', 'Prevention' + :type firewall_mode: str or + ~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayFirewallMode + :param rule_set_type: Required. The type of the web application firewall + rule set. Possible values are: 'OWASP'. + :type rule_set_type: str + :param rule_set_version: Required. The version of the rule set type. + :type rule_set_version: str + :param disabled_rule_groups: The disabled rule groups. + :type disabled_rule_groups: + list[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayFirewallDisabledRuleGroup] + :param request_body_check: Whether allow WAF to check request Body. + :type request_body_check: bool + :param max_request_body_size: Maxium request body size for WAF. + :type max_request_body_size: int + :param max_request_body_size_in_kb: Maxium request body size in Kb for + WAF. + :type max_request_body_size_in_kb: int + :param file_upload_limit_in_mb: Maxium file upload size in Mb for WAF. + :type file_upload_limit_in_mb: int + :param exclusions: The exclusion list. + :type exclusions: + list[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayFirewallExclusion] + """ + + _validation = { + 'enabled': {'required': True}, + 'firewall_mode': {'required': True}, + 'rule_set_type': {'required': True}, + 'rule_set_version': {'required': True}, + 'max_request_body_size': {'maximum': 128, 'minimum': 8}, + 'max_request_body_size_in_kb': {'maximum': 128, 'minimum': 8}, + 'file_upload_limit_in_mb': {'maximum': 500, 'minimum': 0}, + } + + _attribute_map = { + 'enabled': {'key': 'enabled', 'type': 'bool'}, + 'firewall_mode': {'key': 'firewallMode', 'type': 'str'}, + 'rule_set_type': {'key': 'ruleSetType', 'type': 'str'}, + 'rule_set_version': {'key': 'ruleSetVersion', 'type': 'str'}, + 'disabled_rule_groups': {'key': 'disabledRuleGroups', 'type': '[ApplicationGatewayFirewallDisabledRuleGroup]'}, + 'request_body_check': {'key': 'requestBodyCheck', 'type': 'bool'}, + 'max_request_body_size': {'key': 'maxRequestBodySize', 'type': 'int'}, + 'max_request_body_size_in_kb': {'key': 'maxRequestBodySizeInKb', 'type': 'int'}, + 'file_upload_limit_in_mb': {'key': 'fileUploadLimitInMb', 'type': 'int'}, + 'exclusions': {'key': 'exclusions', 'type': '[ApplicationGatewayFirewallExclusion]'}, + } + + def __init__(self, *, enabled: bool, firewall_mode, rule_set_type: str, rule_set_version: str, disabled_rule_groups=None, request_body_check: bool=None, max_request_body_size: int=None, max_request_body_size_in_kb: int=None, file_upload_limit_in_mb: int=None, exclusions=None, **kwargs) -> None: + super(ApplicationGatewayWebApplicationFirewallConfiguration, self).__init__(**kwargs) + self.enabled = enabled + self.firewall_mode = firewall_mode + self.rule_set_type = rule_set_type + self.rule_set_version = rule_set_version + self.disabled_rule_groups = disabled_rule_groups + self.request_body_check = request_body_check + self.max_request_body_size = max_request_body_size + self.max_request_body_size_in_kb = max_request_body_size_in_kb + self.file_upload_limit_in_mb = file_upload_limit_in_mb + self.exclusions = exclusions diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_security_group.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_security_group.py new file mode 100644 index 000000000000..1372f778ae62 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_security_group.py @@ -0,0 +1,68 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource import Resource + + +class ApplicationSecurityGroup(Resource): + """An application security group in a resource group. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :ivar resource_guid: The resource GUID property of the application + security group resource. It uniquely identifies a resource, even if the + user changes its name or migrate the resource across subscriptions or + resource groups. + :vartype resource_guid: str + :ivar provisioning_state: The provisioning state of the application + security group resource. Possible values are: 'Succeeded', 'Updating', + 'Deleting', and 'Failed'. + :vartype provisioning_state: str + :ivar etag: A unique read-only string that changes whenever the resource + is updated. + :vartype etag: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'resource_guid': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'resource_guid': {'key': 'properties.resourceGuid', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ApplicationSecurityGroup, self).__init__(**kwargs) + self.resource_guid = None + self.provisioning_state = None + self.etag = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_security_group_paged.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_security_group_paged.py new file mode 100644 index 000000000000..2c4378d42f52 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_security_group_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class ApplicationSecurityGroupPaged(Paged): + """ + A paging container for iterating over a list of :class:`ApplicationSecurityGroup ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[ApplicationSecurityGroup]'} + } + + def __init__(self, *args, **kwargs): + + super(ApplicationSecurityGroupPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_security_group_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_security_group_py3.py new file mode 100644 index 000000000000..fba3b3a222a5 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/application_security_group_py3.py @@ -0,0 +1,68 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource_py3 import Resource + + +class ApplicationSecurityGroup(Resource): + """An application security group in a resource group. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :ivar resource_guid: The resource GUID property of the application + security group resource. It uniquely identifies a resource, even if the + user changes its name or migrate the resource across subscriptions or + resource groups. + :vartype resource_guid: str + :ivar provisioning_state: The provisioning state of the application + security group resource. Possible values are: 'Succeeded', 'Updating', + 'Deleting', and 'Failed'. + :vartype provisioning_state: str + :ivar etag: A unique read-only string that changes whenever the resource + is updated. + :vartype etag: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'resource_guid': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'resource_guid': {'key': 'properties.resourceGuid', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, location: str=None, tags=None, **kwargs) -> None: + super(ApplicationSecurityGroup, self).__init__(id=id, location=location, tags=tags, **kwargs) + self.resource_guid = None + self.provisioning_state = None + self.etag = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/availability.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/availability.py new file mode 100644 index 000000000000..16b7cfa04955 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/availability.py @@ -0,0 +1,36 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class Availability(Model): + """Availability of the metric. + + :param time_grain: The time grain of the availability. + :type time_grain: str + :param retention: The retention of the availability. + :type retention: str + :param blob_duration: Duration of the availability blob. + :type blob_duration: str + """ + + _attribute_map = { + 'time_grain': {'key': 'timeGrain', 'type': 'str'}, + 'retention': {'key': 'retention', 'type': 'str'}, + 'blob_duration': {'key': 'blobDuration', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Availability, self).__init__(**kwargs) + self.time_grain = kwargs.get('time_grain', None) + self.retention = kwargs.get('retention', None) + self.blob_duration = kwargs.get('blob_duration', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/availability_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/availability_py3.py new file mode 100644 index 000000000000..874d8878184f --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/availability_py3.py @@ -0,0 +1,36 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class Availability(Model): + """Availability of the metric. + + :param time_grain: The time grain of the availability. + :type time_grain: str + :param retention: The retention of the availability. + :type retention: str + :param blob_duration: Duration of the availability blob. + :type blob_duration: str + """ + + _attribute_map = { + 'time_grain': {'key': 'timeGrain', 'type': 'str'}, + 'retention': {'key': 'retention', 'type': 'str'}, + 'blob_duration': {'key': 'blobDuration', 'type': 'str'}, + } + + def __init__(self, *, time_grain: str=None, retention: str=None, blob_duration: str=None, **kwargs) -> None: + super(Availability, self).__init__(**kwargs) + self.time_grain = time_grain + self.retention = retention + self.blob_duration = blob_duration diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/available_delegation.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/available_delegation.py new file mode 100644 index 000000000000..71c61ffa9624 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/available_delegation.py @@ -0,0 +1,46 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AvailableDelegation(Model): + """The serviceName of an AvailableDelegation indicates a possible delegation + for a subnet. + + :param name: The name of the AvailableDelegation resource. + :type name: str + :param id: A unique identifier of the AvailableDelegation resource. + :type id: str + :param type: Resource type. + :type type: str + :param service_name: The name of the service and resource + :type service_name: str + :param actions: Describes the actions permitted to the service upon + delegation + :type actions: list[str] + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'service_name': {'key': 'serviceName', 'type': 'str'}, + 'actions': {'key': 'actions', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(AvailableDelegation, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.id = kwargs.get('id', None) + self.type = kwargs.get('type', None) + self.service_name = kwargs.get('service_name', None) + self.actions = kwargs.get('actions', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/available_delegation_paged.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/available_delegation_paged.py new file mode 100644 index 000000000000..10ee7d815a20 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/available_delegation_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class AvailableDelegationPaged(Paged): + """ + A paging container for iterating over a list of :class:`AvailableDelegation ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[AvailableDelegation]'} + } + + def __init__(self, *args, **kwargs): + + super(AvailableDelegationPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/available_delegation_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/available_delegation_py3.py new file mode 100644 index 000000000000..c5e8ae7405b5 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/available_delegation_py3.py @@ -0,0 +1,46 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AvailableDelegation(Model): + """The serviceName of an AvailableDelegation indicates a possible delegation + for a subnet. + + :param name: The name of the AvailableDelegation resource. + :type name: str + :param id: A unique identifier of the AvailableDelegation resource. + :type id: str + :param type: Resource type. + :type type: str + :param service_name: The name of the service and resource + :type service_name: str + :param actions: Describes the actions permitted to the service upon + delegation + :type actions: list[str] + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'service_name': {'key': 'serviceName', 'type': 'str'}, + 'actions': {'key': 'actions', 'type': '[str]'}, + } + + def __init__(self, *, name: str=None, id: str=None, type: str=None, service_name: str=None, actions=None, **kwargs) -> None: + super(AvailableDelegation, self).__init__(**kwargs) + self.name = name + self.id = id + self.type = type + self.service_name = service_name + self.actions = actions diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/available_providers_list.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/available_providers_list.py new file mode 100644 index 000000000000..0e241333da42 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/available_providers_list.py @@ -0,0 +1,35 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AvailableProvidersList(Model): + """List of available countries with details. + + All required parameters must be populated in order to send to Azure. + + :param countries: Required. List of available countries. + :type countries: + list[~azure.mgmt.network.v2018_10_01.models.AvailableProvidersListCountry] + """ + + _validation = { + 'countries': {'required': True}, + } + + _attribute_map = { + 'countries': {'key': 'countries', 'type': '[AvailableProvidersListCountry]'}, + } + + def __init__(self, **kwargs): + super(AvailableProvidersList, self).__init__(**kwargs) + self.countries = kwargs.get('countries', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/available_providers_list_city.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/available_providers_list_city.py new file mode 100644 index 000000000000..5f9aa271b981 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/available_providers_list_city.py @@ -0,0 +1,32 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AvailableProvidersListCity(Model): + """City or town details. + + :param city_name: The city or town name. + :type city_name: str + :param providers: A list of Internet service providers. + :type providers: list[str] + """ + + _attribute_map = { + 'city_name': {'key': 'cityName', 'type': 'str'}, + 'providers': {'key': 'providers', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(AvailableProvidersListCity, self).__init__(**kwargs) + self.city_name = kwargs.get('city_name', None) + self.providers = kwargs.get('providers', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/available_providers_list_city_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/available_providers_list_city_py3.py new file mode 100644 index 000000000000..888aa46a7cfc --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/available_providers_list_city_py3.py @@ -0,0 +1,32 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AvailableProvidersListCity(Model): + """City or town details. + + :param city_name: The city or town name. + :type city_name: str + :param providers: A list of Internet service providers. + :type providers: list[str] + """ + + _attribute_map = { + 'city_name': {'key': 'cityName', 'type': 'str'}, + 'providers': {'key': 'providers', 'type': '[str]'}, + } + + def __init__(self, *, city_name: str=None, providers=None, **kwargs) -> None: + super(AvailableProvidersListCity, self).__init__(**kwargs) + self.city_name = city_name + self.providers = providers diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/available_providers_list_country.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/available_providers_list_country.py new file mode 100644 index 000000000000..70e0872425a3 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/available_providers_list_country.py @@ -0,0 +1,37 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AvailableProvidersListCountry(Model): + """Country details. + + :param country_name: The country name. + :type country_name: str + :param providers: A list of Internet service providers. + :type providers: list[str] + :param states: List of available states in the country. + :type states: + list[~azure.mgmt.network.v2018_10_01.models.AvailableProvidersListState] + """ + + _attribute_map = { + 'country_name': {'key': 'countryName', 'type': 'str'}, + 'providers': {'key': 'providers', 'type': '[str]'}, + 'states': {'key': 'states', 'type': '[AvailableProvidersListState]'}, + } + + def __init__(self, **kwargs): + super(AvailableProvidersListCountry, self).__init__(**kwargs) + self.country_name = kwargs.get('country_name', None) + self.providers = kwargs.get('providers', None) + self.states = kwargs.get('states', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/available_providers_list_country_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/available_providers_list_country_py3.py new file mode 100644 index 000000000000..7bcd8db8507c --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/available_providers_list_country_py3.py @@ -0,0 +1,37 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AvailableProvidersListCountry(Model): + """Country details. + + :param country_name: The country name. + :type country_name: str + :param providers: A list of Internet service providers. + :type providers: list[str] + :param states: List of available states in the country. + :type states: + list[~azure.mgmt.network.v2018_10_01.models.AvailableProvidersListState] + """ + + _attribute_map = { + 'country_name': {'key': 'countryName', 'type': 'str'}, + 'providers': {'key': 'providers', 'type': '[str]'}, + 'states': {'key': 'states', 'type': '[AvailableProvidersListState]'}, + } + + def __init__(self, *, country_name: str=None, providers=None, states=None, **kwargs) -> None: + super(AvailableProvidersListCountry, self).__init__(**kwargs) + self.country_name = country_name + self.providers = providers + self.states = states diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/available_providers_list_parameters.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/available_providers_list_parameters.py new file mode 100644 index 000000000000..152b3b787c2b --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/available_providers_list_parameters.py @@ -0,0 +1,41 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AvailableProvidersListParameters(Model): + """Constraints that determine the list of available Internet service + providers. + + :param azure_locations: A list of Azure regions. + :type azure_locations: list[str] + :param country: The country for available providers list. + :type country: str + :param state: The state for available providers list. + :type state: str + :param city: The city or town for available providers list. + :type city: str + """ + + _attribute_map = { + 'azure_locations': {'key': 'azureLocations', 'type': '[str]'}, + 'country': {'key': 'country', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'}, + 'city': {'key': 'city', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AvailableProvidersListParameters, self).__init__(**kwargs) + self.azure_locations = kwargs.get('azure_locations', None) + self.country = kwargs.get('country', None) + self.state = kwargs.get('state', None) + self.city = kwargs.get('city', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/available_providers_list_parameters_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/available_providers_list_parameters_py3.py new file mode 100644 index 000000000000..d5c541a7fcb6 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/available_providers_list_parameters_py3.py @@ -0,0 +1,41 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AvailableProvidersListParameters(Model): + """Constraints that determine the list of available Internet service + providers. + + :param azure_locations: A list of Azure regions. + :type azure_locations: list[str] + :param country: The country for available providers list. + :type country: str + :param state: The state for available providers list. + :type state: str + :param city: The city or town for available providers list. + :type city: str + """ + + _attribute_map = { + 'azure_locations': {'key': 'azureLocations', 'type': '[str]'}, + 'country': {'key': 'country', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'}, + 'city': {'key': 'city', 'type': 'str'}, + } + + def __init__(self, *, azure_locations=None, country: str=None, state: str=None, city: str=None, **kwargs) -> None: + super(AvailableProvidersListParameters, self).__init__(**kwargs) + self.azure_locations = azure_locations + self.country = country + self.state = state + self.city = city diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/available_providers_list_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/available_providers_list_py3.py new file mode 100644 index 000000000000..1114e1a08a3c --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/available_providers_list_py3.py @@ -0,0 +1,35 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AvailableProvidersList(Model): + """List of available countries with details. + + All required parameters must be populated in order to send to Azure. + + :param countries: Required. List of available countries. + :type countries: + list[~azure.mgmt.network.v2018_10_01.models.AvailableProvidersListCountry] + """ + + _validation = { + 'countries': {'required': True}, + } + + _attribute_map = { + 'countries': {'key': 'countries', 'type': '[AvailableProvidersListCountry]'}, + } + + def __init__(self, *, countries, **kwargs) -> None: + super(AvailableProvidersList, self).__init__(**kwargs) + self.countries = countries diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/available_providers_list_state.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/available_providers_list_state.py new file mode 100644 index 000000000000..520a28144edf --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/available_providers_list_state.py @@ -0,0 +1,37 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AvailableProvidersListState(Model): + """State details. + + :param state_name: The state name. + :type state_name: str + :param providers: A list of Internet service providers. + :type providers: list[str] + :param cities: List of available cities or towns in the state. + :type cities: + list[~azure.mgmt.network.v2018_10_01.models.AvailableProvidersListCity] + """ + + _attribute_map = { + 'state_name': {'key': 'stateName', 'type': 'str'}, + 'providers': {'key': 'providers', 'type': '[str]'}, + 'cities': {'key': 'cities', 'type': '[AvailableProvidersListCity]'}, + } + + def __init__(self, **kwargs): + super(AvailableProvidersListState, self).__init__(**kwargs) + self.state_name = kwargs.get('state_name', None) + self.providers = kwargs.get('providers', None) + self.cities = kwargs.get('cities', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/available_providers_list_state_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/available_providers_list_state_py3.py new file mode 100644 index 000000000000..54adc6bb16cb --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/available_providers_list_state_py3.py @@ -0,0 +1,37 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AvailableProvidersListState(Model): + """State details. + + :param state_name: The state name. + :type state_name: str + :param providers: A list of Internet service providers. + :type providers: list[str] + :param cities: List of available cities or towns in the state. + :type cities: + list[~azure.mgmt.network.v2018_10_01.models.AvailableProvidersListCity] + """ + + _attribute_map = { + 'state_name': {'key': 'stateName', 'type': 'str'}, + 'providers': {'key': 'providers', 'type': '[str]'}, + 'cities': {'key': 'cities', 'type': '[AvailableProvidersListCity]'}, + } + + def __init__(self, *, state_name: str=None, providers=None, cities=None, **kwargs) -> None: + super(AvailableProvidersListState, self).__init__(**kwargs) + self.state_name = state_name + self.providers = providers + self.cities = cities diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_async_operation_result.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_async_operation_result.py new file mode 100644 index 000000000000..49cb9c074cc2 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_async_operation_result.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AzureAsyncOperationResult(Model): + """The response body contains the status of the specified asynchronous + operation, indicating whether it has succeeded, is in progress, or has + failed. Note that this status is distinct from the HTTP status code + returned for the Get Operation Status operation itself. If the asynchronous + operation succeeded, the response body includes the HTTP status code for + the successful request. If the asynchronous operation failed, the response + body includes the HTTP status code for the failed request and error + information regarding the failure. + + :param status: Status of the Azure async operation. Possible values are: + 'InProgress', 'Succeeded', and 'Failed'. Possible values include: + 'InProgress', 'Succeeded', 'Failed' + :type status: str or + ~azure.mgmt.network.v2018_10_01.models.NetworkOperationStatus + :param error: + :type error: ~azure.mgmt.network.v2018_10_01.models.Error + """ + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, + 'error': {'key': 'error', 'type': 'Error'}, + } + + def __init__(self, **kwargs): + super(AzureAsyncOperationResult, self).__init__(**kwargs) + self.status = kwargs.get('status', None) + self.error = kwargs.get('error', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_async_operation_result_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_async_operation_result_py3.py new file mode 100644 index 000000000000..78804c2c514c --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_async_operation_result_py3.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AzureAsyncOperationResult(Model): + """The response body contains the status of the specified asynchronous + operation, indicating whether it has succeeded, is in progress, or has + failed. Note that this status is distinct from the HTTP status code + returned for the Get Operation Status operation itself. If the asynchronous + operation succeeded, the response body includes the HTTP status code for + the successful request. If the asynchronous operation failed, the response + body includes the HTTP status code for the failed request and error + information regarding the failure. + + :param status: Status of the Azure async operation. Possible values are: + 'InProgress', 'Succeeded', and 'Failed'. Possible values include: + 'InProgress', 'Succeeded', 'Failed' + :type status: str or + ~azure.mgmt.network.v2018_10_01.models.NetworkOperationStatus + :param error: + :type error: ~azure.mgmt.network.v2018_10_01.models.Error + """ + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, + 'error': {'key': 'error', 'type': 'Error'}, + } + + def __init__(self, *, status=None, error=None, **kwargs) -> None: + super(AzureAsyncOperationResult, self).__init__(**kwargs) + self.status = status + self.error = error diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall.py new file mode 100644 index 000000000000..f0c4799e9c8d --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall.py @@ -0,0 +1,82 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource import Resource + + +class AzureFirewall(Resource): + """Azure Firewall resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param application_rule_collections: Collection of application rule + collections used by Azure Firewall. + :type application_rule_collections: + list[~azure.mgmt.network.v2018_10_01.models.AzureFirewallApplicationRuleCollection] + :param nat_rule_collections: Collection of NAT rule collections used by + Azure Firewall. + :type nat_rule_collections: + list[~azure.mgmt.network.v2018_10_01.models.AzureFirewallNatRuleCollection] + :param network_rule_collections: Collection of network rule collections + used by Azure Firewall. + :type network_rule_collections: + list[~azure.mgmt.network.v2018_10_01.models.AzureFirewallNetworkRuleCollection] + :param ip_configurations: IP configuration of the Azure Firewall resource. + :type ip_configurations: + list[~azure.mgmt.network.v2018_10_01.models.AzureFirewallIPConfiguration] + :param provisioning_state: The provisioning state of the resource. + Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + :type provisioning_state: str or + ~azure.mgmt.network.v2018_10_01.models.ProvisioningState + :ivar etag: Gets a unique read-only string that changes whenever the + resource is updated. + :vartype etag: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'application_rule_collections': {'key': 'properties.applicationRuleCollections', 'type': '[AzureFirewallApplicationRuleCollection]'}, + 'nat_rule_collections': {'key': 'properties.natRuleCollections', 'type': '[AzureFirewallNatRuleCollection]'}, + 'network_rule_collections': {'key': 'properties.networkRuleCollections', 'type': '[AzureFirewallNetworkRuleCollection]'}, + 'ip_configurations': {'key': 'properties.ipConfigurations', 'type': '[AzureFirewallIPConfiguration]'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AzureFirewall, self).__init__(**kwargs) + self.application_rule_collections = kwargs.get('application_rule_collections', None) + self.nat_rule_collections = kwargs.get('nat_rule_collections', None) + self.network_rule_collections = kwargs.get('network_rule_collections', None) + self.ip_configurations = kwargs.get('ip_configurations', None) + self.provisioning_state = kwargs.get('provisioning_state', None) + self.etag = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_application_rule.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_application_rule.py new file mode 100644 index 000000000000..bbf9943e3bf2 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_application_rule.py @@ -0,0 +1,49 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AzureFirewallApplicationRule(Model): + """Properties of an application rule. + + :param name: Name of the application rule. + :type name: str + :param description: Description of the rule. + :type description: str + :param source_addresses: List of source IP addresses for this rule. + :type source_addresses: list[str] + :param protocols: Array of ApplicationRuleProtocols. + :type protocols: + list[~azure.mgmt.network.v2018_10_01.models.AzureFirewallApplicationRuleProtocol] + :param target_fqdns: List of FQDNs for this rule. + :type target_fqdns: list[str] + :param fqdn_tags: List of FQDN Tags for this rule. + :type fqdn_tags: list[str] + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'source_addresses': {'key': 'sourceAddresses', 'type': '[str]'}, + 'protocols': {'key': 'protocols', 'type': '[AzureFirewallApplicationRuleProtocol]'}, + 'target_fqdns': {'key': 'targetFqdns', 'type': '[str]'}, + 'fqdn_tags': {'key': 'fqdnTags', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(AzureFirewallApplicationRule, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.description = kwargs.get('description', None) + self.source_addresses = kwargs.get('source_addresses', None) + self.protocols = kwargs.get('protocols', None) + self.target_fqdns = kwargs.get('target_fqdns', None) + self.fqdn_tags = kwargs.get('fqdn_tags', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_application_rule_collection.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_application_rule_collection.py new file mode 100644 index 000000000000..04f99960ecd0 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_application_rule_collection.py @@ -0,0 +1,64 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource import SubResource + + +class AzureFirewallApplicationRuleCollection(SubResource): + """Application rule collection resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :param priority: Priority of the application rule collection resource. + :type priority: int + :param action: The action type of a rule collection + :type action: ~azure.mgmt.network.v2018_10_01.models.AzureFirewallRCAction + :param rules: Collection of rules used by a application rule collection. + :type rules: + list[~azure.mgmt.network.v2018_10_01.models.AzureFirewallApplicationRule] + :param provisioning_state: The provisioning state of the resource. + Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + :type provisioning_state: str or + ~azure.mgmt.network.v2018_10_01.models.ProvisioningState + :param name: Gets name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :ivar etag: Gets a unique read-only string that changes whenever the + resource is updated. + :vartype etag: str + """ + + _validation = { + 'priority': {'maximum': 65000, 'minimum': 100}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'priority': {'key': 'properties.priority', 'type': 'int'}, + 'action': {'key': 'properties.action', 'type': 'AzureFirewallRCAction'}, + 'rules': {'key': 'properties.rules', 'type': '[AzureFirewallApplicationRule]'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AzureFirewallApplicationRuleCollection, self).__init__(**kwargs) + self.priority = kwargs.get('priority', None) + self.action = kwargs.get('action', None) + self.rules = kwargs.get('rules', None) + self.provisioning_state = kwargs.get('provisioning_state', None) + self.name = kwargs.get('name', None) + self.etag = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_application_rule_collection_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_application_rule_collection_py3.py new file mode 100644 index 000000000000..ff8182bd5b37 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_application_rule_collection_py3.py @@ -0,0 +1,64 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource_py3 import SubResource + + +class AzureFirewallApplicationRuleCollection(SubResource): + """Application rule collection resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :param priority: Priority of the application rule collection resource. + :type priority: int + :param action: The action type of a rule collection + :type action: ~azure.mgmt.network.v2018_10_01.models.AzureFirewallRCAction + :param rules: Collection of rules used by a application rule collection. + :type rules: + list[~azure.mgmt.network.v2018_10_01.models.AzureFirewallApplicationRule] + :param provisioning_state: The provisioning state of the resource. + Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + :type provisioning_state: str or + ~azure.mgmt.network.v2018_10_01.models.ProvisioningState + :param name: Gets name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :ivar etag: Gets a unique read-only string that changes whenever the + resource is updated. + :vartype etag: str + """ + + _validation = { + 'priority': {'maximum': 65000, 'minimum': 100}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'priority': {'key': 'properties.priority', 'type': 'int'}, + 'action': {'key': 'properties.action', 'type': 'AzureFirewallRCAction'}, + 'rules': {'key': 'properties.rules', 'type': '[AzureFirewallApplicationRule]'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, priority: int=None, action=None, rules=None, provisioning_state=None, name: str=None, **kwargs) -> None: + super(AzureFirewallApplicationRuleCollection, self).__init__(id=id, **kwargs) + self.priority = priority + self.action = action + self.rules = rules + self.provisioning_state = provisioning_state + self.name = name + self.etag = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_application_rule_protocol.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_application_rule_protocol.py new file mode 100644 index 000000000000..841b469b8fd3 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_application_rule_protocol.py @@ -0,0 +1,39 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AzureFirewallApplicationRuleProtocol(Model): + """Properties of the application rule protocol. + + :param protocol_type: Protocol type. Possible values include: 'Http', + 'Https' + :type protocol_type: str or + ~azure.mgmt.network.v2018_10_01.models.AzureFirewallApplicationRuleProtocolType + :param port: Port number for the protocol, cannot be greater than 64000. + This field is optional. + :type port: int + """ + + _validation = { + 'port': {'maximum': 64000, 'minimum': 0}, + } + + _attribute_map = { + 'protocol_type': {'key': 'protocolType', 'type': 'str'}, + 'port': {'key': 'port', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(AzureFirewallApplicationRuleProtocol, self).__init__(**kwargs) + self.protocol_type = kwargs.get('protocol_type', None) + self.port = kwargs.get('port', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_application_rule_protocol_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_application_rule_protocol_py3.py new file mode 100644 index 000000000000..0a237888698b --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_application_rule_protocol_py3.py @@ -0,0 +1,39 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AzureFirewallApplicationRuleProtocol(Model): + """Properties of the application rule protocol. + + :param protocol_type: Protocol type. Possible values include: 'Http', + 'Https' + :type protocol_type: str or + ~azure.mgmt.network.v2018_10_01.models.AzureFirewallApplicationRuleProtocolType + :param port: Port number for the protocol, cannot be greater than 64000. + This field is optional. + :type port: int + """ + + _validation = { + 'port': {'maximum': 64000, 'minimum': 0}, + } + + _attribute_map = { + 'protocol_type': {'key': 'protocolType', 'type': 'str'}, + 'port': {'key': 'port', 'type': 'int'}, + } + + def __init__(self, *, protocol_type=None, port: int=None, **kwargs) -> None: + super(AzureFirewallApplicationRuleProtocol, self).__init__(**kwargs) + self.protocol_type = protocol_type + self.port = port diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_application_rule_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_application_rule_py3.py new file mode 100644 index 000000000000..7687a49b5eda --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_application_rule_py3.py @@ -0,0 +1,49 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AzureFirewallApplicationRule(Model): + """Properties of an application rule. + + :param name: Name of the application rule. + :type name: str + :param description: Description of the rule. + :type description: str + :param source_addresses: List of source IP addresses for this rule. + :type source_addresses: list[str] + :param protocols: Array of ApplicationRuleProtocols. + :type protocols: + list[~azure.mgmt.network.v2018_10_01.models.AzureFirewallApplicationRuleProtocol] + :param target_fqdns: List of FQDNs for this rule. + :type target_fqdns: list[str] + :param fqdn_tags: List of FQDN Tags for this rule. + :type fqdn_tags: list[str] + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'source_addresses': {'key': 'sourceAddresses', 'type': '[str]'}, + 'protocols': {'key': 'protocols', 'type': '[AzureFirewallApplicationRuleProtocol]'}, + 'target_fqdns': {'key': 'targetFqdns', 'type': '[str]'}, + 'fqdn_tags': {'key': 'fqdnTags', 'type': '[str]'}, + } + + def __init__(self, *, name: str=None, description: str=None, source_addresses=None, protocols=None, target_fqdns=None, fqdn_tags=None, **kwargs) -> None: + super(AzureFirewallApplicationRule, self).__init__(**kwargs) + self.name = name + self.description = description + self.source_addresses = source_addresses + self.protocols = protocols + self.target_fqdns = target_fqdns + self.fqdn_tags = fqdn_tags diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_fqdn_tag.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_fqdn_tag.py new file mode 100644 index 000000000000..bdcfb4d45e6c --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_fqdn_tag.py @@ -0,0 +1,63 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource import Resource + + +class AzureFirewallFqdnTag(Resource): + """Azure Firewall FQDN Tag Resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :ivar provisioning_state: The provisioning state of the resource. + :vartype provisioning_state: str + :ivar fqdn_tag_name: The name of this FQDN Tag. + :vartype fqdn_tag_name: str + :ivar etag: Gets a unique read-only string that changes whenever the + resource is updated. + :vartype etag: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'fqdn_tag_name': {'readonly': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'fqdn_tag_name': {'key': 'properties.fqdnTagName', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AzureFirewallFqdnTag, self).__init__(**kwargs) + self.provisioning_state = None + self.fqdn_tag_name = None + self.etag = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_fqdn_tag_paged.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_fqdn_tag_paged.py new file mode 100644 index 000000000000..a0e0cdca3fe0 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_fqdn_tag_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class AzureFirewallFqdnTagPaged(Paged): + """ + A paging container for iterating over a list of :class:`AzureFirewallFqdnTag ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[AzureFirewallFqdnTag]'} + } + + def __init__(self, *args, **kwargs): + + super(AzureFirewallFqdnTagPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_fqdn_tag_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_fqdn_tag_py3.py new file mode 100644 index 000000000000..cb9e4ca2158d --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_fqdn_tag_py3.py @@ -0,0 +1,63 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource_py3 import Resource + + +class AzureFirewallFqdnTag(Resource): + """Azure Firewall FQDN Tag Resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :ivar provisioning_state: The provisioning state of the resource. + :vartype provisioning_state: str + :ivar fqdn_tag_name: The name of this FQDN Tag. + :vartype fqdn_tag_name: str + :ivar etag: Gets a unique read-only string that changes whenever the + resource is updated. + :vartype etag: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'fqdn_tag_name': {'readonly': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'fqdn_tag_name': {'key': 'properties.fqdnTagName', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, location: str=None, tags=None, **kwargs) -> None: + super(AzureFirewallFqdnTag, self).__init__(id=id, location=location, tags=tags, **kwargs) + self.provisioning_state = None + self.fqdn_tag_name = None + self.etag = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_ip_configuration.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_ip_configuration.py new file mode 100644 index 000000000000..1101b8f76c4a --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_ip_configuration.py @@ -0,0 +1,67 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource import SubResource + + +class AzureFirewallIPConfiguration(SubResource): + """IP configuration of an Azure Firewall. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar private_ip_address: The Firewall Internal Load Balancer IP to be + used as the next hop in User Defined Routes. + :vartype private_ip_address: str + :param subnet: Reference of the subnet resource. This resource must be + named 'AzureFirewallSubnet'. + :type subnet: ~azure.mgmt.network.v2018_10_01.models.SubResource + :param public_ip_address: Reference of the PublicIP resource. This field + is a mandatory input if subnet is not null. + :type public_ip_address: + ~azure.mgmt.network.v2018_10_01.models.SubResource + :param provisioning_state: The provisioning state of the resource. + Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + :type provisioning_state: str or + ~azure.mgmt.network.v2018_10_01.models.ProvisioningState + :param name: Name of the resource that is unique within a resource group. + This name can be used to access the resource. + :type name: str + :ivar etag: A unique read-only string that changes whenever the resource + is updated. + :vartype etag: str + """ + + _validation = { + 'private_ip_address': {'readonly': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'private_ip_address': {'key': 'properties.privateIPAddress', 'type': 'str'}, + 'subnet': {'key': 'properties.subnet', 'type': 'SubResource'}, + 'public_ip_address': {'key': 'properties.publicIPAddress', 'type': 'SubResource'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AzureFirewallIPConfiguration, self).__init__(**kwargs) + self.private_ip_address = None + self.subnet = kwargs.get('subnet', None) + self.public_ip_address = kwargs.get('public_ip_address', None) + self.provisioning_state = kwargs.get('provisioning_state', None) + self.name = kwargs.get('name', None) + self.etag = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_ip_configuration_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_ip_configuration_py3.py new file mode 100644 index 000000000000..dff7e1c8c052 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_ip_configuration_py3.py @@ -0,0 +1,67 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource_py3 import SubResource + + +class AzureFirewallIPConfiguration(SubResource): + """IP configuration of an Azure Firewall. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar private_ip_address: The Firewall Internal Load Balancer IP to be + used as the next hop in User Defined Routes. + :vartype private_ip_address: str + :param subnet: Reference of the subnet resource. This resource must be + named 'AzureFirewallSubnet'. + :type subnet: ~azure.mgmt.network.v2018_10_01.models.SubResource + :param public_ip_address: Reference of the PublicIP resource. This field + is a mandatory input if subnet is not null. + :type public_ip_address: + ~azure.mgmt.network.v2018_10_01.models.SubResource + :param provisioning_state: The provisioning state of the resource. + Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + :type provisioning_state: str or + ~azure.mgmt.network.v2018_10_01.models.ProvisioningState + :param name: Name of the resource that is unique within a resource group. + This name can be used to access the resource. + :type name: str + :ivar etag: A unique read-only string that changes whenever the resource + is updated. + :vartype etag: str + """ + + _validation = { + 'private_ip_address': {'readonly': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'private_ip_address': {'key': 'properties.privateIPAddress', 'type': 'str'}, + 'subnet': {'key': 'properties.subnet', 'type': 'SubResource'}, + 'public_ip_address': {'key': 'properties.publicIPAddress', 'type': 'SubResource'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, subnet=None, public_ip_address=None, provisioning_state=None, name: str=None, **kwargs) -> None: + super(AzureFirewallIPConfiguration, self).__init__(id=id, **kwargs) + self.private_ip_address = None + self.subnet = subnet + self.public_ip_address = public_ip_address + self.provisioning_state = provisioning_state + self.name = name + self.etag = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_nat_rc_action.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_nat_rc_action.py new file mode 100644 index 000000000000..c233aa656b9d --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_nat_rc_action.py @@ -0,0 +1,29 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AzureFirewallNatRCAction(Model): + """AzureFirewall NAT Rule Collection Action. + + :param type: The type of action. Possible values include: 'Snat', 'Dnat' + :type type: str or + ~azure.mgmt.network.v2018_10_01.models.AzureFirewallNatRCActionType + """ + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AzureFirewallNatRCAction, self).__init__(**kwargs) + self.type = kwargs.get('type', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_nat_rc_action_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_nat_rc_action_py3.py new file mode 100644 index 000000000000..971cc85452ea --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_nat_rc_action_py3.py @@ -0,0 +1,29 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AzureFirewallNatRCAction(Model): + """AzureFirewall NAT Rule Collection Action. + + :param type: The type of action. Possible values include: 'Snat', 'Dnat' + :type type: str or + ~azure.mgmt.network.v2018_10_01.models.AzureFirewallNatRCActionType + """ + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, *, type=None, **kwargs) -> None: + super(AzureFirewallNatRCAction, self).__init__(**kwargs) + self.type = type diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_nat_rule.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_nat_rule.py new file mode 100644 index 000000000000..594e8969b8ac --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_nat_rule.py @@ -0,0 +1,59 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AzureFirewallNatRule(Model): + """Properties of a NAT rule. + + :param name: Name of the NAT rule. + :type name: str + :param description: Description of the rule. + :type description: str + :param source_addresses: List of source IP addresses for this rule. + :type source_addresses: list[str] + :param destination_addresses: List of destination IP addresses for this + rule. + :type destination_addresses: list[str] + :param destination_ports: List of destination ports. + :type destination_ports: list[str] + :param protocols: Array of AzureFirewallNetworkRuleProtocols applicable to + this NAT rule. + :type protocols: list[str or + ~azure.mgmt.network.v2018_10_01.models.AzureFirewallNetworkRuleProtocol] + :param translated_address: The translated address for this NAT rule. + :type translated_address: str + :param translated_port: The translated port for this NAT rule. + :type translated_port: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'source_addresses': {'key': 'sourceAddresses', 'type': '[str]'}, + 'destination_addresses': {'key': 'destinationAddresses', 'type': '[str]'}, + 'destination_ports': {'key': 'destinationPorts', 'type': '[str]'}, + 'protocols': {'key': 'protocols', 'type': '[str]'}, + 'translated_address': {'key': 'translatedAddress', 'type': 'str'}, + 'translated_port': {'key': 'translatedPort', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AzureFirewallNatRule, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.description = kwargs.get('description', None) + self.source_addresses = kwargs.get('source_addresses', None) + self.destination_addresses = kwargs.get('destination_addresses', None) + self.destination_ports = kwargs.get('destination_ports', None) + self.protocols = kwargs.get('protocols', None) + self.translated_address = kwargs.get('translated_address', None) + self.translated_port = kwargs.get('translated_port', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_nat_rule_collection.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_nat_rule_collection.py new file mode 100644 index 000000000000..9b9d611c42af --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_nat_rule_collection.py @@ -0,0 +1,65 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource import SubResource + + +class AzureFirewallNatRuleCollection(SubResource): + """NAT rule collection resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :param priority: Priority of the NAT rule collection resource. + :type priority: int + :param action: The action type of a NAT rule collection + :type action: + ~azure.mgmt.network.v2018_10_01.models.AzureFirewallNatRCAction + :param rules: Collection of rules used by a NAT rule collection. + :type rules: + list[~azure.mgmt.network.v2018_10_01.models.AzureFirewallNatRule] + :param provisioning_state: The provisioning state of the resource. + Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + :type provisioning_state: str or + ~azure.mgmt.network.v2018_10_01.models.ProvisioningState + :param name: Gets name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :ivar etag: Gets a unique read-only string that changes whenever the + resource is updated. + :vartype etag: str + """ + + _validation = { + 'priority': {'maximum': 65000, 'minimum': 100}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'priority': {'key': 'properties.priority', 'type': 'int'}, + 'action': {'key': 'properties.action', 'type': 'AzureFirewallNatRCAction'}, + 'rules': {'key': 'properties.rules', 'type': '[AzureFirewallNatRule]'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AzureFirewallNatRuleCollection, self).__init__(**kwargs) + self.priority = kwargs.get('priority', None) + self.action = kwargs.get('action', None) + self.rules = kwargs.get('rules', None) + self.provisioning_state = kwargs.get('provisioning_state', None) + self.name = kwargs.get('name', None) + self.etag = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_nat_rule_collection_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_nat_rule_collection_py3.py new file mode 100644 index 000000000000..684be1504ef3 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_nat_rule_collection_py3.py @@ -0,0 +1,65 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource_py3 import SubResource + + +class AzureFirewallNatRuleCollection(SubResource): + """NAT rule collection resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :param priority: Priority of the NAT rule collection resource. + :type priority: int + :param action: The action type of a NAT rule collection + :type action: + ~azure.mgmt.network.v2018_10_01.models.AzureFirewallNatRCAction + :param rules: Collection of rules used by a NAT rule collection. + :type rules: + list[~azure.mgmt.network.v2018_10_01.models.AzureFirewallNatRule] + :param provisioning_state: The provisioning state of the resource. + Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + :type provisioning_state: str or + ~azure.mgmt.network.v2018_10_01.models.ProvisioningState + :param name: Gets name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :ivar etag: Gets a unique read-only string that changes whenever the + resource is updated. + :vartype etag: str + """ + + _validation = { + 'priority': {'maximum': 65000, 'minimum': 100}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'priority': {'key': 'properties.priority', 'type': 'int'}, + 'action': {'key': 'properties.action', 'type': 'AzureFirewallNatRCAction'}, + 'rules': {'key': 'properties.rules', 'type': '[AzureFirewallNatRule]'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, priority: int=None, action=None, rules=None, provisioning_state=None, name: str=None, **kwargs) -> None: + super(AzureFirewallNatRuleCollection, self).__init__(id=id, **kwargs) + self.priority = priority + self.action = action + self.rules = rules + self.provisioning_state = provisioning_state + self.name = name + self.etag = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_nat_rule_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_nat_rule_py3.py new file mode 100644 index 000000000000..6203d3481a0e --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_nat_rule_py3.py @@ -0,0 +1,59 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AzureFirewallNatRule(Model): + """Properties of a NAT rule. + + :param name: Name of the NAT rule. + :type name: str + :param description: Description of the rule. + :type description: str + :param source_addresses: List of source IP addresses for this rule. + :type source_addresses: list[str] + :param destination_addresses: List of destination IP addresses for this + rule. + :type destination_addresses: list[str] + :param destination_ports: List of destination ports. + :type destination_ports: list[str] + :param protocols: Array of AzureFirewallNetworkRuleProtocols applicable to + this NAT rule. + :type protocols: list[str or + ~azure.mgmt.network.v2018_10_01.models.AzureFirewallNetworkRuleProtocol] + :param translated_address: The translated address for this NAT rule. + :type translated_address: str + :param translated_port: The translated port for this NAT rule. + :type translated_port: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'source_addresses': {'key': 'sourceAddresses', 'type': '[str]'}, + 'destination_addresses': {'key': 'destinationAddresses', 'type': '[str]'}, + 'destination_ports': {'key': 'destinationPorts', 'type': '[str]'}, + 'protocols': {'key': 'protocols', 'type': '[str]'}, + 'translated_address': {'key': 'translatedAddress', 'type': 'str'}, + 'translated_port': {'key': 'translatedPort', 'type': 'str'}, + } + + def __init__(self, *, name: str=None, description: str=None, source_addresses=None, destination_addresses=None, destination_ports=None, protocols=None, translated_address: str=None, translated_port: str=None, **kwargs) -> None: + super(AzureFirewallNatRule, self).__init__(**kwargs) + self.name = name + self.description = description + self.source_addresses = source_addresses + self.destination_addresses = destination_addresses + self.destination_ports = destination_ports + self.protocols = protocols + self.translated_address = translated_address + self.translated_port = translated_port diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_network_rule.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_network_rule.py new file mode 100644 index 000000000000..1f96e4600ba2 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_network_rule.py @@ -0,0 +1,49 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AzureFirewallNetworkRule(Model): + """Properties of the network rule. + + :param name: Name of the network rule. + :type name: str + :param description: Description of the rule. + :type description: str + :param protocols: Array of AzureFirewallNetworkRuleProtocols. + :type protocols: list[str or + ~azure.mgmt.network.v2018_10_01.models.AzureFirewallNetworkRuleProtocol] + :param source_addresses: List of source IP addresses for this rule. + :type source_addresses: list[str] + :param destination_addresses: List of destination IP addresses. + :type destination_addresses: list[str] + :param destination_ports: List of destination ports. + :type destination_ports: list[str] + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'protocols': {'key': 'protocols', 'type': '[str]'}, + 'source_addresses': {'key': 'sourceAddresses', 'type': '[str]'}, + 'destination_addresses': {'key': 'destinationAddresses', 'type': '[str]'}, + 'destination_ports': {'key': 'destinationPorts', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(AzureFirewallNetworkRule, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.description = kwargs.get('description', None) + self.protocols = kwargs.get('protocols', None) + self.source_addresses = kwargs.get('source_addresses', None) + self.destination_addresses = kwargs.get('destination_addresses', None) + self.destination_ports = kwargs.get('destination_ports', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_network_rule_collection.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_network_rule_collection.py new file mode 100644 index 000000000000..6d435f534800 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_network_rule_collection.py @@ -0,0 +1,64 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource import SubResource + + +class AzureFirewallNetworkRuleCollection(SubResource): + """Network rule collection resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :param priority: Priority of the network rule collection resource. + :type priority: int + :param action: The action type of a rule collection + :type action: ~azure.mgmt.network.v2018_10_01.models.AzureFirewallRCAction + :param rules: Collection of rules used by a network rule collection. + :type rules: + list[~azure.mgmt.network.v2018_10_01.models.AzureFirewallNetworkRule] + :param provisioning_state: The provisioning state of the resource. + Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + :type provisioning_state: str or + ~azure.mgmt.network.v2018_10_01.models.ProvisioningState + :param name: Gets name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :ivar etag: Gets a unique read-only string that changes whenever the + resource is updated. + :vartype etag: str + """ + + _validation = { + 'priority': {'maximum': 65000, 'minimum': 100}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'priority': {'key': 'properties.priority', 'type': 'int'}, + 'action': {'key': 'properties.action', 'type': 'AzureFirewallRCAction'}, + 'rules': {'key': 'properties.rules', 'type': '[AzureFirewallNetworkRule]'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AzureFirewallNetworkRuleCollection, self).__init__(**kwargs) + self.priority = kwargs.get('priority', None) + self.action = kwargs.get('action', None) + self.rules = kwargs.get('rules', None) + self.provisioning_state = kwargs.get('provisioning_state', None) + self.name = kwargs.get('name', None) + self.etag = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_network_rule_collection_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_network_rule_collection_py3.py new file mode 100644 index 000000000000..29d71cb6854f --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_network_rule_collection_py3.py @@ -0,0 +1,64 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource_py3 import SubResource + + +class AzureFirewallNetworkRuleCollection(SubResource): + """Network rule collection resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :param priority: Priority of the network rule collection resource. + :type priority: int + :param action: The action type of a rule collection + :type action: ~azure.mgmt.network.v2018_10_01.models.AzureFirewallRCAction + :param rules: Collection of rules used by a network rule collection. + :type rules: + list[~azure.mgmt.network.v2018_10_01.models.AzureFirewallNetworkRule] + :param provisioning_state: The provisioning state of the resource. + Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + :type provisioning_state: str or + ~azure.mgmt.network.v2018_10_01.models.ProvisioningState + :param name: Gets name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :ivar etag: Gets a unique read-only string that changes whenever the + resource is updated. + :vartype etag: str + """ + + _validation = { + 'priority': {'maximum': 65000, 'minimum': 100}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'priority': {'key': 'properties.priority', 'type': 'int'}, + 'action': {'key': 'properties.action', 'type': 'AzureFirewallRCAction'}, + 'rules': {'key': 'properties.rules', 'type': '[AzureFirewallNetworkRule]'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, priority: int=None, action=None, rules=None, provisioning_state=None, name: str=None, **kwargs) -> None: + super(AzureFirewallNetworkRuleCollection, self).__init__(id=id, **kwargs) + self.priority = priority + self.action = action + self.rules = rules + self.provisioning_state = provisioning_state + self.name = name + self.etag = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_network_rule_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_network_rule_py3.py new file mode 100644 index 000000000000..c1bf9f570d5d --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_network_rule_py3.py @@ -0,0 +1,49 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AzureFirewallNetworkRule(Model): + """Properties of the network rule. + + :param name: Name of the network rule. + :type name: str + :param description: Description of the rule. + :type description: str + :param protocols: Array of AzureFirewallNetworkRuleProtocols. + :type protocols: list[str or + ~azure.mgmt.network.v2018_10_01.models.AzureFirewallNetworkRuleProtocol] + :param source_addresses: List of source IP addresses for this rule. + :type source_addresses: list[str] + :param destination_addresses: List of destination IP addresses. + :type destination_addresses: list[str] + :param destination_ports: List of destination ports. + :type destination_ports: list[str] + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'protocols': {'key': 'protocols', 'type': '[str]'}, + 'source_addresses': {'key': 'sourceAddresses', 'type': '[str]'}, + 'destination_addresses': {'key': 'destinationAddresses', 'type': '[str]'}, + 'destination_ports': {'key': 'destinationPorts', 'type': '[str]'}, + } + + def __init__(self, *, name: str=None, description: str=None, protocols=None, source_addresses=None, destination_addresses=None, destination_ports=None, **kwargs) -> None: + super(AzureFirewallNetworkRule, self).__init__(**kwargs) + self.name = name + self.description = description + self.protocols = protocols + self.source_addresses = source_addresses + self.destination_addresses = destination_addresses + self.destination_ports = destination_ports diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_paged.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_paged.py new file mode 100644 index 000000000000..1bfc03124031 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class AzureFirewallPaged(Paged): + """ + A paging container for iterating over a list of :class:`AzureFirewall ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[AzureFirewall]'} + } + + def __init__(self, *args, **kwargs): + + super(AzureFirewallPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_py3.py new file mode 100644 index 000000000000..e18cb23b9c95 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_py3.py @@ -0,0 +1,82 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource_py3 import Resource + + +class AzureFirewall(Resource): + """Azure Firewall resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param application_rule_collections: Collection of application rule + collections used by Azure Firewall. + :type application_rule_collections: + list[~azure.mgmt.network.v2018_10_01.models.AzureFirewallApplicationRuleCollection] + :param nat_rule_collections: Collection of NAT rule collections used by + Azure Firewall. + :type nat_rule_collections: + list[~azure.mgmt.network.v2018_10_01.models.AzureFirewallNatRuleCollection] + :param network_rule_collections: Collection of network rule collections + used by Azure Firewall. + :type network_rule_collections: + list[~azure.mgmt.network.v2018_10_01.models.AzureFirewallNetworkRuleCollection] + :param ip_configurations: IP configuration of the Azure Firewall resource. + :type ip_configurations: + list[~azure.mgmt.network.v2018_10_01.models.AzureFirewallIPConfiguration] + :param provisioning_state: The provisioning state of the resource. + Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + :type provisioning_state: str or + ~azure.mgmt.network.v2018_10_01.models.ProvisioningState + :ivar etag: Gets a unique read-only string that changes whenever the + resource is updated. + :vartype etag: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'application_rule_collections': {'key': 'properties.applicationRuleCollections', 'type': '[AzureFirewallApplicationRuleCollection]'}, + 'nat_rule_collections': {'key': 'properties.natRuleCollections', 'type': '[AzureFirewallNatRuleCollection]'}, + 'network_rule_collections': {'key': 'properties.networkRuleCollections', 'type': '[AzureFirewallNetworkRuleCollection]'}, + 'ip_configurations': {'key': 'properties.ipConfigurations', 'type': '[AzureFirewallIPConfiguration]'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, location: str=None, tags=None, application_rule_collections=None, nat_rule_collections=None, network_rule_collections=None, ip_configurations=None, provisioning_state=None, **kwargs) -> None: + super(AzureFirewall, self).__init__(id=id, location=location, tags=tags, **kwargs) + self.application_rule_collections = application_rule_collections + self.nat_rule_collections = nat_rule_collections + self.network_rule_collections = network_rule_collections + self.ip_configurations = ip_configurations + self.provisioning_state = provisioning_state + self.etag = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_rc_action.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_rc_action.py new file mode 100644 index 000000000000..17668b711543 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_rc_action.py @@ -0,0 +1,29 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AzureFirewallRCAction(Model): + """Properties of the AzureFirewallRCAction. + + :param type: The type of action. Possible values include: 'Allow', 'Deny' + :type type: str or + ~azure.mgmt.network.v2018_10_01.models.AzureFirewallRCActionType + """ + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AzureFirewallRCAction, self).__init__(**kwargs) + self.type = kwargs.get('type', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_rc_action_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_rc_action_py3.py new file mode 100644 index 000000000000..6d27007c7840 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_firewall_rc_action_py3.py @@ -0,0 +1,29 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AzureFirewallRCAction(Model): + """Properties of the AzureFirewallRCAction. + + :param type: The type of action. Possible values include: 'Allow', 'Deny' + :type type: str or + ~azure.mgmt.network.v2018_10_01.models.AzureFirewallRCActionType + """ + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, *, type=None, **kwargs) -> None: + super(AzureFirewallRCAction, self).__init__(**kwargs) + self.type = type diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_reachability_report.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_reachability_report.py new file mode 100644 index 000000000000..95cbfde2e2d7 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_reachability_report.py @@ -0,0 +1,48 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AzureReachabilityReport(Model): + """Azure reachability report details. + + All required parameters must be populated in order to send to Azure. + + :param aggregation_level: Required. The aggregation level of Azure + reachability report. Can be Country, State or City. + :type aggregation_level: str + :param provider_location: Required. + :type provider_location: + ~azure.mgmt.network.v2018_10_01.models.AzureReachabilityReportLocation + :param reachability_report: Required. List of Azure reachability report + items. + :type reachability_report: + list[~azure.mgmt.network.v2018_10_01.models.AzureReachabilityReportItem] + """ + + _validation = { + 'aggregation_level': {'required': True}, + 'provider_location': {'required': True}, + 'reachability_report': {'required': True}, + } + + _attribute_map = { + 'aggregation_level': {'key': 'aggregationLevel', 'type': 'str'}, + 'provider_location': {'key': 'providerLocation', 'type': 'AzureReachabilityReportLocation'}, + 'reachability_report': {'key': 'reachabilityReport', 'type': '[AzureReachabilityReportItem]'}, + } + + def __init__(self, **kwargs): + super(AzureReachabilityReport, self).__init__(**kwargs) + self.aggregation_level = kwargs.get('aggregation_level', None) + self.provider_location = kwargs.get('provider_location', None) + self.reachability_report = kwargs.get('reachability_report', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_reachability_report_item.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_reachability_report_item.py new file mode 100644 index 000000000000..fa69e0ed0d19 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_reachability_report_item.py @@ -0,0 +1,37 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AzureReachabilityReportItem(Model): + """Azure reachability report details for a given provider location. + + :param provider: The Internet service provider. + :type provider: str + :param azure_location: The Azure region. + :type azure_location: str + :param latencies: List of latency details for each of the time series. + :type latencies: + list[~azure.mgmt.network.v2018_10_01.models.AzureReachabilityReportLatencyInfo] + """ + + _attribute_map = { + 'provider': {'key': 'provider', 'type': 'str'}, + 'azure_location': {'key': 'azureLocation', 'type': 'str'}, + 'latencies': {'key': 'latencies', 'type': '[AzureReachabilityReportLatencyInfo]'}, + } + + def __init__(self, **kwargs): + super(AzureReachabilityReportItem, self).__init__(**kwargs) + self.provider = kwargs.get('provider', None) + self.azure_location = kwargs.get('azure_location', None) + self.latencies = kwargs.get('latencies', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_reachability_report_item_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_reachability_report_item_py3.py new file mode 100644 index 000000000000..5614122d6a93 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_reachability_report_item_py3.py @@ -0,0 +1,37 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AzureReachabilityReportItem(Model): + """Azure reachability report details for a given provider location. + + :param provider: The Internet service provider. + :type provider: str + :param azure_location: The Azure region. + :type azure_location: str + :param latencies: List of latency details for each of the time series. + :type latencies: + list[~azure.mgmt.network.v2018_10_01.models.AzureReachabilityReportLatencyInfo] + """ + + _attribute_map = { + 'provider': {'key': 'provider', 'type': 'str'}, + 'azure_location': {'key': 'azureLocation', 'type': 'str'}, + 'latencies': {'key': 'latencies', 'type': '[AzureReachabilityReportLatencyInfo]'}, + } + + def __init__(self, *, provider: str=None, azure_location: str=None, latencies=None, **kwargs) -> None: + super(AzureReachabilityReportItem, self).__init__(**kwargs) + self.provider = provider + self.azure_location = azure_location + self.latencies = latencies diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_reachability_report_latency_info.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_reachability_report_latency_info.py new file mode 100644 index 000000000000..e5f77641a138 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_reachability_report_latency_info.py @@ -0,0 +1,37 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AzureReachabilityReportLatencyInfo(Model): + """Details on latency for a time series. + + :param time_stamp: The time stamp. + :type time_stamp: datetime + :param score: The relative latency score between 1 and 100, higher values + indicating a faster connection. + :type score: int + """ + + _validation = { + 'score': {'maximum': 100, 'minimum': 1}, + } + + _attribute_map = { + 'time_stamp': {'key': 'timeStamp', 'type': 'iso-8601'}, + 'score': {'key': 'score', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(AzureReachabilityReportLatencyInfo, self).__init__(**kwargs) + self.time_stamp = kwargs.get('time_stamp', None) + self.score = kwargs.get('score', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_reachability_report_latency_info_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_reachability_report_latency_info_py3.py new file mode 100644 index 000000000000..dd9d8fda369c --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_reachability_report_latency_info_py3.py @@ -0,0 +1,37 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AzureReachabilityReportLatencyInfo(Model): + """Details on latency for a time series. + + :param time_stamp: The time stamp. + :type time_stamp: datetime + :param score: The relative latency score between 1 and 100, higher values + indicating a faster connection. + :type score: int + """ + + _validation = { + 'score': {'maximum': 100, 'minimum': 1}, + } + + _attribute_map = { + 'time_stamp': {'key': 'timeStamp', 'type': 'iso-8601'}, + 'score': {'key': 'score', 'type': 'int'}, + } + + def __init__(self, *, time_stamp=None, score: int=None, **kwargs) -> None: + super(AzureReachabilityReportLatencyInfo, self).__init__(**kwargs) + self.time_stamp = time_stamp + self.score = score diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_reachability_report_location.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_reachability_report_location.py new file mode 100644 index 000000000000..76c132e89575 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_reachability_report_location.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AzureReachabilityReportLocation(Model): + """Parameters that define a geographic location. + + All required parameters must be populated in order to send to Azure. + + :param country: Required. The name of the country. + :type country: str + :param state: The name of the state. + :type state: str + :param city: The name of the city or town. + :type city: str + """ + + _validation = { + 'country': {'required': True}, + } + + _attribute_map = { + 'country': {'key': 'country', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'}, + 'city': {'key': 'city', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AzureReachabilityReportLocation, self).__init__(**kwargs) + self.country = kwargs.get('country', None) + self.state = kwargs.get('state', None) + self.city = kwargs.get('city', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_reachability_report_location_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_reachability_report_location_py3.py new file mode 100644 index 000000000000..1db868eab46f --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_reachability_report_location_py3.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AzureReachabilityReportLocation(Model): + """Parameters that define a geographic location. + + All required parameters must be populated in order to send to Azure. + + :param country: Required. The name of the country. + :type country: str + :param state: The name of the state. + :type state: str + :param city: The name of the city or town. + :type city: str + """ + + _validation = { + 'country': {'required': True}, + } + + _attribute_map = { + 'country': {'key': 'country', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'}, + 'city': {'key': 'city', 'type': 'str'}, + } + + def __init__(self, *, country: str, state: str=None, city: str=None, **kwargs) -> None: + super(AzureReachabilityReportLocation, self).__init__(**kwargs) + self.country = country + self.state = state + self.city = city diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_reachability_report_parameters.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_reachability_report_parameters.py new file mode 100644 index 000000000000..c3050ea9b6f0 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_reachability_report_parameters.py @@ -0,0 +1,54 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AzureReachabilityReportParameters(Model): + """Geographic and time constraints for Azure reachability report. + + All required parameters must be populated in order to send to Azure. + + :param provider_location: Required. + :type provider_location: + ~azure.mgmt.network.v2018_10_01.models.AzureReachabilityReportLocation + :param providers: List of Internet service providers. + :type providers: list[str] + :param azure_locations: Optional Azure regions to scope the query to. + :type azure_locations: list[str] + :param start_time: Required. The start time for the Azure reachability + report. + :type start_time: datetime + :param end_time: Required. The end time for the Azure reachability report. + :type end_time: datetime + """ + + _validation = { + 'provider_location': {'required': True}, + 'start_time': {'required': True}, + 'end_time': {'required': True}, + } + + _attribute_map = { + 'provider_location': {'key': 'providerLocation', 'type': 'AzureReachabilityReportLocation'}, + 'providers': {'key': 'providers', 'type': '[str]'}, + 'azure_locations': {'key': 'azureLocations', 'type': '[str]'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + } + + def __init__(self, **kwargs): + super(AzureReachabilityReportParameters, self).__init__(**kwargs) + self.provider_location = kwargs.get('provider_location', None) + self.providers = kwargs.get('providers', None) + self.azure_locations = kwargs.get('azure_locations', None) + self.start_time = kwargs.get('start_time', None) + self.end_time = kwargs.get('end_time', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_reachability_report_parameters_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_reachability_report_parameters_py3.py new file mode 100644 index 000000000000..68505312d06c --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_reachability_report_parameters_py3.py @@ -0,0 +1,54 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AzureReachabilityReportParameters(Model): + """Geographic and time constraints for Azure reachability report. + + All required parameters must be populated in order to send to Azure. + + :param provider_location: Required. + :type provider_location: + ~azure.mgmt.network.v2018_10_01.models.AzureReachabilityReportLocation + :param providers: List of Internet service providers. + :type providers: list[str] + :param azure_locations: Optional Azure regions to scope the query to. + :type azure_locations: list[str] + :param start_time: Required. The start time for the Azure reachability + report. + :type start_time: datetime + :param end_time: Required. The end time for the Azure reachability report. + :type end_time: datetime + """ + + _validation = { + 'provider_location': {'required': True}, + 'start_time': {'required': True}, + 'end_time': {'required': True}, + } + + _attribute_map = { + 'provider_location': {'key': 'providerLocation', 'type': 'AzureReachabilityReportLocation'}, + 'providers': {'key': 'providers', 'type': '[str]'}, + 'azure_locations': {'key': 'azureLocations', 'type': '[str]'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + } + + def __init__(self, *, provider_location, start_time, end_time, providers=None, azure_locations=None, **kwargs) -> None: + super(AzureReachabilityReportParameters, self).__init__(**kwargs) + self.provider_location = provider_location + self.providers = providers + self.azure_locations = azure_locations + self.start_time = start_time + self.end_time = end_time diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_reachability_report_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_reachability_report_py3.py new file mode 100644 index 000000000000..695aec6b779b --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/azure_reachability_report_py3.py @@ -0,0 +1,48 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AzureReachabilityReport(Model): + """Azure reachability report details. + + All required parameters must be populated in order to send to Azure. + + :param aggregation_level: Required. The aggregation level of Azure + reachability report. Can be Country, State or City. + :type aggregation_level: str + :param provider_location: Required. + :type provider_location: + ~azure.mgmt.network.v2018_10_01.models.AzureReachabilityReportLocation + :param reachability_report: Required. List of Azure reachability report + items. + :type reachability_report: + list[~azure.mgmt.network.v2018_10_01.models.AzureReachabilityReportItem] + """ + + _validation = { + 'aggregation_level': {'required': True}, + 'provider_location': {'required': True}, + 'reachability_report': {'required': True}, + } + + _attribute_map = { + 'aggregation_level': {'key': 'aggregationLevel', 'type': 'str'}, + 'provider_location': {'key': 'providerLocation', 'type': 'AzureReachabilityReportLocation'}, + 'reachability_report': {'key': 'reachabilityReport', 'type': '[AzureReachabilityReportItem]'}, + } + + def __init__(self, *, aggregation_level: str, provider_location, reachability_report, **kwargs) -> None: + super(AzureReachabilityReport, self).__init__(**kwargs) + self.aggregation_level = aggregation_level + self.provider_location = provider_location + self.reachability_report = reachability_report diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/backend_address_pool.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/backend_address_pool.py new file mode 100644 index 000000000000..a64960d86904 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/backend_address_pool.py @@ -0,0 +1,68 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource import SubResource + + +class BackendAddressPool(SubResource): + """Pool of backend IP addresses. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar backend_ip_configurations: Gets collection of references to IP + addresses defined in network interfaces. + :vartype backend_ip_configurations: + list[~azure.mgmt.network.v2018_10_01.models.NetworkInterfaceIPConfiguration] + :ivar load_balancing_rules: Gets load balancing rules that use this + backend address pool. + :vartype load_balancing_rules: + list[~azure.mgmt.network.v2018_10_01.models.SubResource] + :ivar outbound_rule: Gets outbound rules that use this backend address + pool. + :vartype outbound_rule: ~azure.mgmt.network.v2018_10_01.models.SubResource + :param provisioning_state: Get provisioning state of the public IP + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param name: Gets name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _validation = { + 'backend_ip_configurations': {'readonly': True}, + 'load_balancing_rules': {'readonly': True}, + 'outbound_rule': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'backend_ip_configurations': {'key': 'properties.backendIPConfigurations', 'type': '[NetworkInterfaceIPConfiguration]'}, + 'load_balancing_rules': {'key': 'properties.loadBalancingRules', 'type': '[SubResource]'}, + 'outbound_rule': {'key': 'properties.outboundRule', 'type': 'SubResource'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(BackendAddressPool, self).__init__(**kwargs) + self.backend_ip_configurations = None + self.load_balancing_rules = None + self.outbound_rule = None + self.provisioning_state = kwargs.get('provisioning_state', None) + self.name = kwargs.get('name', None) + self.etag = kwargs.get('etag', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/backend_address_pool_paged.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/backend_address_pool_paged.py new file mode 100644 index 000000000000..bcfcc3960fa1 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/backend_address_pool_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class BackendAddressPoolPaged(Paged): + """ + A paging container for iterating over a list of :class:`BackendAddressPool ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[BackendAddressPool]'} + } + + def __init__(self, *args, **kwargs): + + super(BackendAddressPoolPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/backend_address_pool_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/backend_address_pool_py3.py new file mode 100644 index 000000000000..44df6caa2b3e --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/backend_address_pool_py3.py @@ -0,0 +1,68 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource_py3 import SubResource + + +class BackendAddressPool(SubResource): + """Pool of backend IP addresses. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar backend_ip_configurations: Gets collection of references to IP + addresses defined in network interfaces. + :vartype backend_ip_configurations: + list[~azure.mgmt.network.v2018_10_01.models.NetworkInterfaceIPConfiguration] + :ivar load_balancing_rules: Gets load balancing rules that use this + backend address pool. + :vartype load_balancing_rules: + list[~azure.mgmt.network.v2018_10_01.models.SubResource] + :ivar outbound_rule: Gets outbound rules that use this backend address + pool. + :vartype outbound_rule: ~azure.mgmt.network.v2018_10_01.models.SubResource + :param provisioning_state: Get provisioning state of the public IP + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param name: Gets name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _validation = { + 'backend_ip_configurations': {'readonly': True}, + 'load_balancing_rules': {'readonly': True}, + 'outbound_rule': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'backend_ip_configurations': {'key': 'properties.backendIPConfigurations', 'type': '[NetworkInterfaceIPConfiguration]'}, + 'load_balancing_rules': {'key': 'properties.loadBalancingRules', 'type': '[SubResource]'}, + 'outbound_rule': {'key': 'properties.outboundRule', 'type': 'SubResource'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, provisioning_state: str=None, name: str=None, etag: str=None, **kwargs) -> None: + super(BackendAddressPool, self).__init__(id=id, **kwargs) + self.backend_ip_configurations = None + self.load_balancing_rules = None + self.outbound_rule = None + self.provisioning_state = provisioning_state + self.name = name + self.etag = etag diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/bgp_community.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/bgp_community.py new file mode 100644 index 000000000000..472a170e9ceb --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/bgp_community.py @@ -0,0 +1,52 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class BGPCommunity(Model): + """Contains bgp community information offered in Service Community resources. + + :param service_supported_region: The region which the service support. + e.g. For O365, region is Global. + :type service_supported_region: str + :param community_name: The name of the bgp community. e.g. Skype. + :type community_name: str + :param community_value: The value of the bgp community. For more + information: + https://docs.microsoft.com/en-us/azure/expressroute/expressroute-routing. + :type community_value: str + :param community_prefixes: The prefixes that the bgp community contains. + :type community_prefixes: list[str] + :param is_authorized_to_use: Customer is authorized to use bgp community + or not. + :type is_authorized_to_use: bool + :param service_group: The service group of the bgp community contains. + :type service_group: str + """ + + _attribute_map = { + 'service_supported_region': {'key': 'serviceSupportedRegion', 'type': 'str'}, + 'community_name': {'key': 'communityName', 'type': 'str'}, + 'community_value': {'key': 'communityValue', 'type': 'str'}, + 'community_prefixes': {'key': 'communityPrefixes', 'type': '[str]'}, + 'is_authorized_to_use': {'key': 'isAuthorizedToUse', 'type': 'bool'}, + 'service_group': {'key': 'serviceGroup', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(BGPCommunity, self).__init__(**kwargs) + self.service_supported_region = kwargs.get('service_supported_region', None) + self.community_name = kwargs.get('community_name', None) + self.community_value = kwargs.get('community_value', None) + self.community_prefixes = kwargs.get('community_prefixes', None) + self.is_authorized_to_use = kwargs.get('is_authorized_to_use', None) + self.service_group = kwargs.get('service_group', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/bgp_community_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/bgp_community_py3.py new file mode 100644 index 000000000000..86b740c84404 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/bgp_community_py3.py @@ -0,0 +1,52 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class BGPCommunity(Model): + """Contains bgp community information offered in Service Community resources. + + :param service_supported_region: The region which the service support. + e.g. For O365, region is Global. + :type service_supported_region: str + :param community_name: The name of the bgp community. e.g. Skype. + :type community_name: str + :param community_value: The value of the bgp community. For more + information: + https://docs.microsoft.com/en-us/azure/expressroute/expressroute-routing. + :type community_value: str + :param community_prefixes: The prefixes that the bgp community contains. + :type community_prefixes: list[str] + :param is_authorized_to_use: Customer is authorized to use bgp community + or not. + :type is_authorized_to_use: bool + :param service_group: The service group of the bgp community contains. + :type service_group: str + """ + + _attribute_map = { + 'service_supported_region': {'key': 'serviceSupportedRegion', 'type': 'str'}, + 'community_name': {'key': 'communityName', 'type': 'str'}, + 'community_value': {'key': 'communityValue', 'type': 'str'}, + 'community_prefixes': {'key': 'communityPrefixes', 'type': '[str]'}, + 'is_authorized_to_use': {'key': 'isAuthorizedToUse', 'type': 'bool'}, + 'service_group': {'key': 'serviceGroup', 'type': 'str'}, + } + + def __init__(self, *, service_supported_region: str=None, community_name: str=None, community_value: str=None, community_prefixes=None, is_authorized_to_use: bool=None, service_group: str=None, **kwargs) -> None: + super(BGPCommunity, self).__init__(**kwargs) + self.service_supported_region = service_supported_region + self.community_name = community_name + self.community_value = community_value + self.community_prefixes = community_prefixes + self.is_authorized_to_use = is_authorized_to_use + self.service_group = service_group diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/bgp_peer_status.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/bgp_peer_status.py new file mode 100644 index 000000000000..26690a3b8322 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/bgp_peer_status.py @@ -0,0 +1,71 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class BgpPeerStatus(Model): + """BGP peer status details. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar local_address: The virtual network gateway's local address + :vartype local_address: str + :ivar neighbor: The remote BGP peer + :vartype neighbor: str + :ivar asn: The autonomous system number of the remote BGP peer + :vartype asn: int + :ivar state: The BGP peer state. Possible values include: 'Unknown', + 'Stopped', 'Idle', 'Connecting', 'Connected' + :vartype state: str or ~azure.mgmt.network.v2018_10_01.models.BgpPeerState + :ivar connected_duration: For how long the peering has been up + :vartype connected_duration: str + :ivar routes_received: The number of routes learned from this peer + :vartype routes_received: long + :ivar messages_sent: The number of BGP messages sent + :vartype messages_sent: long + :ivar messages_received: The number of BGP messages received + :vartype messages_received: long + """ + + _validation = { + 'local_address': {'readonly': True}, + 'neighbor': {'readonly': True}, + 'asn': {'readonly': True}, + 'state': {'readonly': True}, + 'connected_duration': {'readonly': True}, + 'routes_received': {'readonly': True}, + 'messages_sent': {'readonly': True}, + 'messages_received': {'readonly': True}, + } + + _attribute_map = { + 'local_address': {'key': 'localAddress', 'type': 'str'}, + 'neighbor': {'key': 'neighbor', 'type': 'str'}, + 'asn': {'key': 'asn', 'type': 'int'}, + 'state': {'key': 'state', 'type': 'str'}, + 'connected_duration': {'key': 'connectedDuration', 'type': 'str'}, + 'routes_received': {'key': 'routesReceived', 'type': 'long'}, + 'messages_sent': {'key': 'messagesSent', 'type': 'long'}, + 'messages_received': {'key': 'messagesReceived', 'type': 'long'}, + } + + def __init__(self, **kwargs): + super(BgpPeerStatus, self).__init__(**kwargs) + self.local_address = None + self.neighbor = None + self.asn = None + self.state = None + self.connected_duration = None + self.routes_received = None + self.messages_sent = None + self.messages_received = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/bgp_peer_status_list_result.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/bgp_peer_status_list_result.py new file mode 100644 index 000000000000..ad1c1dc6ee84 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/bgp_peer_status_list_result.py @@ -0,0 +1,28 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class BgpPeerStatusListResult(Model): + """Response for list BGP peer status API service call. + + :param value: List of BGP peers + :type value: list[~azure.mgmt.network.v2018_10_01.models.BgpPeerStatus] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[BgpPeerStatus]'}, + } + + def __init__(self, **kwargs): + super(BgpPeerStatusListResult, self).__init__(**kwargs) + self.value = kwargs.get('value', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/bgp_peer_status_list_result_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/bgp_peer_status_list_result_py3.py new file mode 100644 index 000000000000..5d5b8e7f46de --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/bgp_peer_status_list_result_py3.py @@ -0,0 +1,28 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class BgpPeerStatusListResult(Model): + """Response for list BGP peer status API service call. + + :param value: List of BGP peers + :type value: list[~azure.mgmt.network.v2018_10_01.models.BgpPeerStatus] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[BgpPeerStatus]'}, + } + + def __init__(self, *, value=None, **kwargs) -> None: + super(BgpPeerStatusListResult, self).__init__(**kwargs) + self.value = value diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/bgp_peer_status_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/bgp_peer_status_py3.py new file mode 100644 index 000000000000..eda9af47143a --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/bgp_peer_status_py3.py @@ -0,0 +1,71 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class BgpPeerStatus(Model): + """BGP peer status details. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar local_address: The virtual network gateway's local address + :vartype local_address: str + :ivar neighbor: The remote BGP peer + :vartype neighbor: str + :ivar asn: The autonomous system number of the remote BGP peer + :vartype asn: int + :ivar state: The BGP peer state. Possible values include: 'Unknown', + 'Stopped', 'Idle', 'Connecting', 'Connected' + :vartype state: str or ~azure.mgmt.network.v2018_10_01.models.BgpPeerState + :ivar connected_duration: For how long the peering has been up + :vartype connected_duration: str + :ivar routes_received: The number of routes learned from this peer + :vartype routes_received: long + :ivar messages_sent: The number of BGP messages sent + :vartype messages_sent: long + :ivar messages_received: The number of BGP messages received + :vartype messages_received: long + """ + + _validation = { + 'local_address': {'readonly': True}, + 'neighbor': {'readonly': True}, + 'asn': {'readonly': True}, + 'state': {'readonly': True}, + 'connected_duration': {'readonly': True}, + 'routes_received': {'readonly': True}, + 'messages_sent': {'readonly': True}, + 'messages_received': {'readonly': True}, + } + + _attribute_map = { + 'local_address': {'key': 'localAddress', 'type': 'str'}, + 'neighbor': {'key': 'neighbor', 'type': 'str'}, + 'asn': {'key': 'asn', 'type': 'int'}, + 'state': {'key': 'state', 'type': 'str'}, + 'connected_duration': {'key': 'connectedDuration', 'type': 'str'}, + 'routes_received': {'key': 'routesReceived', 'type': 'long'}, + 'messages_sent': {'key': 'messagesSent', 'type': 'long'}, + 'messages_received': {'key': 'messagesReceived', 'type': 'long'}, + } + + def __init__(self, **kwargs) -> None: + super(BgpPeerStatus, self).__init__(**kwargs) + self.local_address = None + self.neighbor = None + self.asn = None + self.state = None + self.connected_duration = None + self.routes_received = None + self.messages_sent = None + self.messages_received = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/bgp_service_community.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/bgp_service_community.py new file mode 100644 index 000000000000..7f1e7628bffe --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/bgp_service_community.py @@ -0,0 +1,56 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource import Resource + + +class BgpServiceCommunity(Resource): + """Service Community Properties. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param service_name: The name of the bgp community. e.g. Skype. + :type service_name: str + :param bgp_communities: Get a list of bgp communities. + :type bgp_communities: + list[~azure.mgmt.network.v2018_10_01.models.BGPCommunity] + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'service_name': {'key': 'properties.serviceName', 'type': 'str'}, + 'bgp_communities': {'key': 'properties.bgpCommunities', 'type': '[BGPCommunity]'}, + } + + def __init__(self, **kwargs): + super(BgpServiceCommunity, self).__init__(**kwargs) + self.service_name = kwargs.get('service_name', None) + self.bgp_communities = kwargs.get('bgp_communities', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/bgp_service_community_paged.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/bgp_service_community_paged.py new file mode 100644 index 000000000000..3348deddebaf --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/bgp_service_community_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class BgpServiceCommunityPaged(Paged): + """ + A paging container for iterating over a list of :class:`BgpServiceCommunity ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[BgpServiceCommunity]'} + } + + def __init__(self, *args, **kwargs): + + super(BgpServiceCommunityPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/bgp_service_community_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/bgp_service_community_py3.py new file mode 100644 index 000000000000..a1c2f6b423a2 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/bgp_service_community_py3.py @@ -0,0 +1,56 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource_py3 import Resource + + +class BgpServiceCommunity(Resource): + """Service Community Properties. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param service_name: The name of the bgp community. e.g. Skype. + :type service_name: str + :param bgp_communities: Get a list of bgp communities. + :type bgp_communities: + list[~azure.mgmt.network.v2018_10_01.models.BGPCommunity] + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'service_name': {'key': 'properties.serviceName', 'type': 'str'}, + 'bgp_communities': {'key': 'properties.bgpCommunities', 'type': '[BGPCommunity]'}, + } + + def __init__(self, *, id: str=None, location: str=None, tags=None, service_name: str=None, bgp_communities=None, **kwargs) -> None: + super(BgpServiceCommunity, self).__init__(id=id, location=location, tags=tags, **kwargs) + self.service_name = service_name + self.bgp_communities = bgp_communities diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/bgp_settings.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/bgp_settings.py new file mode 100644 index 000000000000..e6e8d1b90aa6 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/bgp_settings.py @@ -0,0 +1,38 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class BgpSettings(Model): + """BGP settings details. + + :param asn: The BGP speaker's ASN. + :type asn: long + :param bgp_peering_address: The BGP peering address and BGP identifier of + this BGP speaker. + :type bgp_peering_address: str + :param peer_weight: The weight added to routes learned from this BGP + speaker. + :type peer_weight: int + """ + + _attribute_map = { + 'asn': {'key': 'asn', 'type': 'long'}, + 'bgp_peering_address': {'key': 'bgpPeeringAddress', 'type': 'str'}, + 'peer_weight': {'key': 'peerWeight', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(BgpSettings, self).__init__(**kwargs) + self.asn = kwargs.get('asn', None) + self.bgp_peering_address = kwargs.get('bgp_peering_address', None) + self.peer_weight = kwargs.get('peer_weight', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/bgp_settings_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/bgp_settings_py3.py new file mode 100644 index 000000000000..cb3b3e6795f7 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/bgp_settings_py3.py @@ -0,0 +1,38 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class BgpSettings(Model): + """BGP settings details. + + :param asn: The BGP speaker's ASN. + :type asn: long + :param bgp_peering_address: The BGP peering address and BGP identifier of + this BGP speaker. + :type bgp_peering_address: str + :param peer_weight: The weight added to routes learned from this BGP + speaker. + :type peer_weight: int + """ + + _attribute_map = { + 'asn': {'key': 'asn', 'type': 'long'}, + 'bgp_peering_address': {'key': 'bgpPeeringAddress', 'type': 'str'}, + 'peer_weight': {'key': 'peerWeight', 'type': 'int'}, + } + + def __init__(self, *, asn: int=None, bgp_peering_address: str=None, peer_weight: int=None, **kwargs) -> None: + super(BgpSettings, self).__init__(**kwargs) + self.asn = asn + self.bgp_peering_address = bgp_peering_address + self.peer_weight = peer_weight diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connection_monitor.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connection_monitor.py new file mode 100644 index 000000000000..ea89995f97a5 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connection_monitor.py @@ -0,0 +1,59 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ConnectionMonitor(Model): + """Parameters that define the operation to create a connection monitor. + + All required parameters must be populated in order to send to Azure. + + :param location: Connection monitor location. + :type location: str + :param tags: Connection monitor tags. + :type tags: dict[str, str] + :param source: Required. + :type source: + ~azure.mgmt.network.v2018_10_01.models.ConnectionMonitorSource + :param destination: Required. + :type destination: + ~azure.mgmt.network.v2018_10_01.models.ConnectionMonitorDestination + :param auto_start: Determines if the connection monitor will start + automatically once created. Default value: True . + :type auto_start: bool + :param monitoring_interval_in_seconds: Monitoring interval in seconds. + Default value: 60 . + :type monitoring_interval_in_seconds: int + """ + + _validation = { + 'source': {'required': True}, + 'destination': {'required': True}, + } + + _attribute_map = { + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'source': {'key': 'properties.source', 'type': 'ConnectionMonitorSource'}, + 'destination': {'key': 'properties.destination', 'type': 'ConnectionMonitorDestination'}, + 'auto_start': {'key': 'properties.autoStart', 'type': 'bool'}, + 'monitoring_interval_in_seconds': {'key': 'properties.monitoringIntervalInSeconds', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(ConnectionMonitor, self).__init__(**kwargs) + self.location = kwargs.get('location', None) + self.tags = kwargs.get('tags', None) + self.source = kwargs.get('source', None) + self.destination = kwargs.get('destination', None) + self.auto_start = kwargs.get('auto_start', True) + self.monitoring_interval_in_seconds = kwargs.get('monitoring_interval_in_seconds', 60) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connection_monitor_destination.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connection_monitor_destination.py new file mode 100644 index 000000000000..9d1e3885cb38 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connection_monitor_destination.py @@ -0,0 +1,38 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ConnectionMonitorDestination(Model): + """Describes the destination of connection monitor. + + :param resource_id: The ID of the resource used as the destination by + connection monitor. + :type resource_id: str + :param address: Address of the connection monitor destination (IP or + domain name). + :type address: str + :param port: The destination port used by connection monitor. + :type port: int + """ + + _attribute_map = { + 'resource_id': {'key': 'resourceId', 'type': 'str'}, + 'address': {'key': 'address', 'type': 'str'}, + 'port': {'key': 'port', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(ConnectionMonitorDestination, self).__init__(**kwargs) + self.resource_id = kwargs.get('resource_id', None) + self.address = kwargs.get('address', None) + self.port = kwargs.get('port', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connection_monitor_destination_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connection_monitor_destination_py3.py new file mode 100644 index 000000000000..59e7465804ce --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connection_monitor_destination_py3.py @@ -0,0 +1,38 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ConnectionMonitorDestination(Model): + """Describes the destination of connection monitor. + + :param resource_id: The ID of the resource used as the destination by + connection monitor. + :type resource_id: str + :param address: Address of the connection monitor destination (IP or + domain name). + :type address: str + :param port: The destination port used by connection monitor. + :type port: int + """ + + _attribute_map = { + 'resource_id': {'key': 'resourceId', 'type': 'str'}, + 'address': {'key': 'address', 'type': 'str'}, + 'port': {'key': 'port', 'type': 'int'}, + } + + def __init__(self, *, resource_id: str=None, address: str=None, port: int=None, **kwargs) -> None: + super(ConnectionMonitorDestination, self).__init__(**kwargs) + self.resource_id = resource_id + self.address = address + self.port = port diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connection_monitor_parameters.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connection_monitor_parameters.py new file mode 100644 index 000000000000..25e0620a0ebe --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connection_monitor_parameters.py @@ -0,0 +1,51 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ConnectionMonitorParameters(Model): + """Parameters that define the operation to create a connection monitor. + + All required parameters must be populated in order to send to Azure. + + :param source: Required. + :type source: + ~azure.mgmt.network.v2018_10_01.models.ConnectionMonitorSource + :param destination: Required. + :type destination: + ~azure.mgmt.network.v2018_10_01.models.ConnectionMonitorDestination + :param auto_start: Determines if the connection monitor will start + automatically once created. Default value: True . + :type auto_start: bool + :param monitoring_interval_in_seconds: Monitoring interval in seconds. + Default value: 60 . + :type monitoring_interval_in_seconds: int + """ + + _validation = { + 'source': {'required': True}, + 'destination': {'required': True}, + } + + _attribute_map = { + 'source': {'key': 'source', 'type': 'ConnectionMonitorSource'}, + 'destination': {'key': 'destination', 'type': 'ConnectionMonitorDestination'}, + 'auto_start': {'key': 'autoStart', 'type': 'bool'}, + 'monitoring_interval_in_seconds': {'key': 'monitoringIntervalInSeconds', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(ConnectionMonitorParameters, self).__init__(**kwargs) + self.source = kwargs.get('source', None) + self.destination = kwargs.get('destination', None) + self.auto_start = kwargs.get('auto_start', True) + self.monitoring_interval_in_seconds = kwargs.get('monitoring_interval_in_seconds', 60) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connection_monitor_parameters_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connection_monitor_parameters_py3.py new file mode 100644 index 000000000000..f30e71fb9fe2 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connection_monitor_parameters_py3.py @@ -0,0 +1,51 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ConnectionMonitorParameters(Model): + """Parameters that define the operation to create a connection monitor. + + All required parameters must be populated in order to send to Azure. + + :param source: Required. + :type source: + ~azure.mgmt.network.v2018_10_01.models.ConnectionMonitorSource + :param destination: Required. + :type destination: + ~azure.mgmt.network.v2018_10_01.models.ConnectionMonitorDestination + :param auto_start: Determines if the connection monitor will start + automatically once created. Default value: True . + :type auto_start: bool + :param monitoring_interval_in_seconds: Monitoring interval in seconds. + Default value: 60 . + :type monitoring_interval_in_seconds: int + """ + + _validation = { + 'source': {'required': True}, + 'destination': {'required': True}, + } + + _attribute_map = { + 'source': {'key': 'source', 'type': 'ConnectionMonitorSource'}, + 'destination': {'key': 'destination', 'type': 'ConnectionMonitorDestination'}, + 'auto_start': {'key': 'autoStart', 'type': 'bool'}, + 'monitoring_interval_in_seconds': {'key': 'monitoringIntervalInSeconds', 'type': 'int'}, + } + + def __init__(self, *, source, destination, auto_start: bool=True, monitoring_interval_in_seconds: int=60, **kwargs) -> None: + super(ConnectionMonitorParameters, self).__init__(**kwargs) + self.source = source + self.destination = destination + self.auto_start = auto_start + self.monitoring_interval_in_seconds = monitoring_interval_in_seconds diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connection_monitor_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connection_monitor_py3.py new file mode 100644 index 000000000000..314e7de7c3ae --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connection_monitor_py3.py @@ -0,0 +1,59 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ConnectionMonitor(Model): + """Parameters that define the operation to create a connection monitor. + + All required parameters must be populated in order to send to Azure. + + :param location: Connection monitor location. + :type location: str + :param tags: Connection monitor tags. + :type tags: dict[str, str] + :param source: Required. + :type source: + ~azure.mgmt.network.v2018_10_01.models.ConnectionMonitorSource + :param destination: Required. + :type destination: + ~azure.mgmt.network.v2018_10_01.models.ConnectionMonitorDestination + :param auto_start: Determines if the connection monitor will start + automatically once created. Default value: True . + :type auto_start: bool + :param monitoring_interval_in_seconds: Monitoring interval in seconds. + Default value: 60 . + :type monitoring_interval_in_seconds: int + """ + + _validation = { + 'source': {'required': True}, + 'destination': {'required': True}, + } + + _attribute_map = { + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'source': {'key': 'properties.source', 'type': 'ConnectionMonitorSource'}, + 'destination': {'key': 'properties.destination', 'type': 'ConnectionMonitorDestination'}, + 'auto_start': {'key': 'properties.autoStart', 'type': 'bool'}, + 'monitoring_interval_in_seconds': {'key': 'properties.monitoringIntervalInSeconds', 'type': 'int'}, + } + + def __init__(self, *, source, destination, location: str=None, tags=None, auto_start: bool=True, monitoring_interval_in_seconds: int=60, **kwargs) -> None: + super(ConnectionMonitor, self).__init__(**kwargs) + self.location = location + self.tags = tags + self.source = source + self.destination = destination + self.auto_start = auto_start + self.monitoring_interval_in_seconds = monitoring_interval_in_seconds diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connection_monitor_query_result.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connection_monitor_query_result.py new file mode 100644 index 000000000000..790220338e52 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connection_monitor_query_result.py @@ -0,0 +1,35 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ConnectionMonitorQueryResult(Model): + """List of connection states snaphots. + + :param source_status: Status of connection monitor source. Possible values + include: 'Uknown', 'Active', 'Inactive' + :type source_status: str or + ~azure.mgmt.network.v2018_10_01.models.ConnectionMonitorSourceStatus + :param states: Information about connection states. + :type states: + list[~azure.mgmt.network.v2018_10_01.models.ConnectionStateSnapshot] + """ + + _attribute_map = { + 'source_status': {'key': 'sourceStatus', 'type': 'str'}, + 'states': {'key': 'states', 'type': '[ConnectionStateSnapshot]'}, + } + + def __init__(self, **kwargs): + super(ConnectionMonitorQueryResult, self).__init__(**kwargs) + self.source_status = kwargs.get('source_status', None) + self.states = kwargs.get('states', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connection_monitor_query_result_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connection_monitor_query_result_py3.py new file mode 100644 index 000000000000..81570c29f3c3 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connection_monitor_query_result_py3.py @@ -0,0 +1,35 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ConnectionMonitorQueryResult(Model): + """List of connection states snaphots. + + :param source_status: Status of connection monitor source. Possible values + include: 'Uknown', 'Active', 'Inactive' + :type source_status: str or + ~azure.mgmt.network.v2018_10_01.models.ConnectionMonitorSourceStatus + :param states: Information about connection states. + :type states: + list[~azure.mgmt.network.v2018_10_01.models.ConnectionStateSnapshot] + """ + + _attribute_map = { + 'source_status': {'key': 'sourceStatus', 'type': 'str'}, + 'states': {'key': 'states', 'type': '[ConnectionStateSnapshot]'}, + } + + def __init__(self, *, source_status=None, states=None, **kwargs) -> None: + super(ConnectionMonitorQueryResult, self).__init__(**kwargs) + self.source_status = source_status + self.states = states diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connection_monitor_result.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connection_monitor_result.py new file mode 100644 index 000000000000..82b555b86ad0 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connection_monitor_result.py @@ -0,0 +1,98 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ConnectionMonitorResult(Model): + """Information about the connection monitor. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar name: Name of the connection monitor. + :vartype name: str + :ivar id: ID of the connection monitor. + :vartype id: str + :param etag: Default value: "A unique read-only string that changes + whenever the resource is updated." . + :type etag: str + :ivar type: Connection monitor type. + :vartype type: str + :param location: Connection monitor location. + :type location: str + :param tags: Connection monitor tags. + :type tags: dict[str, str] + :param source: Required. + :type source: + ~azure.mgmt.network.v2018_10_01.models.ConnectionMonitorSource + :param destination: Required. + :type destination: + ~azure.mgmt.network.v2018_10_01.models.ConnectionMonitorDestination + :param auto_start: Determines if the connection monitor will start + automatically once created. Default value: True . + :type auto_start: bool + :param monitoring_interval_in_seconds: Monitoring interval in seconds. + Default value: 60 . + :type monitoring_interval_in_seconds: int + :param provisioning_state: The provisioning state of the connection + monitor. Possible values include: 'Succeeded', 'Updating', 'Deleting', + 'Failed' + :type provisioning_state: str or + ~azure.mgmt.network.v2018_10_01.models.ProvisioningState + :param start_time: The date and time when the connection monitor was + started. + :type start_time: datetime + :param monitoring_status: The monitoring status of the connection monitor. + :type monitoring_status: str + """ + + _validation = { + 'name': {'readonly': True}, + 'id': {'readonly': True}, + 'type': {'readonly': True}, + 'source': {'required': True}, + 'destination': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'source': {'key': 'properties.source', 'type': 'ConnectionMonitorSource'}, + 'destination': {'key': 'properties.destination', 'type': 'ConnectionMonitorDestination'}, + 'auto_start': {'key': 'properties.autoStart', 'type': 'bool'}, + 'monitoring_interval_in_seconds': {'key': 'properties.monitoringIntervalInSeconds', 'type': 'int'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'start_time': {'key': 'properties.startTime', 'type': 'iso-8601'}, + 'monitoring_status': {'key': 'properties.monitoringStatus', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ConnectionMonitorResult, self).__init__(**kwargs) + self.name = None + self.id = None + self.etag = kwargs.get('etag', "A unique read-only string that changes whenever the resource is updated.") + self.type = None + self.location = kwargs.get('location', None) + self.tags = kwargs.get('tags', None) + self.source = kwargs.get('source', None) + self.destination = kwargs.get('destination', None) + self.auto_start = kwargs.get('auto_start', True) + self.monitoring_interval_in_seconds = kwargs.get('monitoring_interval_in_seconds', 60) + self.provisioning_state = kwargs.get('provisioning_state', None) + self.start_time = kwargs.get('start_time', None) + self.monitoring_status = kwargs.get('monitoring_status', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connection_monitor_result_paged.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connection_monitor_result_paged.py new file mode 100644 index 000000000000..31d29468c9e7 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connection_monitor_result_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class ConnectionMonitorResultPaged(Paged): + """ + A paging container for iterating over a list of :class:`ConnectionMonitorResult ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[ConnectionMonitorResult]'} + } + + def __init__(self, *args, **kwargs): + + super(ConnectionMonitorResultPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connection_monitor_result_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connection_monitor_result_py3.py new file mode 100644 index 000000000000..d400be95a7e5 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connection_monitor_result_py3.py @@ -0,0 +1,98 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ConnectionMonitorResult(Model): + """Information about the connection monitor. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar name: Name of the connection monitor. + :vartype name: str + :ivar id: ID of the connection monitor. + :vartype id: str + :param etag: Default value: "A unique read-only string that changes + whenever the resource is updated." . + :type etag: str + :ivar type: Connection monitor type. + :vartype type: str + :param location: Connection monitor location. + :type location: str + :param tags: Connection monitor tags. + :type tags: dict[str, str] + :param source: Required. + :type source: + ~azure.mgmt.network.v2018_10_01.models.ConnectionMonitorSource + :param destination: Required. + :type destination: + ~azure.mgmt.network.v2018_10_01.models.ConnectionMonitorDestination + :param auto_start: Determines if the connection monitor will start + automatically once created. Default value: True . + :type auto_start: bool + :param monitoring_interval_in_seconds: Monitoring interval in seconds. + Default value: 60 . + :type monitoring_interval_in_seconds: int + :param provisioning_state: The provisioning state of the connection + monitor. Possible values include: 'Succeeded', 'Updating', 'Deleting', + 'Failed' + :type provisioning_state: str or + ~azure.mgmt.network.v2018_10_01.models.ProvisioningState + :param start_time: The date and time when the connection monitor was + started. + :type start_time: datetime + :param monitoring_status: The monitoring status of the connection monitor. + :type monitoring_status: str + """ + + _validation = { + 'name': {'readonly': True}, + 'id': {'readonly': True}, + 'type': {'readonly': True}, + 'source': {'required': True}, + 'destination': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'source': {'key': 'properties.source', 'type': 'ConnectionMonitorSource'}, + 'destination': {'key': 'properties.destination', 'type': 'ConnectionMonitorDestination'}, + 'auto_start': {'key': 'properties.autoStart', 'type': 'bool'}, + 'monitoring_interval_in_seconds': {'key': 'properties.monitoringIntervalInSeconds', 'type': 'int'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'start_time': {'key': 'properties.startTime', 'type': 'iso-8601'}, + 'monitoring_status': {'key': 'properties.monitoringStatus', 'type': 'str'}, + } + + def __init__(self, *, source, destination, etag: str="A unique read-only string that changes whenever the resource is updated.", location: str=None, tags=None, auto_start: bool=True, monitoring_interval_in_seconds: int=60, provisioning_state=None, start_time=None, monitoring_status: str=None, **kwargs) -> None: + super(ConnectionMonitorResult, self).__init__(**kwargs) + self.name = None + self.id = None + self.etag = etag + self.type = None + self.location = location + self.tags = tags + self.source = source + self.destination = destination + self.auto_start = auto_start + self.monitoring_interval_in_seconds = monitoring_interval_in_seconds + self.provisioning_state = provisioning_state + self.start_time = start_time + self.monitoring_status = monitoring_status diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connection_monitor_source.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connection_monitor_source.py new file mode 100644 index 000000000000..1425fa613ce5 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connection_monitor_source.py @@ -0,0 +1,39 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ConnectionMonitorSource(Model): + """Describes the source of connection monitor. + + All required parameters must be populated in order to send to Azure. + + :param resource_id: Required. The ID of the resource used as the source by + connection monitor. + :type resource_id: str + :param port: The source port used by connection monitor. + :type port: int + """ + + _validation = { + 'resource_id': {'required': True}, + } + + _attribute_map = { + 'resource_id': {'key': 'resourceId', 'type': 'str'}, + 'port': {'key': 'port', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(ConnectionMonitorSource, self).__init__(**kwargs) + self.resource_id = kwargs.get('resource_id', None) + self.port = kwargs.get('port', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connection_monitor_source_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connection_monitor_source_py3.py new file mode 100644 index 000000000000..4d44fcaf8bf0 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connection_monitor_source_py3.py @@ -0,0 +1,39 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ConnectionMonitorSource(Model): + """Describes the source of connection monitor. + + All required parameters must be populated in order to send to Azure. + + :param resource_id: Required. The ID of the resource used as the source by + connection monitor. + :type resource_id: str + :param port: The source port used by connection monitor. + :type port: int + """ + + _validation = { + 'resource_id': {'required': True}, + } + + _attribute_map = { + 'resource_id': {'key': 'resourceId', 'type': 'str'}, + 'port': {'key': 'port', 'type': 'int'}, + } + + def __init__(self, *, resource_id: str, port: int=None, **kwargs) -> None: + super(ConnectionMonitorSource, self).__init__(**kwargs) + self.resource_id = resource_id + self.port = port diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connection_reset_shared_key.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connection_reset_shared_key.py new file mode 100644 index 000000000000..1ade077795ed --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connection_reset_shared_key.py @@ -0,0 +1,35 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ConnectionResetSharedKey(Model): + """The virtual network connection reset shared key. + + All required parameters must be populated in order to send to Azure. + + :param key_length: Required. The virtual network connection reset shared + key length, should between 1 and 128. + :type key_length: int + """ + + _validation = { + 'key_length': {'required': True, 'maximum': 128, 'minimum': 1}, + } + + _attribute_map = { + 'key_length': {'key': 'keyLength', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(ConnectionResetSharedKey, self).__init__(**kwargs) + self.key_length = kwargs.get('key_length', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connection_reset_shared_key_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connection_reset_shared_key_py3.py new file mode 100644 index 000000000000..47326d4c2082 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connection_reset_shared_key_py3.py @@ -0,0 +1,35 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ConnectionResetSharedKey(Model): + """The virtual network connection reset shared key. + + All required parameters must be populated in order to send to Azure. + + :param key_length: Required. The virtual network connection reset shared + key length, should between 1 and 128. + :type key_length: int + """ + + _validation = { + 'key_length': {'required': True, 'maximum': 128, 'minimum': 1}, + } + + _attribute_map = { + 'key_length': {'key': 'keyLength', 'type': 'int'}, + } + + def __init__(self, *, key_length: int, **kwargs) -> None: + super(ConnectionResetSharedKey, self).__init__(**kwargs) + self.key_length = key_length diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connection_shared_key.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connection_shared_key.py new file mode 100644 index 000000000000..f6d742dac00f --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connection_shared_key.py @@ -0,0 +1,37 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource import SubResource + + +class ConnectionSharedKey(SubResource): + """Response for GetConnectionSharedKey API service call. + + All required parameters must be populated in order to send to Azure. + + :param id: Resource ID. + :type id: str + :param value: Required. The virtual network connection shared key value. + :type value: str + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ConnectionSharedKey, self).__init__(**kwargs) + self.value = kwargs.get('value', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connection_shared_key_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connection_shared_key_py3.py new file mode 100644 index 000000000000..819965ba3dbf --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connection_shared_key_py3.py @@ -0,0 +1,37 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource_py3 import SubResource + + +class ConnectionSharedKey(SubResource): + """Response for GetConnectionSharedKey API service call. + + All required parameters must be populated in order to send to Azure. + + :param id: Resource ID. + :type id: str + :param value: Required. The virtual network connection shared key value. + :type value: str + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__(self, *, value: str, id: str=None, **kwargs) -> None: + super(ConnectionSharedKey, self).__init__(id=id, **kwargs) + self.value = value diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connection_state_snapshot.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connection_state_snapshot.py new file mode 100644 index 000000000000..234af517dcc9 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connection_state_snapshot.py @@ -0,0 +1,76 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ConnectionStateSnapshot(Model): + """Connection state snapshot. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param connection_state: The connection state. Possible values include: + 'Reachable', 'Unreachable', 'Unknown' + :type connection_state: str or + ~azure.mgmt.network.v2018_10_01.models.ConnectionState + :param start_time: The start time of the connection snapshot. + :type start_time: datetime + :param end_time: The end time of the connection snapshot. + :type end_time: datetime + :param evaluation_state: Connectivity analysis evaluation state. Possible + values include: 'NotStarted', 'InProgress', 'Completed' + :type evaluation_state: str or + ~azure.mgmt.network.v2018_10_01.models.EvaluationState + :param avg_latency_in_ms: Average latency in ms. + :type avg_latency_in_ms: int + :param min_latency_in_ms: Minimum latency in ms. + :type min_latency_in_ms: int + :param max_latency_in_ms: Maximum latency in ms. + :type max_latency_in_ms: int + :param probes_sent: The number of sent probes. + :type probes_sent: int + :param probes_failed: The number of failed probes. + :type probes_failed: int + :ivar hops: List of hops between the source and the destination. + :vartype hops: + list[~azure.mgmt.network.v2018_10_01.models.ConnectivityHop] + """ + + _validation = { + 'hops': {'readonly': True}, + } + + _attribute_map = { + 'connection_state': {'key': 'connectionState', 'type': 'str'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + 'evaluation_state': {'key': 'evaluationState', 'type': 'str'}, + 'avg_latency_in_ms': {'key': 'avgLatencyInMs', 'type': 'int'}, + 'min_latency_in_ms': {'key': 'minLatencyInMs', 'type': 'int'}, + 'max_latency_in_ms': {'key': 'maxLatencyInMs', 'type': 'int'}, + 'probes_sent': {'key': 'probesSent', 'type': 'int'}, + 'probes_failed': {'key': 'probesFailed', 'type': 'int'}, + 'hops': {'key': 'hops', 'type': '[ConnectivityHop]'}, + } + + def __init__(self, **kwargs): + super(ConnectionStateSnapshot, self).__init__(**kwargs) + self.connection_state = kwargs.get('connection_state', None) + self.start_time = kwargs.get('start_time', None) + self.end_time = kwargs.get('end_time', None) + self.evaluation_state = kwargs.get('evaluation_state', None) + self.avg_latency_in_ms = kwargs.get('avg_latency_in_ms', None) + self.min_latency_in_ms = kwargs.get('min_latency_in_ms', None) + self.max_latency_in_ms = kwargs.get('max_latency_in_ms', None) + self.probes_sent = kwargs.get('probes_sent', None) + self.probes_failed = kwargs.get('probes_failed', None) + self.hops = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connection_state_snapshot_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connection_state_snapshot_py3.py new file mode 100644 index 000000000000..5b2753b7f795 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connection_state_snapshot_py3.py @@ -0,0 +1,76 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ConnectionStateSnapshot(Model): + """Connection state snapshot. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param connection_state: The connection state. Possible values include: + 'Reachable', 'Unreachable', 'Unknown' + :type connection_state: str or + ~azure.mgmt.network.v2018_10_01.models.ConnectionState + :param start_time: The start time of the connection snapshot. + :type start_time: datetime + :param end_time: The end time of the connection snapshot. + :type end_time: datetime + :param evaluation_state: Connectivity analysis evaluation state. Possible + values include: 'NotStarted', 'InProgress', 'Completed' + :type evaluation_state: str or + ~azure.mgmt.network.v2018_10_01.models.EvaluationState + :param avg_latency_in_ms: Average latency in ms. + :type avg_latency_in_ms: int + :param min_latency_in_ms: Minimum latency in ms. + :type min_latency_in_ms: int + :param max_latency_in_ms: Maximum latency in ms. + :type max_latency_in_ms: int + :param probes_sent: The number of sent probes. + :type probes_sent: int + :param probes_failed: The number of failed probes. + :type probes_failed: int + :ivar hops: List of hops between the source and the destination. + :vartype hops: + list[~azure.mgmt.network.v2018_10_01.models.ConnectivityHop] + """ + + _validation = { + 'hops': {'readonly': True}, + } + + _attribute_map = { + 'connection_state': {'key': 'connectionState', 'type': 'str'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + 'evaluation_state': {'key': 'evaluationState', 'type': 'str'}, + 'avg_latency_in_ms': {'key': 'avgLatencyInMs', 'type': 'int'}, + 'min_latency_in_ms': {'key': 'minLatencyInMs', 'type': 'int'}, + 'max_latency_in_ms': {'key': 'maxLatencyInMs', 'type': 'int'}, + 'probes_sent': {'key': 'probesSent', 'type': 'int'}, + 'probes_failed': {'key': 'probesFailed', 'type': 'int'}, + 'hops': {'key': 'hops', 'type': '[ConnectivityHop]'}, + } + + def __init__(self, *, connection_state=None, start_time=None, end_time=None, evaluation_state=None, avg_latency_in_ms: int=None, min_latency_in_ms: int=None, max_latency_in_ms: int=None, probes_sent: int=None, probes_failed: int=None, **kwargs) -> None: + super(ConnectionStateSnapshot, self).__init__(**kwargs) + self.connection_state = connection_state + self.start_time = start_time + self.end_time = end_time + self.evaluation_state = evaluation_state + self.avg_latency_in_ms = avg_latency_in_ms + self.min_latency_in_ms = min_latency_in_ms + self.max_latency_in_ms = max_latency_in_ms + self.probes_sent = probes_sent + self.probes_failed = probes_failed + self.hops = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connectivity_destination.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connectivity_destination.py new file mode 100644 index 000000000000..964c425a29d3 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connectivity_destination.py @@ -0,0 +1,38 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ConnectivityDestination(Model): + """Parameters that define destination of connection. + + :param resource_id: The ID of the resource to which a connection attempt + will be made. + :type resource_id: str + :param address: The IP address or URI the resource to which a connection + attempt will be made. + :type address: str + :param port: Port on which check connectivity will be performed. + :type port: int + """ + + _attribute_map = { + 'resource_id': {'key': 'resourceId', 'type': 'str'}, + 'address': {'key': 'address', 'type': 'str'}, + 'port': {'key': 'port', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(ConnectivityDestination, self).__init__(**kwargs) + self.resource_id = kwargs.get('resource_id', None) + self.address = kwargs.get('address', None) + self.port = kwargs.get('port', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connectivity_destination_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connectivity_destination_py3.py new file mode 100644 index 000000000000..c51619081ed6 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connectivity_destination_py3.py @@ -0,0 +1,38 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ConnectivityDestination(Model): + """Parameters that define destination of connection. + + :param resource_id: The ID of the resource to which a connection attempt + will be made. + :type resource_id: str + :param address: The IP address or URI the resource to which a connection + attempt will be made. + :type address: str + :param port: Port on which check connectivity will be performed. + :type port: int + """ + + _attribute_map = { + 'resource_id': {'key': 'resourceId', 'type': 'str'}, + 'address': {'key': 'address', 'type': 'str'}, + 'port': {'key': 'port', 'type': 'int'}, + } + + def __init__(self, *, resource_id: str=None, address: str=None, port: int=None, **kwargs) -> None: + super(ConnectivityDestination, self).__init__(**kwargs) + self.resource_id = resource_id + self.address = address + self.port = port diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connectivity_hop.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connectivity_hop.py new file mode 100644 index 000000000000..8bd5016cc446 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connectivity_hop.py @@ -0,0 +1,61 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ConnectivityHop(Model): + """Information about a hop between the source and the destination. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar type: The type of the hop. + :vartype type: str + :ivar id: The ID of the hop. + :vartype id: str + :ivar address: The IP address of the hop. + :vartype address: str + :ivar resource_id: The ID of the resource corresponding to this hop. + :vartype resource_id: str + :ivar next_hop_ids: List of next hop identifiers. + :vartype next_hop_ids: list[str] + :ivar issues: List of issues. + :vartype issues: + list[~azure.mgmt.network.v2018_10_01.models.ConnectivityIssue] + """ + + _validation = { + 'type': {'readonly': True}, + 'id': {'readonly': True}, + 'address': {'readonly': True}, + 'resource_id': {'readonly': True}, + 'next_hop_ids': {'readonly': True}, + 'issues': {'readonly': True}, + } + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'address': {'key': 'address', 'type': 'str'}, + 'resource_id': {'key': 'resourceId', 'type': 'str'}, + 'next_hop_ids': {'key': 'nextHopIds', 'type': '[str]'}, + 'issues': {'key': 'issues', 'type': '[ConnectivityIssue]'}, + } + + def __init__(self, **kwargs): + super(ConnectivityHop, self).__init__(**kwargs) + self.type = None + self.id = None + self.address = None + self.resource_id = None + self.next_hop_ids = None + self.issues = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connectivity_hop_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connectivity_hop_py3.py new file mode 100644 index 000000000000..3c2e773f02b2 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connectivity_hop_py3.py @@ -0,0 +1,61 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ConnectivityHop(Model): + """Information about a hop between the source and the destination. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar type: The type of the hop. + :vartype type: str + :ivar id: The ID of the hop. + :vartype id: str + :ivar address: The IP address of the hop. + :vartype address: str + :ivar resource_id: The ID of the resource corresponding to this hop. + :vartype resource_id: str + :ivar next_hop_ids: List of next hop identifiers. + :vartype next_hop_ids: list[str] + :ivar issues: List of issues. + :vartype issues: + list[~azure.mgmt.network.v2018_10_01.models.ConnectivityIssue] + """ + + _validation = { + 'type': {'readonly': True}, + 'id': {'readonly': True}, + 'address': {'readonly': True}, + 'resource_id': {'readonly': True}, + 'next_hop_ids': {'readonly': True}, + 'issues': {'readonly': True}, + } + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'address': {'key': 'address', 'type': 'str'}, + 'resource_id': {'key': 'resourceId', 'type': 'str'}, + 'next_hop_ids': {'key': 'nextHopIds', 'type': '[str]'}, + 'issues': {'key': 'issues', 'type': '[ConnectivityIssue]'}, + } + + def __init__(self, **kwargs) -> None: + super(ConnectivityHop, self).__init__(**kwargs) + self.type = None + self.id = None + self.address = None + self.resource_id = None + self.next_hop_ids = None + self.issues = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connectivity_information.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connectivity_information.py new file mode 100644 index 000000000000..62c607ea133e --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connectivity_information.py @@ -0,0 +1,68 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ConnectivityInformation(Model): + """Information on the connectivity status. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar hops: List of hops between the source and the destination. + :vartype hops: + list[~azure.mgmt.network.v2018_10_01.models.ConnectivityHop] + :ivar connection_status: The connection status. Possible values include: + 'Unknown', 'Connected', 'Disconnected', 'Degraded' + :vartype connection_status: str or + ~azure.mgmt.network.v2018_10_01.models.ConnectionStatus + :ivar avg_latency_in_ms: Average latency in milliseconds. + :vartype avg_latency_in_ms: int + :ivar min_latency_in_ms: Minimum latency in milliseconds. + :vartype min_latency_in_ms: int + :ivar max_latency_in_ms: Maximum latency in milliseconds. + :vartype max_latency_in_ms: int + :ivar probes_sent: Total number of probes sent. + :vartype probes_sent: int + :ivar probes_failed: Number of failed probes. + :vartype probes_failed: int + """ + + _validation = { + 'hops': {'readonly': True}, + 'connection_status': {'readonly': True}, + 'avg_latency_in_ms': {'readonly': True}, + 'min_latency_in_ms': {'readonly': True}, + 'max_latency_in_ms': {'readonly': True}, + 'probes_sent': {'readonly': True}, + 'probes_failed': {'readonly': True}, + } + + _attribute_map = { + 'hops': {'key': 'hops', 'type': '[ConnectivityHop]'}, + 'connection_status': {'key': 'connectionStatus', 'type': 'str'}, + 'avg_latency_in_ms': {'key': 'avgLatencyInMs', 'type': 'int'}, + 'min_latency_in_ms': {'key': 'minLatencyInMs', 'type': 'int'}, + 'max_latency_in_ms': {'key': 'maxLatencyInMs', 'type': 'int'}, + 'probes_sent': {'key': 'probesSent', 'type': 'int'}, + 'probes_failed': {'key': 'probesFailed', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(ConnectivityInformation, self).__init__(**kwargs) + self.hops = None + self.connection_status = None + self.avg_latency_in_ms = None + self.min_latency_in_ms = None + self.max_latency_in_ms = None + self.probes_sent = None + self.probes_failed = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connectivity_information_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connectivity_information_py3.py new file mode 100644 index 000000000000..2396868d389f --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connectivity_information_py3.py @@ -0,0 +1,68 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ConnectivityInformation(Model): + """Information on the connectivity status. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar hops: List of hops between the source and the destination. + :vartype hops: + list[~azure.mgmt.network.v2018_10_01.models.ConnectivityHop] + :ivar connection_status: The connection status. Possible values include: + 'Unknown', 'Connected', 'Disconnected', 'Degraded' + :vartype connection_status: str or + ~azure.mgmt.network.v2018_10_01.models.ConnectionStatus + :ivar avg_latency_in_ms: Average latency in milliseconds. + :vartype avg_latency_in_ms: int + :ivar min_latency_in_ms: Minimum latency in milliseconds. + :vartype min_latency_in_ms: int + :ivar max_latency_in_ms: Maximum latency in milliseconds. + :vartype max_latency_in_ms: int + :ivar probes_sent: Total number of probes sent. + :vartype probes_sent: int + :ivar probes_failed: Number of failed probes. + :vartype probes_failed: int + """ + + _validation = { + 'hops': {'readonly': True}, + 'connection_status': {'readonly': True}, + 'avg_latency_in_ms': {'readonly': True}, + 'min_latency_in_ms': {'readonly': True}, + 'max_latency_in_ms': {'readonly': True}, + 'probes_sent': {'readonly': True}, + 'probes_failed': {'readonly': True}, + } + + _attribute_map = { + 'hops': {'key': 'hops', 'type': '[ConnectivityHop]'}, + 'connection_status': {'key': 'connectionStatus', 'type': 'str'}, + 'avg_latency_in_ms': {'key': 'avgLatencyInMs', 'type': 'int'}, + 'min_latency_in_ms': {'key': 'minLatencyInMs', 'type': 'int'}, + 'max_latency_in_ms': {'key': 'maxLatencyInMs', 'type': 'int'}, + 'probes_sent': {'key': 'probesSent', 'type': 'int'}, + 'probes_failed': {'key': 'probesFailed', 'type': 'int'}, + } + + def __init__(self, **kwargs) -> None: + super(ConnectivityInformation, self).__init__(**kwargs) + self.hops = None + self.connection_status = None + self.avg_latency_in_ms = None + self.min_latency_in_ms = None + self.max_latency_in_ms = None + self.probes_sent = None + self.probes_failed = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connectivity_issue.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connectivity_issue.py new file mode 100644 index 000000000000..6b161b898a5c --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connectivity_issue.py @@ -0,0 +1,55 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ConnectivityIssue(Model): + """Information about an issue encountered in the process of checking for + connectivity. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar origin: The origin of the issue. Possible values include: 'Local', + 'Inbound', 'Outbound' + :vartype origin: str or ~azure.mgmt.network.v2018_10_01.models.Origin + :ivar severity: The severity of the issue. Possible values include: + 'Error', 'Warning' + :vartype severity: str or ~azure.mgmt.network.v2018_10_01.models.Severity + :ivar type: The type of issue. Possible values include: 'Unknown', + 'AgentStopped', 'GuestFirewall', 'DnsResolution', 'SocketBind', + 'NetworkSecurityRule', 'UserDefinedRoute', 'PortThrottled', 'Platform' + :vartype type: str or ~azure.mgmt.network.v2018_10_01.models.IssueType + :ivar context: Provides additional context on the issue. + :vartype context: list[dict[str, str]] + """ + + _validation = { + 'origin': {'readonly': True}, + 'severity': {'readonly': True}, + 'type': {'readonly': True}, + 'context': {'readonly': True}, + } + + _attribute_map = { + 'origin': {'key': 'origin', 'type': 'str'}, + 'severity': {'key': 'severity', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'context': {'key': 'context', 'type': '[{str}]'}, + } + + def __init__(self, **kwargs): + super(ConnectivityIssue, self).__init__(**kwargs) + self.origin = None + self.severity = None + self.type = None + self.context = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connectivity_issue_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connectivity_issue_py3.py new file mode 100644 index 000000000000..1dcf2a83f10f --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connectivity_issue_py3.py @@ -0,0 +1,55 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ConnectivityIssue(Model): + """Information about an issue encountered in the process of checking for + connectivity. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar origin: The origin of the issue. Possible values include: 'Local', + 'Inbound', 'Outbound' + :vartype origin: str or ~azure.mgmt.network.v2018_10_01.models.Origin + :ivar severity: The severity of the issue. Possible values include: + 'Error', 'Warning' + :vartype severity: str or ~azure.mgmt.network.v2018_10_01.models.Severity + :ivar type: The type of issue. Possible values include: 'Unknown', + 'AgentStopped', 'GuestFirewall', 'DnsResolution', 'SocketBind', + 'NetworkSecurityRule', 'UserDefinedRoute', 'PortThrottled', 'Platform' + :vartype type: str or ~azure.mgmt.network.v2018_10_01.models.IssueType + :ivar context: Provides additional context on the issue. + :vartype context: list[dict[str, str]] + """ + + _validation = { + 'origin': {'readonly': True}, + 'severity': {'readonly': True}, + 'type': {'readonly': True}, + 'context': {'readonly': True}, + } + + _attribute_map = { + 'origin': {'key': 'origin', 'type': 'str'}, + 'severity': {'key': 'severity', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'context': {'key': 'context', 'type': '[{str}]'}, + } + + def __init__(self, **kwargs) -> None: + super(ConnectivityIssue, self).__init__(**kwargs) + self.origin = None + self.severity = None + self.type = None + self.context = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connectivity_parameters.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connectivity_parameters.py new file mode 100644 index 000000000000..845e8dde2969 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connectivity_parameters.py @@ -0,0 +1,50 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ConnectivityParameters(Model): + """Parameters that determine how the connectivity check will be performed. + + All required parameters must be populated in order to send to Azure. + + :param source: Required. + :type source: ~azure.mgmt.network.v2018_10_01.models.ConnectivitySource + :param destination: Required. + :type destination: + ~azure.mgmt.network.v2018_10_01.models.ConnectivityDestination + :param protocol: Network protocol. Possible values include: 'Tcp', 'Http', + 'Https', 'Icmp' + :type protocol: str or ~azure.mgmt.network.v2018_10_01.models.Protocol + :param protocol_configuration: + :type protocol_configuration: + ~azure.mgmt.network.v2018_10_01.models.ProtocolConfiguration + """ + + _validation = { + 'source': {'required': True}, + 'destination': {'required': True}, + } + + _attribute_map = { + 'source': {'key': 'source', 'type': 'ConnectivitySource'}, + 'destination': {'key': 'destination', 'type': 'ConnectivityDestination'}, + 'protocol': {'key': 'protocol', 'type': 'str'}, + 'protocol_configuration': {'key': 'protocolConfiguration', 'type': 'ProtocolConfiguration'}, + } + + def __init__(self, **kwargs): + super(ConnectivityParameters, self).__init__(**kwargs) + self.source = kwargs.get('source', None) + self.destination = kwargs.get('destination', None) + self.protocol = kwargs.get('protocol', None) + self.protocol_configuration = kwargs.get('protocol_configuration', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connectivity_parameters_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connectivity_parameters_py3.py new file mode 100644 index 000000000000..a11384318e0b --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connectivity_parameters_py3.py @@ -0,0 +1,50 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ConnectivityParameters(Model): + """Parameters that determine how the connectivity check will be performed. + + All required parameters must be populated in order to send to Azure. + + :param source: Required. + :type source: ~azure.mgmt.network.v2018_10_01.models.ConnectivitySource + :param destination: Required. + :type destination: + ~azure.mgmt.network.v2018_10_01.models.ConnectivityDestination + :param protocol: Network protocol. Possible values include: 'Tcp', 'Http', + 'Https', 'Icmp' + :type protocol: str or ~azure.mgmt.network.v2018_10_01.models.Protocol + :param protocol_configuration: + :type protocol_configuration: + ~azure.mgmt.network.v2018_10_01.models.ProtocolConfiguration + """ + + _validation = { + 'source': {'required': True}, + 'destination': {'required': True}, + } + + _attribute_map = { + 'source': {'key': 'source', 'type': 'ConnectivitySource'}, + 'destination': {'key': 'destination', 'type': 'ConnectivityDestination'}, + 'protocol': {'key': 'protocol', 'type': 'str'}, + 'protocol_configuration': {'key': 'protocolConfiguration', 'type': 'ProtocolConfiguration'}, + } + + def __init__(self, *, source, destination, protocol=None, protocol_configuration=None, **kwargs) -> None: + super(ConnectivityParameters, self).__init__(**kwargs) + self.source = source + self.destination = destination + self.protocol = protocol + self.protocol_configuration = protocol_configuration diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connectivity_source.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connectivity_source.py new file mode 100644 index 000000000000..3fd82793f8d7 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connectivity_source.py @@ -0,0 +1,40 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ConnectivitySource(Model): + """Parameters that define the source of the connection. + + All required parameters must be populated in order to send to Azure. + + :param resource_id: Required. The ID of the resource from which a + connectivity check will be initiated. + :type resource_id: str + :param port: The source port from which a connectivity check will be + performed. + :type port: int + """ + + _validation = { + 'resource_id': {'required': True}, + } + + _attribute_map = { + 'resource_id': {'key': 'resourceId', 'type': 'str'}, + 'port': {'key': 'port', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(ConnectivitySource, self).__init__(**kwargs) + self.resource_id = kwargs.get('resource_id', None) + self.port = kwargs.get('port', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connectivity_source_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connectivity_source_py3.py new file mode 100644 index 000000000000..f7833d1bef76 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/connectivity_source_py3.py @@ -0,0 +1,40 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ConnectivitySource(Model): + """Parameters that define the source of the connection. + + All required parameters must be populated in order to send to Azure. + + :param resource_id: Required. The ID of the resource from which a + connectivity check will be initiated. + :type resource_id: str + :param port: The source port from which a connectivity check will be + performed. + :type port: int + """ + + _validation = { + 'resource_id': {'required': True}, + } + + _attribute_map = { + 'resource_id': {'key': 'resourceId', 'type': 'str'}, + 'port': {'key': 'port', 'type': 'int'}, + } + + def __init__(self, *, resource_id: str, port: int=None, **kwargs) -> None: + super(ConnectivitySource, self).__init__(**kwargs) + self.resource_id = resource_id + self.port = port diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/container.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/container.py new file mode 100644 index 000000000000..4fa66f106881 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/container.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource import SubResource + + +class Container(SubResource): + """Reference to container resource in remote resource provider. + + :param id: Resource ID. + :type id: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Container, self).__init__(**kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/container_network_interface.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/container_network_interface.py new file mode 100644 index 000000000000..d0d2d7a2aae3 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/container_network_interface.py @@ -0,0 +1,71 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource import SubResource + + +class ContainerNetworkInterface(SubResource): + """Container network interface child resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :param container_network_interface_configuration: Container network + interface configuration from which this container network interface is + created. + :type container_network_interface_configuration: + ~azure.mgmt.network.v2018_10_01.models.ContainerNetworkInterfaceConfiguration + :param container: Reference to the conatinaer to which this container + network interface is attached. + :type container: ~azure.mgmt.network.v2018_10_01.models.Container + :param ip_configurations: Reference to the ip configuration on this + container nic. + :type ip_configurations: + list[~azure.mgmt.network.v2018_10_01.models.ContainerNetworkInterfaceIpConfiguration] + :ivar provisioning_state: The provisioning state of the resource. + :vartype provisioning_state: str + :param name: The name of the resource. This name can be used to access the + resource. + :type name: str + :ivar type: Sub Resource type. + :vartype type: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'container_network_interface_configuration': {'key': 'properties.containerNetworkInterfaceConfiguration', 'type': 'ContainerNetworkInterfaceConfiguration'}, + 'container': {'key': 'properties.container', 'type': 'Container'}, + 'ip_configurations': {'key': 'properties.ipConfigurations', 'type': '[ContainerNetworkInterfaceIpConfiguration]'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ContainerNetworkInterface, self).__init__(**kwargs) + self.container_network_interface_configuration = kwargs.get('container_network_interface_configuration', None) + self.container = kwargs.get('container', None) + self.ip_configurations = kwargs.get('ip_configurations', None) + self.provisioning_state = None + self.name = kwargs.get('name', None) + self.type = None + self.etag = kwargs.get('etag', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/container_network_interface_configuration.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/container_network_interface_configuration.py new file mode 100644 index 000000000000..dd2d0a35f83b --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/container_network_interface_configuration.py @@ -0,0 +1,65 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource import SubResource + + +class ContainerNetworkInterfaceConfiguration(SubResource): + """Container network interface configruation child resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :param ip_configurations: A list of ip configurations of the container + network interface configuration. + :type ip_configurations: + list[~azure.mgmt.network.v2018_10_01.models.IPConfigurationProfile] + :param container_network_interfaces: A list of container network + interfaces created from this container network interface configuration. + :type container_network_interfaces: + list[~azure.mgmt.network.v2018_10_01.models.SubResource] + :ivar provisioning_state: The provisioning state of the resource. + :vartype provisioning_state: str + :param name: The name of the resource. This name can be used to access the + resource. + :type name: str + :ivar type: Sub Resource type. + :vartype type: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'ip_configurations': {'key': 'properties.ipConfigurations', 'type': '[IPConfigurationProfile]'}, + 'container_network_interfaces': {'key': 'properties.containerNetworkInterfaces', 'type': '[SubResource]'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ContainerNetworkInterfaceConfiguration, self).__init__(**kwargs) + self.ip_configurations = kwargs.get('ip_configurations', None) + self.container_network_interfaces = kwargs.get('container_network_interfaces', None) + self.provisioning_state = None + self.name = kwargs.get('name', None) + self.type = None + self.etag = kwargs.get('etag', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/container_network_interface_configuration_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/container_network_interface_configuration_py3.py new file mode 100644 index 000000000000..10a9df68168e --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/container_network_interface_configuration_py3.py @@ -0,0 +1,65 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource_py3 import SubResource + + +class ContainerNetworkInterfaceConfiguration(SubResource): + """Container network interface configruation child resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :param ip_configurations: A list of ip configurations of the container + network interface configuration. + :type ip_configurations: + list[~azure.mgmt.network.v2018_10_01.models.IPConfigurationProfile] + :param container_network_interfaces: A list of container network + interfaces created from this container network interface configuration. + :type container_network_interfaces: + list[~azure.mgmt.network.v2018_10_01.models.SubResource] + :ivar provisioning_state: The provisioning state of the resource. + :vartype provisioning_state: str + :param name: The name of the resource. This name can be used to access the + resource. + :type name: str + :ivar type: Sub Resource type. + :vartype type: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'ip_configurations': {'key': 'properties.ipConfigurations', 'type': '[IPConfigurationProfile]'}, + 'container_network_interfaces': {'key': 'properties.containerNetworkInterfaces', 'type': '[SubResource]'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, ip_configurations=None, container_network_interfaces=None, name: str=None, etag: str=None, **kwargs) -> None: + super(ContainerNetworkInterfaceConfiguration, self).__init__(id=id, **kwargs) + self.ip_configurations = ip_configurations + self.container_network_interfaces = container_network_interfaces + self.provisioning_state = None + self.name = name + self.type = None + self.etag = etag diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/container_network_interface_ip_configuration.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/container_network_interface_ip_configuration.py new file mode 100644 index 000000000000..457fc24a3f67 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/container_network_interface_ip_configuration.py @@ -0,0 +1,50 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ContainerNetworkInterfaceIpConfiguration(Model): + """The ip configuration for a container network interface. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar provisioning_state: The provisioning state of the resource. + :vartype provisioning_state: str + :param name: The name of the resource. This name can be used to access the + resource. + :type name: str + :ivar type: Sub Resource type. + :vartype type: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ContainerNetworkInterfaceIpConfiguration, self).__init__(**kwargs) + self.provisioning_state = None + self.name = kwargs.get('name', None) + self.type = None + self.etag = kwargs.get('etag', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/container_network_interface_ip_configuration_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/container_network_interface_ip_configuration_py3.py new file mode 100644 index 000000000000..adea92da1db9 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/container_network_interface_ip_configuration_py3.py @@ -0,0 +1,50 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ContainerNetworkInterfaceIpConfiguration(Model): + """The ip configuration for a container network interface. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar provisioning_state: The provisioning state of the resource. + :vartype provisioning_state: str + :param name: The name of the resource. This name can be used to access the + resource. + :type name: str + :ivar type: Sub Resource type. + :vartype type: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, *, name: str=None, etag: str=None, **kwargs) -> None: + super(ContainerNetworkInterfaceIpConfiguration, self).__init__(**kwargs) + self.provisioning_state = None + self.name = name + self.type = None + self.etag = etag diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/container_network_interface_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/container_network_interface_py3.py new file mode 100644 index 000000000000..22dcd94a7b5a --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/container_network_interface_py3.py @@ -0,0 +1,71 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource_py3 import SubResource + + +class ContainerNetworkInterface(SubResource): + """Container network interface child resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :param container_network_interface_configuration: Container network + interface configuration from which this container network interface is + created. + :type container_network_interface_configuration: + ~azure.mgmt.network.v2018_10_01.models.ContainerNetworkInterfaceConfiguration + :param container: Reference to the conatinaer to which this container + network interface is attached. + :type container: ~azure.mgmt.network.v2018_10_01.models.Container + :param ip_configurations: Reference to the ip configuration on this + container nic. + :type ip_configurations: + list[~azure.mgmt.network.v2018_10_01.models.ContainerNetworkInterfaceIpConfiguration] + :ivar provisioning_state: The provisioning state of the resource. + :vartype provisioning_state: str + :param name: The name of the resource. This name can be used to access the + resource. + :type name: str + :ivar type: Sub Resource type. + :vartype type: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'container_network_interface_configuration': {'key': 'properties.containerNetworkInterfaceConfiguration', 'type': 'ContainerNetworkInterfaceConfiguration'}, + 'container': {'key': 'properties.container', 'type': 'Container'}, + 'ip_configurations': {'key': 'properties.ipConfigurations', 'type': '[ContainerNetworkInterfaceIpConfiguration]'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, container_network_interface_configuration=None, container=None, ip_configurations=None, name: str=None, etag: str=None, **kwargs) -> None: + super(ContainerNetworkInterface, self).__init__(id=id, **kwargs) + self.container_network_interface_configuration = container_network_interface_configuration + self.container = container + self.ip_configurations = ip_configurations + self.provisioning_state = None + self.name = name + self.type = None + self.etag = etag diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/container_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/container_py3.py new file mode 100644 index 000000000000..cb5f7e247934 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/container_py3.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource_py3 import SubResource + + +class Container(SubResource): + """Reference to container resource in remote resource provider. + + :param id: Resource ID. + :type id: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, **kwargs) -> None: + super(Container, self).__init__(id=id, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/ddos_protection_plan.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/ddos_protection_plan.py new file mode 100644 index 000000000000..14df986640dd --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/ddos_protection_plan.py @@ -0,0 +1,81 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class DdosProtectionPlan(Model): + """A DDoS protection plan in a resource group. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :ivar resource_guid: The resource GUID property of the DDoS protection + plan resource. It uniquely identifies the resource, even if the user + changes its name or migrate the resource across subscriptions or resource + groups. + :vartype resource_guid: str + :ivar provisioning_state: The provisioning state of the DDoS protection + plan resource. Possible values are: 'Succeeded', 'Updating', 'Deleting', + and 'Failed'. + :vartype provisioning_state: str + :ivar virtual_networks: The list of virtual networks associated with the + DDoS protection plan resource. This list is read-only. + :vartype virtual_networks: + list[~azure.mgmt.network.v2018_10_01.models.SubResource] + :ivar etag: A unique read-only string that changes whenever the resource + is updated. + :vartype etag: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'resource_guid': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'virtual_networks': {'readonly': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'resource_guid': {'key': 'properties.resourceGuid', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'virtual_networks': {'key': 'properties.virtualNetworks', 'type': '[SubResource]'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(DdosProtectionPlan, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + self.location = kwargs.get('location', None) + self.tags = kwargs.get('tags', None) + self.resource_guid = None + self.provisioning_state = None + self.virtual_networks = None + self.etag = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/ddos_protection_plan_paged.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/ddos_protection_plan_paged.py new file mode 100644 index 000000000000..8a68b03d0714 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/ddos_protection_plan_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class DdosProtectionPlanPaged(Paged): + """ + A paging container for iterating over a list of :class:`DdosProtectionPlan ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[DdosProtectionPlan]'} + } + + def __init__(self, *args, **kwargs): + + super(DdosProtectionPlanPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/ddos_protection_plan_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/ddos_protection_plan_py3.py new file mode 100644 index 000000000000..0eafbedfadb3 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/ddos_protection_plan_py3.py @@ -0,0 +1,81 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class DdosProtectionPlan(Model): + """A DDoS protection plan in a resource group. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :ivar resource_guid: The resource GUID property of the DDoS protection + plan resource. It uniquely identifies the resource, even if the user + changes its name or migrate the resource across subscriptions or resource + groups. + :vartype resource_guid: str + :ivar provisioning_state: The provisioning state of the DDoS protection + plan resource. Possible values are: 'Succeeded', 'Updating', 'Deleting', + and 'Failed'. + :vartype provisioning_state: str + :ivar virtual_networks: The list of virtual networks associated with the + DDoS protection plan resource. This list is read-only. + :vartype virtual_networks: + list[~azure.mgmt.network.v2018_10_01.models.SubResource] + :ivar etag: A unique read-only string that changes whenever the resource + is updated. + :vartype etag: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'resource_guid': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'virtual_networks': {'readonly': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'resource_guid': {'key': 'properties.resourceGuid', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'virtual_networks': {'key': 'properties.virtualNetworks', 'type': '[SubResource]'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, *, location: str=None, tags=None, **kwargs) -> None: + super(DdosProtectionPlan, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + self.location = location + self.tags = tags + self.resource_guid = None + self.provisioning_state = None + self.virtual_networks = None + self.etag = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/delegation.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/delegation.py new file mode 100644 index 000000000000..b9db5da4add2 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/delegation.py @@ -0,0 +1,58 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource import SubResource + + +class Delegation(SubResource): + """Details the service to which the subnet is delegated. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :param service_name: The name of the service to whom the subnet should be + delegated (e.g. Microsoft.Sql/servers) + :type service_name: str + :param actions: Describes the actions permitted to the service upon + delegation + :type actions: list[str] + :ivar provisioning_state: The provisioning state of the resource. + :vartype provisioning_state: str + :param name: The name of the resource that is unique within a subnet. This + name can be used to access the resource. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'service_name': {'key': 'properties.serviceName', 'type': 'str'}, + 'actions': {'key': 'properties.actions', 'type': '[str]'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Delegation, self).__init__(**kwargs) + self.service_name = kwargs.get('service_name', None) + self.actions = kwargs.get('actions', None) + self.provisioning_state = None + self.name = kwargs.get('name', None) + self.etag = kwargs.get('etag', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/delegation_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/delegation_py3.py new file mode 100644 index 000000000000..d374f9d48282 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/delegation_py3.py @@ -0,0 +1,58 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource_py3 import SubResource + + +class Delegation(SubResource): + """Details the service to which the subnet is delegated. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :param service_name: The name of the service to whom the subnet should be + delegated (e.g. Microsoft.Sql/servers) + :type service_name: str + :param actions: Describes the actions permitted to the service upon + delegation + :type actions: list[str] + :ivar provisioning_state: The provisioning state of the resource. + :vartype provisioning_state: str + :param name: The name of the resource that is unique within a subnet. This + name can be used to access the resource. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'service_name': {'key': 'properties.serviceName', 'type': 'str'}, + 'actions': {'key': 'properties.actions', 'type': '[str]'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, service_name: str=None, actions=None, name: str=None, etag: str=None, **kwargs) -> None: + super(Delegation, self).__init__(id=id, **kwargs) + self.service_name = service_name + self.actions = actions + self.provisioning_state = None + self.name = name + self.etag = etag diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/device_properties.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/device_properties.py new file mode 100644 index 000000000000..8a1653ad020b --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/device_properties.py @@ -0,0 +1,36 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class DeviceProperties(Model): + """List of properties of the device. + + :param device_vendor: Name of the device Vendor. + :type device_vendor: str + :param device_model: Model of the device. + :type device_model: str + :param link_speed_in_mbps: Link speed. + :type link_speed_in_mbps: int + """ + + _attribute_map = { + 'device_vendor': {'key': 'deviceVendor', 'type': 'str'}, + 'device_model': {'key': 'deviceModel', 'type': 'str'}, + 'link_speed_in_mbps': {'key': 'linkSpeedInMbps', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(DeviceProperties, self).__init__(**kwargs) + self.device_vendor = kwargs.get('device_vendor', None) + self.device_model = kwargs.get('device_model', None) + self.link_speed_in_mbps = kwargs.get('link_speed_in_mbps', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/device_properties_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/device_properties_py3.py new file mode 100644 index 000000000000..03d9850cbf21 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/device_properties_py3.py @@ -0,0 +1,36 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class DeviceProperties(Model): + """List of properties of the device. + + :param device_vendor: Name of the device Vendor. + :type device_vendor: str + :param device_model: Model of the device. + :type device_model: str + :param link_speed_in_mbps: Link speed. + :type link_speed_in_mbps: int + """ + + _attribute_map = { + 'device_vendor': {'key': 'deviceVendor', 'type': 'str'}, + 'device_model': {'key': 'deviceModel', 'type': 'str'}, + 'link_speed_in_mbps': {'key': 'linkSpeedInMbps', 'type': 'int'}, + } + + def __init__(self, *, device_vendor: str=None, device_model: str=None, link_speed_in_mbps: int=None, **kwargs) -> None: + super(DeviceProperties, self).__init__(**kwargs) + self.device_vendor = device_vendor + self.device_model = device_model + self.link_speed_in_mbps = link_speed_in_mbps diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/dhcp_options.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/dhcp_options.py new file mode 100644 index 000000000000..93b68a7f037c --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/dhcp_options.py @@ -0,0 +1,30 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class DhcpOptions(Model): + """DhcpOptions contains an array of DNS servers available to VMs deployed in + the virtual network. Standard DHCP option for a subnet overrides VNET DHCP + options. + + :param dns_servers: The list of DNS servers IP addresses. + :type dns_servers: list[str] + """ + + _attribute_map = { + 'dns_servers': {'key': 'dnsServers', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(DhcpOptions, self).__init__(**kwargs) + self.dns_servers = kwargs.get('dns_servers', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/dhcp_options_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/dhcp_options_py3.py new file mode 100644 index 000000000000..7dc4651973a5 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/dhcp_options_py3.py @@ -0,0 +1,30 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class DhcpOptions(Model): + """DhcpOptions contains an array of DNS servers available to VMs deployed in + the virtual network. Standard DHCP option for a subnet overrides VNET DHCP + options. + + :param dns_servers: The list of DNS servers IP addresses. + :type dns_servers: list[str] + """ + + _attribute_map = { + 'dns_servers': {'key': 'dnsServers', 'type': '[str]'}, + } + + def __init__(self, *, dns_servers=None, **kwargs) -> None: + super(DhcpOptions, self).__init__(**kwargs) + self.dns_servers = dns_servers diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/dimension.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/dimension.py new file mode 100644 index 000000000000..e9c8cd977a54 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/dimension.py @@ -0,0 +1,36 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class Dimension(Model): + """Dimension of the metric. + + :param name: The name of the dimension. + :type name: str + :param display_name: The display name of the dimension. + :type display_name: str + :param internal_name: The internal name of the dimension. + :type internal_name: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'internal_name': {'key': 'internalName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Dimension, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.display_name = kwargs.get('display_name', None) + self.internal_name = kwargs.get('internal_name', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/dimension_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/dimension_py3.py new file mode 100644 index 000000000000..20743b6424c1 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/dimension_py3.py @@ -0,0 +1,36 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class Dimension(Model): + """Dimension of the metric. + + :param name: The name of the dimension. + :type name: str + :param display_name: The display name of the dimension. + :type display_name: str + :param internal_name: The internal name of the dimension. + :type internal_name: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'internal_name': {'key': 'internalName', 'type': 'str'}, + } + + def __init__(self, *, name: str=None, display_name: str=None, internal_name: str=None, **kwargs) -> None: + super(Dimension, self).__init__(**kwargs) + self.name = name + self.display_name = display_name + self.internal_name = internal_name diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/dns_name_availability_result.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/dns_name_availability_result.py new file mode 100644 index 000000000000..86ba19eb407b --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/dns_name_availability_result.py @@ -0,0 +1,28 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class DnsNameAvailabilityResult(Model): + """Response for the CheckDnsNameAvailability API service call. + + :param available: Domain availability (True/False). + :type available: bool + """ + + _attribute_map = { + 'available': {'key': 'available', 'type': 'bool'}, + } + + def __init__(self, **kwargs): + super(DnsNameAvailabilityResult, self).__init__(**kwargs) + self.available = kwargs.get('available', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/dns_name_availability_result_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/dns_name_availability_result_py3.py new file mode 100644 index 000000000000..de0117c27715 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/dns_name_availability_result_py3.py @@ -0,0 +1,28 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class DnsNameAvailabilityResult(Model): + """Response for the CheckDnsNameAvailability API service call. + + :param available: Domain availability (True/False). + :type available: bool + """ + + _attribute_map = { + 'available': {'key': 'available', 'type': 'bool'}, + } + + def __init__(self, *, available: bool=None, **kwargs) -> None: + super(DnsNameAvailabilityResult, self).__init__(**kwargs) + self.available = available diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/effective_network_security_group.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/effective_network_security_group.py new file mode 100644 index 000000000000..61e1338b7d1b --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/effective_network_security_group.py @@ -0,0 +1,45 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class EffectiveNetworkSecurityGroup(Model): + """Effective network security group. + + :param network_security_group: The ID of network security group that is + applied. + :type network_security_group: + ~azure.mgmt.network.v2018_10_01.models.SubResource + :param association: Associated resources. + :type association: + ~azure.mgmt.network.v2018_10_01.models.EffectiveNetworkSecurityGroupAssociation + :param effective_security_rules: A collection of effective security rules. + :type effective_security_rules: + list[~azure.mgmt.network.v2018_10_01.models.EffectiveNetworkSecurityRule] + :param tag_map: Mapping of tags to list of IP Addresses included within + the tag. + :type tag_map: dict[str, list[str]] + """ + + _attribute_map = { + 'network_security_group': {'key': 'networkSecurityGroup', 'type': 'SubResource'}, + 'association': {'key': 'association', 'type': 'EffectiveNetworkSecurityGroupAssociation'}, + 'effective_security_rules': {'key': 'effectiveSecurityRules', 'type': '[EffectiveNetworkSecurityRule]'}, + 'tag_map': {'key': 'tagMap', 'type': '{[str]}'}, + } + + def __init__(self, **kwargs): + super(EffectiveNetworkSecurityGroup, self).__init__(**kwargs) + self.network_security_group = kwargs.get('network_security_group', None) + self.association = kwargs.get('association', None) + self.effective_security_rules = kwargs.get('effective_security_rules', None) + self.tag_map = kwargs.get('tag_map', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/effective_network_security_group_association.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/effective_network_security_group_association.py new file mode 100644 index 000000000000..0a26444caca7 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/effective_network_security_group_association.py @@ -0,0 +1,33 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class EffectiveNetworkSecurityGroupAssociation(Model): + """The effective network security group association. + + :param subnet: The ID of the subnet if assigned. + :type subnet: ~azure.mgmt.network.v2018_10_01.models.SubResource + :param network_interface: The ID of the network interface if assigned. + :type network_interface: + ~azure.mgmt.network.v2018_10_01.models.SubResource + """ + + _attribute_map = { + 'subnet': {'key': 'subnet', 'type': 'SubResource'}, + 'network_interface': {'key': 'networkInterface', 'type': 'SubResource'}, + } + + def __init__(self, **kwargs): + super(EffectiveNetworkSecurityGroupAssociation, self).__init__(**kwargs) + self.subnet = kwargs.get('subnet', None) + self.network_interface = kwargs.get('network_interface', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/effective_network_security_group_association_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/effective_network_security_group_association_py3.py new file mode 100644 index 000000000000..765c712379ae --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/effective_network_security_group_association_py3.py @@ -0,0 +1,33 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class EffectiveNetworkSecurityGroupAssociation(Model): + """The effective network security group association. + + :param subnet: The ID of the subnet if assigned. + :type subnet: ~azure.mgmt.network.v2018_10_01.models.SubResource + :param network_interface: The ID of the network interface if assigned. + :type network_interface: + ~azure.mgmt.network.v2018_10_01.models.SubResource + """ + + _attribute_map = { + 'subnet': {'key': 'subnet', 'type': 'SubResource'}, + 'network_interface': {'key': 'networkInterface', 'type': 'SubResource'}, + } + + def __init__(self, *, subnet=None, network_interface=None, **kwargs) -> None: + super(EffectiveNetworkSecurityGroupAssociation, self).__init__(**kwargs) + self.subnet = subnet + self.network_interface = network_interface diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/effective_network_security_group_list_result.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/effective_network_security_group_list_result.py new file mode 100644 index 000000000000..aa11b2b76b04 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/effective_network_security_group_list_result.py @@ -0,0 +1,40 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class EffectiveNetworkSecurityGroupListResult(Model): + """Response for list effective network security groups API service call. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param value: A list of effective network security groups. + :type value: + list[~azure.mgmt.network.v2018_10_01.models.EffectiveNetworkSecurityGroup] + :ivar next_link: The URL to get the next set of results. + :vartype next_link: str + """ + + _validation = { + 'next_link': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[EffectiveNetworkSecurityGroup]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(EffectiveNetworkSecurityGroupListResult, self).__init__(**kwargs) + self.value = kwargs.get('value', None) + self.next_link = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/effective_network_security_group_list_result_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/effective_network_security_group_list_result_py3.py new file mode 100644 index 000000000000..b1997e3db189 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/effective_network_security_group_list_result_py3.py @@ -0,0 +1,40 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class EffectiveNetworkSecurityGroupListResult(Model): + """Response for list effective network security groups API service call. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param value: A list of effective network security groups. + :type value: + list[~azure.mgmt.network.v2018_10_01.models.EffectiveNetworkSecurityGroup] + :ivar next_link: The URL to get the next set of results. + :vartype next_link: str + """ + + _validation = { + 'next_link': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[EffectiveNetworkSecurityGroup]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__(self, *, value=None, **kwargs) -> None: + super(EffectiveNetworkSecurityGroupListResult, self).__init__(**kwargs) + self.value = value + self.next_link = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/effective_network_security_group_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/effective_network_security_group_py3.py new file mode 100644 index 000000000000..b0294dead1d0 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/effective_network_security_group_py3.py @@ -0,0 +1,45 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class EffectiveNetworkSecurityGroup(Model): + """Effective network security group. + + :param network_security_group: The ID of network security group that is + applied. + :type network_security_group: + ~azure.mgmt.network.v2018_10_01.models.SubResource + :param association: Associated resources. + :type association: + ~azure.mgmt.network.v2018_10_01.models.EffectiveNetworkSecurityGroupAssociation + :param effective_security_rules: A collection of effective security rules. + :type effective_security_rules: + list[~azure.mgmt.network.v2018_10_01.models.EffectiveNetworkSecurityRule] + :param tag_map: Mapping of tags to list of IP Addresses included within + the tag. + :type tag_map: dict[str, list[str]] + """ + + _attribute_map = { + 'network_security_group': {'key': 'networkSecurityGroup', 'type': 'SubResource'}, + 'association': {'key': 'association', 'type': 'EffectiveNetworkSecurityGroupAssociation'}, + 'effective_security_rules': {'key': 'effectiveSecurityRules', 'type': '[EffectiveNetworkSecurityRule]'}, + 'tag_map': {'key': 'tagMap', 'type': '{[str]}'}, + } + + def __init__(self, *, network_security_group=None, association=None, effective_security_rules=None, tag_map=None, **kwargs) -> None: + super(EffectiveNetworkSecurityGroup, self).__init__(**kwargs) + self.network_security_group = network_security_group + self.association = association + self.effective_security_rules = effective_security_rules + self.tag_map = tag_map diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/effective_network_security_rule.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/effective_network_security_rule.py new file mode 100644 index 000000000000..4ec62ad9f135 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/effective_network_security_rule.py @@ -0,0 +1,101 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class EffectiveNetworkSecurityRule(Model): + """Effective network security rules. + + :param name: The name of the security rule specified by the user (if + created by the user). + :type name: str + :param protocol: The network protocol this rule applies to. Possible + values are: 'Tcp', 'Udp', and 'All'. Possible values include: 'Tcp', + 'Udp', 'All' + :type protocol: str or + ~azure.mgmt.network.v2018_10_01.models.EffectiveSecurityRuleProtocol + :param source_port_range: The source port or range. + :type source_port_range: str + :param destination_port_range: The destination port or range. + :type destination_port_range: str + :param source_port_ranges: The source port ranges. Expected values include + a single integer between 0 and 65535, a range using '-' as seperator (e.g. + 100-400), or an asterix (*) + :type source_port_ranges: list[str] + :param destination_port_ranges: The destination port ranges. Expected + values include a single integer between 0 and 65535, a range using '-' as + seperator (e.g. 100-400), or an asterix (*) + :type destination_port_ranges: list[str] + :param source_address_prefix: The source address prefix. + :type source_address_prefix: str + :param destination_address_prefix: The destination address prefix. + :type destination_address_prefix: str + :param source_address_prefixes: The source address prefixes. Expected + values include CIDR IP ranges, Default Tags (VirtualNetwork, + AureLoadBalancer, Internet), System Tags, and the asterix (*). + :type source_address_prefixes: list[str] + :param destination_address_prefixes: The destination address prefixes. + Expected values include CIDR IP ranges, Default Tags (VirtualNetwork, + AureLoadBalancer, Internet), System Tags, and the asterix (*). + :type destination_address_prefixes: list[str] + :param expanded_source_address_prefix: The expanded source address prefix. + :type expanded_source_address_prefix: list[str] + :param expanded_destination_address_prefix: Expanded destination address + prefix. + :type expanded_destination_address_prefix: list[str] + :param access: Whether network traffic is allowed or denied. Possible + values are: 'Allow' and 'Deny'. Possible values include: 'Allow', 'Deny' + :type access: str or + ~azure.mgmt.network.v2018_10_01.models.SecurityRuleAccess + :param priority: The priority of the rule. + :type priority: int + :param direction: The direction of the rule. Possible values are: 'Inbound + and Outbound'. Possible values include: 'Inbound', 'Outbound' + :type direction: str or + ~azure.mgmt.network.v2018_10_01.models.SecurityRuleDirection + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'protocol': {'key': 'protocol', 'type': 'str'}, + 'source_port_range': {'key': 'sourcePortRange', 'type': 'str'}, + 'destination_port_range': {'key': 'destinationPortRange', 'type': 'str'}, + 'source_port_ranges': {'key': 'sourcePortRanges', 'type': '[str]'}, + 'destination_port_ranges': {'key': 'destinationPortRanges', 'type': '[str]'}, + 'source_address_prefix': {'key': 'sourceAddressPrefix', 'type': 'str'}, + 'destination_address_prefix': {'key': 'destinationAddressPrefix', 'type': 'str'}, + 'source_address_prefixes': {'key': 'sourceAddressPrefixes', 'type': '[str]'}, + 'destination_address_prefixes': {'key': 'destinationAddressPrefixes', 'type': '[str]'}, + 'expanded_source_address_prefix': {'key': 'expandedSourceAddressPrefix', 'type': '[str]'}, + 'expanded_destination_address_prefix': {'key': 'expandedDestinationAddressPrefix', 'type': '[str]'}, + 'access': {'key': 'access', 'type': 'str'}, + 'priority': {'key': 'priority', 'type': 'int'}, + 'direction': {'key': 'direction', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(EffectiveNetworkSecurityRule, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.protocol = kwargs.get('protocol', None) + self.source_port_range = kwargs.get('source_port_range', None) + self.destination_port_range = kwargs.get('destination_port_range', None) + self.source_port_ranges = kwargs.get('source_port_ranges', None) + self.destination_port_ranges = kwargs.get('destination_port_ranges', None) + self.source_address_prefix = kwargs.get('source_address_prefix', None) + self.destination_address_prefix = kwargs.get('destination_address_prefix', None) + self.source_address_prefixes = kwargs.get('source_address_prefixes', None) + self.destination_address_prefixes = kwargs.get('destination_address_prefixes', None) + self.expanded_source_address_prefix = kwargs.get('expanded_source_address_prefix', None) + self.expanded_destination_address_prefix = kwargs.get('expanded_destination_address_prefix', None) + self.access = kwargs.get('access', None) + self.priority = kwargs.get('priority', None) + self.direction = kwargs.get('direction', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/effective_network_security_rule_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/effective_network_security_rule_py3.py new file mode 100644 index 000000000000..eab4dc115a8e --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/effective_network_security_rule_py3.py @@ -0,0 +1,101 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class EffectiveNetworkSecurityRule(Model): + """Effective network security rules. + + :param name: The name of the security rule specified by the user (if + created by the user). + :type name: str + :param protocol: The network protocol this rule applies to. Possible + values are: 'Tcp', 'Udp', and 'All'. Possible values include: 'Tcp', + 'Udp', 'All' + :type protocol: str or + ~azure.mgmt.network.v2018_10_01.models.EffectiveSecurityRuleProtocol + :param source_port_range: The source port or range. + :type source_port_range: str + :param destination_port_range: The destination port or range. + :type destination_port_range: str + :param source_port_ranges: The source port ranges. Expected values include + a single integer between 0 and 65535, a range using '-' as seperator (e.g. + 100-400), or an asterix (*) + :type source_port_ranges: list[str] + :param destination_port_ranges: The destination port ranges. Expected + values include a single integer between 0 and 65535, a range using '-' as + seperator (e.g. 100-400), or an asterix (*) + :type destination_port_ranges: list[str] + :param source_address_prefix: The source address prefix. + :type source_address_prefix: str + :param destination_address_prefix: The destination address prefix. + :type destination_address_prefix: str + :param source_address_prefixes: The source address prefixes. Expected + values include CIDR IP ranges, Default Tags (VirtualNetwork, + AureLoadBalancer, Internet), System Tags, and the asterix (*). + :type source_address_prefixes: list[str] + :param destination_address_prefixes: The destination address prefixes. + Expected values include CIDR IP ranges, Default Tags (VirtualNetwork, + AureLoadBalancer, Internet), System Tags, and the asterix (*). + :type destination_address_prefixes: list[str] + :param expanded_source_address_prefix: The expanded source address prefix. + :type expanded_source_address_prefix: list[str] + :param expanded_destination_address_prefix: Expanded destination address + prefix. + :type expanded_destination_address_prefix: list[str] + :param access: Whether network traffic is allowed or denied. Possible + values are: 'Allow' and 'Deny'. Possible values include: 'Allow', 'Deny' + :type access: str or + ~azure.mgmt.network.v2018_10_01.models.SecurityRuleAccess + :param priority: The priority of the rule. + :type priority: int + :param direction: The direction of the rule. Possible values are: 'Inbound + and Outbound'. Possible values include: 'Inbound', 'Outbound' + :type direction: str or + ~azure.mgmt.network.v2018_10_01.models.SecurityRuleDirection + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'protocol': {'key': 'protocol', 'type': 'str'}, + 'source_port_range': {'key': 'sourcePortRange', 'type': 'str'}, + 'destination_port_range': {'key': 'destinationPortRange', 'type': 'str'}, + 'source_port_ranges': {'key': 'sourcePortRanges', 'type': '[str]'}, + 'destination_port_ranges': {'key': 'destinationPortRanges', 'type': '[str]'}, + 'source_address_prefix': {'key': 'sourceAddressPrefix', 'type': 'str'}, + 'destination_address_prefix': {'key': 'destinationAddressPrefix', 'type': 'str'}, + 'source_address_prefixes': {'key': 'sourceAddressPrefixes', 'type': '[str]'}, + 'destination_address_prefixes': {'key': 'destinationAddressPrefixes', 'type': '[str]'}, + 'expanded_source_address_prefix': {'key': 'expandedSourceAddressPrefix', 'type': '[str]'}, + 'expanded_destination_address_prefix': {'key': 'expandedDestinationAddressPrefix', 'type': '[str]'}, + 'access': {'key': 'access', 'type': 'str'}, + 'priority': {'key': 'priority', 'type': 'int'}, + 'direction': {'key': 'direction', 'type': 'str'}, + } + + def __init__(self, *, name: str=None, protocol=None, source_port_range: str=None, destination_port_range: str=None, source_port_ranges=None, destination_port_ranges=None, source_address_prefix: str=None, destination_address_prefix: str=None, source_address_prefixes=None, destination_address_prefixes=None, expanded_source_address_prefix=None, expanded_destination_address_prefix=None, access=None, priority: int=None, direction=None, **kwargs) -> None: + super(EffectiveNetworkSecurityRule, self).__init__(**kwargs) + self.name = name + self.protocol = protocol + self.source_port_range = source_port_range + self.destination_port_range = destination_port_range + self.source_port_ranges = source_port_ranges + self.destination_port_ranges = destination_port_ranges + self.source_address_prefix = source_address_prefix + self.destination_address_prefix = destination_address_prefix + self.source_address_prefixes = source_address_prefixes + self.destination_address_prefixes = destination_address_prefixes + self.expanded_source_address_prefix = expanded_source_address_prefix + self.expanded_destination_address_prefix = expanded_destination_address_prefix + self.access = access + self.priority = priority + self.direction = direction diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/effective_route.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/effective_route.py new file mode 100644 index 000000000000..906017238661 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/effective_route.py @@ -0,0 +1,60 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class EffectiveRoute(Model): + """Effective Route. + + :param name: The name of the user defined route. This is optional. + :type name: str + :param source: Who created the route. Possible values are: 'Unknown', + 'User', 'VirtualNetworkGateway', and 'Default'. Possible values include: + 'Unknown', 'User', 'VirtualNetworkGateway', 'Default' + :type source: str or + ~azure.mgmt.network.v2018_10_01.models.EffectiveRouteSource + :param state: The value of effective route. Possible values are: 'Active' + and 'Invalid'. Possible values include: 'Active', 'Invalid' + :type state: str or + ~azure.mgmt.network.v2018_10_01.models.EffectiveRouteState + :param address_prefix: The address prefixes of the effective routes in + CIDR notation. + :type address_prefix: list[str] + :param next_hop_ip_address: The IP address of the next hop of the + effective route. + :type next_hop_ip_address: list[str] + :param next_hop_type: The type of Azure hop the packet should be sent to. + Possible values are: 'VirtualNetworkGateway', 'VnetLocal', 'Internet', + 'VirtualAppliance', and 'None'. Possible values include: + 'VirtualNetworkGateway', 'VnetLocal', 'Internet', 'VirtualAppliance', + 'None' + :type next_hop_type: str or + ~azure.mgmt.network.v2018_10_01.models.RouteNextHopType + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'source': {'key': 'source', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'}, + 'address_prefix': {'key': 'addressPrefix', 'type': '[str]'}, + 'next_hop_ip_address': {'key': 'nextHopIpAddress', 'type': '[str]'}, + 'next_hop_type': {'key': 'nextHopType', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(EffectiveRoute, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.source = kwargs.get('source', None) + self.state = kwargs.get('state', None) + self.address_prefix = kwargs.get('address_prefix', None) + self.next_hop_ip_address = kwargs.get('next_hop_ip_address', None) + self.next_hop_type = kwargs.get('next_hop_type', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/effective_route_list_result.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/effective_route_list_result.py new file mode 100644 index 000000000000..2c0696418732 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/effective_route_list_result.py @@ -0,0 +1,39 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class EffectiveRouteListResult(Model): + """Response for list effective route API service call. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param value: A list of effective routes. + :type value: list[~azure.mgmt.network.v2018_10_01.models.EffectiveRoute] + :ivar next_link: The URL to get the next set of results. + :vartype next_link: str + """ + + _validation = { + 'next_link': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[EffectiveRoute]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(EffectiveRouteListResult, self).__init__(**kwargs) + self.value = kwargs.get('value', None) + self.next_link = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/effective_route_list_result_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/effective_route_list_result_py3.py new file mode 100644 index 000000000000..edc2b909a5ef --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/effective_route_list_result_py3.py @@ -0,0 +1,39 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class EffectiveRouteListResult(Model): + """Response for list effective route API service call. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param value: A list of effective routes. + :type value: list[~azure.mgmt.network.v2018_10_01.models.EffectiveRoute] + :ivar next_link: The URL to get the next set of results. + :vartype next_link: str + """ + + _validation = { + 'next_link': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[EffectiveRoute]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__(self, *, value=None, **kwargs) -> None: + super(EffectiveRouteListResult, self).__init__(**kwargs) + self.value = value + self.next_link = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/effective_route_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/effective_route_py3.py new file mode 100644 index 000000000000..adae735fd89e --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/effective_route_py3.py @@ -0,0 +1,60 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class EffectiveRoute(Model): + """Effective Route. + + :param name: The name of the user defined route. This is optional. + :type name: str + :param source: Who created the route. Possible values are: 'Unknown', + 'User', 'VirtualNetworkGateway', and 'Default'. Possible values include: + 'Unknown', 'User', 'VirtualNetworkGateway', 'Default' + :type source: str or + ~azure.mgmt.network.v2018_10_01.models.EffectiveRouteSource + :param state: The value of effective route. Possible values are: 'Active' + and 'Invalid'. Possible values include: 'Active', 'Invalid' + :type state: str or + ~azure.mgmt.network.v2018_10_01.models.EffectiveRouteState + :param address_prefix: The address prefixes of the effective routes in + CIDR notation. + :type address_prefix: list[str] + :param next_hop_ip_address: The IP address of the next hop of the + effective route. + :type next_hop_ip_address: list[str] + :param next_hop_type: The type of Azure hop the packet should be sent to. + Possible values are: 'VirtualNetworkGateway', 'VnetLocal', 'Internet', + 'VirtualAppliance', and 'None'. Possible values include: + 'VirtualNetworkGateway', 'VnetLocal', 'Internet', 'VirtualAppliance', + 'None' + :type next_hop_type: str or + ~azure.mgmt.network.v2018_10_01.models.RouteNextHopType + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'source': {'key': 'source', 'type': 'str'}, + 'state': {'key': 'state', 'type': 'str'}, + 'address_prefix': {'key': 'addressPrefix', 'type': '[str]'}, + 'next_hop_ip_address': {'key': 'nextHopIpAddress', 'type': '[str]'}, + 'next_hop_type': {'key': 'nextHopType', 'type': 'str'}, + } + + def __init__(self, *, name: str=None, source=None, state=None, address_prefix=None, next_hop_ip_address=None, next_hop_type=None, **kwargs) -> None: + super(EffectiveRoute, self).__init__(**kwargs) + self.name = name + self.source = source + self.state = state + self.address_prefix = address_prefix + self.next_hop_ip_address = next_hop_ip_address + self.next_hop_type = next_hop_type diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/endpoint_service.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/endpoint_service.py new file mode 100644 index 000000000000..988ccdb20608 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/endpoint_service.py @@ -0,0 +1,29 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class EndpointService(Model): + """Identifies the service being brought into the virtual network. + + :param id: A unique identifier of the service being referenced by the + interface endpoint. + :type id: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(EndpointService, self).__init__(**kwargs) + self.id = kwargs.get('id', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/endpoint_service_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/endpoint_service_py3.py new file mode 100644 index 000000000000..84a14658f0eb --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/endpoint_service_py3.py @@ -0,0 +1,29 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class EndpointService(Model): + """Identifies the service being brought into the virtual network. + + :param id: A unique identifier of the service being referenced by the + interface endpoint. + :type id: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, **kwargs) -> None: + super(EndpointService, self).__init__(**kwargs) + self.id = id diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/endpoint_service_result.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/endpoint_service_result.py new file mode 100644 index 000000000000..9ca0e203a834 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/endpoint_service_result.py @@ -0,0 +1,43 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource import SubResource + + +class EndpointServiceResult(SubResource): + """Endpoint service. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Name of the endpoint service. + :vartype name: str + :ivar type: Type of the endpoint service. + :vartype type: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(EndpointServiceResult, self).__init__(**kwargs) + self.name = None + self.type = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/endpoint_service_result_paged.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/endpoint_service_result_paged.py new file mode 100644 index 000000000000..5faa5b219f0e --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/endpoint_service_result_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class EndpointServiceResultPaged(Paged): + """ + A paging container for iterating over a list of :class:`EndpointServiceResult ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[EndpointServiceResult]'} + } + + def __init__(self, *args, **kwargs): + + super(EndpointServiceResultPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/endpoint_service_result_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/endpoint_service_result_py3.py new file mode 100644 index 000000000000..489a2a2681ca --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/endpoint_service_result_py3.py @@ -0,0 +1,43 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource_py3 import SubResource + + +class EndpointServiceResult(SubResource): + """Endpoint service. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Name of the endpoint service. + :vartype name: str + :ivar type: Type of the endpoint service. + :vartype type: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, **kwargs) -> None: + super(EndpointServiceResult, self).__init__(id=id, **kwargs) + self.name = None + self.type = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/error.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/error.py new file mode 100644 index 000000000000..043833e945b8 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/error.py @@ -0,0 +1,57 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model +from msrest.exceptions import HttpOperationError + + +class Error(Model): + """Error. + + :param code: + :type code: str + :param message: + :type message: str + :param target: + :type target: str + :param details: + :type details: list[~azure.mgmt.network.v2018_10_01.models.ErrorDetails] + :param inner_error: + :type inner_error: str + """ + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, + 'details': {'key': 'details', 'type': '[ErrorDetails]'}, + 'inner_error': {'key': 'innerError', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Error, self).__init__(**kwargs) + self.code = kwargs.get('code', None) + self.message = kwargs.get('message', None) + self.target = kwargs.get('target', None) + self.details = kwargs.get('details', None) + self.inner_error = kwargs.get('inner_error', None) + + +class ErrorException(HttpOperationError): + """Server responsed with exception of type: 'Error'. + + :param deserialize: A deserializer + :param response: Server response to be deserialized. + """ + + def __init__(self, deserialize, response, *args): + + super(ErrorException, self).__init__(deserialize, response, 'Error', *args) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/error_details.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/error_details.py new file mode 100644 index 000000000000..a8c4da6ba955 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/error_details.py @@ -0,0 +1,36 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ErrorDetails(Model): + """ErrorDetails. + + :param code: + :type code: str + :param target: + :type target: str + :param message: + :type message: str + """ + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ErrorDetails, self).__init__(**kwargs) + self.code = kwargs.get('code', None) + self.target = kwargs.get('target', None) + self.message = kwargs.get('message', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/error_details_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/error_details_py3.py new file mode 100644 index 000000000000..d791f0895345 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/error_details_py3.py @@ -0,0 +1,36 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ErrorDetails(Model): + """ErrorDetails. + + :param code: + :type code: str + :param target: + :type target: str + :param message: + :type message: str + """ + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, *, code: str=None, target: str=None, message: str=None, **kwargs) -> None: + super(ErrorDetails, self).__init__(**kwargs) + self.code = code + self.target = target + self.message = message diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/error_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/error_py3.py new file mode 100644 index 000000000000..7e85a7be1796 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/error_py3.py @@ -0,0 +1,57 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model +from msrest.exceptions import HttpOperationError + + +class Error(Model): + """Error. + + :param code: + :type code: str + :param message: + :type message: str + :param target: + :type target: str + :param details: + :type details: list[~azure.mgmt.network.v2018_10_01.models.ErrorDetails] + :param inner_error: + :type inner_error: str + """ + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, + 'details': {'key': 'details', 'type': '[ErrorDetails]'}, + 'inner_error': {'key': 'innerError', 'type': 'str'}, + } + + def __init__(self, *, code: str=None, message: str=None, target: str=None, details=None, inner_error: str=None, **kwargs) -> None: + super(Error, self).__init__(**kwargs) + self.code = code + self.message = message + self.target = target + self.details = details + self.inner_error = inner_error + + +class ErrorException(HttpOperationError): + """Server responsed with exception of type: 'Error'. + + :param deserialize: A deserializer + :param response: Server response to be deserialized. + """ + + def __init__(self, deserialize, response, *args): + + super(ErrorException, self).__init__(deserialize, response, 'Error', *args) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/error_response.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/error_response.py new file mode 100644 index 000000000000..3c3e02be497c --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/error_response.py @@ -0,0 +1,41 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model +from msrest.exceptions import HttpOperationError + + +class ErrorResponse(Model): + """The error object. + + :param error: Error. + :type error: ~azure.mgmt.network.v2018_10_01.models.ErrorDetails + """ + + _attribute_map = { + 'error': {'key': 'error', 'type': 'ErrorDetails'}, + } + + def __init__(self, **kwargs): + super(ErrorResponse, self).__init__(**kwargs) + self.error = kwargs.get('error', None) + + +class ErrorResponseException(HttpOperationError): + """Server responsed with exception of type: 'ErrorResponse'. + + :param deserialize: A deserializer + :param response: Server response to be deserialized. + """ + + def __init__(self, deserialize, response, *args): + + super(ErrorResponseException, self).__init__(deserialize, response, 'ErrorResponse', *args) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/error_response_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/error_response_py3.py new file mode 100644 index 000000000000..7a190d462f47 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/error_response_py3.py @@ -0,0 +1,41 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model +from msrest.exceptions import HttpOperationError + + +class ErrorResponse(Model): + """The error object. + + :param error: Error. + :type error: ~azure.mgmt.network.v2018_10_01.models.ErrorDetails + """ + + _attribute_map = { + 'error': {'key': 'error', 'type': 'ErrorDetails'}, + } + + def __init__(self, *, error=None, **kwargs) -> None: + super(ErrorResponse, self).__init__(**kwargs) + self.error = error + + +class ErrorResponseException(HttpOperationError): + """Server responsed with exception of type: 'ErrorResponse'. + + :param deserialize: A deserializer + :param response: Server response to be deserialized. + """ + + def __init__(self, deserialize, response, *args): + + super(ErrorResponseException, self).__init__(deserialize, response, 'ErrorResponse', *args) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/evaluated_network_security_group.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/evaluated_network_security_group.py new file mode 100644 index 000000000000..3355e73fb515 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/evaluated_network_security_group.py @@ -0,0 +1,50 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class EvaluatedNetworkSecurityGroup(Model): + """Results of network security group evaluation. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param network_security_group_id: Network security group ID. + :type network_security_group_id: str + :param applied_to: Resource ID of nic or subnet to which network security + group is applied. + :type applied_to: str + :param matched_rule: + :type matched_rule: ~azure.mgmt.network.v2018_10_01.models.MatchedRule + :ivar rules_evaluation_result: List of network security rules evaluation + results. + :vartype rules_evaluation_result: + list[~azure.mgmt.network.v2018_10_01.models.NetworkSecurityRulesEvaluationResult] + """ + + _validation = { + 'rules_evaluation_result': {'readonly': True}, + } + + _attribute_map = { + 'network_security_group_id': {'key': 'networkSecurityGroupId', 'type': 'str'}, + 'applied_to': {'key': 'appliedTo', 'type': 'str'}, + 'matched_rule': {'key': 'matchedRule', 'type': 'MatchedRule'}, + 'rules_evaluation_result': {'key': 'rulesEvaluationResult', 'type': '[NetworkSecurityRulesEvaluationResult]'}, + } + + def __init__(self, **kwargs): + super(EvaluatedNetworkSecurityGroup, self).__init__(**kwargs) + self.network_security_group_id = kwargs.get('network_security_group_id', None) + self.applied_to = kwargs.get('applied_to', None) + self.matched_rule = kwargs.get('matched_rule', None) + self.rules_evaluation_result = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/evaluated_network_security_group_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/evaluated_network_security_group_py3.py new file mode 100644 index 000000000000..f827a33e334b --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/evaluated_network_security_group_py3.py @@ -0,0 +1,50 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class EvaluatedNetworkSecurityGroup(Model): + """Results of network security group evaluation. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param network_security_group_id: Network security group ID. + :type network_security_group_id: str + :param applied_to: Resource ID of nic or subnet to which network security + group is applied. + :type applied_to: str + :param matched_rule: + :type matched_rule: ~azure.mgmt.network.v2018_10_01.models.MatchedRule + :ivar rules_evaluation_result: List of network security rules evaluation + results. + :vartype rules_evaluation_result: + list[~azure.mgmt.network.v2018_10_01.models.NetworkSecurityRulesEvaluationResult] + """ + + _validation = { + 'rules_evaluation_result': {'readonly': True}, + } + + _attribute_map = { + 'network_security_group_id': {'key': 'networkSecurityGroupId', 'type': 'str'}, + 'applied_to': {'key': 'appliedTo', 'type': 'str'}, + 'matched_rule': {'key': 'matchedRule', 'type': 'MatchedRule'}, + 'rules_evaluation_result': {'key': 'rulesEvaluationResult', 'type': '[NetworkSecurityRulesEvaluationResult]'}, + } + + def __init__(self, *, network_security_group_id: str=None, applied_to: str=None, matched_rule=None, **kwargs) -> None: + super(EvaluatedNetworkSecurityGroup, self).__init__(**kwargs) + self.network_security_group_id = network_security_group_id + self.applied_to = applied_to + self.matched_rule = matched_rule + self.rules_evaluation_result = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit.py new file mode 100644 index 000000000000..56df2bd048a3 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit.py @@ -0,0 +1,128 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource import Resource + + +class ExpressRouteCircuit(Resource): + """ExpressRouteCircuit resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param sku: The SKU. + :type sku: ~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuitSku + :param allow_classic_operations: Allow classic operations + :type allow_classic_operations: bool + :param circuit_provisioning_state: The CircuitProvisioningState state of + the resource. + :type circuit_provisioning_state: str + :param service_provider_provisioning_state: The + ServiceProviderProvisioningState state of the resource. Possible values + are 'NotProvisioned', 'Provisioning', 'Provisioned', and 'Deprovisioning'. + Possible values include: 'NotProvisioned', 'Provisioning', 'Provisioned', + 'Deprovisioning' + :type service_provider_provisioning_state: str or + ~azure.mgmt.network.v2018_10_01.models.ServiceProviderProvisioningState + :param authorizations: The list of authorizations. + :type authorizations: + list[~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuitAuthorization] + :param peerings: The list of peerings. + :type peerings: + list[~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuitPeering] + :param service_key: The ServiceKey. + :type service_key: str + :param service_provider_notes: The ServiceProviderNotes. + :type service_provider_notes: str + :param service_provider_properties: The ServiceProviderProperties. + :type service_provider_properties: + ~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuitServiceProviderProperties + :param express_route_port: The reference to the ExpressRoutePort resource + when the circuit is provisioned on an ExpressRoutePort resource. + :type express_route_port: + ~azure.mgmt.network.v2018_10_01.models.SubResource + :param bandwidth_in_gbps: The bandwidth of the circuit when the circuit is + provisioned on an ExpressRoutePort resource. + :type bandwidth_in_gbps: float + :ivar stag: The identifier of the circuit traffic. Outer tag for QinQ + encapsulation. + :vartype stag: int + :param provisioning_state: Gets the provisioning state of the public IP + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param gateway_manager_etag: The GatewayManager Etag. + :type gateway_manager_etag: str + :param allow_global_reach: Flag to enable Global Reach on the circuit. + :type allow_global_reach: bool + :ivar etag: Gets a unique read-only string that changes whenever the + resource is updated. + :vartype etag: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'stag': {'readonly': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'sku': {'key': 'sku', 'type': 'ExpressRouteCircuitSku'}, + 'allow_classic_operations': {'key': 'properties.allowClassicOperations', 'type': 'bool'}, + 'circuit_provisioning_state': {'key': 'properties.circuitProvisioningState', 'type': 'str'}, + 'service_provider_provisioning_state': {'key': 'properties.serviceProviderProvisioningState', 'type': 'str'}, + 'authorizations': {'key': 'properties.authorizations', 'type': '[ExpressRouteCircuitAuthorization]'}, + 'peerings': {'key': 'properties.peerings', 'type': '[ExpressRouteCircuitPeering]'}, + 'service_key': {'key': 'properties.serviceKey', 'type': 'str'}, + 'service_provider_notes': {'key': 'properties.serviceProviderNotes', 'type': 'str'}, + 'service_provider_properties': {'key': 'properties.serviceProviderProperties', 'type': 'ExpressRouteCircuitServiceProviderProperties'}, + 'express_route_port': {'key': 'properties.expressRoutePort', 'type': 'SubResource'}, + 'bandwidth_in_gbps': {'key': 'properties.bandwidthInGbps', 'type': 'float'}, + 'stag': {'key': 'properties.stag', 'type': 'int'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'gateway_manager_etag': {'key': 'properties.gatewayManagerEtag', 'type': 'str'}, + 'allow_global_reach': {'key': 'properties.allowGlobalReach', 'type': 'bool'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ExpressRouteCircuit, self).__init__(**kwargs) + self.sku = kwargs.get('sku', None) + self.allow_classic_operations = kwargs.get('allow_classic_operations', None) + self.circuit_provisioning_state = kwargs.get('circuit_provisioning_state', None) + self.service_provider_provisioning_state = kwargs.get('service_provider_provisioning_state', None) + self.authorizations = kwargs.get('authorizations', None) + self.peerings = kwargs.get('peerings', None) + self.service_key = kwargs.get('service_key', None) + self.service_provider_notes = kwargs.get('service_provider_notes', None) + self.service_provider_properties = kwargs.get('service_provider_properties', None) + self.express_route_port = kwargs.get('express_route_port', None) + self.bandwidth_in_gbps = kwargs.get('bandwidth_in_gbps', None) + self.stag = None + self.provisioning_state = kwargs.get('provisioning_state', None) + self.gateway_manager_etag = kwargs.get('gateway_manager_etag', None) + self.allow_global_reach = kwargs.get('allow_global_reach', None) + self.etag = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_arp_table.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_arp_table.py new file mode 100644 index 000000000000..ed7864d35e09 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_arp_table.py @@ -0,0 +1,40 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ExpressRouteCircuitArpTable(Model): + """The ARP table associated with the ExpressRouteCircuit. + + :param age: Entry age in minutes + :type age: int + :param interface: Interface address + :type interface: str + :param ip_address: The IP address. + :type ip_address: str + :param mac_address: The MAC address. + :type mac_address: str + """ + + _attribute_map = { + 'age': {'key': 'age', 'type': 'int'}, + 'interface': {'key': 'interface', 'type': 'str'}, + 'ip_address': {'key': 'ipAddress', 'type': 'str'}, + 'mac_address': {'key': 'macAddress', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ExpressRouteCircuitArpTable, self).__init__(**kwargs) + self.age = kwargs.get('age', None) + self.interface = kwargs.get('interface', None) + self.ip_address = kwargs.get('ip_address', None) + self.mac_address = kwargs.get('mac_address', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_arp_table_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_arp_table_py3.py new file mode 100644 index 000000000000..e8c637a092d4 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_arp_table_py3.py @@ -0,0 +1,40 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ExpressRouteCircuitArpTable(Model): + """The ARP table associated with the ExpressRouteCircuit. + + :param age: Entry age in minutes + :type age: int + :param interface: Interface address + :type interface: str + :param ip_address: The IP address. + :type ip_address: str + :param mac_address: The MAC address. + :type mac_address: str + """ + + _attribute_map = { + 'age': {'key': 'age', 'type': 'int'}, + 'interface': {'key': 'interface', 'type': 'str'}, + 'ip_address': {'key': 'ipAddress', 'type': 'str'}, + 'mac_address': {'key': 'macAddress', 'type': 'str'}, + } + + def __init__(self, *, age: int=None, interface: str=None, ip_address: str=None, mac_address: str=None, **kwargs) -> None: + super(ExpressRouteCircuitArpTable, self).__init__(**kwargs) + self.age = age + self.interface = interface + self.ip_address = ip_address + self.mac_address = mac_address diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_authorization.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_authorization.py new file mode 100644 index 000000000000..8a8f92233027 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_authorization.py @@ -0,0 +1,60 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource import SubResource + + +class ExpressRouteCircuitAuthorization(SubResource): + """Authorization in an ExpressRouteCircuit resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :param authorization_key: The authorization key. + :type authorization_key: str + :param authorization_use_status: AuthorizationUseStatus. Possible values + are: 'Available' and 'InUse'. Possible values include: 'Available', + 'InUse' + :type authorization_use_status: str or + ~azure.mgmt.network.v2018_10_01.models.AuthorizationUseStatus + :param provisioning_state: Gets the provisioning state of the public IP + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param name: Gets name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :ivar etag: A unique read-only string that changes whenever the resource + is updated. + :vartype etag: str + """ + + _validation = { + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'authorization_key': {'key': 'properties.authorizationKey', 'type': 'str'}, + 'authorization_use_status': {'key': 'properties.authorizationUseStatus', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ExpressRouteCircuitAuthorization, self).__init__(**kwargs) + self.authorization_key = kwargs.get('authorization_key', None) + self.authorization_use_status = kwargs.get('authorization_use_status', None) + self.provisioning_state = kwargs.get('provisioning_state', None) + self.name = kwargs.get('name', None) + self.etag = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_authorization_paged.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_authorization_paged.py new file mode 100644 index 000000000000..c4ad3b0f4eed --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_authorization_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class ExpressRouteCircuitAuthorizationPaged(Paged): + """ + A paging container for iterating over a list of :class:`ExpressRouteCircuitAuthorization ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[ExpressRouteCircuitAuthorization]'} + } + + def __init__(self, *args, **kwargs): + + super(ExpressRouteCircuitAuthorizationPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_authorization_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_authorization_py3.py new file mode 100644 index 000000000000..e8541bc02e30 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_authorization_py3.py @@ -0,0 +1,60 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource_py3 import SubResource + + +class ExpressRouteCircuitAuthorization(SubResource): + """Authorization in an ExpressRouteCircuit resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :param authorization_key: The authorization key. + :type authorization_key: str + :param authorization_use_status: AuthorizationUseStatus. Possible values + are: 'Available' and 'InUse'. Possible values include: 'Available', + 'InUse' + :type authorization_use_status: str or + ~azure.mgmt.network.v2018_10_01.models.AuthorizationUseStatus + :param provisioning_state: Gets the provisioning state of the public IP + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param name: Gets name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :ivar etag: A unique read-only string that changes whenever the resource + is updated. + :vartype etag: str + """ + + _validation = { + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'authorization_key': {'key': 'properties.authorizationKey', 'type': 'str'}, + 'authorization_use_status': {'key': 'properties.authorizationUseStatus', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, authorization_key: str=None, authorization_use_status=None, provisioning_state: str=None, name: str=None, **kwargs) -> None: + super(ExpressRouteCircuitAuthorization, self).__init__(id=id, **kwargs) + self.authorization_key = authorization_key + self.authorization_use_status = authorization_use_status + self.provisioning_state = provisioning_state + self.name = name + self.etag = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_connection.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_connection.py new file mode 100644 index 000000000000..39e426da68f3 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_connection.py @@ -0,0 +1,80 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource import SubResource + + +class ExpressRouteCircuitConnection(SubResource): + """Express Route Circuit Connection in an ExpressRouteCircuitPeering resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :param express_route_circuit_peering: Reference to Express Route Circuit + Private Peering Resource of the circuit initiating connection. + :type express_route_circuit_peering: + ~azure.mgmt.network.v2018_10_01.models.SubResource + :param peer_express_route_circuit_peering: Reference to Express Route + Circuit Private Peering Resource of the peered circuit. + :type peer_express_route_circuit_peering: + ~azure.mgmt.network.v2018_10_01.models.SubResource + :param address_prefix: /29 IP address space to carve out Customer + addresses for tunnels. + :type address_prefix: str + :param authorization_key: The authorization key. + :type authorization_key: str + :ivar circuit_connection_status: Express Route Circuit Connection State. + Possible values are: 'Connected' and 'Disconnected'. Possible values + include: 'Connected', 'Connecting', 'Disconnected' + :vartype circuit_connection_status: str or + ~azure.mgmt.network.v2018_10_01.models.CircuitConnectionStatus + :ivar provisioning_state: Provisioning state of the circuit connection + resource. Possible values are: 'Succeded', 'Updating', 'Deleting', and + 'Failed'. + :vartype provisioning_state: str + :param name: Gets name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :ivar etag: A unique read-only string that changes whenever the resource + is updated. + :vartype etag: str + """ + + _validation = { + 'circuit_connection_status': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'express_route_circuit_peering': {'key': 'properties.expressRouteCircuitPeering', 'type': 'SubResource'}, + 'peer_express_route_circuit_peering': {'key': 'properties.peerExpressRouteCircuitPeering', 'type': 'SubResource'}, + 'address_prefix': {'key': 'properties.addressPrefix', 'type': 'str'}, + 'authorization_key': {'key': 'properties.authorizationKey', 'type': 'str'}, + 'circuit_connection_status': {'key': 'properties.circuitConnectionStatus', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ExpressRouteCircuitConnection, self).__init__(**kwargs) + self.express_route_circuit_peering = kwargs.get('express_route_circuit_peering', None) + self.peer_express_route_circuit_peering = kwargs.get('peer_express_route_circuit_peering', None) + self.address_prefix = kwargs.get('address_prefix', None) + self.authorization_key = kwargs.get('authorization_key', None) + self.circuit_connection_status = None + self.provisioning_state = None + self.name = kwargs.get('name', None) + self.etag = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_connection_paged.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_connection_paged.py new file mode 100644 index 000000000000..48e80468fb0c --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_connection_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class ExpressRouteCircuitConnectionPaged(Paged): + """ + A paging container for iterating over a list of :class:`ExpressRouteCircuitConnection ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[ExpressRouteCircuitConnection]'} + } + + def __init__(self, *args, **kwargs): + + super(ExpressRouteCircuitConnectionPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_connection_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_connection_py3.py new file mode 100644 index 000000000000..d2a85f172bea --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_connection_py3.py @@ -0,0 +1,80 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource_py3 import SubResource + + +class ExpressRouteCircuitConnection(SubResource): + """Express Route Circuit Connection in an ExpressRouteCircuitPeering resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :param express_route_circuit_peering: Reference to Express Route Circuit + Private Peering Resource of the circuit initiating connection. + :type express_route_circuit_peering: + ~azure.mgmt.network.v2018_10_01.models.SubResource + :param peer_express_route_circuit_peering: Reference to Express Route + Circuit Private Peering Resource of the peered circuit. + :type peer_express_route_circuit_peering: + ~azure.mgmt.network.v2018_10_01.models.SubResource + :param address_prefix: /29 IP address space to carve out Customer + addresses for tunnels. + :type address_prefix: str + :param authorization_key: The authorization key. + :type authorization_key: str + :ivar circuit_connection_status: Express Route Circuit Connection State. + Possible values are: 'Connected' and 'Disconnected'. Possible values + include: 'Connected', 'Connecting', 'Disconnected' + :vartype circuit_connection_status: str or + ~azure.mgmt.network.v2018_10_01.models.CircuitConnectionStatus + :ivar provisioning_state: Provisioning state of the circuit connection + resource. Possible values are: 'Succeded', 'Updating', 'Deleting', and + 'Failed'. + :vartype provisioning_state: str + :param name: Gets name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :ivar etag: A unique read-only string that changes whenever the resource + is updated. + :vartype etag: str + """ + + _validation = { + 'circuit_connection_status': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'express_route_circuit_peering': {'key': 'properties.expressRouteCircuitPeering', 'type': 'SubResource'}, + 'peer_express_route_circuit_peering': {'key': 'properties.peerExpressRouteCircuitPeering', 'type': 'SubResource'}, + 'address_prefix': {'key': 'properties.addressPrefix', 'type': 'str'}, + 'authorization_key': {'key': 'properties.authorizationKey', 'type': 'str'}, + 'circuit_connection_status': {'key': 'properties.circuitConnectionStatus', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, express_route_circuit_peering=None, peer_express_route_circuit_peering=None, address_prefix: str=None, authorization_key: str=None, name: str=None, **kwargs) -> None: + super(ExpressRouteCircuitConnection, self).__init__(id=id, **kwargs) + self.express_route_circuit_peering = express_route_circuit_peering + self.peer_express_route_circuit_peering = peer_express_route_circuit_peering + self.address_prefix = address_prefix + self.authorization_key = authorization_key + self.circuit_connection_status = None + self.provisioning_state = None + self.name = name + self.etag = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_paged.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_paged.py new file mode 100644 index 000000000000..1ee3f6faa7dd --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class ExpressRouteCircuitPaged(Paged): + """ + A paging container for iterating over a list of :class:`ExpressRouteCircuit ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[ExpressRouteCircuit]'} + } + + def __init__(self, *args, **kwargs): + + super(ExpressRouteCircuitPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_peering.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_peering.py new file mode 100644 index 000000000000..742b31cdf43c --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_peering.py @@ -0,0 +1,133 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource import SubResource + + +class ExpressRouteCircuitPeering(SubResource): + """Peering in an ExpressRouteCircuit resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :param peering_type: The peering type. Possible values include: + 'AzurePublicPeering', 'AzurePrivatePeering', 'MicrosoftPeering' + :type peering_type: str or + ~azure.mgmt.network.v2018_10_01.models.ExpressRoutePeeringType + :param state: The peering state. Possible values include: 'Disabled', + 'Enabled' + :type state: str or + ~azure.mgmt.network.v2018_10_01.models.ExpressRoutePeeringState + :param azure_asn: The Azure ASN. + :type azure_asn: int + :param peer_asn: The peer ASN. + :type peer_asn: long + :param primary_peer_address_prefix: The primary address prefix. + :type primary_peer_address_prefix: str + :param secondary_peer_address_prefix: The secondary address prefix. + :type secondary_peer_address_prefix: str + :param primary_azure_port: The primary port. + :type primary_azure_port: str + :param secondary_azure_port: The secondary port. + :type secondary_azure_port: str + :param shared_key: The shared key. + :type shared_key: str + :param vlan_id: The VLAN ID. + :type vlan_id: int + :param microsoft_peering_config: The Microsoft peering configuration. + :type microsoft_peering_config: + ~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuitPeeringConfig + :param stats: Gets peering stats. + :type stats: + ~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuitStats + :param provisioning_state: Gets the provisioning state of the public IP + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param gateway_manager_etag: The GatewayManager Etag. + :type gateway_manager_etag: str + :param last_modified_by: Gets whether the provider or the customer last + modified the peering. + :type last_modified_by: str + :param route_filter: The reference of the RouteFilter resource. + :type route_filter: ~azure.mgmt.network.v2018_10_01.models.RouteFilter + :param ipv6_peering_config: The IPv6 peering configuration. + :type ipv6_peering_config: + ~azure.mgmt.network.v2018_10_01.models.Ipv6ExpressRouteCircuitPeeringConfig + :param express_route_connection: The ExpressRoute connection. + :type express_route_connection: + ~azure.mgmt.network.v2018_10_01.models.ExpressRouteConnectionId + :param connections: The list of circuit connections associated with Azure + Private Peering for this circuit. + :type connections: + list[~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuitConnection] + :param name: Gets name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :ivar etag: A unique read-only string that changes whenever the resource + is updated. + :vartype etag: str + """ + + _validation = { + 'peer_asn': {'maximum': 4294967295, 'minimum': 1}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'peering_type': {'key': 'properties.peeringType', 'type': 'str'}, + 'state': {'key': 'properties.state', 'type': 'str'}, + 'azure_asn': {'key': 'properties.azureASN', 'type': 'int'}, + 'peer_asn': {'key': 'properties.peerASN', 'type': 'long'}, + 'primary_peer_address_prefix': {'key': 'properties.primaryPeerAddressPrefix', 'type': 'str'}, + 'secondary_peer_address_prefix': {'key': 'properties.secondaryPeerAddressPrefix', 'type': 'str'}, + 'primary_azure_port': {'key': 'properties.primaryAzurePort', 'type': 'str'}, + 'secondary_azure_port': {'key': 'properties.secondaryAzurePort', 'type': 'str'}, + 'shared_key': {'key': 'properties.sharedKey', 'type': 'str'}, + 'vlan_id': {'key': 'properties.vlanId', 'type': 'int'}, + 'microsoft_peering_config': {'key': 'properties.microsoftPeeringConfig', 'type': 'ExpressRouteCircuitPeeringConfig'}, + 'stats': {'key': 'properties.stats', 'type': 'ExpressRouteCircuitStats'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'gateway_manager_etag': {'key': 'properties.gatewayManagerEtag', 'type': 'str'}, + 'last_modified_by': {'key': 'properties.lastModifiedBy', 'type': 'str'}, + 'route_filter': {'key': 'properties.routeFilter', 'type': 'RouteFilter'}, + 'ipv6_peering_config': {'key': 'properties.ipv6PeeringConfig', 'type': 'Ipv6ExpressRouteCircuitPeeringConfig'}, + 'express_route_connection': {'key': 'properties.expressRouteConnection', 'type': 'ExpressRouteConnectionId'}, + 'connections': {'key': 'properties.connections', 'type': '[ExpressRouteCircuitConnection]'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ExpressRouteCircuitPeering, self).__init__(**kwargs) + self.peering_type = kwargs.get('peering_type', None) + self.state = kwargs.get('state', None) + self.azure_asn = kwargs.get('azure_asn', None) + self.peer_asn = kwargs.get('peer_asn', None) + self.primary_peer_address_prefix = kwargs.get('primary_peer_address_prefix', None) + self.secondary_peer_address_prefix = kwargs.get('secondary_peer_address_prefix', None) + self.primary_azure_port = kwargs.get('primary_azure_port', None) + self.secondary_azure_port = kwargs.get('secondary_azure_port', None) + self.shared_key = kwargs.get('shared_key', None) + self.vlan_id = kwargs.get('vlan_id', None) + self.microsoft_peering_config = kwargs.get('microsoft_peering_config', None) + self.stats = kwargs.get('stats', None) + self.provisioning_state = kwargs.get('provisioning_state', None) + self.gateway_manager_etag = kwargs.get('gateway_manager_etag', None) + self.last_modified_by = kwargs.get('last_modified_by', None) + self.route_filter = kwargs.get('route_filter', None) + self.ipv6_peering_config = kwargs.get('ipv6_peering_config', None) + self.express_route_connection = kwargs.get('express_route_connection', None) + self.connections = kwargs.get('connections', None) + self.name = kwargs.get('name', None) + self.etag = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_peering_config.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_peering_config.py new file mode 100644 index 000000000000..a857c63bd5bf --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_peering_config.py @@ -0,0 +1,55 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ExpressRouteCircuitPeeringConfig(Model): + """Specifies the peering configuration. + + :param advertised_public_prefixes: The reference of + AdvertisedPublicPrefixes. + :type advertised_public_prefixes: list[str] + :param advertised_communities: The communities of bgp peering. Spepcified + for microsoft peering + :type advertised_communities: list[str] + :param advertised_public_prefixes_state: AdvertisedPublicPrefixState of + the Peering resource. Possible values are 'NotConfigured', 'Configuring', + 'Configured', and 'ValidationNeeded'. Possible values include: + 'NotConfigured', 'Configuring', 'Configured', 'ValidationNeeded' + :type advertised_public_prefixes_state: str or + ~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuitPeeringAdvertisedPublicPrefixState + :param legacy_mode: The legacy mode of the peering. + :type legacy_mode: int + :param customer_asn: The CustomerASN of the peering. + :type customer_asn: int + :param routing_registry_name: The RoutingRegistryName of the + configuration. + :type routing_registry_name: str + """ + + _attribute_map = { + 'advertised_public_prefixes': {'key': 'advertisedPublicPrefixes', 'type': '[str]'}, + 'advertised_communities': {'key': 'advertisedCommunities', 'type': '[str]'}, + 'advertised_public_prefixes_state': {'key': 'advertisedPublicPrefixesState', 'type': 'str'}, + 'legacy_mode': {'key': 'legacyMode', 'type': 'int'}, + 'customer_asn': {'key': 'customerASN', 'type': 'int'}, + 'routing_registry_name': {'key': 'routingRegistryName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ExpressRouteCircuitPeeringConfig, self).__init__(**kwargs) + self.advertised_public_prefixes = kwargs.get('advertised_public_prefixes', None) + self.advertised_communities = kwargs.get('advertised_communities', None) + self.advertised_public_prefixes_state = kwargs.get('advertised_public_prefixes_state', None) + self.legacy_mode = kwargs.get('legacy_mode', None) + self.customer_asn = kwargs.get('customer_asn', None) + self.routing_registry_name = kwargs.get('routing_registry_name', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_peering_config_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_peering_config_py3.py new file mode 100644 index 000000000000..f30c23c55b5e --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_peering_config_py3.py @@ -0,0 +1,55 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ExpressRouteCircuitPeeringConfig(Model): + """Specifies the peering configuration. + + :param advertised_public_prefixes: The reference of + AdvertisedPublicPrefixes. + :type advertised_public_prefixes: list[str] + :param advertised_communities: The communities of bgp peering. Spepcified + for microsoft peering + :type advertised_communities: list[str] + :param advertised_public_prefixes_state: AdvertisedPublicPrefixState of + the Peering resource. Possible values are 'NotConfigured', 'Configuring', + 'Configured', and 'ValidationNeeded'. Possible values include: + 'NotConfigured', 'Configuring', 'Configured', 'ValidationNeeded' + :type advertised_public_prefixes_state: str or + ~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuitPeeringAdvertisedPublicPrefixState + :param legacy_mode: The legacy mode of the peering. + :type legacy_mode: int + :param customer_asn: The CustomerASN of the peering. + :type customer_asn: int + :param routing_registry_name: The RoutingRegistryName of the + configuration. + :type routing_registry_name: str + """ + + _attribute_map = { + 'advertised_public_prefixes': {'key': 'advertisedPublicPrefixes', 'type': '[str]'}, + 'advertised_communities': {'key': 'advertisedCommunities', 'type': '[str]'}, + 'advertised_public_prefixes_state': {'key': 'advertisedPublicPrefixesState', 'type': 'str'}, + 'legacy_mode': {'key': 'legacyMode', 'type': 'int'}, + 'customer_asn': {'key': 'customerASN', 'type': 'int'}, + 'routing_registry_name': {'key': 'routingRegistryName', 'type': 'str'}, + } + + def __init__(self, *, advertised_public_prefixes=None, advertised_communities=None, advertised_public_prefixes_state=None, legacy_mode: int=None, customer_asn: int=None, routing_registry_name: str=None, **kwargs) -> None: + super(ExpressRouteCircuitPeeringConfig, self).__init__(**kwargs) + self.advertised_public_prefixes = advertised_public_prefixes + self.advertised_communities = advertised_communities + self.advertised_public_prefixes_state = advertised_public_prefixes_state + self.legacy_mode = legacy_mode + self.customer_asn = customer_asn + self.routing_registry_name = routing_registry_name diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_peering_id.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_peering_id.py new file mode 100644 index 000000000000..8e20d23a582d --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_peering_id.py @@ -0,0 +1,28 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ExpressRouteCircuitPeeringId(Model): + """ExpressRoute circuit peering identifier. + + :param id: The ID of the ExpressRoute circuit peering. + :type id: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ExpressRouteCircuitPeeringId, self).__init__(**kwargs) + self.id = kwargs.get('id', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_peering_id_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_peering_id_py3.py new file mode 100644 index 000000000000..0261435f5ecc --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_peering_id_py3.py @@ -0,0 +1,28 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ExpressRouteCircuitPeeringId(Model): + """ExpressRoute circuit peering identifier. + + :param id: The ID of the ExpressRoute circuit peering. + :type id: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, **kwargs) -> None: + super(ExpressRouteCircuitPeeringId, self).__init__(**kwargs) + self.id = id diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_peering_paged.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_peering_paged.py new file mode 100644 index 000000000000..90ed57faff0b --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_peering_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class ExpressRouteCircuitPeeringPaged(Paged): + """ + A paging container for iterating over a list of :class:`ExpressRouteCircuitPeering ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[ExpressRouteCircuitPeering]'} + } + + def __init__(self, *args, **kwargs): + + super(ExpressRouteCircuitPeeringPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_peering_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_peering_py3.py new file mode 100644 index 000000000000..70be629d17e7 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_peering_py3.py @@ -0,0 +1,133 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource_py3 import SubResource + + +class ExpressRouteCircuitPeering(SubResource): + """Peering in an ExpressRouteCircuit resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :param peering_type: The peering type. Possible values include: + 'AzurePublicPeering', 'AzurePrivatePeering', 'MicrosoftPeering' + :type peering_type: str or + ~azure.mgmt.network.v2018_10_01.models.ExpressRoutePeeringType + :param state: The peering state. Possible values include: 'Disabled', + 'Enabled' + :type state: str or + ~azure.mgmt.network.v2018_10_01.models.ExpressRoutePeeringState + :param azure_asn: The Azure ASN. + :type azure_asn: int + :param peer_asn: The peer ASN. + :type peer_asn: long + :param primary_peer_address_prefix: The primary address prefix. + :type primary_peer_address_prefix: str + :param secondary_peer_address_prefix: The secondary address prefix. + :type secondary_peer_address_prefix: str + :param primary_azure_port: The primary port. + :type primary_azure_port: str + :param secondary_azure_port: The secondary port. + :type secondary_azure_port: str + :param shared_key: The shared key. + :type shared_key: str + :param vlan_id: The VLAN ID. + :type vlan_id: int + :param microsoft_peering_config: The Microsoft peering configuration. + :type microsoft_peering_config: + ~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuitPeeringConfig + :param stats: Gets peering stats. + :type stats: + ~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuitStats + :param provisioning_state: Gets the provisioning state of the public IP + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param gateway_manager_etag: The GatewayManager Etag. + :type gateway_manager_etag: str + :param last_modified_by: Gets whether the provider or the customer last + modified the peering. + :type last_modified_by: str + :param route_filter: The reference of the RouteFilter resource. + :type route_filter: ~azure.mgmt.network.v2018_10_01.models.RouteFilter + :param ipv6_peering_config: The IPv6 peering configuration. + :type ipv6_peering_config: + ~azure.mgmt.network.v2018_10_01.models.Ipv6ExpressRouteCircuitPeeringConfig + :param express_route_connection: The ExpressRoute connection. + :type express_route_connection: + ~azure.mgmt.network.v2018_10_01.models.ExpressRouteConnectionId + :param connections: The list of circuit connections associated with Azure + Private Peering for this circuit. + :type connections: + list[~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuitConnection] + :param name: Gets name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :ivar etag: A unique read-only string that changes whenever the resource + is updated. + :vartype etag: str + """ + + _validation = { + 'peer_asn': {'maximum': 4294967295, 'minimum': 1}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'peering_type': {'key': 'properties.peeringType', 'type': 'str'}, + 'state': {'key': 'properties.state', 'type': 'str'}, + 'azure_asn': {'key': 'properties.azureASN', 'type': 'int'}, + 'peer_asn': {'key': 'properties.peerASN', 'type': 'long'}, + 'primary_peer_address_prefix': {'key': 'properties.primaryPeerAddressPrefix', 'type': 'str'}, + 'secondary_peer_address_prefix': {'key': 'properties.secondaryPeerAddressPrefix', 'type': 'str'}, + 'primary_azure_port': {'key': 'properties.primaryAzurePort', 'type': 'str'}, + 'secondary_azure_port': {'key': 'properties.secondaryAzurePort', 'type': 'str'}, + 'shared_key': {'key': 'properties.sharedKey', 'type': 'str'}, + 'vlan_id': {'key': 'properties.vlanId', 'type': 'int'}, + 'microsoft_peering_config': {'key': 'properties.microsoftPeeringConfig', 'type': 'ExpressRouteCircuitPeeringConfig'}, + 'stats': {'key': 'properties.stats', 'type': 'ExpressRouteCircuitStats'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'gateway_manager_etag': {'key': 'properties.gatewayManagerEtag', 'type': 'str'}, + 'last_modified_by': {'key': 'properties.lastModifiedBy', 'type': 'str'}, + 'route_filter': {'key': 'properties.routeFilter', 'type': 'RouteFilter'}, + 'ipv6_peering_config': {'key': 'properties.ipv6PeeringConfig', 'type': 'Ipv6ExpressRouteCircuitPeeringConfig'}, + 'express_route_connection': {'key': 'properties.expressRouteConnection', 'type': 'ExpressRouteConnectionId'}, + 'connections': {'key': 'properties.connections', 'type': '[ExpressRouteCircuitConnection]'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, peering_type=None, state=None, azure_asn: int=None, peer_asn: int=None, primary_peer_address_prefix: str=None, secondary_peer_address_prefix: str=None, primary_azure_port: str=None, secondary_azure_port: str=None, shared_key: str=None, vlan_id: int=None, microsoft_peering_config=None, stats=None, provisioning_state: str=None, gateway_manager_etag: str=None, last_modified_by: str=None, route_filter=None, ipv6_peering_config=None, express_route_connection=None, connections=None, name: str=None, **kwargs) -> None: + super(ExpressRouteCircuitPeering, self).__init__(id=id, **kwargs) + self.peering_type = peering_type + self.state = state + self.azure_asn = azure_asn + self.peer_asn = peer_asn + self.primary_peer_address_prefix = primary_peer_address_prefix + self.secondary_peer_address_prefix = secondary_peer_address_prefix + self.primary_azure_port = primary_azure_port + self.secondary_azure_port = secondary_azure_port + self.shared_key = shared_key + self.vlan_id = vlan_id + self.microsoft_peering_config = microsoft_peering_config + self.stats = stats + self.provisioning_state = provisioning_state + self.gateway_manager_etag = gateway_manager_etag + self.last_modified_by = last_modified_by + self.route_filter = route_filter + self.ipv6_peering_config = ipv6_peering_config + self.express_route_connection = express_route_connection + self.connections = connections + self.name = name + self.etag = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_py3.py new file mode 100644 index 000000000000..19170790d829 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_py3.py @@ -0,0 +1,128 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource_py3 import Resource + + +class ExpressRouteCircuit(Resource): + """ExpressRouteCircuit resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param sku: The SKU. + :type sku: ~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuitSku + :param allow_classic_operations: Allow classic operations + :type allow_classic_operations: bool + :param circuit_provisioning_state: The CircuitProvisioningState state of + the resource. + :type circuit_provisioning_state: str + :param service_provider_provisioning_state: The + ServiceProviderProvisioningState state of the resource. Possible values + are 'NotProvisioned', 'Provisioning', 'Provisioned', and 'Deprovisioning'. + Possible values include: 'NotProvisioned', 'Provisioning', 'Provisioned', + 'Deprovisioning' + :type service_provider_provisioning_state: str or + ~azure.mgmt.network.v2018_10_01.models.ServiceProviderProvisioningState + :param authorizations: The list of authorizations. + :type authorizations: + list[~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuitAuthorization] + :param peerings: The list of peerings. + :type peerings: + list[~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuitPeering] + :param service_key: The ServiceKey. + :type service_key: str + :param service_provider_notes: The ServiceProviderNotes. + :type service_provider_notes: str + :param service_provider_properties: The ServiceProviderProperties. + :type service_provider_properties: + ~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuitServiceProviderProperties + :param express_route_port: The reference to the ExpressRoutePort resource + when the circuit is provisioned on an ExpressRoutePort resource. + :type express_route_port: + ~azure.mgmt.network.v2018_10_01.models.SubResource + :param bandwidth_in_gbps: The bandwidth of the circuit when the circuit is + provisioned on an ExpressRoutePort resource. + :type bandwidth_in_gbps: float + :ivar stag: The identifier of the circuit traffic. Outer tag for QinQ + encapsulation. + :vartype stag: int + :param provisioning_state: Gets the provisioning state of the public IP + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param gateway_manager_etag: The GatewayManager Etag. + :type gateway_manager_etag: str + :param allow_global_reach: Flag to enable Global Reach on the circuit. + :type allow_global_reach: bool + :ivar etag: Gets a unique read-only string that changes whenever the + resource is updated. + :vartype etag: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'stag': {'readonly': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'sku': {'key': 'sku', 'type': 'ExpressRouteCircuitSku'}, + 'allow_classic_operations': {'key': 'properties.allowClassicOperations', 'type': 'bool'}, + 'circuit_provisioning_state': {'key': 'properties.circuitProvisioningState', 'type': 'str'}, + 'service_provider_provisioning_state': {'key': 'properties.serviceProviderProvisioningState', 'type': 'str'}, + 'authorizations': {'key': 'properties.authorizations', 'type': '[ExpressRouteCircuitAuthorization]'}, + 'peerings': {'key': 'properties.peerings', 'type': '[ExpressRouteCircuitPeering]'}, + 'service_key': {'key': 'properties.serviceKey', 'type': 'str'}, + 'service_provider_notes': {'key': 'properties.serviceProviderNotes', 'type': 'str'}, + 'service_provider_properties': {'key': 'properties.serviceProviderProperties', 'type': 'ExpressRouteCircuitServiceProviderProperties'}, + 'express_route_port': {'key': 'properties.expressRoutePort', 'type': 'SubResource'}, + 'bandwidth_in_gbps': {'key': 'properties.bandwidthInGbps', 'type': 'float'}, + 'stag': {'key': 'properties.stag', 'type': 'int'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'gateway_manager_etag': {'key': 'properties.gatewayManagerEtag', 'type': 'str'}, + 'allow_global_reach': {'key': 'properties.allowGlobalReach', 'type': 'bool'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, location: str=None, tags=None, sku=None, allow_classic_operations: bool=None, circuit_provisioning_state: str=None, service_provider_provisioning_state=None, authorizations=None, peerings=None, service_key: str=None, service_provider_notes: str=None, service_provider_properties=None, express_route_port=None, bandwidth_in_gbps: float=None, provisioning_state: str=None, gateway_manager_etag: str=None, allow_global_reach: bool=None, **kwargs) -> None: + super(ExpressRouteCircuit, self).__init__(id=id, location=location, tags=tags, **kwargs) + self.sku = sku + self.allow_classic_operations = allow_classic_operations + self.circuit_provisioning_state = circuit_provisioning_state + self.service_provider_provisioning_state = service_provider_provisioning_state + self.authorizations = authorizations + self.peerings = peerings + self.service_key = service_key + self.service_provider_notes = service_provider_notes + self.service_provider_properties = service_provider_properties + self.express_route_port = express_route_port + self.bandwidth_in_gbps = bandwidth_in_gbps + self.stag = None + self.provisioning_state = provisioning_state + self.gateway_manager_etag = gateway_manager_etag + self.allow_global_reach = allow_global_reach + self.etag = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_reference.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_reference.py new file mode 100644 index 000000000000..63275cc15917 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_reference.py @@ -0,0 +1,28 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ExpressRouteCircuitReference(Model): + """ExpressRouteCircuitReference. + + :param id: Corresponding Express Route Circuit Id. + :type id: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ExpressRouteCircuitReference, self).__init__(**kwargs) + self.id = kwargs.get('id', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_reference_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_reference_py3.py new file mode 100644 index 000000000000..7f6880552144 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_reference_py3.py @@ -0,0 +1,28 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ExpressRouteCircuitReference(Model): + """ExpressRouteCircuitReference. + + :param id: Corresponding Express Route Circuit Id. + :type id: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, **kwargs) -> None: + super(ExpressRouteCircuitReference, self).__init__(**kwargs) + self.id = id diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_routes_table.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_routes_table.py new file mode 100644 index 000000000000..5150924765f9 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_routes_table.py @@ -0,0 +1,45 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ExpressRouteCircuitRoutesTable(Model): + """The routes table associated with the ExpressRouteCircuit. + + :param network: IP address of a network entity + :type network: str + :param next_hop: NextHop address + :type next_hop: str + :param loc_prf: Local preference value as set with the set + local-preference route-map configuration command + :type loc_prf: str + :param weight: Route Weight. + :type weight: int + :param path: Autonomous system paths to the destination network. + :type path: str + """ + + _attribute_map = { + 'network': {'key': 'network', 'type': 'str'}, + 'next_hop': {'key': 'nextHop', 'type': 'str'}, + 'loc_prf': {'key': 'locPrf', 'type': 'str'}, + 'weight': {'key': 'weight', 'type': 'int'}, + 'path': {'key': 'path', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ExpressRouteCircuitRoutesTable, self).__init__(**kwargs) + self.network = kwargs.get('network', None) + self.next_hop = kwargs.get('next_hop', None) + self.loc_prf = kwargs.get('loc_prf', None) + self.weight = kwargs.get('weight', None) + self.path = kwargs.get('path', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_routes_table_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_routes_table_py3.py new file mode 100644 index 000000000000..3b5829937b83 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_routes_table_py3.py @@ -0,0 +1,45 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ExpressRouteCircuitRoutesTable(Model): + """The routes table associated with the ExpressRouteCircuit. + + :param network: IP address of a network entity + :type network: str + :param next_hop: NextHop address + :type next_hop: str + :param loc_prf: Local preference value as set with the set + local-preference route-map configuration command + :type loc_prf: str + :param weight: Route Weight. + :type weight: int + :param path: Autonomous system paths to the destination network. + :type path: str + """ + + _attribute_map = { + 'network': {'key': 'network', 'type': 'str'}, + 'next_hop': {'key': 'nextHop', 'type': 'str'}, + 'loc_prf': {'key': 'locPrf', 'type': 'str'}, + 'weight': {'key': 'weight', 'type': 'int'}, + 'path': {'key': 'path', 'type': 'str'}, + } + + def __init__(self, *, network: str=None, next_hop: str=None, loc_prf: str=None, weight: int=None, path: str=None, **kwargs) -> None: + super(ExpressRouteCircuitRoutesTable, self).__init__(**kwargs) + self.network = network + self.next_hop = next_hop + self.loc_prf = loc_prf + self.weight = weight + self.path = path diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_routes_table_summary.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_routes_table_summary.py new file mode 100644 index 000000000000..1f398383a9f0 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_routes_table_summary.py @@ -0,0 +1,46 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ExpressRouteCircuitRoutesTableSummary(Model): + """The routes table associated with the ExpressRouteCircuit. + + :param neighbor: IP address of the neighbor. + :type neighbor: str + :param v: BGP version number spoken to the neighbor. + :type v: int + :param as_property: Autonomous system number. + :type as_property: int + :param up_down: The length of time that the BGP session has been in the + Established state, or the current status if not in the Established state. + :type up_down: str + :param state_pfx_rcd: Current state of the BGP session, and the number of + prefixes that have been received from a neighbor or peer group. + :type state_pfx_rcd: str + """ + + _attribute_map = { + 'neighbor': {'key': 'neighbor', 'type': 'str'}, + 'v': {'key': 'v', 'type': 'int'}, + 'as_property': {'key': 'as', 'type': 'int'}, + 'up_down': {'key': 'upDown', 'type': 'str'}, + 'state_pfx_rcd': {'key': 'statePfxRcd', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ExpressRouteCircuitRoutesTableSummary, self).__init__(**kwargs) + self.neighbor = kwargs.get('neighbor', None) + self.v = kwargs.get('v', None) + self.as_property = kwargs.get('as_property', None) + self.up_down = kwargs.get('up_down', None) + self.state_pfx_rcd = kwargs.get('state_pfx_rcd', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_routes_table_summary_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_routes_table_summary_py3.py new file mode 100644 index 000000000000..13f52d9951f3 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_routes_table_summary_py3.py @@ -0,0 +1,46 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ExpressRouteCircuitRoutesTableSummary(Model): + """The routes table associated with the ExpressRouteCircuit. + + :param neighbor: IP address of the neighbor. + :type neighbor: str + :param v: BGP version number spoken to the neighbor. + :type v: int + :param as_property: Autonomous system number. + :type as_property: int + :param up_down: The length of time that the BGP session has been in the + Established state, or the current status if not in the Established state. + :type up_down: str + :param state_pfx_rcd: Current state of the BGP session, and the number of + prefixes that have been received from a neighbor or peer group. + :type state_pfx_rcd: str + """ + + _attribute_map = { + 'neighbor': {'key': 'neighbor', 'type': 'str'}, + 'v': {'key': 'v', 'type': 'int'}, + 'as_property': {'key': 'as', 'type': 'int'}, + 'up_down': {'key': 'upDown', 'type': 'str'}, + 'state_pfx_rcd': {'key': 'statePfxRcd', 'type': 'str'}, + } + + def __init__(self, *, neighbor: str=None, v: int=None, as_property: int=None, up_down: str=None, state_pfx_rcd: str=None, **kwargs) -> None: + super(ExpressRouteCircuitRoutesTableSummary, self).__init__(**kwargs) + self.neighbor = neighbor + self.v = v + self.as_property = as_property + self.up_down = up_down + self.state_pfx_rcd = state_pfx_rcd diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_service_provider_properties.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_service_provider_properties.py new file mode 100644 index 000000000000..c51e6d8d653b --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_service_provider_properties.py @@ -0,0 +1,36 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ExpressRouteCircuitServiceProviderProperties(Model): + """Contains ServiceProviderProperties in an ExpressRouteCircuit. + + :param service_provider_name: The serviceProviderName. + :type service_provider_name: str + :param peering_location: The peering location. + :type peering_location: str + :param bandwidth_in_mbps: The BandwidthInMbps. + :type bandwidth_in_mbps: int + """ + + _attribute_map = { + 'service_provider_name': {'key': 'serviceProviderName', 'type': 'str'}, + 'peering_location': {'key': 'peeringLocation', 'type': 'str'}, + 'bandwidth_in_mbps': {'key': 'bandwidthInMbps', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(ExpressRouteCircuitServiceProviderProperties, self).__init__(**kwargs) + self.service_provider_name = kwargs.get('service_provider_name', None) + self.peering_location = kwargs.get('peering_location', None) + self.bandwidth_in_mbps = kwargs.get('bandwidth_in_mbps', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_service_provider_properties_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_service_provider_properties_py3.py new file mode 100644 index 000000000000..ea701a54c3fe --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_service_provider_properties_py3.py @@ -0,0 +1,36 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ExpressRouteCircuitServiceProviderProperties(Model): + """Contains ServiceProviderProperties in an ExpressRouteCircuit. + + :param service_provider_name: The serviceProviderName. + :type service_provider_name: str + :param peering_location: The peering location. + :type peering_location: str + :param bandwidth_in_mbps: The BandwidthInMbps. + :type bandwidth_in_mbps: int + """ + + _attribute_map = { + 'service_provider_name': {'key': 'serviceProviderName', 'type': 'str'}, + 'peering_location': {'key': 'peeringLocation', 'type': 'str'}, + 'bandwidth_in_mbps': {'key': 'bandwidthInMbps', 'type': 'int'}, + } + + def __init__(self, *, service_provider_name: str=None, peering_location: str=None, bandwidth_in_mbps: int=None, **kwargs) -> None: + super(ExpressRouteCircuitServiceProviderProperties, self).__init__(**kwargs) + self.service_provider_name = service_provider_name + self.peering_location = peering_location + self.bandwidth_in_mbps = bandwidth_in_mbps diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_sku.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_sku.py new file mode 100644 index 000000000000..12625131efef --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_sku.py @@ -0,0 +1,41 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ExpressRouteCircuitSku(Model): + """Contains SKU in an ExpressRouteCircuit. + + :param name: The name of the SKU. + :type name: str + :param tier: The tier of the SKU. Possible values are 'Standard', + 'Premium' or 'Basic'. Possible values include: 'Standard', 'Premium', + 'Basic' + :type tier: str or + ~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuitSkuTier + :param family: The family of the SKU. Possible values are: 'UnlimitedData' + and 'MeteredData'. Possible values include: 'UnlimitedData', 'MeteredData' + :type family: str or + ~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuitSkuFamily + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'tier': {'key': 'tier', 'type': 'str'}, + 'family': {'key': 'family', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ExpressRouteCircuitSku, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.tier = kwargs.get('tier', None) + self.family = kwargs.get('family', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_sku_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_sku_py3.py new file mode 100644 index 000000000000..b93f815cd1dc --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_sku_py3.py @@ -0,0 +1,41 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ExpressRouteCircuitSku(Model): + """Contains SKU in an ExpressRouteCircuit. + + :param name: The name of the SKU. + :type name: str + :param tier: The tier of the SKU. Possible values are 'Standard', + 'Premium' or 'Basic'. Possible values include: 'Standard', 'Premium', + 'Basic' + :type tier: str or + ~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuitSkuTier + :param family: The family of the SKU. Possible values are: 'UnlimitedData' + and 'MeteredData'. Possible values include: 'UnlimitedData', 'MeteredData' + :type family: str or + ~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuitSkuFamily + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'tier': {'key': 'tier', 'type': 'str'}, + 'family': {'key': 'family', 'type': 'str'}, + } + + def __init__(self, *, name: str=None, tier=None, family=None, **kwargs) -> None: + super(ExpressRouteCircuitSku, self).__init__(**kwargs) + self.name = name + self.tier = tier + self.family = family diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_stats.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_stats.py new file mode 100644 index 000000000000..41c45ae2b19a --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_stats.py @@ -0,0 +1,40 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ExpressRouteCircuitStats(Model): + """Contains stats associated with the peering. + + :param primarybytes_in: Gets BytesIn of the peering. + :type primarybytes_in: long + :param primarybytes_out: Gets BytesOut of the peering. + :type primarybytes_out: long + :param secondarybytes_in: Gets BytesIn of the peering. + :type secondarybytes_in: long + :param secondarybytes_out: Gets BytesOut of the peering. + :type secondarybytes_out: long + """ + + _attribute_map = { + 'primarybytes_in': {'key': 'primarybytesIn', 'type': 'long'}, + 'primarybytes_out': {'key': 'primarybytesOut', 'type': 'long'}, + 'secondarybytes_in': {'key': 'secondarybytesIn', 'type': 'long'}, + 'secondarybytes_out': {'key': 'secondarybytesOut', 'type': 'long'}, + } + + def __init__(self, **kwargs): + super(ExpressRouteCircuitStats, self).__init__(**kwargs) + self.primarybytes_in = kwargs.get('primarybytes_in', None) + self.primarybytes_out = kwargs.get('primarybytes_out', None) + self.secondarybytes_in = kwargs.get('secondarybytes_in', None) + self.secondarybytes_out = kwargs.get('secondarybytes_out', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_stats_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_stats_py3.py new file mode 100644 index 000000000000..f78335343544 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuit_stats_py3.py @@ -0,0 +1,40 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ExpressRouteCircuitStats(Model): + """Contains stats associated with the peering. + + :param primarybytes_in: Gets BytesIn of the peering. + :type primarybytes_in: long + :param primarybytes_out: Gets BytesOut of the peering. + :type primarybytes_out: long + :param secondarybytes_in: Gets BytesIn of the peering. + :type secondarybytes_in: long + :param secondarybytes_out: Gets BytesOut of the peering. + :type secondarybytes_out: long + """ + + _attribute_map = { + 'primarybytes_in': {'key': 'primarybytesIn', 'type': 'long'}, + 'primarybytes_out': {'key': 'primarybytesOut', 'type': 'long'}, + 'secondarybytes_in': {'key': 'secondarybytesIn', 'type': 'long'}, + 'secondarybytes_out': {'key': 'secondarybytesOut', 'type': 'long'}, + } + + def __init__(self, *, primarybytes_in: int=None, primarybytes_out: int=None, secondarybytes_in: int=None, secondarybytes_out: int=None, **kwargs) -> None: + super(ExpressRouteCircuitStats, self).__init__(**kwargs) + self.primarybytes_in = primarybytes_in + self.primarybytes_out = primarybytes_out + self.secondarybytes_in = secondarybytes_in + self.secondarybytes_out = secondarybytes_out diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuits_arp_table_list_result.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuits_arp_table_list_result.py new file mode 100644 index 000000000000..b051894b0df8 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuits_arp_table_list_result.py @@ -0,0 +1,33 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ExpressRouteCircuitsArpTableListResult(Model): + """Response for ListArpTable associated with the Express Route Circuits API. + + :param value: Gets list of the ARP table. + :type value: + list[~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuitArpTable] + :param next_link: The URL to get the next set of results. + :type next_link: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ExpressRouteCircuitArpTable]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ExpressRouteCircuitsArpTableListResult, self).__init__(**kwargs) + self.value = kwargs.get('value', None) + self.next_link = kwargs.get('next_link', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuits_arp_table_list_result_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuits_arp_table_list_result_py3.py new file mode 100644 index 000000000000..b28ac28d7098 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuits_arp_table_list_result_py3.py @@ -0,0 +1,33 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ExpressRouteCircuitsArpTableListResult(Model): + """Response for ListArpTable associated with the Express Route Circuits API. + + :param value: Gets list of the ARP table. + :type value: + list[~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuitArpTable] + :param next_link: The URL to get the next set of results. + :type next_link: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ExpressRouteCircuitArpTable]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__(self, *, value=None, next_link: str=None, **kwargs) -> None: + super(ExpressRouteCircuitsArpTableListResult, self).__init__(**kwargs) + self.value = value + self.next_link = next_link diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuits_routes_table_list_result.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuits_routes_table_list_result.py new file mode 100644 index 000000000000..f53f0e027198 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuits_routes_table_list_result.py @@ -0,0 +1,34 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ExpressRouteCircuitsRoutesTableListResult(Model): + """Response for ListRoutesTable associated with the Express Route Circuits + API. + + :param value: The list of routes table. + :type value: + list[~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuitRoutesTable] + :param next_link: The URL to get the next set of results. + :type next_link: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ExpressRouteCircuitRoutesTable]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ExpressRouteCircuitsRoutesTableListResult, self).__init__(**kwargs) + self.value = kwargs.get('value', None) + self.next_link = kwargs.get('next_link', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuits_routes_table_list_result_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuits_routes_table_list_result_py3.py new file mode 100644 index 000000000000..1478abbd4771 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuits_routes_table_list_result_py3.py @@ -0,0 +1,34 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ExpressRouteCircuitsRoutesTableListResult(Model): + """Response for ListRoutesTable associated with the Express Route Circuits + API. + + :param value: The list of routes table. + :type value: + list[~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuitRoutesTable] + :param next_link: The URL to get the next set of results. + :type next_link: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ExpressRouteCircuitRoutesTable]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__(self, *, value=None, next_link: str=None, **kwargs) -> None: + super(ExpressRouteCircuitsRoutesTableListResult, self).__init__(**kwargs) + self.value = value + self.next_link = next_link diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuits_routes_table_summary_list_result.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuits_routes_table_summary_list_result.py new file mode 100644 index 000000000000..fe4c82be3629 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuits_routes_table_summary_list_result.py @@ -0,0 +1,34 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ExpressRouteCircuitsRoutesTableSummaryListResult(Model): + """Response for ListRoutesTable associated with the Express Route Circuits + API. + + :param value: A list of the routes table. + :type value: + list[~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuitRoutesTableSummary] + :param next_link: The URL to get the next set of results. + :type next_link: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ExpressRouteCircuitRoutesTableSummary]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ExpressRouteCircuitsRoutesTableSummaryListResult, self).__init__(**kwargs) + self.value = kwargs.get('value', None) + self.next_link = kwargs.get('next_link', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuits_routes_table_summary_list_result_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuits_routes_table_summary_list_result_py3.py new file mode 100644 index 000000000000..278ddf258112 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_circuits_routes_table_summary_list_result_py3.py @@ -0,0 +1,34 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ExpressRouteCircuitsRoutesTableSummaryListResult(Model): + """Response for ListRoutesTable associated with the Express Route Circuits + API. + + :param value: A list of the routes table. + :type value: + list[~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuitRoutesTableSummary] + :param next_link: The URL to get the next set of results. + :type next_link: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ExpressRouteCircuitRoutesTableSummary]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__(self, *, value=None, next_link: str=None, **kwargs) -> None: + super(ExpressRouteCircuitsRoutesTableSummaryListResult, self).__init__(**kwargs) + self.value = value + self.next_link = next_link diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_connection.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_connection.py new file mode 100644 index 000000000000..7879ff8cf943 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_connection.py @@ -0,0 +1,62 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource import SubResource + + +class ExpressRouteConnection(SubResource): + """ExpressRouteConnection resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param id: Resource ID. + :type id: str + :ivar provisioning_state: The provisioning state of the resource. Possible + values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + :vartype provisioning_state: str or + ~azure.mgmt.network.v2018_10_01.models.ProvisioningState + :param express_route_circuit_peering: Required. The ExpressRoute circuit + peering. + :type express_route_circuit_peering: + ~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuitPeeringId + :param authorization_key: Authorization key to establish the connection. + :type authorization_key: str + :param routing_weight: The routing weight associated to the connection. + :type routing_weight: int + :param name: Required. The name of the resource. + :type name: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'express_route_circuit_peering': {'required': True}, + 'name': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'express_route_circuit_peering': {'key': 'properties.expressRouteCircuitPeering', 'type': 'ExpressRouteCircuitPeeringId'}, + 'authorization_key': {'key': 'properties.authorizationKey', 'type': 'str'}, + 'routing_weight': {'key': 'properties.routingWeight', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ExpressRouteConnection, self).__init__(**kwargs) + self.provisioning_state = None + self.express_route_circuit_peering = kwargs.get('express_route_circuit_peering', None) + self.authorization_key = kwargs.get('authorization_key', None) + self.routing_weight = kwargs.get('routing_weight', None) + self.name = kwargs.get('name', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_connection_id.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_connection_id.py new file mode 100644 index 000000000000..05d8fb5b1d33 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_connection_id.py @@ -0,0 +1,35 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ExpressRouteConnectionId(Model): + """The ID of the ExpressRouteConnection. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The ID of the ExpressRouteConnection. + :vartype id: str + """ + + _validation = { + 'id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ExpressRouteConnectionId, self).__init__(**kwargs) + self.id = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_connection_id_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_connection_id_py3.py new file mode 100644 index 000000000000..ac3331079355 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_connection_id_py3.py @@ -0,0 +1,35 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ExpressRouteConnectionId(Model): + """The ID of the ExpressRouteConnection. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The ID of the ExpressRouteConnection. + :vartype id: str + """ + + _validation = { + 'id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(ExpressRouteConnectionId, self).__init__(**kwargs) + self.id = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_connection_list.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_connection_list.py new file mode 100644 index 000000000000..e8fa3ac3a3cf --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_connection_list.py @@ -0,0 +1,29 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ExpressRouteConnectionList(Model): + """ExpressRouteConnection list. + + :param value: The list of ExpressRoute connections + :type value: + list[~azure.mgmt.network.v2018_10_01.models.ExpressRouteConnection] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ExpressRouteConnection]'}, + } + + def __init__(self, **kwargs): + super(ExpressRouteConnectionList, self).__init__(**kwargs) + self.value = kwargs.get('value', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_connection_list_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_connection_list_py3.py new file mode 100644 index 000000000000..256cba5c2663 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_connection_list_py3.py @@ -0,0 +1,29 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ExpressRouteConnectionList(Model): + """ExpressRouteConnection list. + + :param value: The list of ExpressRoute connections + :type value: + list[~azure.mgmt.network.v2018_10_01.models.ExpressRouteConnection] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ExpressRouteConnection]'}, + } + + def __init__(self, *, value=None, **kwargs) -> None: + super(ExpressRouteConnectionList, self).__init__(**kwargs) + self.value = value diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_connection_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_connection_py3.py new file mode 100644 index 000000000000..a05f3f539587 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_connection_py3.py @@ -0,0 +1,62 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource_py3 import SubResource + + +class ExpressRouteConnection(SubResource): + """ExpressRouteConnection resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param id: Resource ID. + :type id: str + :ivar provisioning_state: The provisioning state of the resource. Possible + values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + :vartype provisioning_state: str or + ~azure.mgmt.network.v2018_10_01.models.ProvisioningState + :param express_route_circuit_peering: Required. The ExpressRoute circuit + peering. + :type express_route_circuit_peering: + ~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuitPeeringId + :param authorization_key: Authorization key to establish the connection. + :type authorization_key: str + :param routing_weight: The routing weight associated to the connection. + :type routing_weight: int + :param name: Required. The name of the resource. + :type name: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'express_route_circuit_peering': {'required': True}, + 'name': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'express_route_circuit_peering': {'key': 'properties.expressRouteCircuitPeering', 'type': 'ExpressRouteCircuitPeeringId'}, + 'authorization_key': {'key': 'properties.authorizationKey', 'type': 'str'}, + 'routing_weight': {'key': 'properties.routingWeight', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + } + + def __init__(self, *, express_route_circuit_peering, name: str, id: str=None, authorization_key: str=None, routing_weight: int=None, **kwargs) -> None: + super(ExpressRouteConnection, self).__init__(id=id, **kwargs) + self.provisioning_state = None + self.express_route_circuit_peering = express_route_circuit_peering + self.authorization_key = authorization_key + self.routing_weight = routing_weight + self.name = name diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_cross_connection.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_cross_connection.py new file mode 100644 index 000000000000..88310b7d4619 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_cross_connection.py @@ -0,0 +1,105 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource import Resource + + +class ExpressRouteCrossConnection(Resource): + """ExpressRouteCrossConnection resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :ivar primary_azure_port: The name of the primary port. + :vartype primary_azure_port: str + :ivar secondary_azure_port: The name of the secondary port. + :vartype secondary_azure_port: str + :ivar s_tag: The identifier of the circuit traffic. + :vartype s_tag: int + :param peering_location: The peering location of the ExpressRoute circuit. + :type peering_location: str + :param bandwidth_in_mbps: The circuit bandwidth In Mbps. + :type bandwidth_in_mbps: int + :param express_route_circuit: The ExpressRouteCircuit + :type express_route_circuit: + ~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuitReference + :param service_provider_provisioning_state: The provisioning state of the + circuit in the connectivity provider system. Possible values are + 'NotProvisioned', 'Provisioning', 'Provisioned'. Possible values include: + 'NotProvisioned', 'Provisioning', 'Provisioned', 'Deprovisioning' + :type service_provider_provisioning_state: str or + ~azure.mgmt.network.v2018_10_01.models.ServiceProviderProvisioningState + :param service_provider_notes: Additional read only notes set by the + connectivity provider. + :type service_provider_notes: str + :ivar provisioning_state: Gets the provisioning state of the public IP + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :vartype provisioning_state: str + :param peerings: The list of peerings. + :type peerings: + list[~azure.mgmt.network.v2018_10_01.models.ExpressRouteCrossConnectionPeering] + :ivar etag: Gets a unique read-only string that changes whenever the + resource is updated. + :vartype etag: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'primary_azure_port': {'readonly': True}, + 'secondary_azure_port': {'readonly': True}, + 's_tag': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'primary_azure_port': {'key': 'properties.primaryAzurePort', 'type': 'str'}, + 'secondary_azure_port': {'key': 'properties.secondaryAzurePort', 'type': 'str'}, + 's_tag': {'key': 'properties.sTag', 'type': 'int'}, + 'peering_location': {'key': 'properties.peeringLocation', 'type': 'str'}, + 'bandwidth_in_mbps': {'key': 'properties.bandwidthInMbps', 'type': 'int'}, + 'express_route_circuit': {'key': 'properties.expressRouteCircuit', 'type': 'ExpressRouteCircuitReference'}, + 'service_provider_provisioning_state': {'key': 'properties.serviceProviderProvisioningState', 'type': 'str'}, + 'service_provider_notes': {'key': 'properties.serviceProviderNotes', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'peerings': {'key': 'properties.peerings', 'type': '[ExpressRouteCrossConnectionPeering]'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ExpressRouteCrossConnection, self).__init__(**kwargs) + self.primary_azure_port = None + self.secondary_azure_port = None + self.s_tag = None + self.peering_location = kwargs.get('peering_location', None) + self.bandwidth_in_mbps = kwargs.get('bandwidth_in_mbps', None) + self.express_route_circuit = kwargs.get('express_route_circuit', None) + self.service_provider_provisioning_state = kwargs.get('service_provider_provisioning_state', None) + self.service_provider_notes = kwargs.get('service_provider_notes', None) + self.provisioning_state = None + self.peerings = kwargs.get('peerings', None) + self.etag = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_cross_connection_paged.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_cross_connection_paged.py new file mode 100644 index 000000000000..a69fb32271a8 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_cross_connection_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class ExpressRouteCrossConnectionPaged(Paged): + """ + A paging container for iterating over a list of :class:`ExpressRouteCrossConnection ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[ExpressRouteCrossConnection]'} + } + + def __init__(self, *args, **kwargs): + + super(ExpressRouteCrossConnectionPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_cross_connection_peering.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_cross_connection_peering.py new file mode 100644 index 000000000000..b365f68fa2a9 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_cross_connection_peering.py @@ -0,0 +1,117 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource import SubResource + + +class ExpressRouteCrossConnectionPeering(SubResource): + """Peering in an ExpressRoute Cross Connection resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :param peering_type: The peering type. Possible values include: + 'AzurePublicPeering', 'AzurePrivatePeering', 'MicrosoftPeering' + :type peering_type: str or + ~azure.mgmt.network.v2018_10_01.models.ExpressRoutePeeringType + :param state: The peering state. Possible values include: 'Disabled', + 'Enabled' + :type state: str or + ~azure.mgmt.network.v2018_10_01.models.ExpressRoutePeeringState + :ivar azure_asn: The Azure ASN. + :vartype azure_asn: int + :param peer_asn: The peer ASN. + :type peer_asn: long + :param primary_peer_address_prefix: The primary address prefix. + :type primary_peer_address_prefix: str + :param secondary_peer_address_prefix: The secondary address prefix. + :type secondary_peer_address_prefix: str + :ivar primary_azure_port: The primary port. + :vartype primary_azure_port: str + :ivar secondary_azure_port: The secondary port. + :vartype secondary_azure_port: str + :param shared_key: The shared key. + :type shared_key: str + :param vlan_id: The VLAN ID. + :type vlan_id: int + :param microsoft_peering_config: The Microsoft peering configuration. + :type microsoft_peering_config: + ~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuitPeeringConfig + :ivar provisioning_state: Gets the provisioning state of the public IP + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :vartype provisioning_state: str + :param gateway_manager_etag: The GatewayManager Etag. + :type gateway_manager_etag: str + :param last_modified_by: Gets whether the provider or the customer last + modified the peering. + :type last_modified_by: str + :param ipv6_peering_config: The IPv6 peering configuration. + :type ipv6_peering_config: + ~azure.mgmt.network.v2018_10_01.models.Ipv6ExpressRouteCircuitPeeringConfig + :param name: Gets name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :ivar etag: A unique read-only string that changes whenever the resource + is updated. + :vartype etag: str + """ + + _validation = { + 'azure_asn': {'readonly': True}, + 'peer_asn': {'maximum': 4294967295, 'minimum': 1}, + 'primary_azure_port': {'readonly': True}, + 'secondary_azure_port': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'peering_type': {'key': 'properties.peeringType', 'type': 'str'}, + 'state': {'key': 'properties.state', 'type': 'str'}, + 'azure_asn': {'key': 'properties.azureASN', 'type': 'int'}, + 'peer_asn': {'key': 'properties.peerASN', 'type': 'long'}, + 'primary_peer_address_prefix': {'key': 'properties.primaryPeerAddressPrefix', 'type': 'str'}, + 'secondary_peer_address_prefix': {'key': 'properties.secondaryPeerAddressPrefix', 'type': 'str'}, + 'primary_azure_port': {'key': 'properties.primaryAzurePort', 'type': 'str'}, + 'secondary_azure_port': {'key': 'properties.secondaryAzurePort', 'type': 'str'}, + 'shared_key': {'key': 'properties.sharedKey', 'type': 'str'}, + 'vlan_id': {'key': 'properties.vlanId', 'type': 'int'}, + 'microsoft_peering_config': {'key': 'properties.microsoftPeeringConfig', 'type': 'ExpressRouteCircuitPeeringConfig'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'gateway_manager_etag': {'key': 'properties.gatewayManagerEtag', 'type': 'str'}, + 'last_modified_by': {'key': 'properties.lastModifiedBy', 'type': 'str'}, + 'ipv6_peering_config': {'key': 'properties.ipv6PeeringConfig', 'type': 'Ipv6ExpressRouteCircuitPeeringConfig'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ExpressRouteCrossConnectionPeering, self).__init__(**kwargs) + self.peering_type = kwargs.get('peering_type', None) + self.state = kwargs.get('state', None) + self.azure_asn = None + self.peer_asn = kwargs.get('peer_asn', None) + self.primary_peer_address_prefix = kwargs.get('primary_peer_address_prefix', None) + self.secondary_peer_address_prefix = kwargs.get('secondary_peer_address_prefix', None) + self.primary_azure_port = None + self.secondary_azure_port = None + self.shared_key = kwargs.get('shared_key', None) + self.vlan_id = kwargs.get('vlan_id', None) + self.microsoft_peering_config = kwargs.get('microsoft_peering_config', None) + self.provisioning_state = None + self.gateway_manager_etag = kwargs.get('gateway_manager_etag', None) + self.last_modified_by = kwargs.get('last_modified_by', None) + self.ipv6_peering_config = kwargs.get('ipv6_peering_config', None) + self.name = kwargs.get('name', None) + self.etag = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_cross_connection_peering_paged.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_cross_connection_peering_paged.py new file mode 100644 index 000000000000..ddaca0ea2f70 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_cross_connection_peering_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class ExpressRouteCrossConnectionPeeringPaged(Paged): + """ + A paging container for iterating over a list of :class:`ExpressRouteCrossConnectionPeering ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[ExpressRouteCrossConnectionPeering]'} + } + + def __init__(self, *args, **kwargs): + + super(ExpressRouteCrossConnectionPeeringPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_cross_connection_peering_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_cross_connection_peering_py3.py new file mode 100644 index 000000000000..27e880d8b2f2 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_cross_connection_peering_py3.py @@ -0,0 +1,117 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource_py3 import SubResource + + +class ExpressRouteCrossConnectionPeering(SubResource): + """Peering in an ExpressRoute Cross Connection resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :param peering_type: The peering type. Possible values include: + 'AzurePublicPeering', 'AzurePrivatePeering', 'MicrosoftPeering' + :type peering_type: str or + ~azure.mgmt.network.v2018_10_01.models.ExpressRoutePeeringType + :param state: The peering state. Possible values include: 'Disabled', + 'Enabled' + :type state: str or + ~azure.mgmt.network.v2018_10_01.models.ExpressRoutePeeringState + :ivar azure_asn: The Azure ASN. + :vartype azure_asn: int + :param peer_asn: The peer ASN. + :type peer_asn: long + :param primary_peer_address_prefix: The primary address prefix. + :type primary_peer_address_prefix: str + :param secondary_peer_address_prefix: The secondary address prefix. + :type secondary_peer_address_prefix: str + :ivar primary_azure_port: The primary port. + :vartype primary_azure_port: str + :ivar secondary_azure_port: The secondary port. + :vartype secondary_azure_port: str + :param shared_key: The shared key. + :type shared_key: str + :param vlan_id: The VLAN ID. + :type vlan_id: int + :param microsoft_peering_config: The Microsoft peering configuration. + :type microsoft_peering_config: + ~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuitPeeringConfig + :ivar provisioning_state: Gets the provisioning state of the public IP + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :vartype provisioning_state: str + :param gateway_manager_etag: The GatewayManager Etag. + :type gateway_manager_etag: str + :param last_modified_by: Gets whether the provider or the customer last + modified the peering. + :type last_modified_by: str + :param ipv6_peering_config: The IPv6 peering configuration. + :type ipv6_peering_config: + ~azure.mgmt.network.v2018_10_01.models.Ipv6ExpressRouteCircuitPeeringConfig + :param name: Gets name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :ivar etag: A unique read-only string that changes whenever the resource + is updated. + :vartype etag: str + """ + + _validation = { + 'azure_asn': {'readonly': True}, + 'peer_asn': {'maximum': 4294967295, 'minimum': 1}, + 'primary_azure_port': {'readonly': True}, + 'secondary_azure_port': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'peering_type': {'key': 'properties.peeringType', 'type': 'str'}, + 'state': {'key': 'properties.state', 'type': 'str'}, + 'azure_asn': {'key': 'properties.azureASN', 'type': 'int'}, + 'peer_asn': {'key': 'properties.peerASN', 'type': 'long'}, + 'primary_peer_address_prefix': {'key': 'properties.primaryPeerAddressPrefix', 'type': 'str'}, + 'secondary_peer_address_prefix': {'key': 'properties.secondaryPeerAddressPrefix', 'type': 'str'}, + 'primary_azure_port': {'key': 'properties.primaryAzurePort', 'type': 'str'}, + 'secondary_azure_port': {'key': 'properties.secondaryAzurePort', 'type': 'str'}, + 'shared_key': {'key': 'properties.sharedKey', 'type': 'str'}, + 'vlan_id': {'key': 'properties.vlanId', 'type': 'int'}, + 'microsoft_peering_config': {'key': 'properties.microsoftPeeringConfig', 'type': 'ExpressRouteCircuitPeeringConfig'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'gateway_manager_etag': {'key': 'properties.gatewayManagerEtag', 'type': 'str'}, + 'last_modified_by': {'key': 'properties.lastModifiedBy', 'type': 'str'}, + 'ipv6_peering_config': {'key': 'properties.ipv6PeeringConfig', 'type': 'Ipv6ExpressRouteCircuitPeeringConfig'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, peering_type=None, state=None, peer_asn: int=None, primary_peer_address_prefix: str=None, secondary_peer_address_prefix: str=None, shared_key: str=None, vlan_id: int=None, microsoft_peering_config=None, gateway_manager_etag: str=None, last_modified_by: str=None, ipv6_peering_config=None, name: str=None, **kwargs) -> None: + super(ExpressRouteCrossConnectionPeering, self).__init__(id=id, **kwargs) + self.peering_type = peering_type + self.state = state + self.azure_asn = None + self.peer_asn = peer_asn + self.primary_peer_address_prefix = primary_peer_address_prefix + self.secondary_peer_address_prefix = secondary_peer_address_prefix + self.primary_azure_port = None + self.secondary_azure_port = None + self.shared_key = shared_key + self.vlan_id = vlan_id + self.microsoft_peering_config = microsoft_peering_config + self.provisioning_state = None + self.gateway_manager_etag = gateway_manager_etag + self.last_modified_by = last_modified_by + self.ipv6_peering_config = ipv6_peering_config + self.name = name + self.etag = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_cross_connection_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_cross_connection_py3.py new file mode 100644 index 000000000000..8ab247c8fd0b --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_cross_connection_py3.py @@ -0,0 +1,105 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource_py3 import Resource + + +class ExpressRouteCrossConnection(Resource): + """ExpressRouteCrossConnection resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :ivar primary_azure_port: The name of the primary port. + :vartype primary_azure_port: str + :ivar secondary_azure_port: The name of the secondary port. + :vartype secondary_azure_port: str + :ivar s_tag: The identifier of the circuit traffic. + :vartype s_tag: int + :param peering_location: The peering location of the ExpressRoute circuit. + :type peering_location: str + :param bandwidth_in_mbps: The circuit bandwidth In Mbps. + :type bandwidth_in_mbps: int + :param express_route_circuit: The ExpressRouteCircuit + :type express_route_circuit: + ~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuitReference + :param service_provider_provisioning_state: The provisioning state of the + circuit in the connectivity provider system. Possible values are + 'NotProvisioned', 'Provisioning', 'Provisioned'. Possible values include: + 'NotProvisioned', 'Provisioning', 'Provisioned', 'Deprovisioning' + :type service_provider_provisioning_state: str or + ~azure.mgmt.network.v2018_10_01.models.ServiceProviderProvisioningState + :param service_provider_notes: Additional read only notes set by the + connectivity provider. + :type service_provider_notes: str + :ivar provisioning_state: Gets the provisioning state of the public IP + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :vartype provisioning_state: str + :param peerings: The list of peerings. + :type peerings: + list[~azure.mgmt.network.v2018_10_01.models.ExpressRouteCrossConnectionPeering] + :ivar etag: Gets a unique read-only string that changes whenever the + resource is updated. + :vartype etag: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'primary_azure_port': {'readonly': True}, + 'secondary_azure_port': {'readonly': True}, + 's_tag': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'primary_azure_port': {'key': 'properties.primaryAzurePort', 'type': 'str'}, + 'secondary_azure_port': {'key': 'properties.secondaryAzurePort', 'type': 'str'}, + 's_tag': {'key': 'properties.sTag', 'type': 'int'}, + 'peering_location': {'key': 'properties.peeringLocation', 'type': 'str'}, + 'bandwidth_in_mbps': {'key': 'properties.bandwidthInMbps', 'type': 'int'}, + 'express_route_circuit': {'key': 'properties.expressRouteCircuit', 'type': 'ExpressRouteCircuitReference'}, + 'service_provider_provisioning_state': {'key': 'properties.serviceProviderProvisioningState', 'type': 'str'}, + 'service_provider_notes': {'key': 'properties.serviceProviderNotes', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'peerings': {'key': 'properties.peerings', 'type': '[ExpressRouteCrossConnectionPeering]'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, location: str=None, tags=None, peering_location: str=None, bandwidth_in_mbps: int=None, express_route_circuit=None, service_provider_provisioning_state=None, service_provider_notes: str=None, peerings=None, **kwargs) -> None: + super(ExpressRouteCrossConnection, self).__init__(id=id, location=location, tags=tags, **kwargs) + self.primary_azure_port = None + self.secondary_azure_port = None + self.s_tag = None + self.peering_location = peering_location + self.bandwidth_in_mbps = bandwidth_in_mbps + self.express_route_circuit = express_route_circuit + self.service_provider_provisioning_state = service_provider_provisioning_state + self.service_provider_notes = service_provider_notes + self.provisioning_state = None + self.peerings = peerings + self.etag = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_cross_connection_routes_table_summary.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_cross_connection_routes_table_summary.py new file mode 100644 index 000000000000..f6f4ab635293 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_cross_connection_routes_table_summary.py @@ -0,0 +1,43 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ExpressRouteCrossConnectionRoutesTableSummary(Model): + """The routes table associated with the ExpressRouteCircuit. + + :param neighbor: IP address of Neighbor router + :type neighbor: str + :param asn: Autonomous system number. + :type asn: int + :param up_down: The length of time that the BGP session has been in the + Established state, or the current status if not in the Established state. + :type up_down: str + :param state_or_prefixes_received: Current state of the BGP session, and + the number of prefixes that have been received from a neighbor or peer + group. + :type state_or_prefixes_received: str + """ + + _attribute_map = { + 'neighbor': {'key': 'neighbor', 'type': 'str'}, + 'asn': {'key': 'asn', 'type': 'int'}, + 'up_down': {'key': 'upDown', 'type': 'str'}, + 'state_or_prefixes_received': {'key': 'stateOrPrefixesReceived', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ExpressRouteCrossConnectionRoutesTableSummary, self).__init__(**kwargs) + self.neighbor = kwargs.get('neighbor', None) + self.asn = kwargs.get('asn', None) + self.up_down = kwargs.get('up_down', None) + self.state_or_prefixes_received = kwargs.get('state_or_prefixes_received', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_cross_connection_routes_table_summary_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_cross_connection_routes_table_summary_py3.py new file mode 100644 index 000000000000..cbf47398ba2e --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_cross_connection_routes_table_summary_py3.py @@ -0,0 +1,43 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ExpressRouteCrossConnectionRoutesTableSummary(Model): + """The routes table associated with the ExpressRouteCircuit. + + :param neighbor: IP address of Neighbor router + :type neighbor: str + :param asn: Autonomous system number. + :type asn: int + :param up_down: The length of time that the BGP session has been in the + Established state, or the current status if not in the Established state. + :type up_down: str + :param state_or_prefixes_received: Current state of the BGP session, and + the number of prefixes that have been received from a neighbor or peer + group. + :type state_or_prefixes_received: str + """ + + _attribute_map = { + 'neighbor': {'key': 'neighbor', 'type': 'str'}, + 'asn': {'key': 'asn', 'type': 'int'}, + 'up_down': {'key': 'upDown', 'type': 'str'}, + 'state_or_prefixes_received': {'key': 'stateOrPrefixesReceived', 'type': 'str'}, + } + + def __init__(self, *, neighbor: str=None, asn: int=None, up_down: str=None, state_or_prefixes_received: str=None, **kwargs) -> None: + super(ExpressRouteCrossConnectionRoutesTableSummary, self).__init__(**kwargs) + self.neighbor = neighbor + self.asn = asn + self.up_down = up_down + self.state_or_prefixes_received = state_or_prefixes_received diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_cross_connections_routes_table_summary_list_result.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_cross_connections_routes_table_summary_list_result.py new file mode 100644 index 000000000000..06584107e8bd --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_cross_connections_routes_table_summary_list_result.py @@ -0,0 +1,41 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ExpressRouteCrossConnectionsRoutesTableSummaryListResult(Model): + """Response for ListRoutesTable associated with the Express Route Cross + Connections. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param value: A list of the routes table. + :type value: + list[~azure.mgmt.network.v2018_10_01.models.ExpressRouteCrossConnectionRoutesTableSummary] + :ivar next_link: The URL to get the next set of results. + :vartype next_link: str + """ + + _validation = { + 'next_link': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ExpressRouteCrossConnectionRoutesTableSummary]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ExpressRouteCrossConnectionsRoutesTableSummaryListResult, self).__init__(**kwargs) + self.value = kwargs.get('value', None) + self.next_link = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_cross_connections_routes_table_summary_list_result_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_cross_connections_routes_table_summary_list_result_py3.py new file mode 100644 index 000000000000..83a5add7bd3e --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_cross_connections_routes_table_summary_list_result_py3.py @@ -0,0 +1,41 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ExpressRouteCrossConnectionsRoutesTableSummaryListResult(Model): + """Response for ListRoutesTable associated with the Express Route Cross + Connections. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param value: A list of the routes table. + :type value: + list[~azure.mgmt.network.v2018_10_01.models.ExpressRouteCrossConnectionRoutesTableSummary] + :ivar next_link: The URL to get the next set of results. + :vartype next_link: str + """ + + _validation = { + 'next_link': {'readonly': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ExpressRouteCrossConnectionRoutesTableSummary]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__(self, *, value=None, **kwargs) -> None: + super(ExpressRouteCrossConnectionsRoutesTableSummaryListResult, self).__init__(**kwargs) + self.value = value + self.next_link = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_gateway.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_gateway.py new file mode 100644 index 000000000000..b2e8ac929437 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_gateway.py @@ -0,0 +1,80 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource import Resource + + +class ExpressRouteGateway(Resource): + """ExpressRoute gateway resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param auto_scale_configuration: Configuration for auto scaling. + :type auto_scale_configuration: + ~azure.mgmt.network.v2018_10_01.models.ExpressRouteGatewayPropertiesAutoScaleConfiguration + :ivar express_route_connections: List of ExpressRoute connections to the + ExpressRoute gateway. + :vartype express_route_connections: + list[~azure.mgmt.network.v2018_10_01.models.ExpressRouteConnection] + :ivar provisioning_state: The provisioning state of the resource. Possible + values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + :vartype provisioning_state: str or + ~azure.mgmt.network.v2018_10_01.models.ProvisioningState + :param virtual_hub: Required. The Virtual Hub where the ExpressRoute + gateway is or will be deployed. + :type virtual_hub: ~azure.mgmt.network.v2018_10_01.models.VirtualHubId + :ivar etag: A unique read-only string that changes whenever the resource + is updated. + :vartype etag: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'express_route_connections': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'virtual_hub': {'required': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'auto_scale_configuration': {'key': 'properties.autoScaleConfiguration', 'type': 'ExpressRouteGatewayPropertiesAutoScaleConfiguration'}, + 'express_route_connections': {'key': 'properties.expressRouteConnections', 'type': '[ExpressRouteConnection]'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'virtual_hub': {'key': 'properties.virtualHub', 'type': 'VirtualHubId'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ExpressRouteGateway, self).__init__(**kwargs) + self.auto_scale_configuration = kwargs.get('auto_scale_configuration', None) + self.express_route_connections = None + self.provisioning_state = None + self.virtual_hub = kwargs.get('virtual_hub', None) + self.etag = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_gateway_list.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_gateway_list.py new file mode 100644 index 000000000000..86dd48acfe3d --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_gateway_list.py @@ -0,0 +1,29 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ExpressRouteGatewayList(Model): + """List of ExpressRoute gateways. + + :param value: List of ExpressRoute gateways. + :type value: + list[~azure.mgmt.network.v2018_10_01.models.ExpressRouteGateway] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ExpressRouteGateway]'}, + } + + def __init__(self, **kwargs): + super(ExpressRouteGatewayList, self).__init__(**kwargs) + self.value = kwargs.get('value', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_gateway_list_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_gateway_list_py3.py new file mode 100644 index 000000000000..a2eb7debab6c --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_gateway_list_py3.py @@ -0,0 +1,29 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ExpressRouteGatewayList(Model): + """List of ExpressRoute gateways. + + :param value: List of ExpressRoute gateways. + :type value: + list[~azure.mgmt.network.v2018_10_01.models.ExpressRouteGateway] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[ExpressRouteGateway]'}, + } + + def __init__(self, *, value=None, **kwargs) -> None: + super(ExpressRouteGatewayList, self).__init__(**kwargs) + self.value = value diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_gateway_properties_auto_scale_configuration.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_gateway_properties_auto_scale_configuration.py new file mode 100644 index 000000000000..df9c1e577aae --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_gateway_properties_auto_scale_configuration.py @@ -0,0 +1,29 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ExpressRouteGatewayPropertiesAutoScaleConfiguration(Model): + """Configuration for auto scaling. + + :param bounds: Minimum and maximum number of scale units to deploy. + :type bounds: + ~azure.mgmt.network.v2018_10_01.models.ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds + """ + + _attribute_map = { + 'bounds': {'key': 'bounds', 'type': 'ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds'}, + } + + def __init__(self, **kwargs): + super(ExpressRouteGatewayPropertiesAutoScaleConfiguration, self).__init__(**kwargs) + self.bounds = kwargs.get('bounds', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_gateway_properties_auto_scale_configuration_bounds.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_gateway_properties_auto_scale_configuration_bounds.py new file mode 100644 index 000000000000..0f842805e117 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_gateway_properties_auto_scale_configuration_bounds.py @@ -0,0 +1,34 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds(Model): + """Minimum and maximum number of scale units to deploy. + + :param min: Minimum number of scale units deployed for ExpressRoute + gateway. + :type min: int + :param max: Maximum number of scale units deployed for ExpressRoute + gateway. + :type max: int + """ + + _attribute_map = { + 'min': {'key': 'min', 'type': 'int'}, + 'max': {'key': 'max', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, self).__init__(**kwargs) + self.min = kwargs.get('min', None) + self.max = kwargs.get('max', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_gateway_properties_auto_scale_configuration_bounds_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_gateway_properties_auto_scale_configuration_bounds_py3.py new file mode 100644 index 000000000000..9ea3e23886e0 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_gateway_properties_auto_scale_configuration_bounds_py3.py @@ -0,0 +1,34 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds(Model): + """Minimum and maximum number of scale units to deploy. + + :param min: Minimum number of scale units deployed for ExpressRoute + gateway. + :type min: int + :param max: Maximum number of scale units deployed for ExpressRoute + gateway. + :type max: int + """ + + _attribute_map = { + 'min': {'key': 'min', 'type': 'int'}, + 'max': {'key': 'max', 'type': 'int'}, + } + + def __init__(self, *, min: int=None, max: int=None, **kwargs) -> None: + super(ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, self).__init__(**kwargs) + self.min = min + self.max = max diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_gateway_properties_auto_scale_configuration_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_gateway_properties_auto_scale_configuration_py3.py new file mode 100644 index 000000000000..c1785d8b3dd0 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_gateway_properties_auto_scale_configuration_py3.py @@ -0,0 +1,29 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ExpressRouteGatewayPropertiesAutoScaleConfiguration(Model): + """Configuration for auto scaling. + + :param bounds: Minimum and maximum number of scale units to deploy. + :type bounds: + ~azure.mgmt.network.v2018_10_01.models.ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds + """ + + _attribute_map = { + 'bounds': {'key': 'bounds', 'type': 'ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds'}, + } + + def __init__(self, *, bounds=None, **kwargs) -> None: + super(ExpressRouteGatewayPropertiesAutoScaleConfiguration, self).__init__(**kwargs) + self.bounds = bounds diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_gateway_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_gateway_py3.py new file mode 100644 index 000000000000..9bda69386a47 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_gateway_py3.py @@ -0,0 +1,80 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource_py3 import Resource + + +class ExpressRouteGateway(Resource): + """ExpressRoute gateway resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param auto_scale_configuration: Configuration for auto scaling. + :type auto_scale_configuration: + ~azure.mgmt.network.v2018_10_01.models.ExpressRouteGatewayPropertiesAutoScaleConfiguration + :ivar express_route_connections: List of ExpressRoute connections to the + ExpressRoute gateway. + :vartype express_route_connections: + list[~azure.mgmt.network.v2018_10_01.models.ExpressRouteConnection] + :ivar provisioning_state: The provisioning state of the resource. Possible + values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + :vartype provisioning_state: str or + ~azure.mgmt.network.v2018_10_01.models.ProvisioningState + :param virtual_hub: Required. The Virtual Hub where the ExpressRoute + gateway is or will be deployed. + :type virtual_hub: ~azure.mgmt.network.v2018_10_01.models.VirtualHubId + :ivar etag: A unique read-only string that changes whenever the resource + is updated. + :vartype etag: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'express_route_connections': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'virtual_hub': {'required': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'auto_scale_configuration': {'key': 'properties.autoScaleConfiguration', 'type': 'ExpressRouteGatewayPropertiesAutoScaleConfiguration'}, + 'express_route_connections': {'key': 'properties.expressRouteConnections', 'type': '[ExpressRouteConnection]'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'virtual_hub': {'key': 'properties.virtualHub', 'type': 'VirtualHubId'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, *, virtual_hub, id: str=None, location: str=None, tags=None, auto_scale_configuration=None, **kwargs) -> None: + super(ExpressRouteGateway, self).__init__(id=id, location=location, tags=tags, **kwargs) + self.auto_scale_configuration = auto_scale_configuration + self.express_route_connections = None + self.provisioning_state = None + self.virtual_hub = virtual_hub + self.etag = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_link.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_link.py new file mode 100644 index 000000000000..0b383ae3e89b --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_link.py @@ -0,0 +1,86 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource import SubResource + + +class ExpressRouteLink(SubResource): + """ExpressRouteLink. + + ExpressRouteLink child resource definition. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar router_name: Name of Azure router associated with physical port. + :vartype router_name: str + :ivar interface_name: Name of Azure router interface. + :vartype interface_name: str + :ivar patch_panel_id: Mapping between physical port to patch panel port. + :vartype patch_panel_id: str + :ivar rack_id: Mapping of physical patch panel to rack. + :vartype rack_id: str + :ivar connector_type: Physical fiber port type. Possible values include: + 'LC', 'SC' + :vartype connector_type: str or + ~azure.mgmt.network.v2018_10_01.models.ExpressRouteLinkConnectorType + :param admin_state: Administrative state of the physical port. Possible + values include: 'Enabled', 'Disabled' + :type admin_state: str or + ~azure.mgmt.network.v2018_10_01.models.ExpressRouteLinkAdminState + :ivar provisioning_state: The provisioning state of the ExpressRouteLink + resource. Possible values are: 'Succeeded', 'Updating', 'Deleting', and + 'Failed'. + :vartype provisioning_state: str + :param name: Name of child port resource that is unique among child port + resources of the parent. + :type name: str + :ivar etag: A unique read-only string that changes whenever the resource + is updated. + :vartype etag: str + """ + + _validation = { + 'router_name': {'readonly': True}, + 'interface_name': {'readonly': True}, + 'patch_panel_id': {'readonly': True}, + 'rack_id': {'readonly': True}, + 'connector_type': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'router_name': {'key': 'properties.routerName', 'type': 'str'}, + 'interface_name': {'key': 'properties.interfaceName', 'type': 'str'}, + 'patch_panel_id': {'key': 'properties.patchPanelId', 'type': 'str'}, + 'rack_id': {'key': 'properties.rackId', 'type': 'str'}, + 'connector_type': {'key': 'properties.connectorType', 'type': 'str'}, + 'admin_state': {'key': 'properties.adminState', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ExpressRouteLink, self).__init__(**kwargs) + self.router_name = None + self.interface_name = None + self.patch_panel_id = None + self.rack_id = None + self.connector_type = None + self.admin_state = kwargs.get('admin_state', None) + self.provisioning_state = None + self.name = kwargs.get('name', None) + self.etag = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_link_paged.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_link_paged.py new file mode 100644 index 000000000000..3e3363eb8a45 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_link_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class ExpressRouteLinkPaged(Paged): + """ + A paging container for iterating over a list of :class:`ExpressRouteLink ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[ExpressRouteLink]'} + } + + def __init__(self, *args, **kwargs): + + super(ExpressRouteLinkPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_link_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_link_py3.py new file mode 100644 index 000000000000..aa5a6f3849cf --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_link_py3.py @@ -0,0 +1,86 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource_py3 import SubResource + + +class ExpressRouteLink(SubResource): + """ExpressRouteLink. + + ExpressRouteLink child resource definition. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar router_name: Name of Azure router associated with physical port. + :vartype router_name: str + :ivar interface_name: Name of Azure router interface. + :vartype interface_name: str + :ivar patch_panel_id: Mapping between physical port to patch panel port. + :vartype patch_panel_id: str + :ivar rack_id: Mapping of physical patch panel to rack. + :vartype rack_id: str + :ivar connector_type: Physical fiber port type. Possible values include: + 'LC', 'SC' + :vartype connector_type: str or + ~azure.mgmt.network.v2018_10_01.models.ExpressRouteLinkConnectorType + :param admin_state: Administrative state of the physical port. Possible + values include: 'Enabled', 'Disabled' + :type admin_state: str or + ~azure.mgmt.network.v2018_10_01.models.ExpressRouteLinkAdminState + :ivar provisioning_state: The provisioning state of the ExpressRouteLink + resource. Possible values are: 'Succeeded', 'Updating', 'Deleting', and + 'Failed'. + :vartype provisioning_state: str + :param name: Name of child port resource that is unique among child port + resources of the parent. + :type name: str + :ivar etag: A unique read-only string that changes whenever the resource + is updated. + :vartype etag: str + """ + + _validation = { + 'router_name': {'readonly': True}, + 'interface_name': {'readonly': True}, + 'patch_panel_id': {'readonly': True}, + 'rack_id': {'readonly': True}, + 'connector_type': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'router_name': {'key': 'properties.routerName', 'type': 'str'}, + 'interface_name': {'key': 'properties.interfaceName', 'type': 'str'}, + 'patch_panel_id': {'key': 'properties.patchPanelId', 'type': 'str'}, + 'rack_id': {'key': 'properties.rackId', 'type': 'str'}, + 'connector_type': {'key': 'properties.connectorType', 'type': 'str'}, + 'admin_state': {'key': 'properties.adminState', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, admin_state=None, name: str=None, **kwargs) -> None: + super(ExpressRouteLink, self).__init__(id=id, **kwargs) + self.router_name = None + self.interface_name = None + self.patch_panel_id = None + self.rack_id = None + self.connector_type = None + self.admin_state = admin_state + self.provisioning_state = None + self.name = name + self.etag = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_port.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_port.py new file mode 100644 index 000000000000..2cb04eb5f0f7 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_port.py @@ -0,0 +1,116 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource import Resource + + +class ExpressRoutePort(Resource): + """ExpressRoute Port. + + ExpressRoutePort resource definition. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param peering_location: The name of the peering location that the + ExpressRoutePort is mapped to physically. + :type peering_location: str + :param bandwidth_in_gbps: Bandwidth of procured ports in Gbps + :type bandwidth_in_gbps: int + :ivar provisioned_bandwidth_in_gbps: Aggregate Gbps of associated circuit + bandwidths. + :vartype provisioned_bandwidth_in_gbps: float + :ivar mtu: Maximum transmission unit of the physical port pair(s) + :vartype mtu: str + :param encapsulation: Encapsulation method on physical ports. Possible + values include: 'Dot1Q', 'QinQ' + :type encapsulation: str or + ~azure.mgmt.network.v2018_10_01.models.ExpressRoutePortsEncapsulation + :ivar ether_type: Ethertype of the physical port. + :vartype ether_type: str + :ivar allocation_date: Date of the physical port allocation to be used in + Letter of Authorization. + :vartype allocation_date: str + :param links: ExpressRouteLink Sub-Resources. The set of physical links of + the ExpressRoutePort resource + :type links: list[~azure.mgmt.network.v2018_10_01.models.ExpressRouteLink] + :ivar circuits: Reference the ExpressRoute circuit(s) that are provisioned + on this ExpressRoutePort resource. + :vartype circuits: + list[~azure.mgmt.network.v2018_10_01.models.SubResource] + :ivar provisioning_state: The provisioning state of the ExpressRoutePort + resource. Possible values are: 'Succeeded', 'Updating', 'Deleting', and + 'Failed'. + :vartype provisioning_state: str + :param resource_guid: The resource GUID property of the ExpressRoutePort + resource. + :type resource_guid: str + :ivar etag: A unique read-only string that changes whenever the resource + is updated. + :vartype etag: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'provisioned_bandwidth_in_gbps': {'readonly': True}, + 'mtu': {'readonly': True}, + 'ether_type': {'readonly': True}, + 'allocation_date': {'readonly': True}, + 'circuits': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'peering_location': {'key': 'properties.peeringLocation', 'type': 'str'}, + 'bandwidth_in_gbps': {'key': 'properties.bandwidthInGbps', 'type': 'int'}, + 'provisioned_bandwidth_in_gbps': {'key': 'properties.provisionedBandwidthInGbps', 'type': 'float'}, + 'mtu': {'key': 'properties.mtu', 'type': 'str'}, + 'encapsulation': {'key': 'properties.encapsulation', 'type': 'str'}, + 'ether_type': {'key': 'properties.etherType', 'type': 'str'}, + 'allocation_date': {'key': 'properties.allocationDate', 'type': 'str'}, + 'links': {'key': 'properties.links', 'type': '[ExpressRouteLink]'}, + 'circuits': {'key': 'properties.circuits', 'type': '[SubResource]'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'resource_guid': {'key': 'properties.resourceGuid', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ExpressRoutePort, self).__init__(**kwargs) + self.peering_location = kwargs.get('peering_location', None) + self.bandwidth_in_gbps = kwargs.get('bandwidth_in_gbps', None) + self.provisioned_bandwidth_in_gbps = None + self.mtu = None + self.encapsulation = kwargs.get('encapsulation', None) + self.ether_type = None + self.allocation_date = None + self.links = kwargs.get('links', None) + self.circuits = None + self.provisioning_state = None + self.resource_guid = kwargs.get('resource_guid', None) + self.etag = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_port_paged.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_port_paged.py new file mode 100644 index 000000000000..0bd5a177651c --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_port_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class ExpressRoutePortPaged(Paged): + """ + A paging container for iterating over a list of :class:`ExpressRoutePort ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[ExpressRoutePort]'} + } + + def __init__(self, *args, **kwargs): + + super(ExpressRoutePortPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_port_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_port_py3.py new file mode 100644 index 000000000000..6ba30b777ea7 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_port_py3.py @@ -0,0 +1,116 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource_py3 import Resource + + +class ExpressRoutePort(Resource): + """ExpressRoute Port. + + ExpressRoutePort resource definition. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param peering_location: The name of the peering location that the + ExpressRoutePort is mapped to physically. + :type peering_location: str + :param bandwidth_in_gbps: Bandwidth of procured ports in Gbps + :type bandwidth_in_gbps: int + :ivar provisioned_bandwidth_in_gbps: Aggregate Gbps of associated circuit + bandwidths. + :vartype provisioned_bandwidth_in_gbps: float + :ivar mtu: Maximum transmission unit of the physical port pair(s) + :vartype mtu: str + :param encapsulation: Encapsulation method on physical ports. Possible + values include: 'Dot1Q', 'QinQ' + :type encapsulation: str or + ~azure.mgmt.network.v2018_10_01.models.ExpressRoutePortsEncapsulation + :ivar ether_type: Ethertype of the physical port. + :vartype ether_type: str + :ivar allocation_date: Date of the physical port allocation to be used in + Letter of Authorization. + :vartype allocation_date: str + :param links: ExpressRouteLink Sub-Resources. The set of physical links of + the ExpressRoutePort resource + :type links: list[~azure.mgmt.network.v2018_10_01.models.ExpressRouteLink] + :ivar circuits: Reference the ExpressRoute circuit(s) that are provisioned + on this ExpressRoutePort resource. + :vartype circuits: + list[~azure.mgmt.network.v2018_10_01.models.SubResource] + :ivar provisioning_state: The provisioning state of the ExpressRoutePort + resource. Possible values are: 'Succeeded', 'Updating', 'Deleting', and + 'Failed'. + :vartype provisioning_state: str + :param resource_guid: The resource GUID property of the ExpressRoutePort + resource. + :type resource_guid: str + :ivar etag: A unique read-only string that changes whenever the resource + is updated. + :vartype etag: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'provisioned_bandwidth_in_gbps': {'readonly': True}, + 'mtu': {'readonly': True}, + 'ether_type': {'readonly': True}, + 'allocation_date': {'readonly': True}, + 'circuits': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'peering_location': {'key': 'properties.peeringLocation', 'type': 'str'}, + 'bandwidth_in_gbps': {'key': 'properties.bandwidthInGbps', 'type': 'int'}, + 'provisioned_bandwidth_in_gbps': {'key': 'properties.provisionedBandwidthInGbps', 'type': 'float'}, + 'mtu': {'key': 'properties.mtu', 'type': 'str'}, + 'encapsulation': {'key': 'properties.encapsulation', 'type': 'str'}, + 'ether_type': {'key': 'properties.etherType', 'type': 'str'}, + 'allocation_date': {'key': 'properties.allocationDate', 'type': 'str'}, + 'links': {'key': 'properties.links', 'type': '[ExpressRouteLink]'}, + 'circuits': {'key': 'properties.circuits', 'type': '[SubResource]'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'resource_guid': {'key': 'properties.resourceGuid', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, location: str=None, tags=None, peering_location: str=None, bandwidth_in_gbps: int=None, encapsulation=None, links=None, resource_guid: str=None, **kwargs) -> None: + super(ExpressRoutePort, self).__init__(id=id, location=location, tags=tags, **kwargs) + self.peering_location = peering_location + self.bandwidth_in_gbps = bandwidth_in_gbps + self.provisioned_bandwidth_in_gbps = None + self.mtu = None + self.encapsulation = encapsulation + self.ether_type = None + self.allocation_date = None + self.links = links + self.circuits = None + self.provisioning_state = None + self.resource_guid = resource_guid + self.etag = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_ports_location.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_ports_location.py new file mode 100644 index 000000000000..f35823805c38 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_ports_location.py @@ -0,0 +1,72 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource import Resource + + +class ExpressRoutePortsLocation(Resource): + """ExpressRoutePorts Peering Location. + + Definition of the ExpressRoutePorts peering location resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :ivar address: Address of peering location. + :vartype address: str + :ivar contact: Contact details of peering locations. + :vartype contact: str + :param available_bandwidths: The inventory of available ExpressRoutePort + bandwidths. + :type available_bandwidths: + list[~azure.mgmt.network.v2018_10_01.models.ExpressRoutePortsLocationBandwidths] + :ivar provisioning_state: The provisioning state of the + ExpressRoutePortLocation resource. Possible values are: 'Succeeded', + 'Updating', 'Deleting', and 'Failed'. + :vartype provisioning_state: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'address': {'readonly': True}, + 'contact': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'address': {'key': 'properties.address', 'type': 'str'}, + 'contact': {'key': 'properties.contact', 'type': 'str'}, + 'available_bandwidths': {'key': 'properties.availableBandwidths', 'type': '[ExpressRoutePortsLocationBandwidths]'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ExpressRoutePortsLocation, self).__init__(**kwargs) + self.address = None + self.contact = None + self.available_bandwidths = kwargs.get('available_bandwidths', None) + self.provisioning_state = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_ports_location_bandwidths.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_ports_location_bandwidths.py new file mode 100644 index 000000000000..1087c7a3c792 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_ports_location_bandwidths.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ExpressRoutePortsLocationBandwidths(Model): + """ExpressRoutePorts Location Bandwidths. + + Real-time inventory of available ExpressRoute port bandwidths. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar offer_name: Bandwidth descriptive name + :vartype offer_name: str + :ivar value_in_gbps: Bandwidth value in Gbps + :vartype value_in_gbps: int + """ + + _validation = { + 'offer_name': {'readonly': True}, + 'value_in_gbps': {'readonly': True}, + } + + _attribute_map = { + 'offer_name': {'key': 'offerName', 'type': 'str'}, + 'value_in_gbps': {'key': 'valueInGbps', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(ExpressRoutePortsLocationBandwidths, self).__init__(**kwargs) + self.offer_name = None + self.value_in_gbps = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_ports_location_bandwidths_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_ports_location_bandwidths_py3.py new file mode 100644 index 000000000000..cba89b52bc09 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_ports_location_bandwidths_py3.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ExpressRoutePortsLocationBandwidths(Model): + """ExpressRoutePorts Location Bandwidths. + + Real-time inventory of available ExpressRoute port bandwidths. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar offer_name: Bandwidth descriptive name + :vartype offer_name: str + :ivar value_in_gbps: Bandwidth value in Gbps + :vartype value_in_gbps: int + """ + + _validation = { + 'offer_name': {'readonly': True}, + 'value_in_gbps': {'readonly': True}, + } + + _attribute_map = { + 'offer_name': {'key': 'offerName', 'type': 'str'}, + 'value_in_gbps': {'key': 'valueInGbps', 'type': 'int'}, + } + + def __init__(self, **kwargs) -> None: + super(ExpressRoutePortsLocationBandwidths, self).__init__(**kwargs) + self.offer_name = None + self.value_in_gbps = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_ports_location_paged.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_ports_location_paged.py new file mode 100644 index 000000000000..fc4f008a75fd --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_ports_location_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class ExpressRoutePortsLocationPaged(Paged): + """ + A paging container for iterating over a list of :class:`ExpressRoutePortsLocation ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[ExpressRoutePortsLocation]'} + } + + def __init__(self, *args, **kwargs): + + super(ExpressRoutePortsLocationPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_ports_location_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_ports_location_py3.py new file mode 100644 index 000000000000..8a6238407b6d --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_ports_location_py3.py @@ -0,0 +1,72 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource_py3 import Resource + + +class ExpressRoutePortsLocation(Resource): + """ExpressRoutePorts Peering Location. + + Definition of the ExpressRoutePorts peering location resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :ivar address: Address of peering location. + :vartype address: str + :ivar contact: Contact details of peering locations. + :vartype contact: str + :param available_bandwidths: The inventory of available ExpressRoutePort + bandwidths. + :type available_bandwidths: + list[~azure.mgmt.network.v2018_10_01.models.ExpressRoutePortsLocationBandwidths] + :ivar provisioning_state: The provisioning state of the + ExpressRoutePortLocation resource. Possible values are: 'Succeeded', + 'Updating', 'Deleting', and 'Failed'. + :vartype provisioning_state: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'address': {'readonly': True}, + 'contact': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'address': {'key': 'properties.address', 'type': 'str'}, + 'contact': {'key': 'properties.contact', 'type': 'str'}, + 'available_bandwidths': {'key': 'properties.availableBandwidths', 'type': '[ExpressRoutePortsLocationBandwidths]'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, location: str=None, tags=None, available_bandwidths=None, **kwargs) -> None: + super(ExpressRoutePortsLocation, self).__init__(id=id, location=location, tags=tags, **kwargs) + self.address = None + self.contact = None + self.available_bandwidths = available_bandwidths + self.provisioning_state = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_service_provider.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_service_provider.py new file mode 100644 index 000000000000..3330b712ce87 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_service_provider.py @@ -0,0 +1,60 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource import Resource + + +class ExpressRouteServiceProvider(Resource): + """A ExpressRouteResourceProvider object. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param peering_locations: Get a list of peering locations. + :type peering_locations: list[str] + :param bandwidths_offered: Gets bandwidths offered. + :type bandwidths_offered: + list[~azure.mgmt.network.v2018_10_01.models.ExpressRouteServiceProviderBandwidthsOffered] + :param provisioning_state: Gets the provisioning state of the resource. + :type provisioning_state: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'peering_locations': {'key': 'properties.peeringLocations', 'type': '[str]'}, + 'bandwidths_offered': {'key': 'properties.bandwidthsOffered', 'type': '[ExpressRouteServiceProviderBandwidthsOffered]'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ExpressRouteServiceProvider, self).__init__(**kwargs) + self.peering_locations = kwargs.get('peering_locations', None) + self.bandwidths_offered = kwargs.get('bandwidths_offered', None) + self.provisioning_state = kwargs.get('provisioning_state', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_service_provider_bandwidths_offered.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_service_provider_bandwidths_offered.py new file mode 100644 index 000000000000..b27622af42d1 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_service_provider_bandwidths_offered.py @@ -0,0 +1,32 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ExpressRouteServiceProviderBandwidthsOffered(Model): + """Contains bandwidths offered in ExpressRouteServiceProvider resources. + + :param offer_name: The OfferName. + :type offer_name: str + :param value_in_mbps: The ValueInMbps. + :type value_in_mbps: int + """ + + _attribute_map = { + 'offer_name': {'key': 'offerName', 'type': 'str'}, + 'value_in_mbps': {'key': 'valueInMbps', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(ExpressRouteServiceProviderBandwidthsOffered, self).__init__(**kwargs) + self.offer_name = kwargs.get('offer_name', None) + self.value_in_mbps = kwargs.get('value_in_mbps', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_service_provider_bandwidths_offered_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_service_provider_bandwidths_offered_py3.py new file mode 100644 index 000000000000..88516a0dfcf8 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_service_provider_bandwidths_offered_py3.py @@ -0,0 +1,32 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ExpressRouteServiceProviderBandwidthsOffered(Model): + """Contains bandwidths offered in ExpressRouteServiceProvider resources. + + :param offer_name: The OfferName. + :type offer_name: str + :param value_in_mbps: The ValueInMbps. + :type value_in_mbps: int + """ + + _attribute_map = { + 'offer_name': {'key': 'offerName', 'type': 'str'}, + 'value_in_mbps': {'key': 'valueInMbps', 'type': 'int'}, + } + + def __init__(self, *, offer_name: str=None, value_in_mbps: int=None, **kwargs) -> None: + super(ExpressRouteServiceProviderBandwidthsOffered, self).__init__(**kwargs) + self.offer_name = offer_name + self.value_in_mbps = value_in_mbps diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_service_provider_paged.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_service_provider_paged.py new file mode 100644 index 000000000000..0ec18a2f3e4b --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_service_provider_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class ExpressRouteServiceProviderPaged(Paged): + """ + A paging container for iterating over a list of :class:`ExpressRouteServiceProvider ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[ExpressRouteServiceProvider]'} + } + + def __init__(self, *args, **kwargs): + + super(ExpressRouteServiceProviderPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_service_provider_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_service_provider_py3.py new file mode 100644 index 000000000000..1a42f0dd40e7 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/express_route_service_provider_py3.py @@ -0,0 +1,60 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource_py3 import Resource + + +class ExpressRouteServiceProvider(Resource): + """A ExpressRouteResourceProvider object. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param peering_locations: Get a list of peering locations. + :type peering_locations: list[str] + :param bandwidths_offered: Gets bandwidths offered. + :type bandwidths_offered: + list[~azure.mgmt.network.v2018_10_01.models.ExpressRouteServiceProviderBandwidthsOffered] + :param provisioning_state: Gets the provisioning state of the resource. + :type provisioning_state: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'peering_locations': {'key': 'properties.peeringLocations', 'type': '[str]'}, + 'bandwidths_offered': {'key': 'properties.bandwidthsOffered', 'type': '[ExpressRouteServiceProviderBandwidthsOffered]'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, location: str=None, tags=None, peering_locations=None, bandwidths_offered=None, provisioning_state: str=None, **kwargs) -> None: + super(ExpressRouteServiceProvider, self).__init__(id=id, location=location, tags=tags, **kwargs) + self.peering_locations = peering_locations + self.bandwidths_offered = bandwidths_offered + self.provisioning_state = provisioning_state diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/flow_log_format_parameters.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/flow_log_format_parameters.py new file mode 100644 index 000000000000..a36d927c4e36 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/flow_log_format_parameters.py @@ -0,0 +1,33 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class FlowLogFormatParameters(Model): + """Parameters that define the flow log format. + + :param type: The file type of flow log. Possible values include: 'JSON' + :type type: str or + ~azure.mgmt.network.v2018_10_01.models.FlowLogFormatType + :param version: The version (revision) of the flow log. Default value: 0 . + :type version: int + """ + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(FlowLogFormatParameters, self).__init__(**kwargs) + self.type = kwargs.get('type', None) + self.version = kwargs.get('version', 0) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/flow_log_format_parameters_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/flow_log_format_parameters_py3.py new file mode 100644 index 000000000000..d7235bf78eba --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/flow_log_format_parameters_py3.py @@ -0,0 +1,33 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class FlowLogFormatParameters(Model): + """Parameters that define the flow log format. + + :param type: The file type of flow log. Possible values include: 'JSON' + :type type: str or + ~azure.mgmt.network.v2018_10_01.models.FlowLogFormatType + :param version: The version (revision) of the flow log. Default value: 0 . + :type version: int + """ + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'version': {'key': 'version', 'type': 'int'}, + } + + def __init__(self, *, type=None, version: int=0, **kwargs) -> None: + super(FlowLogFormatParameters, self).__init__(**kwargs) + self.type = type + self.version = version diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/flow_log_information.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/flow_log_information.py new file mode 100644 index 000000000000..1d57a73877a9 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/flow_log_information.py @@ -0,0 +1,62 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class FlowLogInformation(Model): + """Information on the configuration of flow log and traffic analytics + (optional) . + + All required parameters must be populated in order to send to Azure. + + :param target_resource_id: Required. The ID of the resource to configure + for flow log and traffic analytics (optional) . + :type target_resource_id: str + :param storage_id: Required. ID of the storage account which is used to + store the flow log. + :type storage_id: str + :param enabled: Required. Flag to enable/disable flow logging. + :type enabled: bool + :param retention_policy: + :type retention_policy: + ~azure.mgmt.network.v2018_10_01.models.RetentionPolicyParameters + :param format: + :type format: + ~azure.mgmt.network.v2018_10_01.models.FlowLogFormatParameters + :param flow_analytics_configuration: + :type flow_analytics_configuration: + ~azure.mgmt.network.v2018_10_01.models.TrafficAnalyticsProperties + """ + + _validation = { + 'target_resource_id': {'required': True}, + 'storage_id': {'required': True}, + 'enabled': {'required': True}, + } + + _attribute_map = { + 'target_resource_id': {'key': 'targetResourceId', 'type': 'str'}, + 'storage_id': {'key': 'properties.storageId', 'type': 'str'}, + 'enabled': {'key': 'properties.enabled', 'type': 'bool'}, + 'retention_policy': {'key': 'properties.retentionPolicy', 'type': 'RetentionPolicyParameters'}, + 'format': {'key': 'properties.format', 'type': 'FlowLogFormatParameters'}, + 'flow_analytics_configuration': {'key': 'flowAnalyticsConfiguration', 'type': 'TrafficAnalyticsProperties'}, + } + + def __init__(self, **kwargs): + super(FlowLogInformation, self).__init__(**kwargs) + self.target_resource_id = kwargs.get('target_resource_id', None) + self.storage_id = kwargs.get('storage_id', None) + self.enabled = kwargs.get('enabled', None) + self.retention_policy = kwargs.get('retention_policy', None) + self.format = kwargs.get('format', None) + self.flow_analytics_configuration = kwargs.get('flow_analytics_configuration', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/flow_log_information_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/flow_log_information_py3.py new file mode 100644 index 000000000000..ffe59b339d73 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/flow_log_information_py3.py @@ -0,0 +1,62 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class FlowLogInformation(Model): + """Information on the configuration of flow log and traffic analytics + (optional) . + + All required parameters must be populated in order to send to Azure. + + :param target_resource_id: Required. The ID of the resource to configure + for flow log and traffic analytics (optional) . + :type target_resource_id: str + :param storage_id: Required. ID of the storage account which is used to + store the flow log. + :type storage_id: str + :param enabled: Required. Flag to enable/disable flow logging. + :type enabled: bool + :param retention_policy: + :type retention_policy: + ~azure.mgmt.network.v2018_10_01.models.RetentionPolicyParameters + :param format: + :type format: + ~azure.mgmt.network.v2018_10_01.models.FlowLogFormatParameters + :param flow_analytics_configuration: + :type flow_analytics_configuration: + ~azure.mgmt.network.v2018_10_01.models.TrafficAnalyticsProperties + """ + + _validation = { + 'target_resource_id': {'required': True}, + 'storage_id': {'required': True}, + 'enabled': {'required': True}, + } + + _attribute_map = { + 'target_resource_id': {'key': 'targetResourceId', 'type': 'str'}, + 'storage_id': {'key': 'properties.storageId', 'type': 'str'}, + 'enabled': {'key': 'properties.enabled', 'type': 'bool'}, + 'retention_policy': {'key': 'properties.retentionPolicy', 'type': 'RetentionPolicyParameters'}, + 'format': {'key': 'properties.format', 'type': 'FlowLogFormatParameters'}, + 'flow_analytics_configuration': {'key': 'flowAnalyticsConfiguration', 'type': 'TrafficAnalyticsProperties'}, + } + + def __init__(self, *, target_resource_id: str, storage_id: str, enabled: bool, retention_policy=None, format=None, flow_analytics_configuration=None, **kwargs) -> None: + super(FlowLogInformation, self).__init__(**kwargs) + self.target_resource_id = target_resource_id + self.storage_id = storage_id + self.enabled = enabled + self.retention_policy = retention_policy + self.format = format + self.flow_analytics_configuration = flow_analytics_configuration diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/flow_log_status_parameters.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/flow_log_status_parameters.py new file mode 100644 index 000000000000..1e290526a28e --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/flow_log_status_parameters.py @@ -0,0 +1,36 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class FlowLogStatusParameters(Model): + """Parameters that define a resource to query flow log and traffic analytics + (optional) status. + + All required parameters must be populated in order to send to Azure. + + :param target_resource_id: Required. The target resource where getting the + flow log and traffic analytics (optional) status. + :type target_resource_id: str + """ + + _validation = { + 'target_resource_id': {'required': True}, + } + + _attribute_map = { + 'target_resource_id': {'key': 'targetResourceId', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(FlowLogStatusParameters, self).__init__(**kwargs) + self.target_resource_id = kwargs.get('target_resource_id', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/flow_log_status_parameters_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/flow_log_status_parameters_py3.py new file mode 100644 index 000000000000..89d079fdb715 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/flow_log_status_parameters_py3.py @@ -0,0 +1,36 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class FlowLogStatusParameters(Model): + """Parameters that define a resource to query flow log and traffic analytics + (optional) status. + + All required parameters must be populated in order to send to Azure. + + :param target_resource_id: Required. The target resource where getting the + flow log and traffic analytics (optional) status. + :type target_resource_id: str + """ + + _validation = { + 'target_resource_id': {'required': True}, + } + + _attribute_map = { + 'target_resource_id': {'key': 'targetResourceId', 'type': 'str'}, + } + + def __init__(self, *, target_resource_id: str, **kwargs) -> None: + super(FlowLogStatusParameters, self).__init__(**kwargs) + self.target_resource_id = target_resource_id diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/frontend_ip_configuration.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/frontend_ip_configuration.py new file mode 100644 index 000000000000..d52fcf0e1a8f --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/frontend_ip_configuration.py @@ -0,0 +1,105 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource import SubResource + + +class FrontendIPConfiguration(SubResource): + """Frontend IP address of the load balancer. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar inbound_nat_rules: Read only. Inbound rules URIs that use this + frontend IP. + :vartype inbound_nat_rules: + list[~azure.mgmt.network.v2018_10_01.models.SubResource] + :ivar inbound_nat_pools: Read only. Inbound pools URIs that use this + frontend IP. + :vartype inbound_nat_pools: + list[~azure.mgmt.network.v2018_10_01.models.SubResource] + :ivar outbound_rules: Read only. Outbound rules URIs that use this + frontend IP. + :vartype outbound_rules: + list[~azure.mgmt.network.v2018_10_01.models.SubResource] + :ivar load_balancing_rules: Gets load balancing rules URIs that use this + frontend IP. + :vartype load_balancing_rules: + list[~azure.mgmt.network.v2018_10_01.models.SubResource] + :param private_ip_address: The private IP address of the IP configuration. + :type private_ip_address: str + :param private_ip_allocation_method: The Private IP allocation method. + Possible values are: 'Static' and 'Dynamic'. Possible values include: + 'Static', 'Dynamic' + :type private_ip_allocation_method: str or + ~azure.mgmt.network.v2018_10_01.models.IPAllocationMethod + :param subnet: The reference of the subnet resource. + :type subnet: ~azure.mgmt.network.v2018_10_01.models.Subnet + :param public_ip_address: The reference of the Public IP resource. + :type public_ip_address: + ~azure.mgmt.network.v2018_10_01.models.PublicIPAddress + :param public_ip_prefix: The reference of the Public IP Prefix resource. + :type public_ip_prefix: ~azure.mgmt.network.v2018_10_01.models.SubResource + :param provisioning_state: Gets the provisioning state of the public IP + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + :param zones: A list of availability zones denoting the IP allocated for + the resource needs to come from. + :type zones: list[str] + """ + + _validation = { + 'inbound_nat_rules': {'readonly': True}, + 'inbound_nat_pools': {'readonly': True}, + 'outbound_rules': {'readonly': True}, + 'load_balancing_rules': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'inbound_nat_rules': {'key': 'properties.inboundNatRules', 'type': '[SubResource]'}, + 'inbound_nat_pools': {'key': 'properties.inboundNatPools', 'type': '[SubResource]'}, + 'outbound_rules': {'key': 'properties.outboundRules', 'type': '[SubResource]'}, + 'load_balancing_rules': {'key': 'properties.loadBalancingRules', 'type': '[SubResource]'}, + 'private_ip_address': {'key': 'properties.privateIPAddress', 'type': 'str'}, + 'private_ip_allocation_method': {'key': 'properties.privateIPAllocationMethod', 'type': 'str'}, + 'subnet': {'key': 'properties.subnet', 'type': 'Subnet'}, + 'public_ip_address': {'key': 'properties.publicIPAddress', 'type': 'PublicIPAddress'}, + 'public_ip_prefix': {'key': 'properties.publicIPPrefix', 'type': 'SubResource'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'zones': {'key': 'zones', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(FrontendIPConfiguration, self).__init__(**kwargs) + self.inbound_nat_rules = None + self.inbound_nat_pools = None + self.outbound_rules = None + self.load_balancing_rules = None + self.private_ip_address = kwargs.get('private_ip_address', None) + self.private_ip_allocation_method = kwargs.get('private_ip_allocation_method', None) + self.subnet = kwargs.get('subnet', None) + self.public_ip_address = kwargs.get('public_ip_address', None) + self.public_ip_prefix = kwargs.get('public_ip_prefix', None) + self.provisioning_state = kwargs.get('provisioning_state', None) + self.name = kwargs.get('name', None) + self.etag = kwargs.get('etag', None) + self.zones = kwargs.get('zones', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/frontend_ip_configuration_paged.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/frontend_ip_configuration_paged.py new file mode 100644 index 000000000000..33d705c1d28c --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/frontend_ip_configuration_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class FrontendIPConfigurationPaged(Paged): + """ + A paging container for iterating over a list of :class:`FrontendIPConfiguration ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[FrontendIPConfiguration]'} + } + + def __init__(self, *args, **kwargs): + + super(FrontendIPConfigurationPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/frontend_ip_configuration_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/frontend_ip_configuration_py3.py new file mode 100644 index 000000000000..43b1ae6f4f35 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/frontend_ip_configuration_py3.py @@ -0,0 +1,105 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource_py3 import SubResource + + +class FrontendIPConfiguration(SubResource): + """Frontend IP address of the load balancer. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar inbound_nat_rules: Read only. Inbound rules URIs that use this + frontend IP. + :vartype inbound_nat_rules: + list[~azure.mgmt.network.v2018_10_01.models.SubResource] + :ivar inbound_nat_pools: Read only. Inbound pools URIs that use this + frontend IP. + :vartype inbound_nat_pools: + list[~azure.mgmt.network.v2018_10_01.models.SubResource] + :ivar outbound_rules: Read only. Outbound rules URIs that use this + frontend IP. + :vartype outbound_rules: + list[~azure.mgmt.network.v2018_10_01.models.SubResource] + :ivar load_balancing_rules: Gets load balancing rules URIs that use this + frontend IP. + :vartype load_balancing_rules: + list[~azure.mgmt.network.v2018_10_01.models.SubResource] + :param private_ip_address: The private IP address of the IP configuration. + :type private_ip_address: str + :param private_ip_allocation_method: The Private IP allocation method. + Possible values are: 'Static' and 'Dynamic'. Possible values include: + 'Static', 'Dynamic' + :type private_ip_allocation_method: str or + ~azure.mgmt.network.v2018_10_01.models.IPAllocationMethod + :param subnet: The reference of the subnet resource. + :type subnet: ~azure.mgmt.network.v2018_10_01.models.Subnet + :param public_ip_address: The reference of the Public IP resource. + :type public_ip_address: + ~azure.mgmt.network.v2018_10_01.models.PublicIPAddress + :param public_ip_prefix: The reference of the Public IP Prefix resource. + :type public_ip_prefix: ~azure.mgmt.network.v2018_10_01.models.SubResource + :param provisioning_state: Gets the provisioning state of the public IP + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + :param zones: A list of availability zones denoting the IP allocated for + the resource needs to come from. + :type zones: list[str] + """ + + _validation = { + 'inbound_nat_rules': {'readonly': True}, + 'inbound_nat_pools': {'readonly': True}, + 'outbound_rules': {'readonly': True}, + 'load_balancing_rules': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'inbound_nat_rules': {'key': 'properties.inboundNatRules', 'type': '[SubResource]'}, + 'inbound_nat_pools': {'key': 'properties.inboundNatPools', 'type': '[SubResource]'}, + 'outbound_rules': {'key': 'properties.outboundRules', 'type': '[SubResource]'}, + 'load_balancing_rules': {'key': 'properties.loadBalancingRules', 'type': '[SubResource]'}, + 'private_ip_address': {'key': 'properties.privateIPAddress', 'type': 'str'}, + 'private_ip_allocation_method': {'key': 'properties.privateIPAllocationMethod', 'type': 'str'}, + 'subnet': {'key': 'properties.subnet', 'type': 'Subnet'}, + 'public_ip_address': {'key': 'properties.publicIPAddress', 'type': 'PublicIPAddress'}, + 'public_ip_prefix': {'key': 'properties.publicIPPrefix', 'type': 'SubResource'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'zones': {'key': 'zones', 'type': '[str]'}, + } + + def __init__(self, *, id: str=None, private_ip_address: str=None, private_ip_allocation_method=None, subnet=None, public_ip_address=None, public_ip_prefix=None, provisioning_state: str=None, name: str=None, etag: str=None, zones=None, **kwargs) -> None: + super(FrontendIPConfiguration, self).__init__(id=id, **kwargs) + self.inbound_nat_rules = None + self.inbound_nat_pools = None + self.outbound_rules = None + self.load_balancing_rules = None + self.private_ip_address = private_ip_address + self.private_ip_allocation_method = private_ip_allocation_method + self.subnet = subnet + self.public_ip_address = public_ip_address + self.public_ip_prefix = public_ip_prefix + self.provisioning_state = provisioning_state + self.name = name + self.etag = etag + self.zones = zones diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/gateway_route.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/gateway_route.py new file mode 100644 index 000000000000..0b96cb661e70 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/gateway_route.py @@ -0,0 +1,65 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class GatewayRoute(Model): + """Gateway routing details. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar local_address: The gateway's local address + :vartype local_address: str + :ivar network: The route's network prefix + :vartype network: str + :ivar next_hop: The route's next hop + :vartype next_hop: str + :ivar source_peer: The peer this route was learned from + :vartype source_peer: str + :ivar origin: The source this route was learned from + :vartype origin: str + :ivar as_path: The route's AS path sequence + :vartype as_path: str + :ivar weight: The route's weight + :vartype weight: int + """ + + _validation = { + 'local_address': {'readonly': True}, + 'network': {'readonly': True}, + 'next_hop': {'readonly': True}, + 'source_peer': {'readonly': True}, + 'origin': {'readonly': True}, + 'as_path': {'readonly': True}, + 'weight': {'readonly': True}, + } + + _attribute_map = { + 'local_address': {'key': 'localAddress', 'type': 'str'}, + 'network': {'key': 'network', 'type': 'str'}, + 'next_hop': {'key': 'nextHop', 'type': 'str'}, + 'source_peer': {'key': 'sourcePeer', 'type': 'str'}, + 'origin': {'key': 'origin', 'type': 'str'}, + 'as_path': {'key': 'asPath', 'type': 'str'}, + 'weight': {'key': 'weight', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(GatewayRoute, self).__init__(**kwargs) + self.local_address = None + self.network = None + self.next_hop = None + self.source_peer = None + self.origin = None + self.as_path = None + self.weight = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/gateway_route_list_result.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/gateway_route_list_result.py new file mode 100644 index 000000000000..1873b1bc68db --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/gateway_route_list_result.py @@ -0,0 +1,28 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class GatewayRouteListResult(Model): + """List of virtual network gateway routes. + + :param value: List of gateway routes + :type value: list[~azure.mgmt.network.v2018_10_01.models.GatewayRoute] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[GatewayRoute]'}, + } + + def __init__(self, **kwargs): + super(GatewayRouteListResult, self).__init__(**kwargs) + self.value = kwargs.get('value', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/gateway_route_list_result_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/gateway_route_list_result_py3.py new file mode 100644 index 000000000000..7d63a4323430 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/gateway_route_list_result_py3.py @@ -0,0 +1,28 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class GatewayRouteListResult(Model): + """List of virtual network gateway routes. + + :param value: List of gateway routes + :type value: list[~azure.mgmt.network.v2018_10_01.models.GatewayRoute] + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[GatewayRoute]'}, + } + + def __init__(self, *, value=None, **kwargs) -> None: + super(GatewayRouteListResult, self).__init__(**kwargs) + self.value = value diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/gateway_route_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/gateway_route_py3.py new file mode 100644 index 000000000000..1aa3ba60605f --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/gateway_route_py3.py @@ -0,0 +1,65 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class GatewayRoute(Model): + """Gateway routing details. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar local_address: The gateway's local address + :vartype local_address: str + :ivar network: The route's network prefix + :vartype network: str + :ivar next_hop: The route's next hop + :vartype next_hop: str + :ivar source_peer: The peer this route was learned from + :vartype source_peer: str + :ivar origin: The source this route was learned from + :vartype origin: str + :ivar as_path: The route's AS path sequence + :vartype as_path: str + :ivar weight: The route's weight + :vartype weight: int + """ + + _validation = { + 'local_address': {'readonly': True}, + 'network': {'readonly': True}, + 'next_hop': {'readonly': True}, + 'source_peer': {'readonly': True}, + 'origin': {'readonly': True}, + 'as_path': {'readonly': True}, + 'weight': {'readonly': True}, + } + + _attribute_map = { + 'local_address': {'key': 'localAddress', 'type': 'str'}, + 'network': {'key': 'network', 'type': 'str'}, + 'next_hop': {'key': 'nextHop', 'type': 'str'}, + 'source_peer': {'key': 'sourcePeer', 'type': 'str'}, + 'origin': {'key': 'origin', 'type': 'str'}, + 'as_path': {'key': 'asPath', 'type': 'str'}, + 'weight': {'key': 'weight', 'type': 'int'}, + } + + def __init__(self, **kwargs) -> None: + super(GatewayRoute, self).__init__(**kwargs) + self.local_address = None + self.network = None + self.next_hop = None + self.source_peer = None + self.origin = None + self.as_path = None + self.weight = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/get_vpn_sites_configuration_request.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/get_vpn_sites_configuration_request.py new file mode 100644 index 000000000000..7c8732192d6d --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/get_vpn_sites_configuration_request.py @@ -0,0 +1,34 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class GetVpnSitesConfigurationRequest(Model): + """List of Vpn-Sites. + + :param vpn_sites: List of resource-ids of the vpn-sites for which config + is to be downloaded. + :type vpn_sites: list[str] + :param output_blob_sas_url: The sas-url to download the configurations for + vpn-sites + :type output_blob_sas_url: str + """ + + _attribute_map = { + 'vpn_sites': {'key': 'vpnSites', 'type': '[str]'}, + 'output_blob_sas_url': {'key': 'outputBlobSasUrl', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(GetVpnSitesConfigurationRequest, self).__init__(**kwargs) + self.vpn_sites = kwargs.get('vpn_sites', None) + self.output_blob_sas_url = kwargs.get('output_blob_sas_url', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/get_vpn_sites_configuration_request_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/get_vpn_sites_configuration_request_py3.py new file mode 100644 index 000000000000..f15efad67f06 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/get_vpn_sites_configuration_request_py3.py @@ -0,0 +1,34 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class GetVpnSitesConfigurationRequest(Model): + """List of Vpn-Sites. + + :param vpn_sites: List of resource-ids of the vpn-sites for which config + is to be downloaded. + :type vpn_sites: list[str] + :param output_blob_sas_url: The sas-url to download the configurations for + vpn-sites + :type output_blob_sas_url: str + """ + + _attribute_map = { + 'vpn_sites': {'key': 'vpnSites', 'type': '[str]'}, + 'output_blob_sas_url': {'key': 'outputBlobSasUrl', 'type': 'str'}, + } + + def __init__(self, *, vpn_sites=None, output_blob_sas_url: str=None, **kwargs) -> None: + super(GetVpnSitesConfigurationRequest, self).__init__(**kwargs) + self.vpn_sites = vpn_sites + self.output_blob_sas_url = output_blob_sas_url diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/http_configuration.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/http_configuration.py new file mode 100644 index 000000000000..e6c4dc0f3b90 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/http_configuration.py @@ -0,0 +1,36 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class HTTPConfiguration(Model): + """HTTP configuration of the connectivity check. + + :param method: HTTP method. Possible values include: 'Get' + :type method: str or ~azure.mgmt.network.v2018_10_01.models.HTTPMethod + :param headers: List of HTTP headers. + :type headers: list[~azure.mgmt.network.v2018_10_01.models.HTTPHeader] + :param valid_status_codes: Valid status codes. + :type valid_status_codes: list[int] + """ + + _attribute_map = { + 'method': {'key': 'method', 'type': 'str'}, + 'headers': {'key': 'headers', 'type': '[HTTPHeader]'}, + 'valid_status_codes': {'key': 'validStatusCodes', 'type': '[int]'}, + } + + def __init__(self, **kwargs): + super(HTTPConfiguration, self).__init__(**kwargs) + self.method = kwargs.get('method', None) + self.headers = kwargs.get('headers', None) + self.valid_status_codes = kwargs.get('valid_status_codes', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/http_configuration_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/http_configuration_py3.py new file mode 100644 index 000000000000..9b2f74a4646d --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/http_configuration_py3.py @@ -0,0 +1,36 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class HTTPConfiguration(Model): + """HTTP configuration of the connectivity check. + + :param method: HTTP method. Possible values include: 'Get' + :type method: str or ~azure.mgmt.network.v2018_10_01.models.HTTPMethod + :param headers: List of HTTP headers. + :type headers: list[~azure.mgmt.network.v2018_10_01.models.HTTPHeader] + :param valid_status_codes: Valid status codes. + :type valid_status_codes: list[int] + """ + + _attribute_map = { + 'method': {'key': 'method', 'type': 'str'}, + 'headers': {'key': 'headers', 'type': '[HTTPHeader]'}, + 'valid_status_codes': {'key': 'validStatusCodes', 'type': '[int]'}, + } + + def __init__(self, *, method=None, headers=None, valid_status_codes=None, **kwargs) -> None: + super(HTTPConfiguration, self).__init__(**kwargs) + self.method = method + self.headers = headers + self.valid_status_codes = valid_status_codes diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/http_header.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/http_header.py new file mode 100644 index 000000000000..0d0a9a93cd5a --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/http_header.py @@ -0,0 +1,32 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class HTTPHeader(Model): + """Describes the HTTP header. + + :param name: The name in HTTP header. + :type name: str + :param value: The value in HTTP header. + :type value: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(HTTPHeader, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.value = kwargs.get('value', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/http_header_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/http_header_py3.py new file mode 100644 index 000000000000..366f1a2bf681 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/http_header_py3.py @@ -0,0 +1,32 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class HTTPHeader(Model): + """Describes the HTTP header. + + :param name: The name in HTTP header. + :type name: str + :param value: The value in HTTP header. + :type value: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__(self, *, name: str=None, value: str=None, **kwargs) -> None: + super(HTTPHeader, self).__init__(**kwargs) + self.name = name + self.value = value diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/hub_virtual_network_connection.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/hub_virtual_network_connection.py new file mode 100644 index 000000000000..7bdae7b580a4 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/hub_virtual_network_connection.py @@ -0,0 +1,69 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource import SubResource + + +class HubVirtualNetworkConnection(SubResource): + """HubVirtualNetworkConnection Resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :param remote_virtual_network: Reference to the remote virtual network. + :type remote_virtual_network: + ~azure.mgmt.network.v2018_10_01.models.SubResource + :param allow_hub_to_remote_vnet_transit: VirtualHub to RemoteVnet transit + to enabled or not. + :type allow_hub_to_remote_vnet_transit: bool + :param allow_remote_vnet_to_use_hub_vnet_gateways: Allow RemoteVnet to use + Virtual Hub's gateways. + :type allow_remote_vnet_to_use_hub_vnet_gateways: bool + :param enable_internet_security: Enable internet security + :type enable_internet_security: bool + :param provisioning_state: The provisioning state of the resource. + Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + :type provisioning_state: str or + ~azure.mgmt.network.v2018_10_01.models.ProvisioningState + :param name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :ivar etag: Gets a unique read-only string that changes whenever the + resource is updated. + :vartype etag: str + """ + + _validation = { + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'remote_virtual_network': {'key': 'properties.remoteVirtualNetwork', 'type': 'SubResource'}, + 'allow_hub_to_remote_vnet_transit': {'key': 'properties.allowHubToRemoteVnetTransit', 'type': 'bool'}, + 'allow_remote_vnet_to_use_hub_vnet_gateways': {'key': 'properties.allowRemoteVnetToUseHubVnetGateways', 'type': 'bool'}, + 'enable_internet_security': {'key': 'properties.enableInternetSecurity', 'type': 'bool'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(HubVirtualNetworkConnection, self).__init__(**kwargs) + self.remote_virtual_network = kwargs.get('remote_virtual_network', None) + self.allow_hub_to_remote_vnet_transit = kwargs.get('allow_hub_to_remote_vnet_transit', None) + self.allow_remote_vnet_to_use_hub_vnet_gateways = kwargs.get('allow_remote_vnet_to_use_hub_vnet_gateways', None) + self.enable_internet_security = kwargs.get('enable_internet_security', None) + self.provisioning_state = kwargs.get('provisioning_state', None) + self.name = kwargs.get('name', None) + self.etag = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/hub_virtual_network_connection_paged.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/hub_virtual_network_connection_paged.py new file mode 100644 index 000000000000..92a3acf849fd --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/hub_virtual_network_connection_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class HubVirtualNetworkConnectionPaged(Paged): + """ + A paging container for iterating over a list of :class:`HubVirtualNetworkConnection ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[HubVirtualNetworkConnection]'} + } + + def __init__(self, *args, **kwargs): + + super(HubVirtualNetworkConnectionPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/hub_virtual_network_connection_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/hub_virtual_network_connection_py3.py new file mode 100644 index 000000000000..338f77754aa2 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/hub_virtual_network_connection_py3.py @@ -0,0 +1,69 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource_py3 import SubResource + + +class HubVirtualNetworkConnection(SubResource): + """HubVirtualNetworkConnection Resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :param remote_virtual_network: Reference to the remote virtual network. + :type remote_virtual_network: + ~azure.mgmt.network.v2018_10_01.models.SubResource + :param allow_hub_to_remote_vnet_transit: VirtualHub to RemoteVnet transit + to enabled or not. + :type allow_hub_to_remote_vnet_transit: bool + :param allow_remote_vnet_to_use_hub_vnet_gateways: Allow RemoteVnet to use + Virtual Hub's gateways. + :type allow_remote_vnet_to_use_hub_vnet_gateways: bool + :param enable_internet_security: Enable internet security + :type enable_internet_security: bool + :param provisioning_state: The provisioning state of the resource. + Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + :type provisioning_state: str or + ~azure.mgmt.network.v2018_10_01.models.ProvisioningState + :param name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :ivar etag: Gets a unique read-only string that changes whenever the + resource is updated. + :vartype etag: str + """ + + _validation = { + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'remote_virtual_network': {'key': 'properties.remoteVirtualNetwork', 'type': 'SubResource'}, + 'allow_hub_to_remote_vnet_transit': {'key': 'properties.allowHubToRemoteVnetTransit', 'type': 'bool'}, + 'allow_remote_vnet_to_use_hub_vnet_gateways': {'key': 'properties.allowRemoteVnetToUseHubVnetGateways', 'type': 'bool'}, + 'enable_internet_security': {'key': 'properties.enableInternetSecurity', 'type': 'bool'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, remote_virtual_network=None, allow_hub_to_remote_vnet_transit: bool=None, allow_remote_vnet_to_use_hub_vnet_gateways: bool=None, enable_internet_security: bool=None, provisioning_state=None, name: str=None, **kwargs) -> None: + super(HubVirtualNetworkConnection, self).__init__(id=id, **kwargs) + self.remote_virtual_network = remote_virtual_network + self.allow_hub_to_remote_vnet_transit = allow_hub_to_remote_vnet_transit + self.allow_remote_vnet_to_use_hub_vnet_gateways = allow_remote_vnet_to_use_hub_vnet_gateways + self.enable_internet_security = enable_internet_security + self.provisioning_state = provisioning_state + self.name = name + self.etag = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/inbound_nat_pool.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/inbound_nat_pool.py new file mode 100644 index 000000000000..72fe2f62a67c --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/inbound_nat_pool.py @@ -0,0 +1,100 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource import SubResource + + +class InboundNatPool(SubResource): + """Inbound NAT pool of the load balancer. + + All required parameters must be populated in order to send to Azure. + + :param id: Resource ID. + :type id: str + :param frontend_ip_configuration: A reference to frontend IP addresses. + :type frontend_ip_configuration: + ~azure.mgmt.network.v2018_10_01.models.SubResource + :param protocol: Required. Possible values include: 'Udp', 'Tcp', 'All' + :type protocol: str or + ~azure.mgmt.network.v2018_10_01.models.TransportProtocol + :param frontend_port_range_start: Required. The first port number in the + range of external ports that will be used to provide Inbound Nat to NICs + associated with a load balancer. Acceptable values range between 1 and + 65534. + :type frontend_port_range_start: int + :param frontend_port_range_end: Required. The last port number in the + range of external ports that will be used to provide Inbound Nat to NICs + associated with a load balancer. Acceptable values range between 1 and + 65535. + :type frontend_port_range_end: int + :param backend_port: Required. The port used for internal connections on + the endpoint. Acceptable values are between 1 and 65535. + :type backend_port: int + :param idle_timeout_in_minutes: The timeout for the TCP idle connection. + The value can be set between 4 and 30 minutes. The default value is 4 + minutes. This element is only used when the protocol is set to TCP. + :type idle_timeout_in_minutes: int + :param enable_floating_ip: Configures a virtual machine's endpoint for the + floating IP capability required to configure a SQL AlwaysOn Availability + Group. This setting is required when using the SQL AlwaysOn Availability + Groups in SQL server. This setting can't be changed after you create the + endpoint. + :type enable_floating_ip: bool + :param enable_tcp_reset: Receive bidirectional TCP Reset on TCP flow idle + timeout or unexpected connection termination. This element is only used + when the protocol is set to TCP. + :type enable_tcp_reset: bool + :param provisioning_state: Gets the provisioning state of the PublicIP + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _validation = { + 'protocol': {'required': True}, + 'frontend_port_range_start': {'required': True}, + 'frontend_port_range_end': {'required': True}, + 'backend_port': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'frontend_ip_configuration': {'key': 'properties.frontendIPConfiguration', 'type': 'SubResource'}, + 'protocol': {'key': 'properties.protocol', 'type': 'str'}, + 'frontend_port_range_start': {'key': 'properties.frontendPortRangeStart', 'type': 'int'}, + 'frontend_port_range_end': {'key': 'properties.frontendPortRangeEnd', 'type': 'int'}, + 'backend_port': {'key': 'properties.backendPort', 'type': 'int'}, + 'idle_timeout_in_minutes': {'key': 'properties.idleTimeoutInMinutes', 'type': 'int'}, + 'enable_floating_ip': {'key': 'properties.enableFloatingIP', 'type': 'bool'}, + 'enable_tcp_reset': {'key': 'properties.enableTcpReset', 'type': 'bool'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(InboundNatPool, self).__init__(**kwargs) + self.frontend_ip_configuration = kwargs.get('frontend_ip_configuration', None) + self.protocol = kwargs.get('protocol', None) + self.frontend_port_range_start = kwargs.get('frontend_port_range_start', None) + self.frontend_port_range_end = kwargs.get('frontend_port_range_end', None) + self.backend_port = kwargs.get('backend_port', None) + self.idle_timeout_in_minutes = kwargs.get('idle_timeout_in_minutes', None) + self.enable_floating_ip = kwargs.get('enable_floating_ip', None) + self.enable_tcp_reset = kwargs.get('enable_tcp_reset', None) + self.provisioning_state = kwargs.get('provisioning_state', None) + self.name = kwargs.get('name', None) + self.etag = kwargs.get('etag', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/inbound_nat_pool_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/inbound_nat_pool_py3.py new file mode 100644 index 000000000000..fa283f139787 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/inbound_nat_pool_py3.py @@ -0,0 +1,100 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource_py3 import SubResource + + +class InboundNatPool(SubResource): + """Inbound NAT pool of the load balancer. + + All required parameters must be populated in order to send to Azure. + + :param id: Resource ID. + :type id: str + :param frontend_ip_configuration: A reference to frontend IP addresses. + :type frontend_ip_configuration: + ~azure.mgmt.network.v2018_10_01.models.SubResource + :param protocol: Required. Possible values include: 'Udp', 'Tcp', 'All' + :type protocol: str or + ~azure.mgmt.network.v2018_10_01.models.TransportProtocol + :param frontend_port_range_start: Required. The first port number in the + range of external ports that will be used to provide Inbound Nat to NICs + associated with a load balancer. Acceptable values range between 1 and + 65534. + :type frontend_port_range_start: int + :param frontend_port_range_end: Required. The last port number in the + range of external ports that will be used to provide Inbound Nat to NICs + associated with a load balancer. Acceptable values range between 1 and + 65535. + :type frontend_port_range_end: int + :param backend_port: Required. The port used for internal connections on + the endpoint. Acceptable values are between 1 and 65535. + :type backend_port: int + :param idle_timeout_in_minutes: The timeout for the TCP idle connection. + The value can be set between 4 and 30 minutes. The default value is 4 + minutes. This element is only used when the protocol is set to TCP. + :type idle_timeout_in_minutes: int + :param enable_floating_ip: Configures a virtual machine's endpoint for the + floating IP capability required to configure a SQL AlwaysOn Availability + Group. This setting is required when using the SQL AlwaysOn Availability + Groups in SQL server. This setting can't be changed after you create the + endpoint. + :type enable_floating_ip: bool + :param enable_tcp_reset: Receive bidirectional TCP Reset on TCP flow idle + timeout or unexpected connection termination. This element is only used + when the protocol is set to TCP. + :type enable_tcp_reset: bool + :param provisioning_state: Gets the provisioning state of the PublicIP + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _validation = { + 'protocol': {'required': True}, + 'frontend_port_range_start': {'required': True}, + 'frontend_port_range_end': {'required': True}, + 'backend_port': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'frontend_ip_configuration': {'key': 'properties.frontendIPConfiguration', 'type': 'SubResource'}, + 'protocol': {'key': 'properties.protocol', 'type': 'str'}, + 'frontend_port_range_start': {'key': 'properties.frontendPortRangeStart', 'type': 'int'}, + 'frontend_port_range_end': {'key': 'properties.frontendPortRangeEnd', 'type': 'int'}, + 'backend_port': {'key': 'properties.backendPort', 'type': 'int'}, + 'idle_timeout_in_minutes': {'key': 'properties.idleTimeoutInMinutes', 'type': 'int'}, + 'enable_floating_ip': {'key': 'properties.enableFloatingIP', 'type': 'bool'}, + 'enable_tcp_reset': {'key': 'properties.enableTcpReset', 'type': 'bool'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, *, protocol, frontend_port_range_start: int, frontend_port_range_end: int, backend_port: int, id: str=None, frontend_ip_configuration=None, idle_timeout_in_minutes: int=None, enable_floating_ip: bool=None, enable_tcp_reset: bool=None, provisioning_state: str=None, name: str=None, etag: str=None, **kwargs) -> None: + super(InboundNatPool, self).__init__(id=id, **kwargs) + self.frontend_ip_configuration = frontend_ip_configuration + self.protocol = protocol + self.frontend_port_range_start = frontend_port_range_start + self.frontend_port_range_end = frontend_port_range_end + self.backend_port = backend_port + self.idle_timeout_in_minutes = idle_timeout_in_minutes + self.enable_floating_ip = enable_floating_ip + self.enable_tcp_reset = enable_tcp_reset + self.provisioning_state = provisioning_state + self.name = name + self.etag = etag diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/inbound_nat_rule.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/inbound_nat_rule.py new file mode 100644 index 000000000000..944a04bdac7f --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/inbound_nat_rule.py @@ -0,0 +1,97 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource import SubResource + + +class InboundNatRule(SubResource): + """Inbound NAT rule of the load balancer. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :param frontend_ip_configuration: A reference to frontend IP addresses. + :type frontend_ip_configuration: + ~azure.mgmt.network.v2018_10_01.models.SubResource + :ivar backend_ip_configuration: A reference to a private IP address + defined on a network interface of a VM. Traffic sent to the frontend port + of each of the frontend IP configurations is forwarded to the backend IP. + :vartype backend_ip_configuration: + ~azure.mgmt.network.v2018_10_01.models.NetworkInterfaceIPConfiguration + :param protocol: Possible values include: 'Udp', 'Tcp', 'All' + :type protocol: str or + ~azure.mgmt.network.v2018_10_01.models.TransportProtocol + :param frontend_port: The port for the external endpoint. Port numbers for + each rule must be unique within the Load Balancer. Acceptable values range + from 1 to 65534. + :type frontend_port: int + :param backend_port: The port used for the internal endpoint. Acceptable + values range from 1 to 65535. + :type backend_port: int + :param idle_timeout_in_minutes: The timeout for the TCP idle connection. + The value can be set between 4 and 30 minutes. The default value is 4 + minutes. This element is only used when the protocol is set to TCP. + :type idle_timeout_in_minutes: int + :param enable_floating_ip: Configures a virtual machine's endpoint for the + floating IP capability required to configure a SQL AlwaysOn Availability + Group. This setting is required when using the SQL AlwaysOn Availability + Groups in SQL server. This setting can't be changed after you create the + endpoint. + :type enable_floating_ip: bool + :param enable_tcp_reset: Receive bidirectional TCP Reset on TCP flow idle + timeout or unexpected connection termination. This element is only used + when the protocol is set to TCP. + :type enable_tcp_reset: bool + :param provisioning_state: Gets the provisioning state of the public IP + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param name: Gets name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _validation = { + 'backend_ip_configuration': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'frontend_ip_configuration': {'key': 'properties.frontendIPConfiguration', 'type': 'SubResource'}, + 'backend_ip_configuration': {'key': 'properties.backendIPConfiguration', 'type': 'NetworkInterfaceIPConfiguration'}, + 'protocol': {'key': 'properties.protocol', 'type': 'str'}, + 'frontend_port': {'key': 'properties.frontendPort', 'type': 'int'}, + 'backend_port': {'key': 'properties.backendPort', 'type': 'int'}, + 'idle_timeout_in_minutes': {'key': 'properties.idleTimeoutInMinutes', 'type': 'int'}, + 'enable_floating_ip': {'key': 'properties.enableFloatingIP', 'type': 'bool'}, + 'enable_tcp_reset': {'key': 'properties.enableTcpReset', 'type': 'bool'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(InboundNatRule, self).__init__(**kwargs) + self.frontend_ip_configuration = kwargs.get('frontend_ip_configuration', None) + self.backend_ip_configuration = None + self.protocol = kwargs.get('protocol', None) + self.frontend_port = kwargs.get('frontend_port', None) + self.backend_port = kwargs.get('backend_port', None) + self.idle_timeout_in_minutes = kwargs.get('idle_timeout_in_minutes', None) + self.enable_floating_ip = kwargs.get('enable_floating_ip', None) + self.enable_tcp_reset = kwargs.get('enable_tcp_reset', None) + self.provisioning_state = kwargs.get('provisioning_state', None) + self.name = kwargs.get('name', None) + self.etag = kwargs.get('etag', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/inbound_nat_rule_paged.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/inbound_nat_rule_paged.py new file mode 100644 index 000000000000..ffa0af3343f6 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/inbound_nat_rule_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class InboundNatRulePaged(Paged): + """ + A paging container for iterating over a list of :class:`InboundNatRule ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[InboundNatRule]'} + } + + def __init__(self, *args, **kwargs): + + super(InboundNatRulePaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/inbound_nat_rule_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/inbound_nat_rule_py3.py new file mode 100644 index 000000000000..713a6038794b --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/inbound_nat_rule_py3.py @@ -0,0 +1,97 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource_py3 import SubResource + + +class InboundNatRule(SubResource): + """Inbound NAT rule of the load balancer. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :param frontend_ip_configuration: A reference to frontend IP addresses. + :type frontend_ip_configuration: + ~azure.mgmt.network.v2018_10_01.models.SubResource + :ivar backend_ip_configuration: A reference to a private IP address + defined on a network interface of a VM. Traffic sent to the frontend port + of each of the frontend IP configurations is forwarded to the backend IP. + :vartype backend_ip_configuration: + ~azure.mgmt.network.v2018_10_01.models.NetworkInterfaceIPConfiguration + :param protocol: Possible values include: 'Udp', 'Tcp', 'All' + :type protocol: str or + ~azure.mgmt.network.v2018_10_01.models.TransportProtocol + :param frontend_port: The port for the external endpoint. Port numbers for + each rule must be unique within the Load Balancer. Acceptable values range + from 1 to 65534. + :type frontend_port: int + :param backend_port: The port used for the internal endpoint. Acceptable + values range from 1 to 65535. + :type backend_port: int + :param idle_timeout_in_minutes: The timeout for the TCP idle connection. + The value can be set between 4 and 30 minutes. The default value is 4 + minutes. This element is only used when the protocol is set to TCP. + :type idle_timeout_in_minutes: int + :param enable_floating_ip: Configures a virtual machine's endpoint for the + floating IP capability required to configure a SQL AlwaysOn Availability + Group. This setting is required when using the SQL AlwaysOn Availability + Groups in SQL server. This setting can't be changed after you create the + endpoint. + :type enable_floating_ip: bool + :param enable_tcp_reset: Receive bidirectional TCP Reset on TCP flow idle + timeout or unexpected connection termination. This element is only used + when the protocol is set to TCP. + :type enable_tcp_reset: bool + :param provisioning_state: Gets the provisioning state of the public IP + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param name: Gets name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _validation = { + 'backend_ip_configuration': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'frontend_ip_configuration': {'key': 'properties.frontendIPConfiguration', 'type': 'SubResource'}, + 'backend_ip_configuration': {'key': 'properties.backendIPConfiguration', 'type': 'NetworkInterfaceIPConfiguration'}, + 'protocol': {'key': 'properties.protocol', 'type': 'str'}, + 'frontend_port': {'key': 'properties.frontendPort', 'type': 'int'}, + 'backend_port': {'key': 'properties.backendPort', 'type': 'int'}, + 'idle_timeout_in_minutes': {'key': 'properties.idleTimeoutInMinutes', 'type': 'int'}, + 'enable_floating_ip': {'key': 'properties.enableFloatingIP', 'type': 'bool'}, + 'enable_tcp_reset': {'key': 'properties.enableTcpReset', 'type': 'bool'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, frontend_ip_configuration=None, protocol=None, frontend_port: int=None, backend_port: int=None, idle_timeout_in_minutes: int=None, enable_floating_ip: bool=None, enable_tcp_reset: bool=None, provisioning_state: str=None, name: str=None, etag: str=None, **kwargs) -> None: + super(InboundNatRule, self).__init__(id=id, **kwargs) + self.frontend_ip_configuration = frontend_ip_configuration + self.backend_ip_configuration = None + self.protocol = protocol + self.frontend_port = frontend_port + self.backend_port = backend_port + self.idle_timeout_in_minutes = idle_timeout_in_minutes + self.enable_floating_ip = enable_floating_ip + self.enable_tcp_reset = enable_tcp_reset + self.provisioning_state = provisioning_state + self.name = name + self.etag = etag diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/interface_endpoint.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/interface_endpoint.py new file mode 100644 index 000000000000..7f2b97824aee --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/interface_endpoint.py @@ -0,0 +1,87 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource import Resource + + +class InterfaceEndpoint(Resource): + """Interface endpoint resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param fqdn: A first-party service's FQDN that is mapped to the private IP + allocated via this interface endpoint. + :type fqdn: str + :param endpoint_service: A reference to the service being brought into the + virtual network. + :type endpoint_service: + ~azure.mgmt.network.v2018_10_01.models.EndpointService + :param subnet: The ID of the subnet from which the private IP will be + allocated. + :type subnet: ~azure.mgmt.network.v2018_10_01.models.Subnet + :ivar network_interfaces: Gets an array of references to the network + interfaces created for this interface endpoint. + :vartype network_interfaces: + list[~azure.mgmt.network.v2018_10_01.models.NetworkInterface] + :ivar owner: A read-only property that identifies who created this + interface endpoint. + :vartype owner: str + :ivar provisioning_state: The provisioning state of the interface + endpoint. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :vartype provisioning_state: str + :param etag: Gets a unique read-only string that changes whenever the + resource is updated. + :type etag: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'network_interfaces': {'readonly': True}, + 'owner': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'fqdn': {'key': 'properties.fqdn', 'type': 'str'}, + 'endpoint_service': {'key': 'properties.endpointService', 'type': 'EndpointService'}, + 'subnet': {'key': 'properties.subnet', 'type': 'Subnet'}, + 'network_interfaces': {'key': 'properties.networkInterfaces', 'type': '[NetworkInterface]'}, + 'owner': {'key': 'properties.owner', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(InterfaceEndpoint, self).__init__(**kwargs) + self.fqdn = kwargs.get('fqdn', None) + self.endpoint_service = kwargs.get('endpoint_service', None) + self.subnet = kwargs.get('subnet', None) + self.network_interfaces = None + self.owner = None + self.provisioning_state = None + self.etag = kwargs.get('etag', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/interface_endpoint_paged.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/interface_endpoint_paged.py new file mode 100644 index 000000000000..57d310cfdba2 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/interface_endpoint_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class InterfaceEndpointPaged(Paged): + """ + A paging container for iterating over a list of :class:`InterfaceEndpoint ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[InterfaceEndpoint]'} + } + + def __init__(self, *args, **kwargs): + + super(InterfaceEndpointPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/interface_endpoint_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/interface_endpoint_py3.py new file mode 100644 index 000000000000..50caba9dd4f2 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/interface_endpoint_py3.py @@ -0,0 +1,87 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource_py3 import Resource + + +class InterfaceEndpoint(Resource): + """Interface endpoint resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param fqdn: A first-party service's FQDN that is mapped to the private IP + allocated via this interface endpoint. + :type fqdn: str + :param endpoint_service: A reference to the service being brought into the + virtual network. + :type endpoint_service: + ~azure.mgmt.network.v2018_10_01.models.EndpointService + :param subnet: The ID of the subnet from which the private IP will be + allocated. + :type subnet: ~azure.mgmt.network.v2018_10_01.models.Subnet + :ivar network_interfaces: Gets an array of references to the network + interfaces created for this interface endpoint. + :vartype network_interfaces: + list[~azure.mgmt.network.v2018_10_01.models.NetworkInterface] + :ivar owner: A read-only property that identifies who created this + interface endpoint. + :vartype owner: str + :ivar provisioning_state: The provisioning state of the interface + endpoint. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :vartype provisioning_state: str + :param etag: Gets a unique read-only string that changes whenever the + resource is updated. + :type etag: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'network_interfaces': {'readonly': True}, + 'owner': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'fqdn': {'key': 'properties.fqdn', 'type': 'str'}, + 'endpoint_service': {'key': 'properties.endpointService', 'type': 'EndpointService'}, + 'subnet': {'key': 'properties.subnet', 'type': 'Subnet'}, + 'network_interfaces': {'key': 'properties.networkInterfaces', 'type': '[NetworkInterface]'}, + 'owner': {'key': 'properties.owner', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, location: str=None, tags=None, fqdn: str=None, endpoint_service=None, subnet=None, etag: str=None, **kwargs) -> None: + super(InterfaceEndpoint, self).__init__(id=id, location=location, tags=tags, **kwargs) + self.fqdn = fqdn + self.endpoint_service = endpoint_service + self.subnet = subnet + self.network_interfaces = None + self.owner = None + self.provisioning_state = None + self.etag = etag diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/ip_address_availability_result.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/ip_address_availability_result.py new file mode 100644 index 000000000000..6bcf52275711 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/ip_address_availability_result.py @@ -0,0 +1,33 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class IPAddressAvailabilityResult(Model): + """Response for CheckIPAddressAvailability API service call. + + :param available: Private IP address availability. + :type available: bool + :param available_ip_addresses: Contains other available private IP + addresses if the asked for address is taken. + :type available_ip_addresses: list[str] + """ + + _attribute_map = { + 'available': {'key': 'available', 'type': 'bool'}, + 'available_ip_addresses': {'key': 'availableIPAddresses', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(IPAddressAvailabilityResult, self).__init__(**kwargs) + self.available = kwargs.get('available', None) + self.available_ip_addresses = kwargs.get('available_ip_addresses', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/ip_address_availability_result_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/ip_address_availability_result_py3.py new file mode 100644 index 000000000000..e5fc4340d370 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/ip_address_availability_result_py3.py @@ -0,0 +1,33 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class IPAddressAvailabilityResult(Model): + """Response for CheckIPAddressAvailability API service call. + + :param available: Private IP address availability. + :type available: bool + :param available_ip_addresses: Contains other available private IP + addresses if the asked for address is taken. + :type available_ip_addresses: list[str] + """ + + _attribute_map = { + 'available': {'key': 'available', 'type': 'bool'}, + 'available_ip_addresses': {'key': 'availableIPAddresses', 'type': '[str]'}, + } + + def __init__(self, *, available: bool=None, available_ip_addresses=None, **kwargs) -> None: + super(IPAddressAvailabilityResult, self).__init__(**kwargs) + self.available = available + self.available_ip_addresses = available_ip_addresses diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/ip_configuration.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/ip_configuration.py new file mode 100644 index 000000000000..2b26d1543830 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/ip_configuration.py @@ -0,0 +1,62 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource import SubResource + + +class IPConfiguration(SubResource): + """IP configuration. + + :param id: Resource ID. + :type id: str + :param private_ip_address: The private IP address of the IP configuration. + :type private_ip_address: str + :param private_ip_allocation_method: The private IP allocation method. + Possible values are 'Static' and 'Dynamic'. Possible values include: + 'Static', 'Dynamic' + :type private_ip_allocation_method: str or + ~azure.mgmt.network.v2018_10_01.models.IPAllocationMethod + :param subnet: The reference of the subnet resource. + :type subnet: ~azure.mgmt.network.v2018_10_01.models.Subnet + :param public_ip_address: The reference of the public IP resource. + :type public_ip_address: + ~azure.mgmt.network.v2018_10_01.models.PublicIPAddress + :param provisioning_state: Gets the provisioning state of the public IP + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'private_ip_address': {'key': 'properties.privateIPAddress', 'type': 'str'}, + 'private_ip_allocation_method': {'key': 'properties.privateIPAllocationMethod', 'type': 'str'}, + 'subnet': {'key': 'properties.subnet', 'type': 'Subnet'}, + 'public_ip_address': {'key': 'properties.publicIPAddress', 'type': 'PublicIPAddress'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(IPConfiguration, self).__init__(**kwargs) + self.private_ip_address = kwargs.get('private_ip_address', None) + self.private_ip_allocation_method = kwargs.get('private_ip_allocation_method', None) + self.subnet = kwargs.get('subnet', None) + self.public_ip_address = kwargs.get('public_ip_address', None) + self.provisioning_state = kwargs.get('provisioning_state', None) + self.name = kwargs.get('name', None) + self.etag = kwargs.get('etag', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/ip_configuration_profile.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/ip_configuration_profile.py new file mode 100644 index 000000000000..92befb281b30 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/ip_configuration_profile.py @@ -0,0 +1,58 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource import SubResource + + +class IPConfigurationProfile(SubResource): + """IP configuration profile child resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :param subnet: The reference of the subnet resource to create a + contatainer network interface ip configruation. + :type subnet: ~azure.mgmt.network.v2018_10_01.models.Subnet + :ivar provisioning_state: The provisioning state of the resource. + :vartype provisioning_state: str + :param name: The name of the resource. This name can be used to access the + resource. + :type name: str + :ivar type: Sub Resource type. + :vartype type: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'subnet': {'key': 'properties.subnet', 'type': 'Subnet'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(IPConfigurationProfile, self).__init__(**kwargs) + self.subnet = kwargs.get('subnet', None) + self.provisioning_state = None + self.name = kwargs.get('name', None) + self.type = None + self.etag = kwargs.get('etag', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/ip_configuration_profile_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/ip_configuration_profile_py3.py new file mode 100644 index 000000000000..25914e0c9820 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/ip_configuration_profile_py3.py @@ -0,0 +1,58 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource_py3 import SubResource + + +class IPConfigurationProfile(SubResource): + """IP configuration profile child resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :param subnet: The reference of the subnet resource to create a + contatainer network interface ip configruation. + :type subnet: ~azure.mgmt.network.v2018_10_01.models.Subnet + :ivar provisioning_state: The provisioning state of the resource. + :vartype provisioning_state: str + :param name: The name of the resource. This name can be used to access the + resource. + :type name: str + :ivar type: Sub Resource type. + :vartype type: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'subnet': {'key': 'properties.subnet', 'type': 'Subnet'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, subnet=None, name: str=None, etag: str=None, **kwargs) -> None: + super(IPConfigurationProfile, self).__init__(id=id, **kwargs) + self.subnet = subnet + self.provisioning_state = None + self.name = name + self.type = None + self.etag = etag diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/ip_configuration_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/ip_configuration_py3.py new file mode 100644 index 000000000000..28c1c5fd1b07 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/ip_configuration_py3.py @@ -0,0 +1,62 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource_py3 import SubResource + + +class IPConfiguration(SubResource): + """IP configuration. + + :param id: Resource ID. + :type id: str + :param private_ip_address: The private IP address of the IP configuration. + :type private_ip_address: str + :param private_ip_allocation_method: The private IP allocation method. + Possible values are 'Static' and 'Dynamic'. Possible values include: + 'Static', 'Dynamic' + :type private_ip_allocation_method: str or + ~azure.mgmt.network.v2018_10_01.models.IPAllocationMethod + :param subnet: The reference of the subnet resource. + :type subnet: ~azure.mgmt.network.v2018_10_01.models.Subnet + :param public_ip_address: The reference of the public IP resource. + :type public_ip_address: + ~azure.mgmt.network.v2018_10_01.models.PublicIPAddress + :param provisioning_state: Gets the provisioning state of the public IP + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'private_ip_address': {'key': 'properties.privateIPAddress', 'type': 'str'}, + 'private_ip_allocation_method': {'key': 'properties.privateIPAllocationMethod', 'type': 'str'}, + 'subnet': {'key': 'properties.subnet', 'type': 'Subnet'}, + 'public_ip_address': {'key': 'properties.publicIPAddress', 'type': 'PublicIPAddress'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, private_ip_address: str=None, private_ip_allocation_method=None, subnet=None, public_ip_address=None, provisioning_state: str=None, name: str=None, etag: str=None, **kwargs) -> None: + super(IPConfiguration, self).__init__(id=id, **kwargs) + self.private_ip_address = private_ip_address + self.private_ip_allocation_method = private_ip_allocation_method + self.subnet = subnet + self.public_ip_address = public_ip_address + self.provisioning_state = provisioning_state + self.name = name + self.etag = etag diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/ip_tag.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/ip_tag.py new file mode 100644 index 000000000000..559dddc661d2 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/ip_tag.py @@ -0,0 +1,33 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class IpTag(Model): + """Contains the IpTag associated with the object. + + :param ip_tag_type: Gets or sets the ipTag type: Example FirstPartyUsage. + :type ip_tag_type: str + :param tag: Gets or sets value of the IpTag associated with the public IP. + Example SQL, Storage etc + :type tag: str + """ + + _attribute_map = { + 'ip_tag_type': {'key': 'ipTagType', 'type': 'str'}, + 'tag': {'key': 'tag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(IpTag, self).__init__(**kwargs) + self.ip_tag_type = kwargs.get('ip_tag_type', None) + self.tag = kwargs.get('tag', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/ip_tag_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/ip_tag_py3.py new file mode 100644 index 000000000000..2370c408761c --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/ip_tag_py3.py @@ -0,0 +1,33 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class IpTag(Model): + """Contains the IpTag associated with the object. + + :param ip_tag_type: Gets or sets the ipTag type: Example FirstPartyUsage. + :type ip_tag_type: str + :param tag: Gets or sets value of the IpTag associated with the public IP. + Example SQL, Storage etc + :type tag: str + """ + + _attribute_map = { + 'ip_tag_type': {'key': 'ipTagType', 'type': 'str'}, + 'tag': {'key': 'tag', 'type': 'str'}, + } + + def __init__(self, *, ip_tag_type: str=None, tag: str=None, **kwargs) -> None: + super(IpTag, self).__init__(**kwargs) + self.ip_tag_type = ip_tag_type + self.tag = tag diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/ipsec_policy.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/ipsec_policy.py new file mode 100644 index 000000000000..64696246dbed --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/ipsec_policy.py @@ -0,0 +1,89 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class IpsecPolicy(Model): + """An IPSec Policy configuration for a virtual network gateway connection. + + All required parameters must be populated in order to send to Azure. + + :param sa_life_time_seconds: Required. The IPSec Security Association + (also called Quick Mode or Phase 2 SA) lifetime in seconds for a site to + site VPN tunnel. + :type sa_life_time_seconds: int + :param sa_data_size_kilobytes: Required. The IPSec Security Association + (also called Quick Mode or Phase 2 SA) payload size in KB for a site to + site VPN tunnel. + :type sa_data_size_kilobytes: int + :param ipsec_encryption: Required. The IPSec encryption algorithm (IKE + phase 1). Possible values include: 'None', 'DES', 'DES3', 'AES128', + 'AES192', 'AES256', 'GCMAES128', 'GCMAES192', 'GCMAES256' + :type ipsec_encryption: str or + ~azure.mgmt.network.v2018_10_01.models.IpsecEncryption + :param ipsec_integrity: Required. The IPSec integrity algorithm (IKE phase + 1). Possible values include: 'MD5', 'SHA1', 'SHA256', 'GCMAES128', + 'GCMAES192', 'GCMAES256' + :type ipsec_integrity: str or + ~azure.mgmt.network.v2018_10_01.models.IpsecIntegrity + :param ike_encryption: Required. The IKE encryption algorithm (IKE phase + 2). Possible values include: 'DES', 'DES3', 'AES128', 'AES192', 'AES256', + 'GCMAES256', 'GCMAES128' + :type ike_encryption: str or + ~azure.mgmt.network.v2018_10_01.models.IkeEncryption + :param ike_integrity: Required. The IKE integrity algorithm (IKE phase 2). + Possible values include: 'MD5', 'SHA1', 'SHA256', 'SHA384', 'GCMAES256', + 'GCMAES128' + :type ike_integrity: str or + ~azure.mgmt.network.v2018_10_01.models.IkeIntegrity + :param dh_group: Required. The DH Groups used in IKE Phase 1 for initial + SA. Possible values include: 'None', 'DHGroup1', 'DHGroup2', 'DHGroup14', + 'DHGroup2048', 'ECP256', 'ECP384', 'DHGroup24' + :type dh_group: str or ~azure.mgmt.network.v2018_10_01.models.DhGroup + :param pfs_group: Required. The Pfs Groups used in IKE Phase 2 for new + child SA. Possible values include: 'None', 'PFS1', 'PFS2', 'PFS2048', + 'ECP256', 'ECP384', 'PFS24', 'PFS14', 'PFSMM' + :type pfs_group: str or ~azure.mgmt.network.v2018_10_01.models.PfsGroup + """ + + _validation = { + 'sa_life_time_seconds': {'required': True}, + 'sa_data_size_kilobytes': {'required': True}, + 'ipsec_encryption': {'required': True}, + 'ipsec_integrity': {'required': True}, + 'ike_encryption': {'required': True}, + 'ike_integrity': {'required': True}, + 'dh_group': {'required': True}, + 'pfs_group': {'required': True}, + } + + _attribute_map = { + 'sa_life_time_seconds': {'key': 'saLifeTimeSeconds', 'type': 'int'}, + 'sa_data_size_kilobytes': {'key': 'saDataSizeKilobytes', 'type': 'int'}, + 'ipsec_encryption': {'key': 'ipsecEncryption', 'type': 'str'}, + 'ipsec_integrity': {'key': 'ipsecIntegrity', 'type': 'str'}, + 'ike_encryption': {'key': 'ikeEncryption', 'type': 'str'}, + 'ike_integrity': {'key': 'ikeIntegrity', 'type': 'str'}, + 'dh_group': {'key': 'dhGroup', 'type': 'str'}, + 'pfs_group': {'key': 'pfsGroup', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(IpsecPolicy, self).__init__(**kwargs) + self.sa_life_time_seconds = kwargs.get('sa_life_time_seconds', None) + self.sa_data_size_kilobytes = kwargs.get('sa_data_size_kilobytes', None) + self.ipsec_encryption = kwargs.get('ipsec_encryption', None) + self.ipsec_integrity = kwargs.get('ipsec_integrity', None) + self.ike_encryption = kwargs.get('ike_encryption', None) + self.ike_integrity = kwargs.get('ike_integrity', None) + self.dh_group = kwargs.get('dh_group', None) + self.pfs_group = kwargs.get('pfs_group', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/ipsec_policy_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/ipsec_policy_py3.py new file mode 100644 index 000000000000..4e6561da23b0 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/ipsec_policy_py3.py @@ -0,0 +1,89 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class IpsecPolicy(Model): + """An IPSec Policy configuration for a virtual network gateway connection. + + All required parameters must be populated in order to send to Azure. + + :param sa_life_time_seconds: Required. The IPSec Security Association + (also called Quick Mode or Phase 2 SA) lifetime in seconds for a site to + site VPN tunnel. + :type sa_life_time_seconds: int + :param sa_data_size_kilobytes: Required. The IPSec Security Association + (also called Quick Mode or Phase 2 SA) payload size in KB for a site to + site VPN tunnel. + :type sa_data_size_kilobytes: int + :param ipsec_encryption: Required. The IPSec encryption algorithm (IKE + phase 1). Possible values include: 'None', 'DES', 'DES3', 'AES128', + 'AES192', 'AES256', 'GCMAES128', 'GCMAES192', 'GCMAES256' + :type ipsec_encryption: str or + ~azure.mgmt.network.v2018_10_01.models.IpsecEncryption + :param ipsec_integrity: Required. The IPSec integrity algorithm (IKE phase + 1). Possible values include: 'MD5', 'SHA1', 'SHA256', 'GCMAES128', + 'GCMAES192', 'GCMAES256' + :type ipsec_integrity: str or + ~azure.mgmt.network.v2018_10_01.models.IpsecIntegrity + :param ike_encryption: Required. The IKE encryption algorithm (IKE phase + 2). Possible values include: 'DES', 'DES3', 'AES128', 'AES192', 'AES256', + 'GCMAES256', 'GCMAES128' + :type ike_encryption: str or + ~azure.mgmt.network.v2018_10_01.models.IkeEncryption + :param ike_integrity: Required. The IKE integrity algorithm (IKE phase 2). + Possible values include: 'MD5', 'SHA1', 'SHA256', 'SHA384', 'GCMAES256', + 'GCMAES128' + :type ike_integrity: str or + ~azure.mgmt.network.v2018_10_01.models.IkeIntegrity + :param dh_group: Required. The DH Groups used in IKE Phase 1 for initial + SA. Possible values include: 'None', 'DHGroup1', 'DHGroup2', 'DHGroup14', + 'DHGroup2048', 'ECP256', 'ECP384', 'DHGroup24' + :type dh_group: str or ~azure.mgmt.network.v2018_10_01.models.DhGroup + :param pfs_group: Required. The Pfs Groups used in IKE Phase 2 for new + child SA. Possible values include: 'None', 'PFS1', 'PFS2', 'PFS2048', + 'ECP256', 'ECP384', 'PFS24', 'PFS14', 'PFSMM' + :type pfs_group: str or ~azure.mgmt.network.v2018_10_01.models.PfsGroup + """ + + _validation = { + 'sa_life_time_seconds': {'required': True}, + 'sa_data_size_kilobytes': {'required': True}, + 'ipsec_encryption': {'required': True}, + 'ipsec_integrity': {'required': True}, + 'ike_encryption': {'required': True}, + 'ike_integrity': {'required': True}, + 'dh_group': {'required': True}, + 'pfs_group': {'required': True}, + } + + _attribute_map = { + 'sa_life_time_seconds': {'key': 'saLifeTimeSeconds', 'type': 'int'}, + 'sa_data_size_kilobytes': {'key': 'saDataSizeKilobytes', 'type': 'int'}, + 'ipsec_encryption': {'key': 'ipsecEncryption', 'type': 'str'}, + 'ipsec_integrity': {'key': 'ipsecIntegrity', 'type': 'str'}, + 'ike_encryption': {'key': 'ikeEncryption', 'type': 'str'}, + 'ike_integrity': {'key': 'ikeIntegrity', 'type': 'str'}, + 'dh_group': {'key': 'dhGroup', 'type': 'str'}, + 'pfs_group': {'key': 'pfsGroup', 'type': 'str'}, + } + + def __init__(self, *, sa_life_time_seconds: int, sa_data_size_kilobytes: int, ipsec_encryption, ipsec_integrity, ike_encryption, ike_integrity, dh_group, pfs_group, **kwargs) -> None: + super(IpsecPolicy, self).__init__(**kwargs) + self.sa_life_time_seconds = sa_life_time_seconds + self.sa_data_size_kilobytes = sa_data_size_kilobytes + self.ipsec_encryption = ipsec_encryption + self.ipsec_integrity = ipsec_integrity + self.ike_encryption = ike_encryption + self.ike_integrity = ike_integrity + self.dh_group = dh_group + self.pfs_group = pfs_group diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/ipv6_express_route_circuit_peering_config.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/ipv6_express_route_circuit_peering_config.py new file mode 100644 index 000000000000..f9be881c6aa7 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/ipv6_express_route_circuit_peering_config.py @@ -0,0 +1,47 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class Ipv6ExpressRouteCircuitPeeringConfig(Model): + """Contains IPv6 peering config. + + :param primary_peer_address_prefix: The primary address prefix. + :type primary_peer_address_prefix: str + :param secondary_peer_address_prefix: The secondary address prefix. + :type secondary_peer_address_prefix: str + :param microsoft_peering_config: The Microsoft peering configuration. + :type microsoft_peering_config: + ~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuitPeeringConfig + :param route_filter: The reference of the RouteFilter resource. + :type route_filter: ~azure.mgmt.network.v2018_10_01.models.RouteFilter + :param state: The state of peering. Possible values are: 'Disabled' and + 'Enabled'. Possible values include: 'Disabled', 'Enabled' + :type state: str or + ~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuitPeeringState + """ + + _attribute_map = { + 'primary_peer_address_prefix': {'key': 'primaryPeerAddressPrefix', 'type': 'str'}, + 'secondary_peer_address_prefix': {'key': 'secondaryPeerAddressPrefix', 'type': 'str'}, + 'microsoft_peering_config': {'key': 'microsoftPeeringConfig', 'type': 'ExpressRouteCircuitPeeringConfig'}, + 'route_filter': {'key': 'routeFilter', 'type': 'RouteFilter'}, + 'state': {'key': 'state', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Ipv6ExpressRouteCircuitPeeringConfig, self).__init__(**kwargs) + self.primary_peer_address_prefix = kwargs.get('primary_peer_address_prefix', None) + self.secondary_peer_address_prefix = kwargs.get('secondary_peer_address_prefix', None) + self.microsoft_peering_config = kwargs.get('microsoft_peering_config', None) + self.route_filter = kwargs.get('route_filter', None) + self.state = kwargs.get('state', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/ipv6_express_route_circuit_peering_config_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/ipv6_express_route_circuit_peering_config_py3.py new file mode 100644 index 000000000000..e0a4bb220bbe --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/ipv6_express_route_circuit_peering_config_py3.py @@ -0,0 +1,47 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class Ipv6ExpressRouteCircuitPeeringConfig(Model): + """Contains IPv6 peering config. + + :param primary_peer_address_prefix: The primary address prefix. + :type primary_peer_address_prefix: str + :param secondary_peer_address_prefix: The secondary address prefix. + :type secondary_peer_address_prefix: str + :param microsoft_peering_config: The Microsoft peering configuration. + :type microsoft_peering_config: + ~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuitPeeringConfig + :param route_filter: The reference of the RouteFilter resource. + :type route_filter: ~azure.mgmt.network.v2018_10_01.models.RouteFilter + :param state: The state of peering. Possible values are: 'Disabled' and + 'Enabled'. Possible values include: 'Disabled', 'Enabled' + :type state: str or + ~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuitPeeringState + """ + + _attribute_map = { + 'primary_peer_address_prefix': {'key': 'primaryPeerAddressPrefix', 'type': 'str'}, + 'secondary_peer_address_prefix': {'key': 'secondaryPeerAddressPrefix', 'type': 'str'}, + 'microsoft_peering_config': {'key': 'microsoftPeeringConfig', 'type': 'ExpressRouteCircuitPeeringConfig'}, + 'route_filter': {'key': 'routeFilter', 'type': 'RouteFilter'}, + 'state': {'key': 'state', 'type': 'str'}, + } + + def __init__(self, *, primary_peer_address_prefix: str=None, secondary_peer_address_prefix: str=None, microsoft_peering_config=None, route_filter=None, state=None, **kwargs) -> None: + super(Ipv6ExpressRouteCircuitPeeringConfig, self).__init__(**kwargs) + self.primary_peer_address_prefix = primary_peer_address_prefix + self.secondary_peer_address_prefix = secondary_peer_address_prefix + self.microsoft_peering_config = microsoft_peering_config + self.route_filter = route_filter + self.state = state diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/load_balancer.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/load_balancer.py new file mode 100644 index 000000000000..eed4c44c10bd --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/load_balancer.py @@ -0,0 +1,115 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource import Resource + + +class LoadBalancer(Resource): + """LoadBalancer resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param sku: The load balancer SKU. + :type sku: ~azure.mgmt.network.v2018_10_01.models.LoadBalancerSku + :param frontend_ip_configurations: Object representing the frontend IPs to + be used for the load balancer + :type frontend_ip_configurations: + list[~azure.mgmt.network.v2018_10_01.models.FrontendIPConfiguration] + :param backend_address_pools: Collection of backend address pools used by + a load balancer + :type backend_address_pools: + list[~azure.mgmt.network.v2018_10_01.models.BackendAddressPool] + :param load_balancing_rules: Object collection representing the load + balancing rules Gets the provisioning + :type load_balancing_rules: + list[~azure.mgmt.network.v2018_10_01.models.LoadBalancingRule] + :param probes: Collection of probe objects used in the load balancer + :type probes: list[~azure.mgmt.network.v2018_10_01.models.Probe] + :param inbound_nat_rules: Collection of inbound NAT Rules used by a load + balancer. Defining inbound NAT rules on your load balancer is mutually + exclusive with defining an inbound NAT pool. Inbound NAT pools are + referenced from virtual machine scale sets. NICs that are associated with + individual virtual machines cannot reference an Inbound NAT pool. They + have to reference individual inbound NAT rules. + :type inbound_nat_rules: + list[~azure.mgmt.network.v2018_10_01.models.InboundNatRule] + :param inbound_nat_pools: Defines an external port range for inbound NAT + to a single backend port on NICs associated with a load balancer. Inbound + NAT rules are created automatically for each NIC associated with the Load + Balancer using an external port from this range. Defining an Inbound NAT + pool on your Load Balancer is mutually exclusive with defining inbound Nat + rules. Inbound NAT pools are referenced from virtual machine scale sets. + NICs that are associated with individual virtual machines cannot reference + an inbound NAT pool. They have to reference individual inbound NAT rules. + :type inbound_nat_pools: + list[~azure.mgmt.network.v2018_10_01.models.InboundNatPool] + :param outbound_rules: The outbound rules. + :type outbound_rules: + list[~azure.mgmt.network.v2018_10_01.models.OutboundRule] + :param resource_guid: The resource GUID property of the load balancer + resource. + :type resource_guid: str + :param provisioning_state: Gets the provisioning state of the PublicIP + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'sku': {'key': 'sku', 'type': 'LoadBalancerSku'}, + 'frontend_ip_configurations': {'key': 'properties.frontendIPConfigurations', 'type': '[FrontendIPConfiguration]'}, + 'backend_address_pools': {'key': 'properties.backendAddressPools', 'type': '[BackendAddressPool]'}, + 'load_balancing_rules': {'key': 'properties.loadBalancingRules', 'type': '[LoadBalancingRule]'}, + 'probes': {'key': 'properties.probes', 'type': '[Probe]'}, + 'inbound_nat_rules': {'key': 'properties.inboundNatRules', 'type': '[InboundNatRule]'}, + 'inbound_nat_pools': {'key': 'properties.inboundNatPools', 'type': '[InboundNatPool]'}, + 'outbound_rules': {'key': 'properties.outboundRules', 'type': '[OutboundRule]'}, + 'resource_guid': {'key': 'properties.resourceGuid', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(LoadBalancer, self).__init__(**kwargs) + self.sku = kwargs.get('sku', None) + self.frontend_ip_configurations = kwargs.get('frontend_ip_configurations', None) + self.backend_address_pools = kwargs.get('backend_address_pools', None) + self.load_balancing_rules = kwargs.get('load_balancing_rules', None) + self.probes = kwargs.get('probes', None) + self.inbound_nat_rules = kwargs.get('inbound_nat_rules', None) + self.inbound_nat_pools = kwargs.get('inbound_nat_pools', None) + self.outbound_rules = kwargs.get('outbound_rules', None) + self.resource_guid = kwargs.get('resource_guid', None) + self.provisioning_state = kwargs.get('provisioning_state', None) + self.etag = kwargs.get('etag', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/load_balancer_paged.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/load_balancer_paged.py new file mode 100644 index 000000000000..5c73fcdcc5c8 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/load_balancer_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class LoadBalancerPaged(Paged): + """ + A paging container for iterating over a list of :class:`LoadBalancer ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[LoadBalancer]'} + } + + def __init__(self, *args, **kwargs): + + super(LoadBalancerPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/load_balancer_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/load_balancer_py3.py new file mode 100644 index 000000000000..a76a81c8b10a --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/load_balancer_py3.py @@ -0,0 +1,115 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource_py3 import Resource + + +class LoadBalancer(Resource): + """LoadBalancer resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param sku: The load balancer SKU. + :type sku: ~azure.mgmt.network.v2018_10_01.models.LoadBalancerSku + :param frontend_ip_configurations: Object representing the frontend IPs to + be used for the load balancer + :type frontend_ip_configurations: + list[~azure.mgmt.network.v2018_10_01.models.FrontendIPConfiguration] + :param backend_address_pools: Collection of backend address pools used by + a load balancer + :type backend_address_pools: + list[~azure.mgmt.network.v2018_10_01.models.BackendAddressPool] + :param load_balancing_rules: Object collection representing the load + balancing rules Gets the provisioning + :type load_balancing_rules: + list[~azure.mgmt.network.v2018_10_01.models.LoadBalancingRule] + :param probes: Collection of probe objects used in the load balancer + :type probes: list[~azure.mgmt.network.v2018_10_01.models.Probe] + :param inbound_nat_rules: Collection of inbound NAT Rules used by a load + balancer. Defining inbound NAT rules on your load balancer is mutually + exclusive with defining an inbound NAT pool. Inbound NAT pools are + referenced from virtual machine scale sets. NICs that are associated with + individual virtual machines cannot reference an Inbound NAT pool. They + have to reference individual inbound NAT rules. + :type inbound_nat_rules: + list[~azure.mgmt.network.v2018_10_01.models.InboundNatRule] + :param inbound_nat_pools: Defines an external port range for inbound NAT + to a single backend port on NICs associated with a load balancer. Inbound + NAT rules are created automatically for each NIC associated with the Load + Balancer using an external port from this range. Defining an Inbound NAT + pool on your Load Balancer is mutually exclusive with defining inbound Nat + rules. Inbound NAT pools are referenced from virtual machine scale sets. + NICs that are associated with individual virtual machines cannot reference + an inbound NAT pool. They have to reference individual inbound NAT rules. + :type inbound_nat_pools: + list[~azure.mgmt.network.v2018_10_01.models.InboundNatPool] + :param outbound_rules: The outbound rules. + :type outbound_rules: + list[~azure.mgmt.network.v2018_10_01.models.OutboundRule] + :param resource_guid: The resource GUID property of the load balancer + resource. + :type resource_guid: str + :param provisioning_state: Gets the provisioning state of the PublicIP + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'sku': {'key': 'sku', 'type': 'LoadBalancerSku'}, + 'frontend_ip_configurations': {'key': 'properties.frontendIPConfigurations', 'type': '[FrontendIPConfiguration]'}, + 'backend_address_pools': {'key': 'properties.backendAddressPools', 'type': '[BackendAddressPool]'}, + 'load_balancing_rules': {'key': 'properties.loadBalancingRules', 'type': '[LoadBalancingRule]'}, + 'probes': {'key': 'properties.probes', 'type': '[Probe]'}, + 'inbound_nat_rules': {'key': 'properties.inboundNatRules', 'type': '[InboundNatRule]'}, + 'inbound_nat_pools': {'key': 'properties.inboundNatPools', 'type': '[InboundNatPool]'}, + 'outbound_rules': {'key': 'properties.outboundRules', 'type': '[OutboundRule]'}, + 'resource_guid': {'key': 'properties.resourceGuid', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, location: str=None, tags=None, sku=None, frontend_ip_configurations=None, backend_address_pools=None, load_balancing_rules=None, probes=None, inbound_nat_rules=None, inbound_nat_pools=None, outbound_rules=None, resource_guid: str=None, provisioning_state: str=None, etag: str=None, **kwargs) -> None: + super(LoadBalancer, self).__init__(id=id, location=location, tags=tags, **kwargs) + self.sku = sku + self.frontend_ip_configurations = frontend_ip_configurations + self.backend_address_pools = backend_address_pools + self.load_balancing_rules = load_balancing_rules + self.probes = probes + self.inbound_nat_rules = inbound_nat_rules + self.inbound_nat_pools = inbound_nat_pools + self.outbound_rules = outbound_rules + self.resource_guid = resource_guid + self.provisioning_state = provisioning_state + self.etag = etag diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/load_balancer_sku.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/load_balancer_sku.py new file mode 100644 index 000000000000..ca85d565fc38 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/load_balancer_sku.py @@ -0,0 +1,30 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class LoadBalancerSku(Model): + """SKU of a load balancer. + + :param name: Name of a load balancer SKU. Possible values include: + 'Basic', 'Standard' + :type name: str or + ~azure.mgmt.network.v2018_10_01.models.LoadBalancerSkuName + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(LoadBalancerSku, self).__init__(**kwargs) + self.name = kwargs.get('name', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/load_balancer_sku_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/load_balancer_sku_py3.py new file mode 100644 index 000000000000..6013ee3df8fd --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/load_balancer_sku_py3.py @@ -0,0 +1,30 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class LoadBalancerSku(Model): + """SKU of a load balancer. + + :param name: Name of a load balancer SKU. Possible values include: + 'Basic', 'Standard' + :type name: str or + ~azure.mgmt.network.v2018_10_01.models.LoadBalancerSkuName + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + } + + def __init__(self, *, name=None, **kwargs) -> None: + super(LoadBalancerSku, self).__init__(**kwargs) + self.name = name diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/load_balancing_rule.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/load_balancing_rule.py new file mode 100644 index 000000000000..f541906bb933 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/load_balancing_rule.py @@ -0,0 +1,115 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource import SubResource + + +class LoadBalancingRule(SubResource): + """A load balancing rule for a load balancer. + + All required parameters must be populated in order to send to Azure. + + :param id: Resource ID. + :type id: str + :param frontend_ip_configuration: A reference to frontend IP addresses. + :type frontend_ip_configuration: + ~azure.mgmt.network.v2018_10_01.models.SubResource + :param backend_address_pool: A reference to a pool of DIPs. Inbound + traffic is randomly load balanced across IPs in the backend IPs. + :type backend_address_pool: + ~azure.mgmt.network.v2018_10_01.models.SubResource + :param probe: The reference of the load balancer probe used by the load + balancing rule. + :type probe: ~azure.mgmt.network.v2018_10_01.models.SubResource + :param protocol: Required. Possible values include: 'Udp', 'Tcp', 'All' + :type protocol: str or + ~azure.mgmt.network.v2018_10_01.models.TransportProtocol + :param load_distribution: The load distribution policy for this rule. + Possible values are 'Default', 'SourceIP', and 'SourceIPProtocol'. + Possible values include: 'Default', 'SourceIP', 'SourceIPProtocol' + :type load_distribution: str or + ~azure.mgmt.network.v2018_10_01.models.LoadDistribution + :param frontend_port: Required. The port for the external endpoint. Port + numbers for each rule must be unique within the Load Balancer. Acceptable + values are between 0 and 65534. Note that value 0 enables "Any Port" + :type frontend_port: int + :param backend_port: The port used for internal connections on the + endpoint. Acceptable values are between 0 and 65535. Note that value 0 + enables "Any Port" + :type backend_port: int + :param idle_timeout_in_minutes: The timeout for the TCP idle connection. + The value can be set between 4 and 30 minutes. The default value is 4 + minutes. This element is only used when the protocol is set to TCP. + :type idle_timeout_in_minutes: int + :param enable_floating_ip: Configures a virtual machine's endpoint for the + floating IP capability required to configure a SQL AlwaysOn Availability + Group. This setting is required when using the SQL AlwaysOn Availability + Groups in SQL server. This setting can't be changed after you create the + endpoint. + :type enable_floating_ip: bool + :param enable_tcp_reset: Receive bidirectional TCP Reset on TCP flow idle + timeout or unexpected connection termination. This element is only used + when the protocol is set to TCP. + :type enable_tcp_reset: bool + :param disable_outbound_snat: Configures SNAT for the VMs in the backend + pool to use the publicIP address specified in the frontend of the load + balancing rule. + :type disable_outbound_snat: bool + :param provisioning_state: Gets the provisioning state of the PublicIP + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _validation = { + 'protocol': {'required': True}, + 'frontend_port': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'frontend_ip_configuration': {'key': 'properties.frontendIPConfiguration', 'type': 'SubResource'}, + 'backend_address_pool': {'key': 'properties.backendAddressPool', 'type': 'SubResource'}, + 'probe': {'key': 'properties.probe', 'type': 'SubResource'}, + 'protocol': {'key': 'properties.protocol', 'type': 'str'}, + 'load_distribution': {'key': 'properties.loadDistribution', 'type': 'str'}, + 'frontend_port': {'key': 'properties.frontendPort', 'type': 'int'}, + 'backend_port': {'key': 'properties.backendPort', 'type': 'int'}, + 'idle_timeout_in_minutes': {'key': 'properties.idleTimeoutInMinutes', 'type': 'int'}, + 'enable_floating_ip': {'key': 'properties.enableFloatingIP', 'type': 'bool'}, + 'enable_tcp_reset': {'key': 'properties.enableTcpReset', 'type': 'bool'}, + 'disable_outbound_snat': {'key': 'properties.disableOutboundSnat', 'type': 'bool'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(LoadBalancingRule, self).__init__(**kwargs) + self.frontend_ip_configuration = kwargs.get('frontend_ip_configuration', None) + self.backend_address_pool = kwargs.get('backend_address_pool', None) + self.probe = kwargs.get('probe', None) + self.protocol = kwargs.get('protocol', None) + self.load_distribution = kwargs.get('load_distribution', None) + self.frontend_port = kwargs.get('frontend_port', None) + self.backend_port = kwargs.get('backend_port', None) + self.idle_timeout_in_minutes = kwargs.get('idle_timeout_in_minutes', None) + self.enable_floating_ip = kwargs.get('enable_floating_ip', None) + self.enable_tcp_reset = kwargs.get('enable_tcp_reset', None) + self.disable_outbound_snat = kwargs.get('disable_outbound_snat', None) + self.provisioning_state = kwargs.get('provisioning_state', None) + self.name = kwargs.get('name', None) + self.etag = kwargs.get('etag', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/load_balancing_rule_paged.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/load_balancing_rule_paged.py new file mode 100644 index 000000000000..eef73383be8c --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/load_balancing_rule_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class LoadBalancingRulePaged(Paged): + """ + A paging container for iterating over a list of :class:`LoadBalancingRule ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[LoadBalancingRule]'} + } + + def __init__(self, *args, **kwargs): + + super(LoadBalancingRulePaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/load_balancing_rule_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/load_balancing_rule_py3.py new file mode 100644 index 000000000000..fec90f842245 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/load_balancing_rule_py3.py @@ -0,0 +1,115 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource_py3 import SubResource + + +class LoadBalancingRule(SubResource): + """A load balancing rule for a load balancer. + + All required parameters must be populated in order to send to Azure. + + :param id: Resource ID. + :type id: str + :param frontend_ip_configuration: A reference to frontend IP addresses. + :type frontend_ip_configuration: + ~azure.mgmt.network.v2018_10_01.models.SubResource + :param backend_address_pool: A reference to a pool of DIPs. Inbound + traffic is randomly load balanced across IPs in the backend IPs. + :type backend_address_pool: + ~azure.mgmt.network.v2018_10_01.models.SubResource + :param probe: The reference of the load balancer probe used by the load + balancing rule. + :type probe: ~azure.mgmt.network.v2018_10_01.models.SubResource + :param protocol: Required. Possible values include: 'Udp', 'Tcp', 'All' + :type protocol: str or + ~azure.mgmt.network.v2018_10_01.models.TransportProtocol + :param load_distribution: The load distribution policy for this rule. + Possible values are 'Default', 'SourceIP', and 'SourceIPProtocol'. + Possible values include: 'Default', 'SourceIP', 'SourceIPProtocol' + :type load_distribution: str or + ~azure.mgmt.network.v2018_10_01.models.LoadDistribution + :param frontend_port: Required. The port for the external endpoint. Port + numbers for each rule must be unique within the Load Balancer. Acceptable + values are between 0 and 65534. Note that value 0 enables "Any Port" + :type frontend_port: int + :param backend_port: The port used for internal connections on the + endpoint. Acceptable values are between 0 and 65535. Note that value 0 + enables "Any Port" + :type backend_port: int + :param idle_timeout_in_minutes: The timeout for the TCP idle connection. + The value can be set between 4 and 30 minutes. The default value is 4 + minutes. This element is only used when the protocol is set to TCP. + :type idle_timeout_in_minutes: int + :param enable_floating_ip: Configures a virtual machine's endpoint for the + floating IP capability required to configure a SQL AlwaysOn Availability + Group. This setting is required when using the SQL AlwaysOn Availability + Groups in SQL server. This setting can't be changed after you create the + endpoint. + :type enable_floating_ip: bool + :param enable_tcp_reset: Receive bidirectional TCP Reset on TCP flow idle + timeout or unexpected connection termination. This element is only used + when the protocol is set to TCP. + :type enable_tcp_reset: bool + :param disable_outbound_snat: Configures SNAT for the VMs in the backend + pool to use the publicIP address specified in the frontend of the load + balancing rule. + :type disable_outbound_snat: bool + :param provisioning_state: Gets the provisioning state of the PublicIP + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _validation = { + 'protocol': {'required': True}, + 'frontend_port': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'frontend_ip_configuration': {'key': 'properties.frontendIPConfiguration', 'type': 'SubResource'}, + 'backend_address_pool': {'key': 'properties.backendAddressPool', 'type': 'SubResource'}, + 'probe': {'key': 'properties.probe', 'type': 'SubResource'}, + 'protocol': {'key': 'properties.protocol', 'type': 'str'}, + 'load_distribution': {'key': 'properties.loadDistribution', 'type': 'str'}, + 'frontend_port': {'key': 'properties.frontendPort', 'type': 'int'}, + 'backend_port': {'key': 'properties.backendPort', 'type': 'int'}, + 'idle_timeout_in_minutes': {'key': 'properties.idleTimeoutInMinutes', 'type': 'int'}, + 'enable_floating_ip': {'key': 'properties.enableFloatingIP', 'type': 'bool'}, + 'enable_tcp_reset': {'key': 'properties.enableTcpReset', 'type': 'bool'}, + 'disable_outbound_snat': {'key': 'properties.disableOutboundSnat', 'type': 'bool'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, *, protocol, frontend_port: int, id: str=None, frontend_ip_configuration=None, backend_address_pool=None, probe=None, load_distribution=None, backend_port: int=None, idle_timeout_in_minutes: int=None, enable_floating_ip: bool=None, enable_tcp_reset: bool=None, disable_outbound_snat: bool=None, provisioning_state: str=None, name: str=None, etag: str=None, **kwargs) -> None: + super(LoadBalancingRule, self).__init__(id=id, **kwargs) + self.frontend_ip_configuration = frontend_ip_configuration + self.backend_address_pool = backend_address_pool + self.probe = probe + self.protocol = protocol + self.load_distribution = load_distribution + self.frontend_port = frontend_port + self.backend_port = backend_port + self.idle_timeout_in_minutes = idle_timeout_in_minutes + self.enable_floating_ip = enable_floating_ip + self.enable_tcp_reset = enable_tcp_reset + self.disable_outbound_snat = disable_outbound_snat + self.provisioning_state = provisioning_state + self.name = name + self.etag = etag diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/local_network_gateway.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/local_network_gateway.py new file mode 100644 index 000000000000..4df55e537e9b --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/local_network_gateway.py @@ -0,0 +1,77 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource import Resource + + +class LocalNetworkGateway(Resource): + """A common class for general resource information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param local_network_address_space: Local network site address space. + :type local_network_address_space: + ~azure.mgmt.network.v2018_10_01.models.AddressSpace + :param gateway_ip_address: IP address of local network gateway. + :type gateway_ip_address: str + :param bgp_settings: Local network gateway's BGP speaker settings. + :type bgp_settings: ~azure.mgmt.network.v2018_10_01.models.BgpSettings + :param resource_guid: The resource GUID property of the + LocalNetworkGateway resource. + :type resource_guid: str + :ivar provisioning_state: The provisioning state of the + LocalNetworkGateway resource. Possible values are: 'Updating', 'Deleting', + and 'Failed'. + :vartype provisioning_state: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'local_network_address_space': {'key': 'properties.localNetworkAddressSpace', 'type': 'AddressSpace'}, + 'gateway_ip_address': {'key': 'properties.gatewayIpAddress', 'type': 'str'}, + 'bgp_settings': {'key': 'properties.bgpSettings', 'type': 'BgpSettings'}, + 'resource_guid': {'key': 'properties.resourceGuid', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(LocalNetworkGateway, self).__init__(**kwargs) + self.local_network_address_space = kwargs.get('local_network_address_space', None) + self.gateway_ip_address = kwargs.get('gateway_ip_address', None) + self.bgp_settings = kwargs.get('bgp_settings', None) + self.resource_guid = kwargs.get('resource_guid', None) + self.provisioning_state = None + self.etag = kwargs.get('etag', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/local_network_gateway_paged.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/local_network_gateway_paged.py new file mode 100644 index 000000000000..b88242a42cb8 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/local_network_gateway_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class LocalNetworkGatewayPaged(Paged): + """ + A paging container for iterating over a list of :class:`LocalNetworkGateway ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[LocalNetworkGateway]'} + } + + def __init__(self, *args, **kwargs): + + super(LocalNetworkGatewayPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/local_network_gateway_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/local_network_gateway_py3.py new file mode 100644 index 000000000000..5f247e0140bf --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/local_network_gateway_py3.py @@ -0,0 +1,77 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource_py3 import Resource + + +class LocalNetworkGateway(Resource): + """A common class for general resource information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param local_network_address_space: Local network site address space. + :type local_network_address_space: + ~azure.mgmt.network.v2018_10_01.models.AddressSpace + :param gateway_ip_address: IP address of local network gateway. + :type gateway_ip_address: str + :param bgp_settings: Local network gateway's BGP speaker settings. + :type bgp_settings: ~azure.mgmt.network.v2018_10_01.models.BgpSettings + :param resource_guid: The resource GUID property of the + LocalNetworkGateway resource. + :type resource_guid: str + :ivar provisioning_state: The provisioning state of the + LocalNetworkGateway resource. Possible values are: 'Updating', 'Deleting', + and 'Failed'. + :vartype provisioning_state: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'local_network_address_space': {'key': 'properties.localNetworkAddressSpace', 'type': 'AddressSpace'}, + 'gateway_ip_address': {'key': 'properties.gatewayIpAddress', 'type': 'str'}, + 'bgp_settings': {'key': 'properties.bgpSettings', 'type': 'BgpSettings'}, + 'resource_guid': {'key': 'properties.resourceGuid', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, location: str=None, tags=None, local_network_address_space=None, gateway_ip_address: str=None, bgp_settings=None, resource_guid: str=None, etag: str=None, **kwargs) -> None: + super(LocalNetworkGateway, self).__init__(id=id, location=location, tags=tags, **kwargs) + self.local_network_address_space = local_network_address_space + self.gateway_ip_address = gateway_ip_address + self.bgp_settings = bgp_settings + self.resource_guid = resource_guid + self.provisioning_state = None + self.etag = etag diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/log_specification.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/log_specification.py new file mode 100644 index 000000000000..ab592992d904 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/log_specification.py @@ -0,0 +1,36 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class LogSpecification(Model): + """Description of logging specification. + + :param name: The name of the specification. + :type name: str + :param display_name: The display name of the specification. + :type display_name: str + :param blob_duration: Duration of the blob. + :type blob_duration: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'blob_duration': {'key': 'blobDuration', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(LogSpecification, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.display_name = kwargs.get('display_name', None) + self.blob_duration = kwargs.get('blob_duration', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/log_specification_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/log_specification_py3.py new file mode 100644 index 000000000000..6184811d393e --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/log_specification_py3.py @@ -0,0 +1,36 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class LogSpecification(Model): + """Description of logging specification. + + :param name: The name of the specification. + :type name: str + :param display_name: The display name of the specification. + :type display_name: str + :param blob_duration: Duration of the blob. + :type blob_duration: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'blob_duration': {'key': 'blobDuration', 'type': 'str'}, + } + + def __init__(self, *, name: str=None, display_name: str=None, blob_duration: str=None, **kwargs) -> None: + super(LogSpecification, self).__init__(**kwargs) + self.name = name + self.display_name = display_name + self.blob_duration = blob_duration diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/managed_service_identity.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/managed_service_identity.py new file mode 100644 index 000000000000..2f04d5ae6a4c --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/managed_service_identity.py @@ -0,0 +1,59 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ManagedServiceIdentity(Model): + """Identity for the resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar principal_id: The principal id of the system assigned identity. This + property will only be provided for a system assigned identity. + :vartype principal_id: str + :ivar tenant_id: The tenant id of the system assigned identity. This + property will only be provided for a system assigned identity. + :vartype tenant_id: str + :param type: The type of identity used for the resource. The type + 'SystemAssigned, UserAssigned' includes both an implicitly created + identity and a set of user assigned identities. The type 'None' will + remove any identities from the virtual machine. Possible values include: + 'SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned', 'None' + :type type: str or + ~azure.mgmt.network.v2018_10_01.models.ResourceIdentityType + :param user_assigned_identities: The list of user identities associated + with resource. The user identity dictionary key references will be ARM + resource ids in the form: + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. + :type user_assigned_identities: dict[str, + ~azure.mgmt.network.v2018_10_01.models.ManagedServiceIdentityUserAssignedIdentitiesValue] + """ + + _validation = { + 'principal_id': {'readonly': True}, + 'tenant_id': {'readonly': True}, + } + + _attribute_map = { + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'ResourceIdentityType'}, + 'user_assigned_identities': {'key': 'userAssignedIdentities', 'type': '{ManagedServiceIdentityUserAssignedIdentitiesValue}'}, + } + + def __init__(self, **kwargs): + super(ManagedServiceIdentity, self).__init__(**kwargs) + self.principal_id = None + self.tenant_id = None + self.type = kwargs.get('type', None) + self.user_assigned_identities = kwargs.get('user_assigned_identities', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/managed_service_identity_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/managed_service_identity_py3.py new file mode 100644 index 000000000000..5b27776f97db --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/managed_service_identity_py3.py @@ -0,0 +1,59 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ManagedServiceIdentity(Model): + """Identity for the resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar principal_id: The principal id of the system assigned identity. This + property will only be provided for a system assigned identity. + :vartype principal_id: str + :ivar tenant_id: The tenant id of the system assigned identity. This + property will only be provided for a system assigned identity. + :vartype tenant_id: str + :param type: The type of identity used for the resource. The type + 'SystemAssigned, UserAssigned' includes both an implicitly created + identity and a set of user assigned identities. The type 'None' will + remove any identities from the virtual machine. Possible values include: + 'SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned', 'None' + :type type: str or + ~azure.mgmt.network.v2018_10_01.models.ResourceIdentityType + :param user_assigned_identities: The list of user identities associated + with resource. The user identity dictionary key references will be ARM + resource ids in the form: + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. + :type user_assigned_identities: dict[str, + ~azure.mgmt.network.v2018_10_01.models.ManagedServiceIdentityUserAssignedIdentitiesValue] + """ + + _validation = { + 'principal_id': {'readonly': True}, + 'tenant_id': {'readonly': True}, + } + + _attribute_map = { + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'ResourceIdentityType'}, + 'user_assigned_identities': {'key': 'userAssignedIdentities', 'type': '{ManagedServiceIdentityUserAssignedIdentitiesValue}'}, + } + + def __init__(self, *, type=None, user_assigned_identities=None, **kwargs) -> None: + super(ManagedServiceIdentity, self).__init__(**kwargs) + self.principal_id = None + self.tenant_id = None + self.type = type + self.user_assigned_identities = user_assigned_identities diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/managed_service_identity_user_assigned_identities_value.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/managed_service_identity_user_assigned_identities_value.py new file mode 100644 index 000000000000..63620ef6400e --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/managed_service_identity_user_assigned_identities_value.py @@ -0,0 +1,40 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ManagedServiceIdentityUserAssignedIdentitiesValue(Model): + """ManagedServiceIdentityUserAssignedIdentitiesValue. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar principal_id: The principal id of user assigned identity. + :vartype principal_id: str + :ivar client_id: The client id of user assigned identity. + :vartype client_id: str + """ + + _validation = { + 'principal_id': {'readonly': True}, + 'client_id': {'readonly': True}, + } + + _attribute_map = { + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'client_id': {'key': 'clientId', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ManagedServiceIdentityUserAssignedIdentitiesValue, self).__init__(**kwargs) + self.principal_id = None + self.client_id = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/managed_service_identity_user_assigned_identities_value_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/managed_service_identity_user_assigned_identities_value_py3.py new file mode 100644 index 000000000000..ad0281d6ba50 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/managed_service_identity_user_assigned_identities_value_py3.py @@ -0,0 +1,40 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ManagedServiceIdentityUserAssignedIdentitiesValue(Model): + """ManagedServiceIdentityUserAssignedIdentitiesValue. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar principal_id: The principal id of user assigned identity. + :vartype principal_id: str + :ivar client_id: The client id of user assigned identity. + :vartype client_id: str + """ + + _validation = { + 'principal_id': {'readonly': True}, + 'client_id': {'readonly': True}, + } + + _attribute_map = { + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'client_id': {'key': 'clientId', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(ManagedServiceIdentityUserAssignedIdentitiesValue, self).__init__(**kwargs) + self.principal_id = None + self.client_id = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/matched_rule.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/matched_rule.py new file mode 100644 index 000000000000..ffa2f54f52fd --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/matched_rule.py @@ -0,0 +1,33 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class MatchedRule(Model): + """Matched rule. + + :param rule_name: Name of the matched network security rule. + :type rule_name: str + :param action: The network traffic is allowed or denied. Possible values + are 'Allow' and 'Deny'. + :type action: str + """ + + _attribute_map = { + 'rule_name': {'key': 'ruleName', 'type': 'str'}, + 'action': {'key': 'action', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(MatchedRule, self).__init__(**kwargs) + self.rule_name = kwargs.get('rule_name', None) + self.action = kwargs.get('action', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/matched_rule_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/matched_rule_py3.py new file mode 100644 index 000000000000..67868d929d0c --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/matched_rule_py3.py @@ -0,0 +1,33 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class MatchedRule(Model): + """Matched rule. + + :param rule_name: Name of the matched network security rule. + :type rule_name: str + :param action: The network traffic is allowed or denied. Possible values + are 'Allow' and 'Deny'. + :type action: str + """ + + _attribute_map = { + 'rule_name': {'key': 'ruleName', 'type': 'str'}, + 'action': {'key': 'action', 'type': 'str'}, + } + + def __init__(self, *, rule_name: str=None, action: str=None, **kwargs) -> None: + super(MatchedRule, self).__init__(**kwargs) + self.rule_name = rule_name + self.action = action diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/metric_specification.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/metric_specification.py new file mode 100644 index 000000000000..d9b403d4a2a3 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/metric_specification.py @@ -0,0 +1,82 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class MetricSpecification(Model): + """Description of metrics specification. + + :param name: The name of the metric. + :type name: str + :param display_name: The display name of the metric. + :type display_name: str + :param display_description: The description of the metric. + :type display_description: str + :param unit: Units the metric to be displayed in. + :type unit: str + :param aggregation_type: The aggregation type. + :type aggregation_type: str + :param availabilities: List of availability. + :type availabilities: + list[~azure.mgmt.network.v2018_10_01.models.Availability] + :param enable_regional_mdm_account: Whether regional MDM account enabled. + :type enable_regional_mdm_account: bool + :param fill_gap_with_zero: Whether gaps would be filled with zeros. + :type fill_gap_with_zero: bool + :param metric_filter_pattern: Pattern for the filter of the metric. + :type metric_filter_pattern: str + :param dimensions: List of dimensions. + :type dimensions: list[~azure.mgmt.network.v2018_10_01.models.Dimension] + :param is_internal: Whether the metric is internal. + :type is_internal: bool + :param source_mdm_account: The source MDM account. + :type source_mdm_account: str + :param source_mdm_namespace: The source MDM namespace. + :type source_mdm_namespace: str + :param resource_id_dimension_name_override: The resource Id dimension name + override. + :type resource_id_dimension_name_override: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'display_description': {'key': 'displayDescription', 'type': 'str'}, + 'unit': {'key': 'unit', 'type': 'str'}, + 'aggregation_type': {'key': 'aggregationType', 'type': 'str'}, + 'availabilities': {'key': 'availabilities', 'type': '[Availability]'}, + 'enable_regional_mdm_account': {'key': 'enableRegionalMdmAccount', 'type': 'bool'}, + 'fill_gap_with_zero': {'key': 'fillGapWithZero', 'type': 'bool'}, + 'metric_filter_pattern': {'key': 'metricFilterPattern', 'type': 'str'}, + 'dimensions': {'key': 'dimensions', 'type': '[Dimension]'}, + 'is_internal': {'key': 'isInternal', 'type': 'bool'}, + 'source_mdm_account': {'key': 'sourceMdmAccount', 'type': 'str'}, + 'source_mdm_namespace': {'key': 'sourceMdmNamespace', 'type': 'str'}, + 'resource_id_dimension_name_override': {'key': 'resourceIdDimensionNameOverride', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(MetricSpecification, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.display_name = kwargs.get('display_name', None) + self.display_description = kwargs.get('display_description', None) + self.unit = kwargs.get('unit', None) + self.aggregation_type = kwargs.get('aggregation_type', None) + self.availabilities = kwargs.get('availabilities', None) + self.enable_regional_mdm_account = kwargs.get('enable_regional_mdm_account', None) + self.fill_gap_with_zero = kwargs.get('fill_gap_with_zero', None) + self.metric_filter_pattern = kwargs.get('metric_filter_pattern', None) + self.dimensions = kwargs.get('dimensions', None) + self.is_internal = kwargs.get('is_internal', None) + self.source_mdm_account = kwargs.get('source_mdm_account', None) + self.source_mdm_namespace = kwargs.get('source_mdm_namespace', None) + self.resource_id_dimension_name_override = kwargs.get('resource_id_dimension_name_override', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/metric_specification_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/metric_specification_py3.py new file mode 100644 index 000000000000..d9a396a8fbc6 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/metric_specification_py3.py @@ -0,0 +1,82 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class MetricSpecification(Model): + """Description of metrics specification. + + :param name: The name of the metric. + :type name: str + :param display_name: The display name of the metric. + :type display_name: str + :param display_description: The description of the metric. + :type display_description: str + :param unit: Units the metric to be displayed in. + :type unit: str + :param aggregation_type: The aggregation type. + :type aggregation_type: str + :param availabilities: List of availability. + :type availabilities: + list[~azure.mgmt.network.v2018_10_01.models.Availability] + :param enable_regional_mdm_account: Whether regional MDM account enabled. + :type enable_regional_mdm_account: bool + :param fill_gap_with_zero: Whether gaps would be filled with zeros. + :type fill_gap_with_zero: bool + :param metric_filter_pattern: Pattern for the filter of the metric. + :type metric_filter_pattern: str + :param dimensions: List of dimensions. + :type dimensions: list[~azure.mgmt.network.v2018_10_01.models.Dimension] + :param is_internal: Whether the metric is internal. + :type is_internal: bool + :param source_mdm_account: The source MDM account. + :type source_mdm_account: str + :param source_mdm_namespace: The source MDM namespace. + :type source_mdm_namespace: str + :param resource_id_dimension_name_override: The resource Id dimension name + override. + :type resource_id_dimension_name_override: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display_name': {'key': 'displayName', 'type': 'str'}, + 'display_description': {'key': 'displayDescription', 'type': 'str'}, + 'unit': {'key': 'unit', 'type': 'str'}, + 'aggregation_type': {'key': 'aggregationType', 'type': 'str'}, + 'availabilities': {'key': 'availabilities', 'type': '[Availability]'}, + 'enable_regional_mdm_account': {'key': 'enableRegionalMdmAccount', 'type': 'bool'}, + 'fill_gap_with_zero': {'key': 'fillGapWithZero', 'type': 'bool'}, + 'metric_filter_pattern': {'key': 'metricFilterPattern', 'type': 'str'}, + 'dimensions': {'key': 'dimensions', 'type': '[Dimension]'}, + 'is_internal': {'key': 'isInternal', 'type': 'bool'}, + 'source_mdm_account': {'key': 'sourceMdmAccount', 'type': 'str'}, + 'source_mdm_namespace': {'key': 'sourceMdmNamespace', 'type': 'str'}, + 'resource_id_dimension_name_override': {'key': 'resourceIdDimensionNameOverride', 'type': 'str'}, + } + + def __init__(self, *, name: str=None, display_name: str=None, display_description: str=None, unit: str=None, aggregation_type: str=None, availabilities=None, enable_regional_mdm_account: bool=None, fill_gap_with_zero: bool=None, metric_filter_pattern: str=None, dimensions=None, is_internal: bool=None, source_mdm_account: str=None, source_mdm_namespace: str=None, resource_id_dimension_name_override: str=None, **kwargs) -> None: + super(MetricSpecification, self).__init__(**kwargs) + self.name = name + self.display_name = display_name + self.display_description = display_description + self.unit = unit + self.aggregation_type = aggregation_type + self.availabilities = availabilities + self.enable_regional_mdm_account = enable_regional_mdm_account + self.fill_gap_with_zero = fill_gap_with_zero + self.metric_filter_pattern = metric_filter_pattern + self.dimensions = dimensions + self.is_internal = is_internal + self.source_mdm_account = source_mdm_account + self.source_mdm_namespace = source_mdm_namespace + self.resource_id_dimension_name_override = resource_id_dimension_name_override diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_configuration_diagnostic_parameters.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_configuration_diagnostic_parameters.py new file mode 100644 index 000000000000..6a0f67e13db6 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_configuration_diagnostic_parameters.py @@ -0,0 +1,49 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class NetworkConfigurationDiagnosticParameters(Model): + """Parameters to get network configuration diagnostic. + + All required parameters must be populated in order to send to Azure. + + :param target_resource_id: Required. The ID of the target resource to + perform network configuration diagnostic. Valid options are VM, + NetworkInterface, VMSS/NetworkInterface and Application Gateway. + :type target_resource_id: str + :param verbosity_level: Verbosity level. Accepted values are 'Normal', + 'Minimum', 'Full'. Possible values include: 'Normal', 'Minimum', 'Full' + :type verbosity_level: str or + ~azure.mgmt.network.v2018_10_01.models.VerbosityLevel + :param profiles: Required. List of network configuration diagnostic + profiles. + :type profiles: + list[~azure.mgmt.network.v2018_10_01.models.NetworkConfigurationDiagnosticProfile] + """ + + _validation = { + 'target_resource_id': {'required': True}, + 'profiles': {'required': True}, + } + + _attribute_map = { + 'target_resource_id': {'key': 'targetResourceId', 'type': 'str'}, + 'verbosity_level': {'key': 'verbosityLevel', 'type': 'str'}, + 'profiles': {'key': 'profiles', 'type': '[NetworkConfigurationDiagnosticProfile]'}, + } + + def __init__(self, **kwargs): + super(NetworkConfigurationDiagnosticParameters, self).__init__(**kwargs) + self.target_resource_id = kwargs.get('target_resource_id', None) + self.verbosity_level = kwargs.get('verbosity_level', None) + self.profiles = kwargs.get('profiles', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_configuration_diagnostic_parameters_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_configuration_diagnostic_parameters_py3.py new file mode 100644 index 000000000000..19f365853340 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_configuration_diagnostic_parameters_py3.py @@ -0,0 +1,49 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class NetworkConfigurationDiagnosticParameters(Model): + """Parameters to get network configuration diagnostic. + + All required parameters must be populated in order to send to Azure. + + :param target_resource_id: Required. The ID of the target resource to + perform network configuration diagnostic. Valid options are VM, + NetworkInterface, VMSS/NetworkInterface and Application Gateway. + :type target_resource_id: str + :param verbosity_level: Verbosity level. Accepted values are 'Normal', + 'Minimum', 'Full'. Possible values include: 'Normal', 'Minimum', 'Full' + :type verbosity_level: str or + ~azure.mgmt.network.v2018_10_01.models.VerbosityLevel + :param profiles: Required. List of network configuration diagnostic + profiles. + :type profiles: + list[~azure.mgmt.network.v2018_10_01.models.NetworkConfigurationDiagnosticProfile] + """ + + _validation = { + 'target_resource_id': {'required': True}, + 'profiles': {'required': True}, + } + + _attribute_map = { + 'target_resource_id': {'key': 'targetResourceId', 'type': 'str'}, + 'verbosity_level': {'key': 'verbosityLevel', 'type': 'str'}, + 'profiles': {'key': 'profiles', 'type': '[NetworkConfigurationDiagnosticProfile]'}, + } + + def __init__(self, *, target_resource_id: str, profiles, verbosity_level=None, **kwargs) -> None: + super(NetworkConfigurationDiagnosticParameters, self).__init__(**kwargs) + self.target_resource_id = target_resource_id + self.verbosity_level = verbosity_level + self.profiles = profiles diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_configuration_diagnostic_profile.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_configuration_diagnostic_profile.py new file mode 100644 index 000000000000..2f43a58988aa --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_configuration_diagnostic_profile.py @@ -0,0 +1,61 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class NetworkConfigurationDiagnosticProfile(Model): + """Parameters to compare with network configuration. + + All required parameters must be populated in order to send to Azure. + + :param direction: Required. The direction of the traffic. Accepted values + are 'Inbound' and 'Outbound'. Possible values include: 'Inbound', + 'Outbound' + :type direction: str or ~azure.mgmt.network.v2018_10_01.models.Direction + :param protocol: Required. Protocol to be verified on. Accepted values are + '*', TCP, UDP. + :type protocol: str + :param source: Required. Traffic source. Accepted values are '*', IP + Address/CIDR, Service Tag. + :type source: str + :param destination: Required. Traffic destination. Accepted values are: + '*', IP Address/CIDR, Service Tag. + :type destination: str + :param destination_port: Required. Traffice destination port. Accepted + values are '*', port (for example, 3389) and port range (for example, + 80-100). + :type destination_port: str + """ + + _validation = { + 'direction': {'required': True}, + 'protocol': {'required': True}, + 'source': {'required': True}, + 'destination': {'required': True}, + 'destination_port': {'required': True}, + } + + _attribute_map = { + 'direction': {'key': 'direction', 'type': 'str'}, + 'protocol': {'key': 'protocol', 'type': 'str'}, + 'source': {'key': 'source', 'type': 'str'}, + 'destination': {'key': 'destination', 'type': 'str'}, + 'destination_port': {'key': 'destinationPort', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(NetworkConfigurationDiagnosticProfile, self).__init__(**kwargs) + self.direction = kwargs.get('direction', None) + self.protocol = kwargs.get('protocol', None) + self.source = kwargs.get('source', None) + self.destination = kwargs.get('destination', None) + self.destination_port = kwargs.get('destination_port', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_configuration_diagnostic_profile_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_configuration_diagnostic_profile_py3.py new file mode 100644 index 000000000000..c000ab992e06 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_configuration_diagnostic_profile_py3.py @@ -0,0 +1,61 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class NetworkConfigurationDiagnosticProfile(Model): + """Parameters to compare with network configuration. + + All required parameters must be populated in order to send to Azure. + + :param direction: Required. The direction of the traffic. Accepted values + are 'Inbound' and 'Outbound'. Possible values include: 'Inbound', + 'Outbound' + :type direction: str or ~azure.mgmt.network.v2018_10_01.models.Direction + :param protocol: Required. Protocol to be verified on. Accepted values are + '*', TCP, UDP. + :type protocol: str + :param source: Required. Traffic source. Accepted values are '*', IP + Address/CIDR, Service Tag. + :type source: str + :param destination: Required. Traffic destination. Accepted values are: + '*', IP Address/CIDR, Service Tag. + :type destination: str + :param destination_port: Required. Traffice destination port. Accepted + values are '*', port (for example, 3389) and port range (for example, + 80-100). + :type destination_port: str + """ + + _validation = { + 'direction': {'required': True}, + 'protocol': {'required': True}, + 'source': {'required': True}, + 'destination': {'required': True}, + 'destination_port': {'required': True}, + } + + _attribute_map = { + 'direction': {'key': 'direction', 'type': 'str'}, + 'protocol': {'key': 'protocol', 'type': 'str'}, + 'source': {'key': 'source', 'type': 'str'}, + 'destination': {'key': 'destination', 'type': 'str'}, + 'destination_port': {'key': 'destinationPort', 'type': 'str'}, + } + + def __init__(self, *, direction, protocol: str, source: str, destination: str, destination_port: str, **kwargs) -> None: + super(NetworkConfigurationDiagnosticProfile, self).__init__(**kwargs) + self.direction = direction + self.protocol = protocol + self.source = source + self.destination = destination + self.destination_port = destination_port diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_configuration_diagnostic_response.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_configuration_diagnostic_response.py new file mode 100644 index 000000000000..20c7cd96bc8d --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_configuration_diagnostic_response.py @@ -0,0 +1,36 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class NetworkConfigurationDiagnosticResponse(Model): + """Results of network configuration diagnostic on the target resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar results: List of network configuration diagnostic results. + :vartype results: + list[~azure.mgmt.network.v2018_10_01.models.NetworkConfigurationDiagnosticResult] + """ + + _validation = { + 'results': {'readonly': True}, + } + + _attribute_map = { + 'results': {'key': 'results', 'type': '[NetworkConfigurationDiagnosticResult]'}, + } + + def __init__(self, **kwargs): + super(NetworkConfigurationDiagnosticResponse, self).__init__(**kwargs) + self.results = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_configuration_diagnostic_response_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_configuration_diagnostic_response_py3.py new file mode 100644 index 000000000000..9fa04ea84a42 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_configuration_diagnostic_response_py3.py @@ -0,0 +1,36 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class NetworkConfigurationDiagnosticResponse(Model): + """Results of network configuration diagnostic on the target resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar results: List of network configuration diagnostic results. + :vartype results: + list[~azure.mgmt.network.v2018_10_01.models.NetworkConfigurationDiagnosticResult] + """ + + _validation = { + 'results': {'readonly': True}, + } + + _attribute_map = { + 'results': {'key': 'results', 'type': '[NetworkConfigurationDiagnosticResult]'}, + } + + def __init__(self, **kwargs) -> None: + super(NetworkConfigurationDiagnosticResponse, self).__init__(**kwargs) + self.results = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_configuration_diagnostic_result.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_configuration_diagnostic_result.py new file mode 100644 index 000000000000..49de567af835 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_configuration_diagnostic_result.py @@ -0,0 +1,35 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class NetworkConfigurationDiagnosticResult(Model): + """Network configuration diagnostic result corresponded to provided traffic + query. + + :param profile: + :type profile: + ~azure.mgmt.network.v2018_10_01.models.NetworkConfigurationDiagnosticProfile + :param network_security_group_result: + :type network_security_group_result: + ~azure.mgmt.network.v2018_10_01.models.NetworkSecurityGroupResult + """ + + _attribute_map = { + 'profile': {'key': 'profile', 'type': 'NetworkConfigurationDiagnosticProfile'}, + 'network_security_group_result': {'key': 'networkSecurityGroupResult', 'type': 'NetworkSecurityGroupResult'}, + } + + def __init__(self, **kwargs): + super(NetworkConfigurationDiagnosticResult, self).__init__(**kwargs) + self.profile = kwargs.get('profile', None) + self.network_security_group_result = kwargs.get('network_security_group_result', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_configuration_diagnostic_result_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_configuration_diagnostic_result_py3.py new file mode 100644 index 000000000000..4f28da3bb87f --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_configuration_diagnostic_result_py3.py @@ -0,0 +1,35 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class NetworkConfigurationDiagnosticResult(Model): + """Network configuration diagnostic result corresponded to provided traffic + query. + + :param profile: + :type profile: + ~azure.mgmt.network.v2018_10_01.models.NetworkConfigurationDiagnosticProfile + :param network_security_group_result: + :type network_security_group_result: + ~azure.mgmt.network.v2018_10_01.models.NetworkSecurityGroupResult + """ + + _attribute_map = { + 'profile': {'key': 'profile', 'type': 'NetworkConfigurationDiagnosticProfile'}, + 'network_security_group_result': {'key': 'networkSecurityGroupResult', 'type': 'NetworkSecurityGroupResult'}, + } + + def __init__(self, *, profile=None, network_security_group_result=None, **kwargs) -> None: + super(NetworkConfigurationDiagnosticResult, self).__init__(**kwargs) + self.profile = profile + self.network_security_group_result = network_security_group_result diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_interface.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_interface.py new file mode 100644 index 000000000000..154e60dfb73c --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_interface.py @@ -0,0 +1,122 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource import Resource + + +class NetworkInterface(Resource): + """A network interface in a resource group. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :ivar virtual_machine: The reference of a virtual machine. + :vartype virtual_machine: + ~azure.mgmt.network.v2018_10_01.models.SubResource + :param network_security_group: The reference of the NetworkSecurityGroup + resource. + :type network_security_group: + ~azure.mgmt.network.v2018_10_01.models.NetworkSecurityGroup + :ivar interface_endpoint: A reference to the interface endpoint to which + the network interface is linked. + :vartype interface_endpoint: + ~azure.mgmt.network.v2018_10_01.models.InterfaceEndpoint + :param ip_configurations: A list of IPConfigurations of the network + interface. + :type ip_configurations: + list[~azure.mgmt.network.v2018_10_01.models.NetworkInterfaceIPConfiguration] + :param tap_configurations: A list of TapConfigurations of the network + interface. + :type tap_configurations: + list[~azure.mgmt.network.v2018_10_01.models.NetworkInterfaceTapConfiguration] + :param dns_settings: The DNS settings in network interface. + :type dns_settings: + ~azure.mgmt.network.v2018_10_01.models.NetworkInterfaceDnsSettings + :param mac_address: The MAC address of the network interface. + :type mac_address: str + :param primary: Gets whether this is a primary network interface on a + virtual machine. + :type primary: bool + :param enable_accelerated_networking: If the network interface is + accelerated networking enabled. + :type enable_accelerated_networking: bool + :param enable_ip_forwarding: Indicates whether IP forwarding is enabled on + this network interface. + :type enable_ip_forwarding: bool + :ivar hosted_workloads: A list of references to linked BareMetal resources + :vartype hosted_workloads: list[str] + :param resource_guid: The resource GUID property of the network interface + resource. + :type resource_guid: str + :param provisioning_state: The provisioning state of the public IP + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'virtual_machine': {'readonly': True}, + 'interface_endpoint': {'readonly': True}, + 'hosted_workloads': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'virtual_machine': {'key': 'properties.virtualMachine', 'type': 'SubResource'}, + 'network_security_group': {'key': 'properties.networkSecurityGroup', 'type': 'NetworkSecurityGroup'}, + 'interface_endpoint': {'key': 'properties.interfaceEndpoint', 'type': 'InterfaceEndpoint'}, + 'ip_configurations': {'key': 'properties.ipConfigurations', 'type': '[NetworkInterfaceIPConfiguration]'}, + 'tap_configurations': {'key': 'properties.tapConfigurations', 'type': '[NetworkInterfaceTapConfiguration]'}, + 'dns_settings': {'key': 'properties.dnsSettings', 'type': 'NetworkInterfaceDnsSettings'}, + 'mac_address': {'key': 'properties.macAddress', 'type': 'str'}, + 'primary': {'key': 'properties.primary', 'type': 'bool'}, + 'enable_accelerated_networking': {'key': 'properties.enableAcceleratedNetworking', 'type': 'bool'}, + 'enable_ip_forwarding': {'key': 'properties.enableIPForwarding', 'type': 'bool'}, + 'hosted_workloads': {'key': 'properties.hostedWorkloads', 'type': '[str]'}, + 'resource_guid': {'key': 'properties.resourceGuid', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(NetworkInterface, self).__init__(**kwargs) + self.virtual_machine = None + self.network_security_group = kwargs.get('network_security_group', None) + self.interface_endpoint = None + self.ip_configurations = kwargs.get('ip_configurations', None) + self.tap_configurations = kwargs.get('tap_configurations', None) + self.dns_settings = kwargs.get('dns_settings', None) + self.mac_address = kwargs.get('mac_address', None) + self.primary = kwargs.get('primary', None) + self.enable_accelerated_networking = kwargs.get('enable_accelerated_networking', None) + self.enable_ip_forwarding = kwargs.get('enable_ip_forwarding', None) + self.hosted_workloads = None + self.resource_guid = kwargs.get('resource_guid', None) + self.provisioning_state = kwargs.get('provisioning_state', None) + self.etag = kwargs.get('etag', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_interface_association.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_interface_association.py new file mode 100644 index 000000000000..d93e6ea3a652 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_interface_association.py @@ -0,0 +1,40 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class NetworkInterfaceAssociation(Model): + """Network interface and its custom security rules. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Network interface ID. + :vartype id: str + :param security_rules: Collection of custom security rules. + :type security_rules: + list[~azure.mgmt.network.v2018_10_01.models.SecurityRule] + """ + + _validation = { + 'id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'security_rules': {'key': 'securityRules', 'type': '[SecurityRule]'}, + } + + def __init__(self, **kwargs): + super(NetworkInterfaceAssociation, self).__init__(**kwargs) + self.id = None + self.security_rules = kwargs.get('security_rules', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_interface_association_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_interface_association_py3.py new file mode 100644 index 000000000000..34e62ad30e35 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_interface_association_py3.py @@ -0,0 +1,40 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class NetworkInterfaceAssociation(Model): + """Network interface and its custom security rules. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Network interface ID. + :vartype id: str + :param security_rules: Collection of custom security rules. + :type security_rules: + list[~azure.mgmt.network.v2018_10_01.models.SecurityRule] + """ + + _validation = { + 'id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'security_rules': {'key': 'securityRules', 'type': '[SecurityRule]'}, + } + + def __init__(self, *, security_rules=None, **kwargs) -> None: + super(NetworkInterfaceAssociation, self).__init__(**kwargs) + self.id = None + self.security_rules = security_rules diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_interface_dns_settings.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_interface_dns_settings.py new file mode 100644 index 000000000000..b6ee0ff40d51 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_interface_dns_settings.py @@ -0,0 +1,55 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class NetworkInterfaceDnsSettings(Model): + """DNS settings of a network interface. + + :param dns_servers: List of DNS servers IP addresses. Use + 'AzureProvidedDNS' to switch to azure provided DNS resolution. + 'AzureProvidedDNS' value cannot be combined with other IPs, it must be the + only value in dnsServers collection. + :type dns_servers: list[str] + :param applied_dns_servers: If the VM that uses this NIC is part of an + Availability Set, then this list will have the union of all DNS servers + from all NICs that are part of the Availability Set. This property is what + is configured on each of those VMs. + :type applied_dns_servers: list[str] + :param internal_dns_name_label: Relative DNS name for this NIC used for + internal communications between VMs in the same virtual network. + :type internal_dns_name_label: str + :param internal_fqdn: Fully qualified DNS name supporting internal + communications between VMs in the same virtual network. + :type internal_fqdn: str + :param internal_domain_name_suffix: Even if internalDnsNameLabel is not + specified, a DNS entry is created for the primary NIC of the VM. This DNS + name can be constructed by concatenating the VM name with the value of + internalDomainNameSuffix. + :type internal_domain_name_suffix: str + """ + + _attribute_map = { + 'dns_servers': {'key': 'dnsServers', 'type': '[str]'}, + 'applied_dns_servers': {'key': 'appliedDnsServers', 'type': '[str]'}, + 'internal_dns_name_label': {'key': 'internalDnsNameLabel', 'type': 'str'}, + 'internal_fqdn': {'key': 'internalFqdn', 'type': 'str'}, + 'internal_domain_name_suffix': {'key': 'internalDomainNameSuffix', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(NetworkInterfaceDnsSettings, self).__init__(**kwargs) + self.dns_servers = kwargs.get('dns_servers', None) + self.applied_dns_servers = kwargs.get('applied_dns_servers', None) + self.internal_dns_name_label = kwargs.get('internal_dns_name_label', None) + self.internal_fqdn = kwargs.get('internal_fqdn', None) + self.internal_domain_name_suffix = kwargs.get('internal_domain_name_suffix', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_interface_dns_settings_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_interface_dns_settings_py3.py new file mode 100644 index 000000000000..ccdcc937def8 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_interface_dns_settings_py3.py @@ -0,0 +1,55 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class NetworkInterfaceDnsSettings(Model): + """DNS settings of a network interface. + + :param dns_servers: List of DNS servers IP addresses. Use + 'AzureProvidedDNS' to switch to azure provided DNS resolution. + 'AzureProvidedDNS' value cannot be combined with other IPs, it must be the + only value in dnsServers collection. + :type dns_servers: list[str] + :param applied_dns_servers: If the VM that uses this NIC is part of an + Availability Set, then this list will have the union of all DNS servers + from all NICs that are part of the Availability Set. This property is what + is configured on each of those VMs. + :type applied_dns_servers: list[str] + :param internal_dns_name_label: Relative DNS name for this NIC used for + internal communications between VMs in the same virtual network. + :type internal_dns_name_label: str + :param internal_fqdn: Fully qualified DNS name supporting internal + communications between VMs in the same virtual network. + :type internal_fqdn: str + :param internal_domain_name_suffix: Even if internalDnsNameLabel is not + specified, a DNS entry is created for the primary NIC of the VM. This DNS + name can be constructed by concatenating the VM name with the value of + internalDomainNameSuffix. + :type internal_domain_name_suffix: str + """ + + _attribute_map = { + 'dns_servers': {'key': 'dnsServers', 'type': '[str]'}, + 'applied_dns_servers': {'key': 'appliedDnsServers', 'type': '[str]'}, + 'internal_dns_name_label': {'key': 'internalDnsNameLabel', 'type': 'str'}, + 'internal_fqdn': {'key': 'internalFqdn', 'type': 'str'}, + 'internal_domain_name_suffix': {'key': 'internalDomainNameSuffix', 'type': 'str'}, + } + + def __init__(self, *, dns_servers=None, applied_dns_servers=None, internal_dns_name_label: str=None, internal_fqdn: str=None, internal_domain_name_suffix: str=None, **kwargs) -> None: + super(NetworkInterfaceDnsSettings, self).__init__(**kwargs) + self.dns_servers = dns_servers + self.applied_dns_servers = applied_dns_servers + self.internal_dns_name_label = internal_dns_name_label + self.internal_fqdn = internal_fqdn + self.internal_domain_name_suffix = internal_domain_name_suffix diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_interface_ip_configuration.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_interface_ip_configuration.py new file mode 100644 index 000000000000..1454eba5397c --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_interface_ip_configuration.py @@ -0,0 +1,105 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource import SubResource + + +class NetworkInterfaceIPConfiguration(SubResource): + """IPConfiguration in a network interface. + + :param id: Resource ID. + :type id: str + :param virtual_network_taps: The reference to Virtual Network Taps. + :type virtual_network_taps: + list[~azure.mgmt.network.v2018_10_01.models.VirtualNetworkTap] + :param application_gateway_backend_address_pools: The reference of + ApplicationGatewayBackendAddressPool resource. + :type application_gateway_backend_address_pools: + list[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayBackendAddressPool] + :param load_balancer_backend_address_pools: The reference of + LoadBalancerBackendAddressPool resource. + :type load_balancer_backend_address_pools: + list[~azure.mgmt.network.v2018_10_01.models.BackendAddressPool] + :param load_balancer_inbound_nat_rules: A list of references of + LoadBalancerInboundNatRules. + :type load_balancer_inbound_nat_rules: + list[~azure.mgmt.network.v2018_10_01.models.InboundNatRule] + :param private_ip_address: Private IP address of the IP configuration. + :type private_ip_address: str + :param private_ip_allocation_method: Defines how a private IP address is + assigned. Possible values are: 'Static' and 'Dynamic'. Possible values + include: 'Static', 'Dynamic' + :type private_ip_allocation_method: str or + ~azure.mgmt.network.v2018_10_01.models.IPAllocationMethod + :param private_ip_address_version: Available from Api-Version 2016-03-30 + onwards, it represents whether the specific ipconfiguration is IPv4 or + IPv6. Default is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'. + Possible values include: 'IPv4', 'IPv6' + :type private_ip_address_version: str or + ~azure.mgmt.network.v2018_10_01.models.IPVersion + :param subnet: Subnet bound to the IP configuration. + :type subnet: ~azure.mgmt.network.v2018_10_01.models.Subnet + :param primary: Gets whether this is a primary customer address on the + network interface. + :type primary: bool + :param public_ip_address: Public IP address bound to the IP configuration. + :type public_ip_address: + ~azure.mgmt.network.v2018_10_01.models.PublicIPAddress + :param application_security_groups: Application security groups in which + the IP configuration is included. + :type application_security_groups: + list[~azure.mgmt.network.v2018_10_01.models.ApplicationSecurityGroup] + :param provisioning_state: The provisioning state of the network interface + IP configuration. Possible values are: 'Updating', 'Deleting', and + 'Failed'. + :type provisioning_state: str + :param name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'virtual_network_taps': {'key': 'properties.virtualNetworkTaps', 'type': '[VirtualNetworkTap]'}, + 'application_gateway_backend_address_pools': {'key': 'properties.applicationGatewayBackendAddressPools', 'type': '[ApplicationGatewayBackendAddressPool]'}, + 'load_balancer_backend_address_pools': {'key': 'properties.loadBalancerBackendAddressPools', 'type': '[BackendAddressPool]'}, + 'load_balancer_inbound_nat_rules': {'key': 'properties.loadBalancerInboundNatRules', 'type': '[InboundNatRule]'}, + 'private_ip_address': {'key': 'properties.privateIPAddress', 'type': 'str'}, + 'private_ip_allocation_method': {'key': 'properties.privateIPAllocationMethod', 'type': 'str'}, + 'private_ip_address_version': {'key': 'properties.privateIPAddressVersion', 'type': 'str'}, + 'subnet': {'key': 'properties.subnet', 'type': 'Subnet'}, + 'primary': {'key': 'properties.primary', 'type': 'bool'}, + 'public_ip_address': {'key': 'properties.publicIPAddress', 'type': 'PublicIPAddress'}, + 'application_security_groups': {'key': 'properties.applicationSecurityGroups', 'type': '[ApplicationSecurityGroup]'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(NetworkInterfaceIPConfiguration, self).__init__(**kwargs) + self.virtual_network_taps = kwargs.get('virtual_network_taps', None) + self.application_gateway_backend_address_pools = kwargs.get('application_gateway_backend_address_pools', None) + self.load_balancer_backend_address_pools = kwargs.get('load_balancer_backend_address_pools', None) + self.load_balancer_inbound_nat_rules = kwargs.get('load_balancer_inbound_nat_rules', None) + self.private_ip_address = kwargs.get('private_ip_address', None) + self.private_ip_allocation_method = kwargs.get('private_ip_allocation_method', None) + self.private_ip_address_version = kwargs.get('private_ip_address_version', None) + self.subnet = kwargs.get('subnet', None) + self.primary = kwargs.get('primary', None) + self.public_ip_address = kwargs.get('public_ip_address', None) + self.application_security_groups = kwargs.get('application_security_groups', None) + self.provisioning_state = kwargs.get('provisioning_state', None) + self.name = kwargs.get('name', None) + self.etag = kwargs.get('etag', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_interface_ip_configuration_paged.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_interface_ip_configuration_paged.py new file mode 100644 index 000000000000..4bc88d567746 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_interface_ip_configuration_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class NetworkInterfaceIPConfigurationPaged(Paged): + """ + A paging container for iterating over a list of :class:`NetworkInterfaceIPConfiguration ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[NetworkInterfaceIPConfiguration]'} + } + + def __init__(self, *args, **kwargs): + + super(NetworkInterfaceIPConfigurationPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_interface_ip_configuration_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_interface_ip_configuration_py3.py new file mode 100644 index 000000000000..9b543f7f858b --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_interface_ip_configuration_py3.py @@ -0,0 +1,105 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource_py3 import SubResource + + +class NetworkInterfaceIPConfiguration(SubResource): + """IPConfiguration in a network interface. + + :param id: Resource ID. + :type id: str + :param virtual_network_taps: The reference to Virtual Network Taps. + :type virtual_network_taps: + list[~azure.mgmt.network.v2018_10_01.models.VirtualNetworkTap] + :param application_gateway_backend_address_pools: The reference of + ApplicationGatewayBackendAddressPool resource. + :type application_gateway_backend_address_pools: + list[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayBackendAddressPool] + :param load_balancer_backend_address_pools: The reference of + LoadBalancerBackendAddressPool resource. + :type load_balancer_backend_address_pools: + list[~azure.mgmt.network.v2018_10_01.models.BackendAddressPool] + :param load_balancer_inbound_nat_rules: A list of references of + LoadBalancerInboundNatRules. + :type load_balancer_inbound_nat_rules: + list[~azure.mgmt.network.v2018_10_01.models.InboundNatRule] + :param private_ip_address: Private IP address of the IP configuration. + :type private_ip_address: str + :param private_ip_allocation_method: Defines how a private IP address is + assigned. Possible values are: 'Static' and 'Dynamic'. Possible values + include: 'Static', 'Dynamic' + :type private_ip_allocation_method: str or + ~azure.mgmt.network.v2018_10_01.models.IPAllocationMethod + :param private_ip_address_version: Available from Api-Version 2016-03-30 + onwards, it represents whether the specific ipconfiguration is IPv4 or + IPv6. Default is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'. + Possible values include: 'IPv4', 'IPv6' + :type private_ip_address_version: str or + ~azure.mgmt.network.v2018_10_01.models.IPVersion + :param subnet: Subnet bound to the IP configuration. + :type subnet: ~azure.mgmt.network.v2018_10_01.models.Subnet + :param primary: Gets whether this is a primary customer address on the + network interface. + :type primary: bool + :param public_ip_address: Public IP address bound to the IP configuration. + :type public_ip_address: + ~azure.mgmt.network.v2018_10_01.models.PublicIPAddress + :param application_security_groups: Application security groups in which + the IP configuration is included. + :type application_security_groups: + list[~azure.mgmt.network.v2018_10_01.models.ApplicationSecurityGroup] + :param provisioning_state: The provisioning state of the network interface + IP configuration. Possible values are: 'Updating', 'Deleting', and + 'Failed'. + :type provisioning_state: str + :param name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'virtual_network_taps': {'key': 'properties.virtualNetworkTaps', 'type': '[VirtualNetworkTap]'}, + 'application_gateway_backend_address_pools': {'key': 'properties.applicationGatewayBackendAddressPools', 'type': '[ApplicationGatewayBackendAddressPool]'}, + 'load_balancer_backend_address_pools': {'key': 'properties.loadBalancerBackendAddressPools', 'type': '[BackendAddressPool]'}, + 'load_balancer_inbound_nat_rules': {'key': 'properties.loadBalancerInboundNatRules', 'type': '[InboundNatRule]'}, + 'private_ip_address': {'key': 'properties.privateIPAddress', 'type': 'str'}, + 'private_ip_allocation_method': {'key': 'properties.privateIPAllocationMethod', 'type': 'str'}, + 'private_ip_address_version': {'key': 'properties.privateIPAddressVersion', 'type': 'str'}, + 'subnet': {'key': 'properties.subnet', 'type': 'Subnet'}, + 'primary': {'key': 'properties.primary', 'type': 'bool'}, + 'public_ip_address': {'key': 'properties.publicIPAddress', 'type': 'PublicIPAddress'}, + 'application_security_groups': {'key': 'properties.applicationSecurityGroups', 'type': '[ApplicationSecurityGroup]'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, virtual_network_taps=None, application_gateway_backend_address_pools=None, load_balancer_backend_address_pools=None, load_balancer_inbound_nat_rules=None, private_ip_address: str=None, private_ip_allocation_method=None, private_ip_address_version=None, subnet=None, primary: bool=None, public_ip_address=None, application_security_groups=None, provisioning_state: str=None, name: str=None, etag: str=None, **kwargs) -> None: + super(NetworkInterfaceIPConfiguration, self).__init__(id=id, **kwargs) + self.virtual_network_taps = virtual_network_taps + self.application_gateway_backend_address_pools = application_gateway_backend_address_pools + self.load_balancer_backend_address_pools = load_balancer_backend_address_pools + self.load_balancer_inbound_nat_rules = load_balancer_inbound_nat_rules + self.private_ip_address = private_ip_address + self.private_ip_allocation_method = private_ip_allocation_method + self.private_ip_address_version = private_ip_address_version + self.subnet = subnet + self.primary = primary + self.public_ip_address = public_ip_address + self.application_security_groups = application_security_groups + self.provisioning_state = provisioning_state + self.name = name + self.etag = etag diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_interface_paged.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_interface_paged.py new file mode 100644 index 000000000000..d93341ff62c4 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_interface_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class NetworkInterfacePaged(Paged): + """ + A paging container for iterating over a list of :class:`NetworkInterface ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[NetworkInterface]'} + } + + def __init__(self, *args, **kwargs): + + super(NetworkInterfacePaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_interface_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_interface_py3.py new file mode 100644 index 000000000000..bbd25c2354df --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_interface_py3.py @@ -0,0 +1,122 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource_py3 import Resource + + +class NetworkInterface(Resource): + """A network interface in a resource group. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :ivar virtual_machine: The reference of a virtual machine. + :vartype virtual_machine: + ~azure.mgmt.network.v2018_10_01.models.SubResource + :param network_security_group: The reference of the NetworkSecurityGroup + resource. + :type network_security_group: + ~azure.mgmt.network.v2018_10_01.models.NetworkSecurityGroup + :ivar interface_endpoint: A reference to the interface endpoint to which + the network interface is linked. + :vartype interface_endpoint: + ~azure.mgmt.network.v2018_10_01.models.InterfaceEndpoint + :param ip_configurations: A list of IPConfigurations of the network + interface. + :type ip_configurations: + list[~azure.mgmt.network.v2018_10_01.models.NetworkInterfaceIPConfiguration] + :param tap_configurations: A list of TapConfigurations of the network + interface. + :type tap_configurations: + list[~azure.mgmt.network.v2018_10_01.models.NetworkInterfaceTapConfiguration] + :param dns_settings: The DNS settings in network interface. + :type dns_settings: + ~azure.mgmt.network.v2018_10_01.models.NetworkInterfaceDnsSettings + :param mac_address: The MAC address of the network interface. + :type mac_address: str + :param primary: Gets whether this is a primary network interface on a + virtual machine. + :type primary: bool + :param enable_accelerated_networking: If the network interface is + accelerated networking enabled. + :type enable_accelerated_networking: bool + :param enable_ip_forwarding: Indicates whether IP forwarding is enabled on + this network interface. + :type enable_ip_forwarding: bool + :ivar hosted_workloads: A list of references to linked BareMetal resources + :vartype hosted_workloads: list[str] + :param resource_guid: The resource GUID property of the network interface + resource. + :type resource_guid: str + :param provisioning_state: The provisioning state of the public IP + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'virtual_machine': {'readonly': True}, + 'interface_endpoint': {'readonly': True}, + 'hosted_workloads': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'virtual_machine': {'key': 'properties.virtualMachine', 'type': 'SubResource'}, + 'network_security_group': {'key': 'properties.networkSecurityGroup', 'type': 'NetworkSecurityGroup'}, + 'interface_endpoint': {'key': 'properties.interfaceEndpoint', 'type': 'InterfaceEndpoint'}, + 'ip_configurations': {'key': 'properties.ipConfigurations', 'type': '[NetworkInterfaceIPConfiguration]'}, + 'tap_configurations': {'key': 'properties.tapConfigurations', 'type': '[NetworkInterfaceTapConfiguration]'}, + 'dns_settings': {'key': 'properties.dnsSettings', 'type': 'NetworkInterfaceDnsSettings'}, + 'mac_address': {'key': 'properties.macAddress', 'type': 'str'}, + 'primary': {'key': 'properties.primary', 'type': 'bool'}, + 'enable_accelerated_networking': {'key': 'properties.enableAcceleratedNetworking', 'type': 'bool'}, + 'enable_ip_forwarding': {'key': 'properties.enableIPForwarding', 'type': 'bool'}, + 'hosted_workloads': {'key': 'properties.hostedWorkloads', 'type': '[str]'}, + 'resource_guid': {'key': 'properties.resourceGuid', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, location: str=None, tags=None, network_security_group=None, ip_configurations=None, tap_configurations=None, dns_settings=None, mac_address: str=None, primary: bool=None, enable_accelerated_networking: bool=None, enable_ip_forwarding: bool=None, resource_guid: str=None, provisioning_state: str=None, etag: str=None, **kwargs) -> None: + super(NetworkInterface, self).__init__(id=id, location=location, tags=tags, **kwargs) + self.virtual_machine = None + self.network_security_group = network_security_group + self.interface_endpoint = None + self.ip_configurations = ip_configurations + self.tap_configurations = tap_configurations + self.dns_settings = dns_settings + self.mac_address = mac_address + self.primary = primary + self.enable_accelerated_networking = enable_accelerated_networking + self.enable_ip_forwarding = enable_ip_forwarding + self.hosted_workloads = None + self.resource_guid = resource_guid + self.provisioning_state = provisioning_state + self.etag = etag diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_interface_tap_configuration.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_interface_tap_configuration.py new file mode 100644 index 000000000000..69e83bc8d049 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_interface_tap_configuration.py @@ -0,0 +1,61 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource import SubResource + + +class NetworkInterfaceTapConfiguration(SubResource): + """Tap configuration in a Network Interface. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :param virtual_network_tap: The reference of the Virtual Network Tap + resource. + :type virtual_network_tap: + ~azure.mgmt.network.v2018_10_01.models.VirtualNetworkTap + :ivar provisioning_state: The provisioning state of the network interface + tap configuration. Possible values are: 'Updating', 'Deleting', and + 'Failed'. + :vartype provisioning_state: str + :param name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + :ivar type: Sub Resource type. + :vartype type: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'virtual_network_tap': {'key': 'properties.virtualNetworkTap', 'type': 'VirtualNetworkTap'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(NetworkInterfaceTapConfiguration, self).__init__(**kwargs) + self.virtual_network_tap = kwargs.get('virtual_network_tap', None) + self.provisioning_state = None + self.name = kwargs.get('name', None) + self.etag = kwargs.get('etag', None) + self.type = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_interface_tap_configuration_paged.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_interface_tap_configuration_paged.py new file mode 100644 index 000000000000..4263da5b45f7 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_interface_tap_configuration_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class NetworkInterfaceTapConfigurationPaged(Paged): + """ + A paging container for iterating over a list of :class:`NetworkInterfaceTapConfiguration ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[NetworkInterfaceTapConfiguration]'} + } + + def __init__(self, *args, **kwargs): + + super(NetworkInterfaceTapConfigurationPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_interface_tap_configuration_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_interface_tap_configuration_py3.py new file mode 100644 index 000000000000..8dcf21d04210 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_interface_tap_configuration_py3.py @@ -0,0 +1,61 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource_py3 import SubResource + + +class NetworkInterfaceTapConfiguration(SubResource): + """Tap configuration in a Network Interface. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :param virtual_network_tap: The reference of the Virtual Network Tap + resource. + :type virtual_network_tap: + ~azure.mgmt.network.v2018_10_01.models.VirtualNetworkTap + :ivar provisioning_state: The provisioning state of the network interface + tap configuration. Possible values are: 'Updating', 'Deleting', and + 'Failed'. + :vartype provisioning_state: str + :param name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + :ivar type: Sub Resource type. + :vartype type: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'virtual_network_tap': {'key': 'properties.virtualNetworkTap', 'type': 'VirtualNetworkTap'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, virtual_network_tap=None, name: str=None, etag: str=None, **kwargs) -> None: + super(NetworkInterfaceTapConfiguration, self).__init__(id=id, **kwargs) + self.virtual_network_tap = virtual_network_tap + self.provisioning_state = None + self.name = name + self.etag = etag + self.type = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_management_client_enums.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_management_client_enums.py new file mode 100644 index 000000000000..c59f458aa8f7 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_management_client_enums.py @@ -0,0 +1,717 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from enum import Enum + + +class IPAllocationMethod(str, Enum): + + static = "Static" + dynamic = "Dynamic" + + +class SecurityRuleProtocol(str, Enum): + + tcp = "Tcp" + udp = "Udp" + asterisk = "*" + + +class SecurityRuleAccess(str, Enum): + + allow = "Allow" + deny = "Deny" + + +class SecurityRuleDirection(str, Enum): + + inbound = "Inbound" + outbound = "Outbound" + + +class RouteNextHopType(str, Enum): + + virtual_network_gateway = "VirtualNetworkGateway" + vnet_local = "VnetLocal" + internet = "Internet" + virtual_appliance = "VirtualAppliance" + none = "None" + + +class PublicIPAddressSkuName(str, Enum): + + basic = "Basic" + standard = "Standard" + + +class IPVersion(str, Enum): + + ipv4 = "IPv4" + ipv6 = "IPv6" + + +class TransportProtocol(str, Enum): + + udp = "Udp" + tcp = "Tcp" + all = "All" + + +class ApplicationGatewayProtocol(str, Enum): + + http = "Http" + https = "Https" + + +class ApplicationGatewayCookieBasedAffinity(str, Enum): + + enabled = "Enabled" + disabled = "Disabled" + + +class ApplicationGatewayBackendHealthServerHealth(str, Enum): + + unknown = "Unknown" + up = "Up" + down = "Down" + partial = "Partial" + draining = "Draining" + + +class ApplicationGatewaySkuName(str, Enum): + + standard_small = "Standard_Small" + standard_medium = "Standard_Medium" + standard_large = "Standard_Large" + waf_medium = "WAF_Medium" + waf_large = "WAF_Large" + standard_v2 = "Standard_v2" + waf_v2 = "WAF_v2" + + +class ApplicationGatewayTier(str, Enum): + + standard = "Standard" + waf = "WAF" + standard_v2 = "Standard_v2" + waf_v2 = "WAF_v2" + + +class ApplicationGatewaySslProtocol(str, Enum): + + tl_sv1_0 = "TLSv1_0" + tl_sv1_1 = "TLSv1_1" + tl_sv1_2 = "TLSv1_2" + + +class ApplicationGatewaySslPolicyType(str, Enum): + + predefined = "Predefined" + custom = "Custom" + + +class ApplicationGatewaySslPolicyName(str, Enum): + + app_gw_ssl_policy20150501 = "AppGwSslPolicy20150501" + app_gw_ssl_policy20170401 = "AppGwSslPolicy20170401" + app_gw_ssl_policy20170401_s = "AppGwSslPolicy20170401S" + + +class ApplicationGatewaySslCipherSuite(str, Enum): + + tls_ecdhe_rsa_with_aes_256_cbc_sha384 = "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384" + tls_ecdhe_rsa_with_aes_128_cbc_sha256 = "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256" + tls_ecdhe_rsa_with_aes_256_cbc_sha = "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA" + tls_ecdhe_rsa_with_aes_128_cbc_sha = "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA" + tls_dhe_rsa_with_aes_256_gcm_sha384 = "TLS_DHE_RSA_WITH_AES_256_GCM_SHA384" + tls_dhe_rsa_with_aes_128_gcm_sha256 = "TLS_DHE_RSA_WITH_AES_128_GCM_SHA256" + tls_dhe_rsa_with_aes_256_cbc_sha = "TLS_DHE_RSA_WITH_AES_256_CBC_SHA" + tls_dhe_rsa_with_aes_128_cbc_sha = "TLS_DHE_RSA_WITH_AES_128_CBC_SHA" + tls_rsa_with_aes_256_gcm_sha384 = "TLS_RSA_WITH_AES_256_GCM_SHA384" + tls_rsa_with_aes_128_gcm_sha256 = "TLS_RSA_WITH_AES_128_GCM_SHA256" + tls_rsa_with_aes_256_cbc_sha256 = "TLS_RSA_WITH_AES_256_CBC_SHA256" + tls_rsa_with_aes_128_cbc_sha256 = "TLS_RSA_WITH_AES_128_CBC_SHA256" + tls_rsa_with_aes_256_cbc_sha = "TLS_RSA_WITH_AES_256_CBC_SHA" + tls_rsa_with_aes_128_cbc_sha = "TLS_RSA_WITH_AES_128_CBC_SHA" + tls_ecdhe_ecdsa_with_aes_256_gcm_sha384 = "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384" + tls_ecdhe_ecdsa_with_aes_128_gcm_sha256 = "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256" + tls_ecdhe_ecdsa_with_aes_256_cbc_sha384 = "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384" + tls_ecdhe_ecdsa_with_aes_128_cbc_sha256 = "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256" + tls_ecdhe_ecdsa_with_aes_256_cbc_sha = "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA" + tls_ecdhe_ecdsa_with_aes_128_cbc_sha = "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA" + tls_dhe_dss_with_aes_256_cbc_sha256 = "TLS_DHE_DSS_WITH_AES_256_CBC_SHA256" + tls_dhe_dss_with_aes_128_cbc_sha256 = "TLS_DHE_DSS_WITH_AES_128_CBC_SHA256" + tls_dhe_dss_with_aes_256_cbc_sha = "TLS_DHE_DSS_WITH_AES_256_CBC_SHA" + tls_dhe_dss_with_aes_128_cbc_sha = "TLS_DHE_DSS_WITH_AES_128_CBC_SHA" + tls_rsa_with_3_des_ede_cbc_sha = "TLS_RSA_WITH_3DES_EDE_CBC_SHA" + + +class ApplicationGatewayCustomErrorStatusCode(str, Enum): + + http_status403 = "HttpStatus403" + http_status502 = "HttpStatus502" + + +class ApplicationGatewayRequestRoutingRuleType(str, Enum): + + basic = "Basic" + path_based_routing = "PathBasedRouting" + + +class ApplicationGatewayRedirectType(str, Enum): + + permanent = "Permanent" + found = "Found" + see_other = "SeeOther" + temporary = "Temporary" + + +class ApplicationGatewayOperationalState(str, Enum): + + stopped = "Stopped" + starting = "Starting" + running = "Running" + stopping = "Stopping" + + +class ApplicationGatewayFirewallMode(str, Enum): + + detection = "Detection" + prevention = "Prevention" + + +class ResourceIdentityType(str, Enum): + + system_assigned = "SystemAssigned" + user_assigned = "UserAssigned" + system_assigned_user_assigned = "SystemAssigned, UserAssigned" + none = "None" + + +class ProvisioningState(str, Enum): + + succeeded = "Succeeded" + updating = "Updating" + deleting = "Deleting" + failed = "Failed" + + +class AzureFirewallRCActionType(str, Enum): + + allow = "Allow" + deny = "Deny" + + +class AzureFirewallApplicationRuleProtocolType(str, Enum): + + http = "Http" + https = "Https" + + +class AzureFirewallNatRCActionType(str, Enum): + + snat = "Snat" + dnat = "Dnat" + + +class AzureFirewallNetworkRuleProtocol(str, Enum): + + tcp = "TCP" + udp = "UDP" + any = "Any" + icmp = "ICMP" + + +class AuthorizationUseStatus(str, Enum): + + available = "Available" + in_use = "InUse" + + +class ExpressRouteCircuitPeeringAdvertisedPublicPrefixState(str, Enum): + + not_configured = "NotConfigured" + configuring = "Configuring" + configured = "Configured" + validation_needed = "ValidationNeeded" + + +class Access(str, Enum): + + allow = "Allow" + deny = "Deny" + + +class ExpressRoutePeeringType(str, Enum): + + azure_public_peering = "AzurePublicPeering" + azure_private_peering = "AzurePrivatePeering" + microsoft_peering = "MicrosoftPeering" + + +class ExpressRoutePeeringState(str, Enum): + + disabled = "Disabled" + enabled = "Enabled" + + +class CircuitConnectionStatus(str, Enum): + + connected = "Connected" + connecting = "Connecting" + disconnected = "Disconnected" + + +class ExpressRouteCircuitPeeringState(str, Enum): + + disabled = "Disabled" + enabled = "Enabled" + + +class ExpressRouteCircuitSkuTier(str, Enum): + + standard = "Standard" + premium = "Premium" + basic = "Basic" + + +class ExpressRouteCircuitSkuFamily(str, Enum): + + unlimited_data = "UnlimitedData" + metered_data = "MeteredData" + + +class ServiceProviderProvisioningState(str, Enum): + + not_provisioned = "NotProvisioned" + provisioning = "Provisioning" + provisioned = "Provisioned" + deprovisioning = "Deprovisioning" + + +class ExpressRouteLinkConnectorType(str, Enum): + + lc = "LC" + sc = "SC" + + +class ExpressRouteLinkAdminState(str, Enum): + + enabled = "Enabled" + disabled = "Disabled" + + +class ExpressRoutePortsEncapsulation(str, Enum): + + dot1_q = "Dot1Q" + qin_q = "QinQ" + + +class LoadBalancerSkuName(str, Enum): + + basic = "Basic" + standard = "Standard" + + +class LoadDistribution(str, Enum): + + default = "Default" + source_ip = "SourceIP" + source_ip_protocol = "SourceIPProtocol" + + +class ProbeProtocol(str, Enum): + + http = "Http" + tcp = "Tcp" + https = "Https" + + +class NetworkOperationStatus(str, Enum): + + in_progress = "InProgress" + succeeded = "Succeeded" + failed = "Failed" + + +class EffectiveSecurityRuleProtocol(str, Enum): + + tcp = "Tcp" + udp = "Udp" + all = "All" + + +class EffectiveRouteSource(str, Enum): + + unknown = "Unknown" + user = "User" + virtual_network_gateway = "VirtualNetworkGateway" + default = "Default" + + +class EffectiveRouteState(str, Enum): + + active = "Active" + invalid = "Invalid" + + +class AssociationType(str, Enum): + + associated = "Associated" + contains = "Contains" + + +class Direction(str, Enum): + + inbound = "Inbound" + outbound = "Outbound" + + +class IpFlowProtocol(str, Enum): + + tcp = "TCP" + udp = "UDP" + + +class NextHopType(str, Enum): + + internet = "Internet" + virtual_appliance = "VirtualAppliance" + virtual_network_gateway = "VirtualNetworkGateway" + vnet_local = "VnetLocal" + hyper_net_gateway = "HyperNetGateway" + none = "None" + + +class PcProtocol(str, Enum): + + tcp = "TCP" + udp = "UDP" + any = "Any" + + +class PcStatus(str, Enum): + + not_started = "NotStarted" + running = "Running" + stopped = "Stopped" + error = "Error" + unknown = "Unknown" + + +class PcError(str, Enum): + + internal_error = "InternalError" + agent_stopped = "AgentStopped" + capture_failed = "CaptureFailed" + local_file_failed = "LocalFileFailed" + storage_failed = "StorageFailed" + + +class FlowLogFormatType(str, Enum): + + json = "JSON" + + +class Protocol(str, Enum): + + tcp = "Tcp" + http = "Http" + https = "Https" + icmp = "Icmp" + + +class HTTPMethod(str, Enum): + + get = "Get" + + +class Origin(str, Enum): + + local = "Local" + inbound = "Inbound" + outbound = "Outbound" + + +class Severity(str, Enum): + + error = "Error" + warning = "Warning" + + +class IssueType(str, Enum): + + unknown = "Unknown" + agent_stopped = "AgentStopped" + guest_firewall = "GuestFirewall" + dns_resolution = "DnsResolution" + socket_bind = "SocketBind" + network_security_rule = "NetworkSecurityRule" + user_defined_route = "UserDefinedRoute" + port_throttled = "PortThrottled" + platform = "Platform" + + +class ConnectionStatus(str, Enum): + + unknown = "Unknown" + connected = "Connected" + disconnected = "Disconnected" + degraded = "Degraded" + + +class ConnectionMonitorSourceStatus(str, Enum): + + uknown = "Uknown" + active = "Active" + inactive = "Inactive" + + +class ConnectionState(str, Enum): + + reachable = "Reachable" + unreachable = "Unreachable" + unknown = "Unknown" + + +class EvaluationState(str, Enum): + + not_started = "NotStarted" + in_progress = "InProgress" + completed = "Completed" + + +class VerbosityLevel(str, Enum): + + normal = "Normal" + minimum = "Minimum" + full = "Full" + + +class PublicIPPrefixSkuName(str, Enum): + + standard = "Standard" + + +class VirtualNetworkPeeringState(str, Enum): + + initiated = "Initiated" + connected = "Connected" + disconnected = "Disconnected" + + +class VirtualNetworkGatewayType(str, Enum): + + vpn = "Vpn" + express_route = "ExpressRoute" + + +class VpnType(str, Enum): + + policy_based = "PolicyBased" + route_based = "RouteBased" + + +class VirtualNetworkGatewaySkuName(str, Enum): + + basic = "Basic" + high_performance = "HighPerformance" + standard = "Standard" + ultra_performance = "UltraPerformance" + vpn_gw1 = "VpnGw1" + vpn_gw2 = "VpnGw2" + vpn_gw3 = "VpnGw3" + vpn_gw1_az = "VpnGw1AZ" + vpn_gw2_az = "VpnGw2AZ" + vpn_gw3_az = "VpnGw3AZ" + er_gw1_az = "ErGw1AZ" + er_gw2_az = "ErGw2AZ" + er_gw3_az = "ErGw3AZ" + + +class VirtualNetworkGatewaySkuTier(str, Enum): + + basic = "Basic" + high_performance = "HighPerformance" + standard = "Standard" + ultra_performance = "UltraPerformance" + vpn_gw1 = "VpnGw1" + vpn_gw2 = "VpnGw2" + vpn_gw3 = "VpnGw3" + vpn_gw1_az = "VpnGw1AZ" + vpn_gw2_az = "VpnGw2AZ" + vpn_gw3_az = "VpnGw3AZ" + er_gw1_az = "ErGw1AZ" + er_gw2_az = "ErGw2AZ" + er_gw3_az = "ErGw3AZ" + + +class VpnClientProtocol(str, Enum): + + ike_v2 = "IkeV2" + sstp = "SSTP" + open_vpn = "OpenVPN" + + +class IpsecEncryption(str, Enum): + + none = "None" + des = "DES" + des3 = "DES3" + aes128 = "AES128" + aes192 = "AES192" + aes256 = "AES256" + gcmaes128 = "GCMAES128" + gcmaes192 = "GCMAES192" + gcmaes256 = "GCMAES256" + + +class IpsecIntegrity(str, Enum): + + md5 = "MD5" + sha1 = "SHA1" + sha256 = "SHA256" + gcmaes128 = "GCMAES128" + gcmaes192 = "GCMAES192" + gcmaes256 = "GCMAES256" + + +class IkeEncryption(str, Enum): + + des = "DES" + des3 = "DES3" + aes128 = "AES128" + aes192 = "AES192" + aes256 = "AES256" + gcmaes256 = "GCMAES256" + gcmaes128 = "GCMAES128" + + +class IkeIntegrity(str, Enum): + + md5 = "MD5" + sha1 = "SHA1" + sha256 = "SHA256" + sha384 = "SHA384" + gcmaes256 = "GCMAES256" + gcmaes128 = "GCMAES128" + + +class DhGroup(str, Enum): + + none = "None" + dh_group1 = "DHGroup1" + dh_group2 = "DHGroup2" + dh_group14 = "DHGroup14" + dh_group2048 = "DHGroup2048" + ecp256 = "ECP256" + ecp384 = "ECP384" + dh_group24 = "DHGroup24" + + +class PfsGroup(str, Enum): + + none = "None" + pfs1 = "PFS1" + pfs2 = "PFS2" + pfs2048 = "PFS2048" + ecp256 = "ECP256" + ecp384 = "ECP384" + pfs24 = "PFS24" + pfs14 = "PFS14" + pfsmm = "PFSMM" + + +class BgpPeerState(str, Enum): + + unknown = "Unknown" + stopped = "Stopped" + idle = "Idle" + connecting = "Connecting" + connected = "Connected" + + +class ProcessorArchitecture(str, Enum): + + amd64 = "Amd64" + x86 = "X86" + + +class AuthenticationMethod(str, Enum): + + eaptls = "EAPTLS" + eapmscha_pv2 = "EAPMSCHAPv2" + + +class VirtualNetworkGatewayConnectionStatus(str, Enum): + + unknown = "Unknown" + connecting = "Connecting" + connected = "Connected" + not_connected = "NotConnected" + + +class VirtualNetworkGatewayConnectionType(str, Enum): + + ipsec = "IPsec" + vnet2_vnet = "Vnet2Vnet" + express_route = "ExpressRoute" + vpn_client = "VPNClient" + + +class VirtualNetworkGatewayConnectionProtocol(str, Enum): + + ik_ev2 = "IKEv2" + ik_ev1 = "IKEv1" + + +class OfficeTrafficCategory(str, Enum): + + optimize = "Optimize" + optimize_and_allow = "OptimizeAndAllow" + all = "All" + none = "None" + + +class VpnGatewayTunnelingProtocol(str, Enum): + + ike_v2 = "IkeV2" + open_vpn = "OpenVPN" + + +class VpnConnectionStatus(str, Enum): + + unknown = "Unknown" + connecting = "Connecting" + connected = "Connected" + not_connected = "NotConnected" + + +class VirtualWanSecurityProviderType(str, Enum): + + external = "External" + native = "Native" + + +class TunnelConnectionStatus(str, Enum): + + unknown = "Unknown" + connecting = "Connecting" + connected = "Connected" + not_connected = "NotConnected" + + +class HubVirtualNetworkConnectionStatus(str, Enum): + + unknown = "Unknown" + connecting = "Connecting" + connected = "Connected" + not_connected = "NotConnected" diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_profile.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_profile.py new file mode 100644 index 000000000000..aebc8cb2fec5 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_profile.py @@ -0,0 +1,75 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource import Resource + + +class NetworkProfile(Resource): + """Network profile resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param container_network_interfaces: List of child container network + interfaces. + :type container_network_interfaces: + list[~azure.mgmt.network.v2018_10_01.models.ContainerNetworkInterface] + :param container_network_interface_configurations: List of chid container + network interface configurations. + :type container_network_interface_configurations: + list[~azure.mgmt.network.v2018_10_01.models.ContainerNetworkInterfaceConfiguration] + :ivar resource_guid: The resource GUID property of the network interface + resource. + :vartype resource_guid: str + :ivar provisioning_state: The provisioning state of the resource. + :vartype provisioning_state: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'resource_guid': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'container_network_interfaces': {'key': 'properties.containerNetworkInterfaces', 'type': '[ContainerNetworkInterface]'}, + 'container_network_interface_configurations': {'key': 'properties.containerNetworkInterfaceConfigurations', 'type': '[ContainerNetworkInterfaceConfiguration]'}, + 'resource_guid': {'key': 'properties.resourceGuid', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(NetworkProfile, self).__init__(**kwargs) + self.container_network_interfaces = kwargs.get('container_network_interfaces', None) + self.container_network_interface_configurations = kwargs.get('container_network_interface_configurations', None) + self.resource_guid = None + self.provisioning_state = None + self.etag = kwargs.get('etag', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_profile_paged.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_profile_paged.py new file mode 100644 index 000000000000..cd82d5ed2350 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_profile_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class NetworkProfilePaged(Paged): + """ + A paging container for iterating over a list of :class:`NetworkProfile ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[NetworkProfile]'} + } + + def __init__(self, *args, **kwargs): + + super(NetworkProfilePaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_profile_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_profile_py3.py new file mode 100644 index 000000000000..892447fb0e2a --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_profile_py3.py @@ -0,0 +1,75 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource_py3 import Resource + + +class NetworkProfile(Resource): + """Network profile resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param container_network_interfaces: List of child container network + interfaces. + :type container_network_interfaces: + list[~azure.mgmt.network.v2018_10_01.models.ContainerNetworkInterface] + :param container_network_interface_configurations: List of chid container + network interface configurations. + :type container_network_interface_configurations: + list[~azure.mgmt.network.v2018_10_01.models.ContainerNetworkInterfaceConfiguration] + :ivar resource_guid: The resource GUID property of the network interface + resource. + :vartype resource_guid: str + :ivar provisioning_state: The provisioning state of the resource. + :vartype provisioning_state: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'resource_guid': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'container_network_interfaces': {'key': 'properties.containerNetworkInterfaces', 'type': '[ContainerNetworkInterface]'}, + 'container_network_interface_configurations': {'key': 'properties.containerNetworkInterfaceConfigurations', 'type': '[ContainerNetworkInterfaceConfiguration]'}, + 'resource_guid': {'key': 'properties.resourceGuid', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, location: str=None, tags=None, container_network_interfaces=None, container_network_interface_configurations=None, etag: str=None, **kwargs) -> None: + super(NetworkProfile, self).__init__(id=id, location=location, tags=tags, **kwargs) + self.container_network_interfaces = container_network_interfaces + self.container_network_interface_configurations = container_network_interface_configurations + self.resource_guid = None + self.provisioning_state = None + self.etag = etag diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_security_group.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_security_group.py new file mode 100644 index 000000000000..ce46e60f184a --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_security_group.py @@ -0,0 +1,86 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource import Resource + + +class NetworkSecurityGroup(Resource): + """NetworkSecurityGroup resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param security_rules: A collection of security rules of the network + security group. + :type security_rules: + list[~azure.mgmt.network.v2018_10_01.models.SecurityRule] + :param default_security_rules: The default security rules of network + security group. + :type default_security_rules: + list[~azure.mgmt.network.v2018_10_01.models.SecurityRule] + :ivar network_interfaces: A collection of references to network + interfaces. + :vartype network_interfaces: + list[~azure.mgmt.network.v2018_10_01.models.NetworkInterface] + :ivar subnets: A collection of references to subnets. + :vartype subnets: list[~azure.mgmt.network.v2018_10_01.models.Subnet] + :param resource_guid: The resource GUID property of the network security + group resource. + :type resource_guid: str + :param provisioning_state: The provisioning state of the public IP + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'network_interfaces': {'readonly': True}, + 'subnets': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'security_rules': {'key': 'properties.securityRules', 'type': '[SecurityRule]'}, + 'default_security_rules': {'key': 'properties.defaultSecurityRules', 'type': '[SecurityRule]'}, + 'network_interfaces': {'key': 'properties.networkInterfaces', 'type': '[NetworkInterface]'}, + 'subnets': {'key': 'properties.subnets', 'type': '[Subnet]'}, + 'resource_guid': {'key': 'properties.resourceGuid', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(NetworkSecurityGroup, self).__init__(**kwargs) + self.security_rules = kwargs.get('security_rules', None) + self.default_security_rules = kwargs.get('default_security_rules', None) + self.network_interfaces = None + self.subnets = None + self.resource_guid = kwargs.get('resource_guid', None) + self.provisioning_state = kwargs.get('provisioning_state', None) + self.etag = kwargs.get('etag', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_security_group_paged.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_security_group_paged.py new file mode 100644 index 000000000000..cabfa6d84a50 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_security_group_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class NetworkSecurityGroupPaged(Paged): + """ + A paging container for iterating over a list of :class:`NetworkSecurityGroup ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[NetworkSecurityGroup]'} + } + + def __init__(self, *args, **kwargs): + + super(NetworkSecurityGroupPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_security_group_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_security_group_py3.py new file mode 100644 index 000000000000..7126648c9d78 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_security_group_py3.py @@ -0,0 +1,86 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource_py3 import Resource + + +class NetworkSecurityGroup(Resource): + """NetworkSecurityGroup resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param security_rules: A collection of security rules of the network + security group. + :type security_rules: + list[~azure.mgmt.network.v2018_10_01.models.SecurityRule] + :param default_security_rules: The default security rules of network + security group. + :type default_security_rules: + list[~azure.mgmt.network.v2018_10_01.models.SecurityRule] + :ivar network_interfaces: A collection of references to network + interfaces. + :vartype network_interfaces: + list[~azure.mgmt.network.v2018_10_01.models.NetworkInterface] + :ivar subnets: A collection of references to subnets. + :vartype subnets: list[~azure.mgmt.network.v2018_10_01.models.Subnet] + :param resource_guid: The resource GUID property of the network security + group resource. + :type resource_guid: str + :param provisioning_state: The provisioning state of the public IP + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'network_interfaces': {'readonly': True}, + 'subnets': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'security_rules': {'key': 'properties.securityRules', 'type': '[SecurityRule]'}, + 'default_security_rules': {'key': 'properties.defaultSecurityRules', 'type': '[SecurityRule]'}, + 'network_interfaces': {'key': 'properties.networkInterfaces', 'type': '[NetworkInterface]'}, + 'subnets': {'key': 'properties.subnets', 'type': '[Subnet]'}, + 'resource_guid': {'key': 'properties.resourceGuid', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, location: str=None, tags=None, security_rules=None, default_security_rules=None, resource_guid: str=None, provisioning_state: str=None, etag: str=None, **kwargs) -> None: + super(NetworkSecurityGroup, self).__init__(id=id, location=location, tags=tags, **kwargs) + self.security_rules = security_rules + self.default_security_rules = default_security_rules + self.network_interfaces = None + self.subnets = None + self.resource_guid = resource_guid + self.provisioning_state = provisioning_state + self.etag = etag diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_security_group_result.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_security_group_result.py new file mode 100644 index 000000000000..d6d2f0282473 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_security_group_result.py @@ -0,0 +1,45 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class NetworkSecurityGroupResult(Model): + """Network configuration diagnostic result corresponded provided traffic + query. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param security_rule_access_result: The network traffic is allowed or + denied. Possible values are 'Allow' and 'Deny'. Possible values include: + 'Allow', 'Deny' + :type security_rule_access_result: str or + ~azure.mgmt.network.v2018_10_01.models.SecurityRuleAccess + :ivar evaluated_network_security_groups: List of results network security + groups diagnostic. + :vartype evaluated_network_security_groups: + list[~azure.mgmt.network.v2018_10_01.models.EvaluatedNetworkSecurityGroup] + """ + + _validation = { + 'evaluated_network_security_groups': {'readonly': True}, + } + + _attribute_map = { + 'security_rule_access_result': {'key': 'securityRuleAccessResult', 'type': 'str'}, + 'evaluated_network_security_groups': {'key': 'evaluatedNetworkSecurityGroups', 'type': '[EvaluatedNetworkSecurityGroup]'}, + } + + def __init__(self, **kwargs): + super(NetworkSecurityGroupResult, self).__init__(**kwargs) + self.security_rule_access_result = kwargs.get('security_rule_access_result', None) + self.evaluated_network_security_groups = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_security_group_result_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_security_group_result_py3.py new file mode 100644 index 000000000000..b1c7851f3d12 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_security_group_result_py3.py @@ -0,0 +1,45 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class NetworkSecurityGroupResult(Model): + """Network configuration diagnostic result corresponded provided traffic + query. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param security_rule_access_result: The network traffic is allowed or + denied. Possible values are 'Allow' and 'Deny'. Possible values include: + 'Allow', 'Deny' + :type security_rule_access_result: str or + ~azure.mgmt.network.v2018_10_01.models.SecurityRuleAccess + :ivar evaluated_network_security_groups: List of results network security + groups diagnostic. + :vartype evaluated_network_security_groups: + list[~azure.mgmt.network.v2018_10_01.models.EvaluatedNetworkSecurityGroup] + """ + + _validation = { + 'evaluated_network_security_groups': {'readonly': True}, + } + + _attribute_map = { + 'security_rule_access_result': {'key': 'securityRuleAccessResult', 'type': 'str'}, + 'evaluated_network_security_groups': {'key': 'evaluatedNetworkSecurityGroups', 'type': '[EvaluatedNetworkSecurityGroup]'}, + } + + def __init__(self, *, security_rule_access_result=None, **kwargs) -> None: + super(NetworkSecurityGroupResult, self).__init__(**kwargs) + self.security_rule_access_result = security_rule_access_result + self.evaluated_network_security_groups = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_security_rules_evaluation_result.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_security_rules_evaluation_result.py new file mode 100644 index 000000000000..63c680f2093f --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_security_rules_evaluation_result.py @@ -0,0 +1,51 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class NetworkSecurityRulesEvaluationResult(Model): + """Network security rules evaluation result. + + :param name: Name of the network security rule. + :type name: str + :param protocol_matched: Value indicating whether protocol is matched. + :type protocol_matched: bool + :param source_matched: Value indicating whether source is matched. + :type source_matched: bool + :param source_port_matched: Value indicating whether source port is + matched. + :type source_port_matched: bool + :param destination_matched: Value indicating whether destination is + matched. + :type destination_matched: bool + :param destination_port_matched: Value indicating whether destination port + is matched. + :type destination_port_matched: bool + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'protocol_matched': {'key': 'protocolMatched', 'type': 'bool'}, + 'source_matched': {'key': 'sourceMatched', 'type': 'bool'}, + 'source_port_matched': {'key': 'sourcePortMatched', 'type': 'bool'}, + 'destination_matched': {'key': 'destinationMatched', 'type': 'bool'}, + 'destination_port_matched': {'key': 'destinationPortMatched', 'type': 'bool'}, + } + + def __init__(self, **kwargs): + super(NetworkSecurityRulesEvaluationResult, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.protocol_matched = kwargs.get('protocol_matched', None) + self.source_matched = kwargs.get('source_matched', None) + self.source_port_matched = kwargs.get('source_port_matched', None) + self.destination_matched = kwargs.get('destination_matched', None) + self.destination_port_matched = kwargs.get('destination_port_matched', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_security_rules_evaluation_result_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_security_rules_evaluation_result_py3.py new file mode 100644 index 000000000000..3958fc34a17b --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_security_rules_evaluation_result_py3.py @@ -0,0 +1,51 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class NetworkSecurityRulesEvaluationResult(Model): + """Network security rules evaluation result. + + :param name: Name of the network security rule. + :type name: str + :param protocol_matched: Value indicating whether protocol is matched. + :type protocol_matched: bool + :param source_matched: Value indicating whether source is matched. + :type source_matched: bool + :param source_port_matched: Value indicating whether source port is + matched. + :type source_port_matched: bool + :param destination_matched: Value indicating whether destination is + matched. + :type destination_matched: bool + :param destination_port_matched: Value indicating whether destination port + is matched. + :type destination_port_matched: bool + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'protocol_matched': {'key': 'protocolMatched', 'type': 'bool'}, + 'source_matched': {'key': 'sourceMatched', 'type': 'bool'}, + 'source_port_matched': {'key': 'sourcePortMatched', 'type': 'bool'}, + 'destination_matched': {'key': 'destinationMatched', 'type': 'bool'}, + 'destination_port_matched': {'key': 'destinationPortMatched', 'type': 'bool'}, + } + + def __init__(self, *, name: str=None, protocol_matched: bool=None, source_matched: bool=None, source_port_matched: bool=None, destination_matched: bool=None, destination_port_matched: bool=None, **kwargs) -> None: + super(NetworkSecurityRulesEvaluationResult, self).__init__(**kwargs) + self.name = name + self.protocol_matched = protocol_matched + self.source_matched = source_matched + self.source_port_matched = source_port_matched + self.destination_matched = destination_matched + self.destination_port_matched = destination_port_matched diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_watcher.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_watcher.py new file mode 100644 index 000000000000..64e512e496d6 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_watcher.py @@ -0,0 +1,59 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource import Resource + + +class NetworkWatcher(Resource): + """Network watcher in a resource group. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + :ivar provisioning_state: The provisioning state of the resource. Possible + values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + :vartype provisioning_state: str or + ~azure.mgmt.network.v2018_10_01.models.ProvisioningState + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(NetworkWatcher, self).__init__(**kwargs) + self.etag = kwargs.get('etag', None) + self.provisioning_state = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_watcher_paged.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_watcher_paged.py new file mode 100644 index 000000000000..01d6b481642f --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_watcher_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class NetworkWatcherPaged(Paged): + """ + A paging container for iterating over a list of :class:`NetworkWatcher ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[NetworkWatcher]'} + } + + def __init__(self, *args, **kwargs): + + super(NetworkWatcherPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_watcher_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_watcher_py3.py new file mode 100644 index 000000000000..74bb85ef9a3b --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/network_watcher_py3.py @@ -0,0 +1,59 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource_py3 import Resource + + +class NetworkWatcher(Resource): + """Network watcher in a resource group. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + :ivar provisioning_state: The provisioning state of the resource. Possible + values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + :vartype provisioning_state: str or + ~azure.mgmt.network.v2018_10_01.models.ProvisioningState + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, location: str=None, tags=None, etag: str=None, **kwargs) -> None: + super(NetworkWatcher, self).__init__(id=id, location=location, tags=tags, **kwargs) + self.etag = etag + self.provisioning_state = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/next_hop_parameters.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/next_hop_parameters.py new file mode 100644 index 000000000000..54d8674c8884 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/next_hop_parameters.py @@ -0,0 +1,51 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class NextHopParameters(Model): + """Parameters that define the source and destination endpoint. + + All required parameters must be populated in order to send to Azure. + + :param target_resource_id: Required. The resource identifier of the target + resource against which the action is to be performed. + :type target_resource_id: str + :param source_ip_address: Required. The source IP address. + :type source_ip_address: str + :param destination_ip_address: Required. The destination IP address. + :type destination_ip_address: str + :param target_nic_resource_id: The NIC ID. (If VM has multiple NICs and IP + forwarding is enabled on any of the nics, then this parameter must be + specified. Otherwise optional). + :type target_nic_resource_id: str + """ + + _validation = { + 'target_resource_id': {'required': True}, + 'source_ip_address': {'required': True}, + 'destination_ip_address': {'required': True}, + } + + _attribute_map = { + 'target_resource_id': {'key': 'targetResourceId', 'type': 'str'}, + 'source_ip_address': {'key': 'sourceIPAddress', 'type': 'str'}, + 'destination_ip_address': {'key': 'destinationIPAddress', 'type': 'str'}, + 'target_nic_resource_id': {'key': 'targetNicResourceId', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(NextHopParameters, self).__init__(**kwargs) + self.target_resource_id = kwargs.get('target_resource_id', None) + self.source_ip_address = kwargs.get('source_ip_address', None) + self.destination_ip_address = kwargs.get('destination_ip_address', None) + self.target_nic_resource_id = kwargs.get('target_nic_resource_id', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/next_hop_parameters_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/next_hop_parameters_py3.py new file mode 100644 index 000000000000..50ee3d334e91 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/next_hop_parameters_py3.py @@ -0,0 +1,51 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class NextHopParameters(Model): + """Parameters that define the source and destination endpoint. + + All required parameters must be populated in order to send to Azure. + + :param target_resource_id: Required. The resource identifier of the target + resource against which the action is to be performed. + :type target_resource_id: str + :param source_ip_address: Required. The source IP address. + :type source_ip_address: str + :param destination_ip_address: Required. The destination IP address. + :type destination_ip_address: str + :param target_nic_resource_id: The NIC ID. (If VM has multiple NICs and IP + forwarding is enabled on any of the nics, then this parameter must be + specified. Otherwise optional). + :type target_nic_resource_id: str + """ + + _validation = { + 'target_resource_id': {'required': True}, + 'source_ip_address': {'required': True}, + 'destination_ip_address': {'required': True}, + } + + _attribute_map = { + 'target_resource_id': {'key': 'targetResourceId', 'type': 'str'}, + 'source_ip_address': {'key': 'sourceIPAddress', 'type': 'str'}, + 'destination_ip_address': {'key': 'destinationIPAddress', 'type': 'str'}, + 'target_nic_resource_id': {'key': 'targetNicResourceId', 'type': 'str'}, + } + + def __init__(self, *, target_resource_id: str, source_ip_address: str, destination_ip_address: str, target_nic_resource_id: str=None, **kwargs) -> None: + super(NextHopParameters, self).__init__(**kwargs) + self.target_resource_id = target_resource_id + self.source_ip_address = source_ip_address + self.destination_ip_address = destination_ip_address + self.target_nic_resource_id = target_nic_resource_id diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/next_hop_result.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/next_hop_result.py new file mode 100644 index 000000000000..8e8d2002eeda --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/next_hop_result.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class NextHopResult(Model): + """The information about next hop from the specified VM. + + :param next_hop_type: Next hop type. Possible values include: 'Internet', + 'VirtualAppliance', 'VirtualNetworkGateway', 'VnetLocal', + 'HyperNetGateway', 'None' + :type next_hop_type: str or + ~azure.mgmt.network.v2018_10_01.models.NextHopType + :param next_hop_ip_address: Next hop IP Address + :type next_hop_ip_address: str + :param route_table_id: The resource identifier for the route table + associated with the route being returned. If the route being returned does + not correspond to any user created routes then this field will be the + string 'System Route'. + :type route_table_id: str + """ + + _attribute_map = { + 'next_hop_type': {'key': 'nextHopType', 'type': 'str'}, + 'next_hop_ip_address': {'key': 'nextHopIpAddress', 'type': 'str'}, + 'route_table_id': {'key': 'routeTableId', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(NextHopResult, self).__init__(**kwargs) + self.next_hop_type = kwargs.get('next_hop_type', None) + self.next_hop_ip_address = kwargs.get('next_hop_ip_address', None) + self.route_table_id = kwargs.get('route_table_id', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/next_hop_result_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/next_hop_result_py3.py new file mode 100644 index 000000000000..d4e1b2183c61 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/next_hop_result_py3.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class NextHopResult(Model): + """The information about next hop from the specified VM. + + :param next_hop_type: Next hop type. Possible values include: 'Internet', + 'VirtualAppliance', 'VirtualNetworkGateway', 'VnetLocal', + 'HyperNetGateway', 'None' + :type next_hop_type: str or + ~azure.mgmt.network.v2018_10_01.models.NextHopType + :param next_hop_ip_address: Next hop IP Address + :type next_hop_ip_address: str + :param route_table_id: The resource identifier for the route table + associated with the route being returned. If the route being returned does + not correspond to any user created routes then this field will be the + string 'System Route'. + :type route_table_id: str + """ + + _attribute_map = { + 'next_hop_type': {'key': 'nextHopType', 'type': 'str'}, + 'next_hop_ip_address': {'key': 'nextHopIpAddress', 'type': 'str'}, + 'route_table_id': {'key': 'routeTableId', 'type': 'str'}, + } + + def __init__(self, *, next_hop_type=None, next_hop_ip_address: str=None, route_table_id: str=None, **kwargs) -> None: + super(NextHopResult, self).__init__(**kwargs) + self.next_hop_type = next_hop_type + self.next_hop_ip_address = next_hop_ip_address + self.route_table_id = route_table_id diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/operation.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/operation.py new file mode 100644 index 000000000000..b40358189d7a --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/operation.py @@ -0,0 +1,41 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class Operation(Model): + """Network REST API operation definition. + + :param name: Operation name: {provider}/{resource}/{operation} + :type name: str + :param display: Display metadata associated with the operation. + :type display: ~azure.mgmt.network.v2018_10_01.models.OperationDisplay + :param origin: Origin of the operation. + :type origin: str + :param service_specification: Specification of the service. + :type service_specification: + ~azure.mgmt.network.v2018_10_01.models.OperationPropertiesFormatServiceSpecification + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display': {'key': 'display', 'type': 'OperationDisplay'}, + 'origin': {'key': 'origin', 'type': 'str'}, + 'service_specification': {'key': 'properties.serviceSpecification', 'type': 'OperationPropertiesFormatServiceSpecification'}, + } + + def __init__(self, **kwargs): + super(Operation, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.display = kwargs.get('display', None) + self.origin = kwargs.get('origin', None) + self.service_specification = kwargs.get('service_specification', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/operation_display.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/operation_display.py new file mode 100644 index 000000000000..6e37c2433f56 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/operation_display.py @@ -0,0 +1,40 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class OperationDisplay(Model): + """Display metadata associated with the operation. + + :param provider: Service provider: Microsoft Network. + :type provider: str + :param resource: Resource on which the operation is performed. + :type resource: str + :param operation: Type of the operation: get, read, delete, etc. + :type operation: str + :param description: Description of the operation. + :type description: str + """ + + _attribute_map = { + 'provider': {'key': 'provider', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(OperationDisplay, self).__init__(**kwargs) + self.provider = kwargs.get('provider', None) + self.resource = kwargs.get('resource', None) + self.operation = kwargs.get('operation', None) + self.description = kwargs.get('description', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/operation_display_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/operation_display_py3.py new file mode 100644 index 000000000000..c0508a41bd48 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/operation_display_py3.py @@ -0,0 +1,40 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class OperationDisplay(Model): + """Display metadata associated with the operation. + + :param provider: Service provider: Microsoft Network. + :type provider: str + :param resource: Resource on which the operation is performed. + :type resource: str + :param operation: Type of the operation: get, read, delete, etc. + :type operation: str + :param description: Description of the operation. + :type description: str + """ + + _attribute_map = { + 'provider': {'key': 'provider', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + } + + def __init__(self, *, provider: str=None, resource: str=None, operation: str=None, description: str=None, **kwargs) -> None: + super(OperationDisplay, self).__init__(**kwargs) + self.provider = provider + self.resource = resource + self.operation = operation + self.description = description diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/operation_paged.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/operation_paged.py new file mode 100644 index 000000000000..507d65d72d9b --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/operation_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class OperationPaged(Paged): + """ + A paging container for iterating over a list of :class:`Operation ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[Operation]'} + } + + def __init__(self, *args, **kwargs): + + super(OperationPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/operation_properties_format_service_specification.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/operation_properties_format_service_specification.py new file mode 100644 index 000000000000..d3db3b7e0fa4 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/operation_properties_format_service_specification.py @@ -0,0 +1,34 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class OperationPropertiesFormatServiceSpecification(Model): + """Specification of the service. + + :param metric_specifications: Operation service specification. + :type metric_specifications: + list[~azure.mgmt.network.v2018_10_01.models.MetricSpecification] + :param log_specifications: Operation log specification. + :type log_specifications: + list[~azure.mgmt.network.v2018_10_01.models.LogSpecification] + """ + + _attribute_map = { + 'metric_specifications': {'key': 'metricSpecifications', 'type': '[MetricSpecification]'}, + 'log_specifications': {'key': 'logSpecifications', 'type': '[LogSpecification]'}, + } + + def __init__(self, **kwargs): + super(OperationPropertiesFormatServiceSpecification, self).__init__(**kwargs) + self.metric_specifications = kwargs.get('metric_specifications', None) + self.log_specifications = kwargs.get('log_specifications', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/operation_properties_format_service_specification_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/operation_properties_format_service_specification_py3.py new file mode 100644 index 000000000000..c03ca46276e0 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/operation_properties_format_service_specification_py3.py @@ -0,0 +1,34 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class OperationPropertiesFormatServiceSpecification(Model): + """Specification of the service. + + :param metric_specifications: Operation service specification. + :type metric_specifications: + list[~azure.mgmt.network.v2018_10_01.models.MetricSpecification] + :param log_specifications: Operation log specification. + :type log_specifications: + list[~azure.mgmt.network.v2018_10_01.models.LogSpecification] + """ + + _attribute_map = { + 'metric_specifications': {'key': 'metricSpecifications', 'type': '[MetricSpecification]'}, + 'log_specifications': {'key': 'logSpecifications', 'type': '[LogSpecification]'}, + } + + def __init__(self, *, metric_specifications=None, log_specifications=None, **kwargs) -> None: + super(OperationPropertiesFormatServiceSpecification, self).__init__(**kwargs) + self.metric_specifications = metric_specifications + self.log_specifications = log_specifications diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/operation_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/operation_py3.py new file mode 100644 index 000000000000..73e9732e3e6c --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/operation_py3.py @@ -0,0 +1,41 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class Operation(Model): + """Network REST API operation definition. + + :param name: Operation name: {provider}/{resource}/{operation} + :type name: str + :param display: Display metadata associated with the operation. + :type display: ~azure.mgmt.network.v2018_10_01.models.OperationDisplay + :param origin: Origin of the operation. + :type origin: str + :param service_specification: Specification of the service. + :type service_specification: + ~azure.mgmt.network.v2018_10_01.models.OperationPropertiesFormatServiceSpecification + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display': {'key': 'display', 'type': 'OperationDisplay'}, + 'origin': {'key': 'origin', 'type': 'str'}, + 'service_specification': {'key': 'properties.serviceSpecification', 'type': 'OperationPropertiesFormatServiceSpecification'}, + } + + def __init__(self, *, name: str=None, display=None, origin: str=None, service_specification=None, **kwargs) -> None: + super(Operation, self).__init__(**kwargs) + self.name = name + self.display = display + self.origin = origin + self.service_specification = service_specification diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/outbound_rule.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/outbound_rule.py new file mode 100644 index 000000000000..514526f45aa7 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/outbound_rule.py @@ -0,0 +1,82 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource import SubResource + + +class OutboundRule(SubResource): + """Outbound pool of the load balancer. + + All required parameters must be populated in order to send to Azure. + + :param id: Resource ID. + :type id: str + :param allocated_outbound_ports: The number of outbound ports to be used + for NAT. + :type allocated_outbound_ports: int + :param frontend_ip_configurations: Required. The Frontend IP addresses of + the load balancer. + :type frontend_ip_configurations: + list[~azure.mgmt.network.v2018_10_01.models.SubResource] + :param backend_address_pool: Required. A reference to a pool of DIPs. + Outbound traffic is randomly load balanced across IPs in the backend IPs. + :type backend_address_pool: + ~azure.mgmt.network.v2018_10_01.models.SubResource + :param provisioning_state: Gets the provisioning state of the PublicIP + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param protocol: Required. Protocol - TCP, UDP or All. Possible values + include: 'Tcp', 'Udp', 'All' + :type protocol: str or ~azure.mgmt.network.v2018_10_01.models.enum + :param enable_tcp_reset: Receive bidirectional TCP Reset on TCP flow idle + timeout or unexpected connection termination. This element is only used + when the protocol is set to TCP. + :type enable_tcp_reset: bool + :param idle_timeout_in_minutes: The timeout for the TCP idle connection + :type idle_timeout_in_minutes: int + :param name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _validation = { + 'frontend_ip_configurations': {'required': True}, + 'backend_address_pool': {'required': True}, + 'protocol': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'allocated_outbound_ports': {'key': 'properties.allocatedOutboundPorts', 'type': 'int'}, + 'frontend_ip_configurations': {'key': 'properties.frontendIPConfigurations', 'type': '[SubResource]'}, + 'backend_address_pool': {'key': 'properties.backendAddressPool', 'type': 'SubResource'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'protocol': {'key': 'properties.protocol', 'type': 'str'}, + 'enable_tcp_reset': {'key': 'properties.enableTcpReset', 'type': 'bool'}, + 'idle_timeout_in_minutes': {'key': 'properties.idleTimeoutInMinutes', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(OutboundRule, self).__init__(**kwargs) + self.allocated_outbound_ports = kwargs.get('allocated_outbound_ports', None) + self.frontend_ip_configurations = kwargs.get('frontend_ip_configurations', None) + self.backend_address_pool = kwargs.get('backend_address_pool', None) + self.provisioning_state = kwargs.get('provisioning_state', None) + self.protocol = kwargs.get('protocol', None) + self.enable_tcp_reset = kwargs.get('enable_tcp_reset', None) + self.idle_timeout_in_minutes = kwargs.get('idle_timeout_in_minutes', None) + self.name = kwargs.get('name', None) + self.etag = kwargs.get('etag', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/outbound_rule_paged.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/outbound_rule_paged.py new file mode 100644 index 000000000000..b0095a6464ec --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/outbound_rule_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class OutboundRulePaged(Paged): + """ + A paging container for iterating over a list of :class:`OutboundRule ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[OutboundRule]'} + } + + def __init__(self, *args, **kwargs): + + super(OutboundRulePaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/outbound_rule_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/outbound_rule_py3.py new file mode 100644 index 000000000000..9caf7b62c7fb --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/outbound_rule_py3.py @@ -0,0 +1,82 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource_py3 import SubResource + + +class OutboundRule(SubResource): + """Outbound pool of the load balancer. + + All required parameters must be populated in order to send to Azure. + + :param id: Resource ID. + :type id: str + :param allocated_outbound_ports: The number of outbound ports to be used + for NAT. + :type allocated_outbound_ports: int + :param frontend_ip_configurations: Required. The Frontend IP addresses of + the load balancer. + :type frontend_ip_configurations: + list[~azure.mgmt.network.v2018_10_01.models.SubResource] + :param backend_address_pool: Required. A reference to a pool of DIPs. + Outbound traffic is randomly load balanced across IPs in the backend IPs. + :type backend_address_pool: + ~azure.mgmt.network.v2018_10_01.models.SubResource + :param provisioning_state: Gets the provisioning state of the PublicIP + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param protocol: Required. Protocol - TCP, UDP or All. Possible values + include: 'Tcp', 'Udp', 'All' + :type protocol: str or ~azure.mgmt.network.v2018_10_01.models.enum + :param enable_tcp_reset: Receive bidirectional TCP Reset on TCP flow idle + timeout or unexpected connection termination. This element is only used + when the protocol is set to TCP. + :type enable_tcp_reset: bool + :param idle_timeout_in_minutes: The timeout for the TCP idle connection + :type idle_timeout_in_minutes: int + :param name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _validation = { + 'frontend_ip_configurations': {'required': True}, + 'backend_address_pool': {'required': True}, + 'protocol': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'allocated_outbound_ports': {'key': 'properties.allocatedOutboundPorts', 'type': 'int'}, + 'frontend_ip_configurations': {'key': 'properties.frontendIPConfigurations', 'type': '[SubResource]'}, + 'backend_address_pool': {'key': 'properties.backendAddressPool', 'type': 'SubResource'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'protocol': {'key': 'properties.protocol', 'type': 'str'}, + 'enable_tcp_reset': {'key': 'properties.enableTcpReset', 'type': 'bool'}, + 'idle_timeout_in_minutes': {'key': 'properties.idleTimeoutInMinutes', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, *, frontend_ip_configurations, backend_address_pool, protocol, id: str=None, allocated_outbound_ports: int=None, provisioning_state: str=None, enable_tcp_reset: bool=None, idle_timeout_in_minutes: int=None, name: str=None, etag: str=None, **kwargs) -> None: + super(OutboundRule, self).__init__(id=id, **kwargs) + self.allocated_outbound_ports = allocated_outbound_ports + self.frontend_ip_configurations = frontend_ip_configurations + self.backend_address_pool = backend_address_pool + self.provisioning_state = provisioning_state + self.protocol = protocol + self.enable_tcp_reset = enable_tcp_reset + self.idle_timeout_in_minutes = idle_timeout_in_minutes + self.name = name + self.etag = etag diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/p2_svpn_gateway.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/p2_svpn_gateway.py new file mode 100644 index 000000000000..77517dca21b0 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/p2_svpn_gateway.py @@ -0,0 +1,86 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource import Resource + + +class P2SVpnGateway(Resource): + """P2SVpnGateway Resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param virtual_hub: The VirtualHub to which the gateway belongs + :type virtual_hub: ~azure.mgmt.network.v2018_10_01.models.SubResource + :param provisioning_state: The provisioning state of the resource. + Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + :type provisioning_state: str or + ~azure.mgmt.network.v2018_10_01.models.ProvisioningState + :param vpn_gateway_scale_unit: The scale unit for this p2s vpn gateway. + :type vpn_gateway_scale_unit: int + :param p2_svpn_server_configuration: The P2SVpnServerConfiguration to + which the p2sVpnGateway is attached to. + :type p2_svpn_server_configuration: + ~azure.mgmt.network.v2018_10_01.models.SubResource + :param vpn_client_address_pool: The reference of the address space + resource which represents Address space for P2S VpnClient. + :type vpn_client_address_pool: + ~azure.mgmt.network.v2018_10_01.models.AddressSpace + :ivar vpn_client_connection_health: All P2S vpnclients' connection health + status. + :vartype vpn_client_connection_health: + ~azure.mgmt.network.v2018_10_01.models.VpnClientConnectionHealth + :ivar etag: Gets a unique read-only string that changes whenever the + resource is updated. + :vartype etag: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'vpn_client_connection_health': {'readonly': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'virtual_hub': {'key': 'properties.virtualHub', 'type': 'SubResource'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'vpn_gateway_scale_unit': {'key': 'properties.vpnGatewayScaleUnit', 'type': 'int'}, + 'p2_svpn_server_configuration': {'key': 'properties.p2SVpnServerConfiguration', 'type': 'SubResource'}, + 'vpn_client_address_pool': {'key': 'properties.vpnClientAddressPool', 'type': 'AddressSpace'}, + 'vpn_client_connection_health': {'key': 'properties.vpnClientConnectionHealth', 'type': 'VpnClientConnectionHealth'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(P2SVpnGateway, self).__init__(**kwargs) + self.virtual_hub = kwargs.get('virtual_hub', None) + self.provisioning_state = kwargs.get('provisioning_state', None) + self.vpn_gateway_scale_unit = kwargs.get('vpn_gateway_scale_unit', None) + self.p2_svpn_server_configuration = kwargs.get('p2_svpn_server_configuration', None) + self.vpn_client_address_pool = kwargs.get('vpn_client_address_pool', None) + self.vpn_client_connection_health = None + self.etag = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/p2_svpn_gateway_paged.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/p2_svpn_gateway_paged.py new file mode 100644 index 000000000000..a0f0c2a27aff --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/p2_svpn_gateway_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class P2SVpnGatewayPaged(Paged): + """ + A paging container for iterating over a list of :class:`P2SVpnGateway ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[P2SVpnGateway]'} + } + + def __init__(self, *args, **kwargs): + + super(P2SVpnGatewayPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/p2_svpn_gateway_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/p2_svpn_gateway_py3.py new file mode 100644 index 000000000000..eef0bb58a6c1 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/p2_svpn_gateway_py3.py @@ -0,0 +1,86 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource_py3 import Resource + + +class P2SVpnGateway(Resource): + """P2SVpnGateway Resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param virtual_hub: The VirtualHub to which the gateway belongs + :type virtual_hub: ~azure.mgmt.network.v2018_10_01.models.SubResource + :param provisioning_state: The provisioning state of the resource. + Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + :type provisioning_state: str or + ~azure.mgmt.network.v2018_10_01.models.ProvisioningState + :param vpn_gateway_scale_unit: The scale unit for this p2s vpn gateway. + :type vpn_gateway_scale_unit: int + :param p2_svpn_server_configuration: The P2SVpnServerConfiguration to + which the p2sVpnGateway is attached to. + :type p2_svpn_server_configuration: + ~azure.mgmt.network.v2018_10_01.models.SubResource + :param vpn_client_address_pool: The reference of the address space + resource which represents Address space for P2S VpnClient. + :type vpn_client_address_pool: + ~azure.mgmt.network.v2018_10_01.models.AddressSpace + :ivar vpn_client_connection_health: All P2S vpnclients' connection health + status. + :vartype vpn_client_connection_health: + ~azure.mgmt.network.v2018_10_01.models.VpnClientConnectionHealth + :ivar etag: Gets a unique read-only string that changes whenever the + resource is updated. + :vartype etag: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'vpn_client_connection_health': {'readonly': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'virtual_hub': {'key': 'properties.virtualHub', 'type': 'SubResource'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'vpn_gateway_scale_unit': {'key': 'properties.vpnGatewayScaleUnit', 'type': 'int'}, + 'p2_svpn_server_configuration': {'key': 'properties.p2SVpnServerConfiguration', 'type': 'SubResource'}, + 'vpn_client_address_pool': {'key': 'properties.vpnClientAddressPool', 'type': 'AddressSpace'}, + 'vpn_client_connection_health': {'key': 'properties.vpnClientConnectionHealth', 'type': 'VpnClientConnectionHealth'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, location: str=None, tags=None, virtual_hub=None, provisioning_state=None, vpn_gateway_scale_unit: int=None, p2_svpn_server_configuration=None, vpn_client_address_pool=None, **kwargs) -> None: + super(P2SVpnGateway, self).__init__(id=id, location=location, tags=tags, **kwargs) + self.virtual_hub = virtual_hub + self.provisioning_state = provisioning_state + self.vpn_gateway_scale_unit = vpn_gateway_scale_unit + self.p2_svpn_server_configuration = p2_svpn_server_configuration + self.vpn_client_address_pool = vpn_client_address_pool + self.vpn_client_connection_health = None + self.etag = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/p2_svpn_profile_parameters.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/p2_svpn_profile_parameters.py new file mode 100644 index 000000000000..fab77140103d --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/p2_svpn_profile_parameters.py @@ -0,0 +1,31 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class P2SVpnProfileParameters(Model): + """Vpn Client Parameters for package generation. + + :param authentication_method: VPN client Authentication Method. Possible + values are: 'EAPTLS' and 'EAPMSCHAPv2'. Possible values include: 'EAPTLS', + 'EAPMSCHAPv2' + :type authentication_method: str or + ~azure.mgmt.network.v2018_10_01.models.AuthenticationMethod + """ + + _attribute_map = { + 'authentication_method': {'key': 'authenticationMethod', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(P2SVpnProfileParameters, self).__init__(**kwargs) + self.authentication_method = kwargs.get('authentication_method', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/p2_svpn_profile_parameters_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/p2_svpn_profile_parameters_py3.py new file mode 100644 index 000000000000..27b1bcd7ec17 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/p2_svpn_profile_parameters_py3.py @@ -0,0 +1,31 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class P2SVpnProfileParameters(Model): + """Vpn Client Parameters for package generation. + + :param authentication_method: VPN client Authentication Method. Possible + values are: 'EAPTLS' and 'EAPMSCHAPv2'. Possible values include: 'EAPTLS', + 'EAPMSCHAPv2' + :type authentication_method: str or + ~azure.mgmt.network.v2018_10_01.models.AuthenticationMethod + """ + + _attribute_map = { + 'authentication_method': {'key': 'authenticationMethod', 'type': 'str'}, + } + + def __init__(self, *, authentication_method=None, **kwargs) -> None: + super(P2SVpnProfileParameters, self).__init__(**kwargs) + self.authentication_method = authentication_method diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/p2_svpn_server_config_radius_client_root_certificate.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/p2_svpn_server_config_radius_client_root_certificate.py new file mode 100644 index 000000000000..673c6dfc00f4 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/p2_svpn_server_config_radius_client_root_certificate.py @@ -0,0 +1,54 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource import SubResource + + +class P2SVpnServerConfigRadiusClientRootCertificate(SubResource): + """Radius client root certificate of P2SVpnServerConfiguration. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :param thumbprint: The Radius client root certificate thumbprint. + :type thumbprint: str + :ivar provisioning_state: The provisioning state of the Radius client root + certificate resource. Possible values are: 'Updating', 'Deleting', and + 'Failed'. + :vartype provisioning_state: str + :param name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'thumbprint': {'key': 'properties.thumbprint', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(P2SVpnServerConfigRadiusClientRootCertificate, self).__init__(**kwargs) + self.thumbprint = kwargs.get('thumbprint', None) + self.provisioning_state = None + self.name = kwargs.get('name', None) + self.etag = kwargs.get('etag', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/p2_svpn_server_config_radius_client_root_certificate_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/p2_svpn_server_config_radius_client_root_certificate_py3.py new file mode 100644 index 000000000000..32272e60c00a --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/p2_svpn_server_config_radius_client_root_certificate_py3.py @@ -0,0 +1,54 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource_py3 import SubResource + + +class P2SVpnServerConfigRadiusClientRootCertificate(SubResource): + """Radius client root certificate of P2SVpnServerConfiguration. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :param thumbprint: The Radius client root certificate thumbprint. + :type thumbprint: str + :ivar provisioning_state: The provisioning state of the Radius client root + certificate resource. Possible values are: 'Updating', 'Deleting', and + 'Failed'. + :vartype provisioning_state: str + :param name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'thumbprint': {'key': 'properties.thumbprint', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, thumbprint: str=None, name: str=None, etag: str=None, **kwargs) -> None: + super(P2SVpnServerConfigRadiusClientRootCertificate, self).__init__(id=id, **kwargs) + self.thumbprint = thumbprint + self.provisioning_state = None + self.name = name + self.etag = etag diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/p2_svpn_server_config_radius_server_root_certificate.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/p2_svpn_server_config_radius_server_root_certificate.py new file mode 100644 index 000000000000..6b672a8a3852 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/p2_svpn_server_config_radius_server_root_certificate.py @@ -0,0 +1,57 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource import SubResource + + +class P2SVpnServerConfigRadiusServerRootCertificate(SubResource): + """Radius Server root certificate of P2SVpnServerConfiguration. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param id: Resource ID. + :type id: str + :param public_cert_data: Required. The certificate public data. + :type public_cert_data: str + :ivar provisioning_state: The provisioning state of the + P2SVpnServerConfiguration Radius Server root certificate resource. + Possible values are: 'Updating', 'Deleting', and 'Failed'. + :vartype provisioning_state: str + :param name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _validation = { + 'public_cert_data': {'required': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'public_cert_data': {'key': 'properties.publicCertData', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(P2SVpnServerConfigRadiusServerRootCertificate, self).__init__(**kwargs) + self.public_cert_data = kwargs.get('public_cert_data', None) + self.provisioning_state = None + self.name = kwargs.get('name', None) + self.etag = kwargs.get('etag', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/p2_svpn_server_config_radius_server_root_certificate_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/p2_svpn_server_config_radius_server_root_certificate_py3.py new file mode 100644 index 000000000000..e64cd1975c4e --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/p2_svpn_server_config_radius_server_root_certificate_py3.py @@ -0,0 +1,57 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource_py3 import SubResource + + +class P2SVpnServerConfigRadiusServerRootCertificate(SubResource): + """Radius Server root certificate of P2SVpnServerConfiguration. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param id: Resource ID. + :type id: str + :param public_cert_data: Required. The certificate public data. + :type public_cert_data: str + :ivar provisioning_state: The provisioning state of the + P2SVpnServerConfiguration Radius Server root certificate resource. + Possible values are: 'Updating', 'Deleting', and 'Failed'. + :vartype provisioning_state: str + :param name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _validation = { + 'public_cert_data': {'required': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'public_cert_data': {'key': 'properties.publicCertData', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, *, public_cert_data: str, id: str=None, name: str=None, etag: str=None, **kwargs) -> None: + super(P2SVpnServerConfigRadiusServerRootCertificate, self).__init__(id=id, **kwargs) + self.public_cert_data = public_cert_data + self.provisioning_state = None + self.name = name + self.etag = etag diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/p2_svpn_server_config_vpn_client_revoked_certificate.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/p2_svpn_server_config_vpn_client_revoked_certificate.py new file mode 100644 index 000000000000..d237930f2cec --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/p2_svpn_server_config_vpn_client_revoked_certificate.py @@ -0,0 +1,54 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource import SubResource + + +class P2SVpnServerConfigVpnClientRevokedCertificate(SubResource): + """VPN client revoked certificate of P2SVpnServerConfiguration. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :param thumbprint: The revoked VPN client certificate thumbprint. + :type thumbprint: str + :ivar provisioning_state: The provisioning state of the VPN client revoked + certificate resource. Possible values are: 'Updating', 'Deleting', and + 'Failed'. + :vartype provisioning_state: str + :param name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'thumbprint': {'key': 'properties.thumbprint', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(P2SVpnServerConfigVpnClientRevokedCertificate, self).__init__(**kwargs) + self.thumbprint = kwargs.get('thumbprint', None) + self.provisioning_state = None + self.name = kwargs.get('name', None) + self.etag = kwargs.get('etag', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/p2_svpn_server_config_vpn_client_revoked_certificate_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/p2_svpn_server_config_vpn_client_revoked_certificate_py3.py new file mode 100644 index 000000000000..90e200a44f84 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/p2_svpn_server_config_vpn_client_revoked_certificate_py3.py @@ -0,0 +1,54 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource_py3 import SubResource + + +class P2SVpnServerConfigVpnClientRevokedCertificate(SubResource): + """VPN client revoked certificate of P2SVpnServerConfiguration. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :param thumbprint: The revoked VPN client certificate thumbprint. + :type thumbprint: str + :ivar provisioning_state: The provisioning state of the VPN client revoked + certificate resource. Possible values are: 'Updating', 'Deleting', and + 'Failed'. + :vartype provisioning_state: str + :param name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'thumbprint': {'key': 'properties.thumbprint', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, thumbprint: str=None, name: str=None, etag: str=None, **kwargs) -> None: + super(P2SVpnServerConfigVpnClientRevokedCertificate, self).__init__(id=id, **kwargs) + self.thumbprint = thumbprint + self.provisioning_state = None + self.name = name + self.etag = etag diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/p2_svpn_server_config_vpn_client_root_certificate.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/p2_svpn_server_config_vpn_client_root_certificate.py new file mode 100644 index 000000000000..0f0dcc8042af --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/p2_svpn_server_config_vpn_client_root_certificate.py @@ -0,0 +1,57 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource import SubResource + + +class P2SVpnServerConfigVpnClientRootCertificate(SubResource): + """VPN client root certificate of P2SVpnServerConfiguration. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param id: Resource ID. + :type id: str + :param public_cert_data: Required. The certificate public data. + :type public_cert_data: str + :ivar provisioning_state: The provisioning state of the + P2SVpnServerConfiguration VPN client root certificate resource. Possible + values are: 'Updating', 'Deleting', and 'Failed'. + :vartype provisioning_state: str + :param name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _validation = { + 'public_cert_data': {'required': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'public_cert_data': {'key': 'properties.publicCertData', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(P2SVpnServerConfigVpnClientRootCertificate, self).__init__(**kwargs) + self.public_cert_data = kwargs.get('public_cert_data', None) + self.provisioning_state = None + self.name = kwargs.get('name', None) + self.etag = kwargs.get('etag', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/p2_svpn_server_config_vpn_client_root_certificate_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/p2_svpn_server_config_vpn_client_root_certificate_py3.py new file mode 100644 index 000000000000..adc301b576a5 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/p2_svpn_server_config_vpn_client_root_certificate_py3.py @@ -0,0 +1,57 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource_py3 import SubResource + + +class P2SVpnServerConfigVpnClientRootCertificate(SubResource): + """VPN client root certificate of P2SVpnServerConfiguration. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param id: Resource ID. + :type id: str + :param public_cert_data: Required. The certificate public data. + :type public_cert_data: str + :ivar provisioning_state: The provisioning state of the + P2SVpnServerConfiguration VPN client root certificate resource. Possible + values are: 'Updating', 'Deleting', and 'Failed'. + :vartype provisioning_state: str + :param name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _validation = { + 'public_cert_data': {'required': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'public_cert_data': {'key': 'properties.publicCertData', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, *, public_cert_data: str, id: str=None, name: str=None, etag: str=None, **kwargs) -> None: + super(P2SVpnServerConfigVpnClientRootCertificate, self).__init__(id=id, **kwargs) + self.public_cert_data = public_cert_data + self.provisioning_state = None + self.name = name + self.etag = etag diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/p2_svpn_server_configuration.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/p2_svpn_server_configuration.py new file mode 100644 index 000000000000..65368dfbd590 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/p2_svpn_server_configuration.py @@ -0,0 +1,115 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource import SubResource + + +class P2SVpnServerConfiguration(SubResource): + """P2SVpnServerConfiguration Resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :param p2_svpn_server_configuration_properties_name: The name of the + P2SVpnServerConfiguration that is unique within a VirtualWan in a resource + group. This name can be used to access the resource along with Paren + VirtualWan resource name. + :type p2_svpn_server_configuration_properties_name: str + :param vpn_protocols: vpnProtocols for the P2SVpnServerConfiguration. + :type vpn_protocols: list[str or + ~azure.mgmt.network.v2018_10_01.models.VpnGatewayTunnelingProtocol] + :param p2_svpn_server_config_vpn_client_root_certificates: VPN client root + certificate of P2SVpnServerConfiguration. + :type p2_svpn_server_config_vpn_client_root_certificates: + list[~azure.mgmt.network.v2018_10_01.models.P2SVpnServerConfigVpnClientRootCertificate] + :param p2_svpn_server_config_vpn_client_revoked_certificates: VPN client + revoked certificate of P2SVpnServerConfiguration. + :type p2_svpn_server_config_vpn_client_revoked_certificates: + list[~azure.mgmt.network.v2018_10_01.models.P2SVpnServerConfigVpnClientRevokedCertificate] + :param p2_svpn_server_config_radius_server_root_certificates: Radius + Server root certificate of P2SVpnServerConfiguration. + :type p2_svpn_server_config_radius_server_root_certificates: + list[~azure.mgmt.network.v2018_10_01.models.P2SVpnServerConfigRadiusServerRootCertificate] + :param p2_svpn_server_config_radius_client_root_certificates: Radius + client root certificate of P2SVpnServerConfiguration. + :type p2_svpn_server_config_radius_client_root_certificates: + list[~azure.mgmt.network.v2018_10_01.models.P2SVpnServerConfigRadiusClientRootCertificate] + :param vpn_client_ipsec_policies: VpnClientIpsecPolicies for + P2SVpnServerConfiguration. + :type vpn_client_ipsec_policies: + list[~azure.mgmt.network.v2018_10_01.models.IpsecPolicy] + :param radius_server_address: The radius server address property of the + P2SVpnServerConfiguration resource for point to site client connection. + :type radius_server_address: str + :param radius_server_secret: The radius secret property of the + P2SVpnServerConfiguration resource for for point to site client + connection. + :type radius_server_secret: str + :ivar provisioning_state: The provisioning state of the + P2SVpnServerConfiguration resource. Possible values are: 'Updating', + 'Deleting', and 'Failed'. + :vartype provisioning_state: str + :ivar p2_svpn_gateways: + :vartype p2_svpn_gateways: + list[~azure.mgmt.network.v2018_10_01.models.SubResource] + :param p2_svpn_server_configuration_properties_etag: A unique read-only + string that changes whenever the resource is updated. + :type p2_svpn_server_configuration_properties_etag: str + :param name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :ivar etag: Gets a unique read-only string that changes whenever the + resource is updated. + :vartype etag: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'p2_svpn_gateways': {'readonly': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'p2_svpn_server_configuration_properties_name': {'key': 'properties.name', 'type': 'str'}, + 'vpn_protocols': {'key': 'properties.vpnProtocols', 'type': '[str]'}, + 'p2_svpn_server_config_vpn_client_root_certificates': {'key': 'properties.p2SVpnServerConfigVpnClientRootCertificates', 'type': '[P2SVpnServerConfigVpnClientRootCertificate]'}, + 'p2_svpn_server_config_vpn_client_revoked_certificates': {'key': 'properties.p2SVpnServerConfigVpnClientRevokedCertificates', 'type': '[P2SVpnServerConfigVpnClientRevokedCertificate]'}, + 'p2_svpn_server_config_radius_server_root_certificates': {'key': 'properties.p2SVpnServerConfigRadiusServerRootCertificates', 'type': '[P2SVpnServerConfigRadiusServerRootCertificate]'}, + 'p2_svpn_server_config_radius_client_root_certificates': {'key': 'properties.p2SVpnServerConfigRadiusClientRootCertificates', 'type': '[P2SVpnServerConfigRadiusClientRootCertificate]'}, + 'vpn_client_ipsec_policies': {'key': 'properties.vpnClientIpsecPolicies', 'type': '[IpsecPolicy]'}, + 'radius_server_address': {'key': 'properties.radiusServerAddress', 'type': 'str'}, + 'radius_server_secret': {'key': 'properties.radiusServerSecret', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'p2_svpn_gateways': {'key': 'properties.p2SVpnGateways', 'type': '[SubResource]'}, + 'p2_svpn_server_configuration_properties_etag': {'key': 'properties.etag', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(P2SVpnServerConfiguration, self).__init__(**kwargs) + self.p2_svpn_server_configuration_properties_name = kwargs.get('p2_svpn_server_configuration_properties_name', None) + self.vpn_protocols = kwargs.get('vpn_protocols', None) + self.p2_svpn_server_config_vpn_client_root_certificates = kwargs.get('p2_svpn_server_config_vpn_client_root_certificates', None) + self.p2_svpn_server_config_vpn_client_revoked_certificates = kwargs.get('p2_svpn_server_config_vpn_client_revoked_certificates', None) + self.p2_svpn_server_config_radius_server_root_certificates = kwargs.get('p2_svpn_server_config_radius_server_root_certificates', None) + self.p2_svpn_server_config_radius_client_root_certificates = kwargs.get('p2_svpn_server_config_radius_client_root_certificates', None) + self.vpn_client_ipsec_policies = kwargs.get('vpn_client_ipsec_policies', None) + self.radius_server_address = kwargs.get('radius_server_address', None) + self.radius_server_secret = kwargs.get('radius_server_secret', None) + self.provisioning_state = None + self.p2_svpn_gateways = None + self.p2_svpn_server_configuration_properties_etag = kwargs.get('p2_svpn_server_configuration_properties_etag', None) + self.name = kwargs.get('name', None) + self.etag = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/p2_svpn_server_configuration_paged.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/p2_svpn_server_configuration_paged.py new file mode 100644 index 000000000000..e4427641f82b --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/p2_svpn_server_configuration_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class P2SVpnServerConfigurationPaged(Paged): + """ + A paging container for iterating over a list of :class:`P2SVpnServerConfiguration ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[P2SVpnServerConfiguration]'} + } + + def __init__(self, *args, **kwargs): + + super(P2SVpnServerConfigurationPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/p2_svpn_server_configuration_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/p2_svpn_server_configuration_py3.py new file mode 100644 index 000000000000..fc398d855856 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/p2_svpn_server_configuration_py3.py @@ -0,0 +1,115 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource_py3 import SubResource + + +class P2SVpnServerConfiguration(SubResource): + """P2SVpnServerConfiguration Resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :param p2_svpn_server_configuration_properties_name: The name of the + P2SVpnServerConfiguration that is unique within a VirtualWan in a resource + group. This name can be used to access the resource along with Paren + VirtualWan resource name. + :type p2_svpn_server_configuration_properties_name: str + :param vpn_protocols: vpnProtocols for the P2SVpnServerConfiguration. + :type vpn_protocols: list[str or + ~azure.mgmt.network.v2018_10_01.models.VpnGatewayTunnelingProtocol] + :param p2_svpn_server_config_vpn_client_root_certificates: VPN client root + certificate of P2SVpnServerConfiguration. + :type p2_svpn_server_config_vpn_client_root_certificates: + list[~azure.mgmt.network.v2018_10_01.models.P2SVpnServerConfigVpnClientRootCertificate] + :param p2_svpn_server_config_vpn_client_revoked_certificates: VPN client + revoked certificate of P2SVpnServerConfiguration. + :type p2_svpn_server_config_vpn_client_revoked_certificates: + list[~azure.mgmt.network.v2018_10_01.models.P2SVpnServerConfigVpnClientRevokedCertificate] + :param p2_svpn_server_config_radius_server_root_certificates: Radius + Server root certificate of P2SVpnServerConfiguration. + :type p2_svpn_server_config_radius_server_root_certificates: + list[~azure.mgmt.network.v2018_10_01.models.P2SVpnServerConfigRadiusServerRootCertificate] + :param p2_svpn_server_config_radius_client_root_certificates: Radius + client root certificate of P2SVpnServerConfiguration. + :type p2_svpn_server_config_radius_client_root_certificates: + list[~azure.mgmt.network.v2018_10_01.models.P2SVpnServerConfigRadiusClientRootCertificate] + :param vpn_client_ipsec_policies: VpnClientIpsecPolicies for + P2SVpnServerConfiguration. + :type vpn_client_ipsec_policies: + list[~azure.mgmt.network.v2018_10_01.models.IpsecPolicy] + :param radius_server_address: The radius server address property of the + P2SVpnServerConfiguration resource for point to site client connection. + :type radius_server_address: str + :param radius_server_secret: The radius secret property of the + P2SVpnServerConfiguration resource for for point to site client + connection. + :type radius_server_secret: str + :ivar provisioning_state: The provisioning state of the + P2SVpnServerConfiguration resource. Possible values are: 'Updating', + 'Deleting', and 'Failed'. + :vartype provisioning_state: str + :ivar p2_svpn_gateways: + :vartype p2_svpn_gateways: + list[~azure.mgmt.network.v2018_10_01.models.SubResource] + :param p2_svpn_server_configuration_properties_etag: A unique read-only + string that changes whenever the resource is updated. + :type p2_svpn_server_configuration_properties_etag: str + :param name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :ivar etag: Gets a unique read-only string that changes whenever the + resource is updated. + :vartype etag: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'p2_svpn_gateways': {'readonly': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'p2_svpn_server_configuration_properties_name': {'key': 'properties.name', 'type': 'str'}, + 'vpn_protocols': {'key': 'properties.vpnProtocols', 'type': '[str]'}, + 'p2_svpn_server_config_vpn_client_root_certificates': {'key': 'properties.p2SVpnServerConfigVpnClientRootCertificates', 'type': '[P2SVpnServerConfigVpnClientRootCertificate]'}, + 'p2_svpn_server_config_vpn_client_revoked_certificates': {'key': 'properties.p2SVpnServerConfigVpnClientRevokedCertificates', 'type': '[P2SVpnServerConfigVpnClientRevokedCertificate]'}, + 'p2_svpn_server_config_radius_server_root_certificates': {'key': 'properties.p2SVpnServerConfigRadiusServerRootCertificates', 'type': '[P2SVpnServerConfigRadiusServerRootCertificate]'}, + 'p2_svpn_server_config_radius_client_root_certificates': {'key': 'properties.p2SVpnServerConfigRadiusClientRootCertificates', 'type': '[P2SVpnServerConfigRadiusClientRootCertificate]'}, + 'vpn_client_ipsec_policies': {'key': 'properties.vpnClientIpsecPolicies', 'type': '[IpsecPolicy]'}, + 'radius_server_address': {'key': 'properties.radiusServerAddress', 'type': 'str'}, + 'radius_server_secret': {'key': 'properties.radiusServerSecret', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'p2_svpn_gateways': {'key': 'properties.p2SVpnGateways', 'type': '[SubResource]'}, + 'p2_svpn_server_configuration_properties_etag': {'key': 'properties.etag', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, p2_svpn_server_configuration_properties_name: str=None, vpn_protocols=None, p2_svpn_server_config_vpn_client_root_certificates=None, p2_svpn_server_config_vpn_client_revoked_certificates=None, p2_svpn_server_config_radius_server_root_certificates=None, p2_svpn_server_config_radius_client_root_certificates=None, vpn_client_ipsec_policies=None, radius_server_address: str=None, radius_server_secret: str=None, p2_svpn_server_configuration_properties_etag: str=None, name: str=None, **kwargs) -> None: + super(P2SVpnServerConfiguration, self).__init__(id=id, **kwargs) + self.p2_svpn_server_configuration_properties_name = p2_svpn_server_configuration_properties_name + self.vpn_protocols = vpn_protocols + self.p2_svpn_server_config_vpn_client_root_certificates = p2_svpn_server_config_vpn_client_root_certificates + self.p2_svpn_server_config_vpn_client_revoked_certificates = p2_svpn_server_config_vpn_client_revoked_certificates + self.p2_svpn_server_config_radius_server_root_certificates = p2_svpn_server_config_radius_server_root_certificates + self.p2_svpn_server_config_radius_client_root_certificates = p2_svpn_server_config_radius_client_root_certificates + self.vpn_client_ipsec_policies = vpn_client_ipsec_policies + self.radius_server_address = radius_server_address + self.radius_server_secret = radius_server_secret + self.provisioning_state = None + self.p2_svpn_gateways = None + self.p2_svpn_server_configuration_properties_etag = p2_svpn_server_configuration_properties_etag + self.name = name + self.etag = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/packet_capture.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/packet_capture.py new file mode 100644 index 000000000000..abdd98c879ff --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/packet_capture.py @@ -0,0 +1,61 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class PacketCapture(Model): + """Parameters that define the create packet capture operation. + + All required parameters must be populated in order to send to Azure. + + :param target: Required. The ID of the targeted resource, only VM is + currently supported. + :type target: str + :param bytes_to_capture_per_packet: Number of bytes captured per packet, + the remaining bytes are truncated. Default value: 0 . + :type bytes_to_capture_per_packet: int + :param total_bytes_per_session: Maximum size of the capture output. + Default value: 1073741824 . + :type total_bytes_per_session: int + :param time_limit_in_seconds: Maximum duration of the capture session in + seconds. Default value: 18000 . + :type time_limit_in_seconds: int + :param storage_location: Required. + :type storage_location: + ~azure.mgmt.network.v2018_10_01.models.PacketCaptureStorageLocation + :param filters: + :type filters: + list[~azure.mgmt.network.v2018_10_01.models.PacketCaptureFilter] + """ + + _validation = { + 'target': {'required': True}, + 'storage_location': {'required': True}, + } + + _attribute_map = { + 'target': {'key': 'properties.target', 'type': 'str'}, + 'bytes_to_capture_per_packet': {'key': 'properties.bytesToCapturePerPacket', 'type': 'int'}, + 'total_bytes_per_session': {'key': 'properties.totalBytesPerSession', 'type': 'int'}, + 'time_limit_in_seconds': {'key': 'properties.timeLimitInSeconds', 'type': 'int'}, + 'storage_location': {'key': 'properties.storageLocation', 'type': 'PacketCaptureStorageLocation'}, + 'filters': {'key': 'properties.filters', 'type': '[PacketCaptureFilter]'}, + } + + def __init__(self, **kwargs): + super(PacketCapture, self).__init__(**kwargs) + self.target = kwargs.get('target', None) + self.bytes_to_capture_per_packet = kwargs.get('bytes_to_capture_per_packet', 0) + self.total_bytes_per_session = kwargs.get('total_bytes_per_session', 1073741824) + self.time_limit_in_seconds = kwargs.get('time_limit_in_seconds', 18000) + self.storage_location = kwargs.get('storage_location', None) + self.filters = kwargs.get('filters', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/packet_capture_filter.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/packet_capture_filter.py new file mode 100644 index 000000000000..2eb6ba38ca31 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/packet_capture_filter.py @@ -0,0 +1,60 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class PacketCaptureFilter(Model): + """Filter that is applied to packet capture request. Multiple filters can be + applied. + + :param protocol: Protocol to be filtered on. Possible values include: + 'TCP', 'UDP', 'Any'. Default value: "Any" . + :type protocol: str or ~azure.mgmt.network.v2018_10_01.models.PcProtocol + :param local_ip_address: Local IP Address to be filtered on. Notation: + "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for range. + "127.0.0.1;127.0.0.5"? for multiple entries. Multiple ranges not currently + supported. Mixing ranges with multiple entries not currently supported. + Default = null. + :type local_ip_address: str + :param remote_ip_address: Local IP Address to be filtered on. Notation: + "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for range. + "127.0.0.1;127.0.0.5;" for multiple entries. Multiple ranges not currently + supported. Mixing ranges with multiple entries not currently supported. + Default = null. + :type remote_ip_address: str + :param local_port: Local port to be filtered on. Notation: "80" for single + port entry."80-85" for range. "80;443;" for multiple entries. Multiple + ranges not currently supported. Mixing ranges with multiple entries not + currently supported. Default = null. + :type local_port: str + :param remote_port: Remote port to be filtered on. Notation: "80" for + single port entry."80-85" for range. "80;443;" for multiple entries. + Multiple ranges not currently supported. Mixing ranges with multiple + entries not currently supported. Default = null. + :type remote_port: str + """ + + _attribute_map = { + 'protocol': {'key': 'protocol', 'type': 'str'}, + 'local_ip_address': {'key': 'localIPAddress', 'type': 'str'}, + 'remote_ip_address': {'key': 'remoteIPAddress', 'type': 'str'}, + 'local_port': {'key': 'localPort', 'type': 'str'}, + 'remote_port': {'key': 'remotePort', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(PacketCaptureFilter, self).__init__(**kwargs) + self.protocol = kwargs.get('protocol', "Any") + self.local_ip_address = kwargs.get('local_ip_address', None) + self.remote_ip_address = kwargs.get('remote_ip_address', None) + self.local_port = kwargs.get('local_port', None) + self.remote_port = kwargs.get('remote_port', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/packet_capture_filter_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/packet_capture_filter_py3.py new file mode 100644 index 000000000000..ca1f496d1ecd --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/packet_capture_filter_py3.py @@ -0,0 +1,60 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class PacketCaptureFilter(Model): + """Filter that is applied to packet capture request. Multiple filters can be + applied. + + :param protocol: Protocol to be filtered on. Possible values include: + 'TCP', 'UDP', 'Any'. Default value: "Any" . + :type protocol: str or ~azure.mgmt.network.v2018_10_01.models.PcProtocol + :param local_ip_address: Local IP Address to be filtered on. Notation: + "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for range. + "127.0.0.1;127.0.0.5"? for multiple entries. Multiple ranges not currently + supported. Mixing ranges with multiple entries not currently supported. + Default = null. + :type local_ip_address: str + :param remote_ip_address: Local IP Address to be filtered on. Notation: + "127.0.0.1" for single address entry. "127.0.0.1-127.0.0.255" for range. + "127.0.0.1;127.0.0.5;" for multiple entries. Multiple ranges not currently + supported. Mixing ranges with multiple entries not currently supported. + Default = null. + :type remote_ip_address: str + :param local_port: Local port to be filtered on. Notation: "80" for single + port entry."80-85" for range. "80;443;" for multiple entries. Multiple + ranges not currently supported. Mixing ranges with multiple entries not + currently supported. Default = null. + :type local_port: str + :param remote_port: Remote port to be filtered on. Notation: "80" for + single port entry."80-85" for range. "80;443;" for multiple entries. + Multiple ranges not currently supported. Mixing ranges with multiple + entries not currently supported. Default = null. + :type remote_port: str + """ + + _attribute_map = { + 'protocol': {'key': 'protocol', 'type': 'str'}, + 'local_ip_address': {'key': 'localIPAddress', 'type': 'str'}, + 'remote_ip_address': {'key': 'remoteIPAddress', 'type': 'str'}, + 'local_port': {'key': 'localPort', 'type': 'str'}, + 'remote_port': {'key': 'remotePort', 'type': 'str'}, + } + + def __init__(self, *, protocol="Any", local_ip_address: str=None, remote_ip_address: str=None, local_port: str=None, remote_port: str=None, **kwargs) -> None: + super(PacketCaptureFilter, self).__init__(**kwargs) + self.protocol = protocol + self.local_ip_address = local_ip_address + self.remote_ip_address = remote_ip_address + self.local_port = local_port + self.remote_port = remote_port diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/packet_capture_parameters.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/packet_capture_parameters.py new file mode 100644 index 000000000000..0c8836ce19ef --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/packet_capture_parameters.py @@ -0,0 +1,61 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class PacketCaptureParameters(Model): + """Parameters that define the create packet capture operation. + + All required parameters must be populated in order to send to Azure. + + :param target: Required. The ID of the targeted resource, only VM is + currently supported. + :type target: str + :param bytes_to_capture_per_packet: Number of bytes captured per packet, + the remaining bytes are truncated. Default value: 0 . + :type bytes_to_capture_per_packet: int + :param total_bytes_per_session: Maximum size of the capture output. + Default value: 1073741824 . + :type total_bytes_per_session: int + :param time_limit_in_seconds: Maximum duration of the capture session in + seconds. Default value: 18000 . + :type time_limit_in_seconds: int + :param storage_location: Required. + :type storage_location: + ~azure.mgmt.network.v2018_10_01.models.PacketCaptureStorageLocation + :param filters: + :type filters: + list[~azure.mgmt.network.v2018_10_01.models.PacketCaptureFilter] + """ + + _validation = { + 'target': {'required': True}, + 'storage_location': {'required': True}, + } + + _attribute_map = { + 'target': {'key': 'target', 'type': 'str'}, + 'bytes_to_capture_per_packet': {'key': 'bytesToCapturePerPacket', 'type': 'int'}, + 'total_bytes_per_session': {'key': 'totalBytesPerSession', 'type': 'int'}, + 'time_limit_in_seconds': {'key': 'timeLimitInSeconds', 'type': 'int'}, + 'storage_location': {'key': 'storageLocation', 'type': 'PacketCaptureStorageLocation'}, + 'filters': {'key': 'filters', 'type': '[PacketCaptureFilter]'}, + } + + def __init__(self, **kwargs): + super(PacketCaptureParameters, self).__init__(**kwargs) + self.target = kwargs.get('target', None) + self.bytes_to_capture_per_packet = kwargs.get('bytes_to_capture_per_packet', 0) + self.total_bytes_per_session = kwargs.get('total_bytes_per_session', 1073741824) + self.time_limit_in_seconds = kwargs.get('time_limit_in_seconds', 18000) + self.storage_location = kwargs.get('storage_location', None) + self.filters = kwargs.get('filters', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/packet_capture_parameters_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/packet_capture_parameters_py3.py new file mode 100644 index 000000000000..6bba496e6001 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/packet_capture_parameters_py3.py @@ -0,0 +1,61 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class PacketCaptureParameters(Model): + """Parameters that define the create packet capture operation. + + All required parameters must be populated in order to send to Azure. + + :param target: Required. The ID of the targeted resource, only VM is + currently supported. + :type target: str + :param bytes_to_capture_per_packet: Number of bytes captured per packet, + the remaining bytes are truncated. Default value: 0 . + :type bytes_to_capture_per_packet: int + :param total_bytes_per_session: Maximum size of the capture output. + Default value: 1073741824 . + :type total_bytes_per_session: int + :param time_limit_in_seconds: Maximum duration of the capture session in + seconds. Default value: 18000 . + :type time_limit_in_seconds: int + :param storage_location: Required. + :type storage_location: + ~azure.mgmt.network.v2018_10_01.models.PacketCaptureStorageLocation + :param filters: + :type filters: + list[~azure.mgmt.network.v2018_10_01.models.PacketCaptureFilter] + """ + + _validation = { + 'target': {'required': True}, + 'storage_location': {'required': True}, + } + + _attribute_map = { + 'target': {'key': 'target', 'type': 'str'}, + 'bytes_to_capture_per_packet': {'key': 'bytesToCapturePerPacket', 'type': 'int'}, + 'total_bytes_per_session': {'key': 'totalBytesPerSession', 'type': 'int'}, + 'time_limit_in_seconds': {'key': 'timeLimitInSeconds', 'type': 'int'}, + 'storage_location': {'key': 'storageLocation', 'type': 'PacketCaptureStorageLocation'}, + 'filters': {'key': 'filters', 'type': '[PacketCaptureFilter]'}, + } + + def __init__(self, *, target: str, storage_location, bytes_to_capture_per_packet: int=0, total_bytes_per_session: int=1073741824, time_limit_in_seconds: int=18000, filters=None, **kwargs) -> None: + super(PacketCaptureParameters, self).__init__(**kwargs) + self.target = target + self.bytes_to_capture_per_packet = bytes_to_capture_per_packet + self.total_bytes_per_session = total_bytes_per_session + self.time_limit_in_seconds = time_limit_in_seconds + self.storage_location = storage_location + self.filters = filters diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/packet_capture_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/packet_capture_py3.py new file mode 100644 index 000000000000..73320e6913ef --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/packet_capture_py3.py @@ -0,0 +1,61 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class PacketCapture(Model): + """Parameters that define the create packet capture operation. + + All required parameters must be populated in order to send to Azure. + + :param target: Required. The ID of the targeted resource, only VM is + currently supported. + :type target: str + :param bytes_to_capture_per_packet: Number of bytes captured per packet, + the remaining bytes are truncated. Default value: 0 . + :type bytes_to_capture_per_packet: int + :param total_bytes_per_session: Maximum size of the capture output. + Default value: 1073741824 . + :type total_bytes_per_session: int + :param time_limit_in_seconds: Maximum duration of the capture session in + seconds. Default value: 18000 . + :type time_limit_in_seconds: int + :param storage_location: Required. + :type storage_location: + ~azure.mgmt.network.v2018_10_01.models.PacketCaptureStorageLocation + :param filters: + :type filters: + list[~azure.mgmt.network.v2018_10_01.models.PacketCaptureFilter] + """ + + _validation = { + 'target': {'required': True}, + 'storage_location': {'required': True}, + } + + _attribute_map = { + 'target': {'key': 'properties.target', 'type': 'str'}, + 'bytes_to_capture_per_packet': {'key': 'properties.bytesToCapturePerPacket', 'type': 'int'}, + 'total_bytes_per_session': {'key': 'properties.totalBytesPerSession', 'type': 'int'}, + 'time_limit_in_seconds': {'key': 'properties.timeLimitInSeconds', 'type': 'int'}, + 'storage_location': {'key': 'properties.storageLocation', 'type': 'PacketCaptureStorageLocation'}, + 'filters': {'key': 'properties.filters', 'type': '[PacketCaptureFilter]'}, + } + + def __init__(self, *, target: str, storage_location, bytes_to_capture_per_packet: int=0, total_bytes_per_session: int=1073741824, time_limit_in_seconds: int=18000, filters=None, **kwargs) -> None: + super(PacketCapture, self).__init__(**kwargs) + self.target = target + self.bytes_to_capture_per_packet = bytes_to_capture_per_packet + self.total_bytes_per_session = total_bytes_per_session + self.time_limit_in_seconds = time_limit_in_seconds + self.storage_location = storage_location + self.filters = filters diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/packet_capture_query_status_result.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/packet_capture_query_status_result.py new file mode 100644 index 000000000000..5b15a40d5a30 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/packet_capture_query_status_result.py @@ -0,0 +1,53 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class PacketCaptureQueryStatusResult(Model): + """Status of packet capture session. + + :param name: The name of the packet capture resource. + :type name: str + :param id: The ID of the packet capture resource. + :type id: str + :param capture_start_time: The start time of the packet capture session. + :type capture_start_time: datetime + :param packet_capture_status: The status of the packet capture session. + Possible values include: 'NotStarted', 'Running', 'Stopped', 'Error', + 'Unknown' + :type packet_capture_status: str or + ~azure.mgmt.network.v2018_10_01.models.PcStatus + :param stop_reason: The reason the current packet capture session was + stopped. + :type stop_reason: str + :param packet_capture_error: List of errors of packet capture session. + :type packet_capture_error: list[str or + ~azure.mgmt.network.v2018_10_01.models.PcError] + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'capture_start_time': {'key': 'captureStartTime', 'type': 'iso-8601'}, + 'packet_capture_status': {'key': 'packetCaptureStatus', 'type': 'str'}, + 'stop_reason': {'key': 'stopReason', 'type': 'str'}, + 'packet_capture_error': {'key': 'packetCaptureError', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(PacketCaptureQueryStatusResult, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.id = kwargs.get('id', None) + self.capture_start_time = kwargs.get('capture_start_time', None) + self.packet_capture_status = kwargs.get('packet_capture_status', None) + self.stop_reason = kwargs.get('stop_reason', None) + self.packet_capture_error = kwargs.get('packet_capture_error', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/packet_capture_query_status_result_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/packet_capture_query_status_result_py3.py new file mode 100644 index 000000000000..59bdccef7501 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/packet_capture_query_status_result_py3.py @@ -0,0 +1,53 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class PacketCaptureQueryStatusResult(Model): + """Status of packet capture session. + + :param name: The name of the packet capture resource. + :type name: str + :param id: The ID of the packet capture resource. + :type id: str + :param capture_start_time: The start time of the packet capture session. + :type capture_start_time: datetime + :param packet_capture_status: The status of the packet capture session. + Possible values include: 'NotStarted', 'Running', 'Stopped', 'Error', + 'Unknown' + :type packet_capture_status: str or + ~azure.mgmt.network.v2018_10_01.models.PcStatus + :param stop_reason: The reason the current packet capture session was + stopped. + :type stop_reason: str + :param packet_capture_error: List of errors of packet capture session. + :type packet_capture_error: list[str or + ~azure.mgmt.network.v2018_10_01.models.PcError] + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'capture_start_time': {'key': 'captureStartTime', 'type': 'iso-8601'}, + 'packet_capture_status': {'key': 'packetCaptureStatus', 'type': 'str'}, + 'stop_reason': {'key': 'stopReason', 'type': 'str'}, + 'packet_capture_error': {'key': 'packetCaptureError', 'type': '[str]'}, + } + + def __init__(self, *, name: str=None, id: str=None, capture_start_time=None, packet_capture_status=None, stop_reason: str=None, packet_capture_error=None, **kwargs) -> None: + super(PacketCaptureQueryStatusResult, self).__init__(**kwargs) + self.name = name + self.id = id + self.capture_start_time = capture_start_time + self.packet_capture_status = packet_capture_status + self.stop_reason = stop_reason + self.packet_capture_error = packet_capture_error diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/packet_capture_result.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/packet_capture_result.py new file mode 100644 index 000000000000..758933bb043f --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/packet_capture_result.py @@ -0,0 +1,86 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class PacketCaptureResult(Model): + """Information about packet capture session. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar name: Name of the packet capture session. + :vartype name: str + :ivar id: ID of the packet capture operation. + :vartype id: str + :param etag: Default value: "A unique read-only string that changes + whenever the resource is updated." . + :type etag: str + :param target: Required. The ID of the targeted resource, only VM is + currently supported. + :type target: str + :param bytes_to_capture_per_packet: Number of bytes captured per packet, + the remaining bytes are truncated. Default value: 0 . + :type bytes_to_capture_per_packet: int + :param total_bytes_per_session: Maximum size of the capture output. + Default value: 1073741824 . + :type total_bytes_per_session: int + :param time_limit_in_seconds: Maximum duration of the capture session in + seconds. Default value: 18000 . + :type time_limit_in_seconds: int + :param storage_location: Required. + :type storage_location: + ~azure.mgmt.network.v2018_10_01.models.PacketCaptureStorageLocation + :param filters: + :type filters: + list[~azure.mgmt.network.v2018_10_01.models.PacketCaptureFilter] + :param provisioning_state: The provisioning state of the packet capture + session. Possible values include: 'Succeeded', 'Updating', 'Deleting', + 'Failed' + :type provisioning_state: str or + ~azure.mgmt.network.v2018_10_01.models.ProvisioningState + """ + + _validation = { + 'name': {'readonly': True}, + 'id': {'readonly': True}, + 'target': {'required': True}, + 'storage_location': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'target': {'key': 'properties.target', 'type': 'str'}, + 'bytes_to_capture_per_packet': {'key': 'properties.bytesToCapturePerPacket', 'type': 'int'}, + 'total_bytes_per_session': {'key': 'properties.totalBytesPerSession', 'type': 'int'}, + 'time_limit_in_seconds': {'key': 'properties.timeLimitInSeconds', 'type': 'int'}, + 'storage_location': {'key': 'properties.storageLocation', 'type': 'PacketCaptureStorageLocation'}, + 'filters': {'key': 'properties.filters', 'type': '[PacketCaptureFilter]'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(PacketCaptureResult, self).__init__(**kwargs) + self.name = None + self.id = None + self.etag = kwargs.get('etag', "A unique read-only string that changes whenever the resource is updated.") + self.target = kwargs.get('target', None) + self.bytes_to_capture_per_packet = kwargs.get('bytes_to_capture_per_packet', 0) + self.total_bytes_per_session = kwargs.get('total_bytes_per_session', 1073741824) + self.time_limit_in_seconds = kwargs.get('time_limit_in_seconds', 18000) + self.storage_location = kwargs.get('storage_location', None) + self.filters = kwargs.get('filters', None) + self.provisioning_state = kwargs.get('provisioning_state', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/packet_capture_result_paged.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/packet_capture_result_paged.py new file mode 100644 index 000000000000..af873cf930d5 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/packet_capture_result_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class PacketCaptureResultPaged(Paged): + """ + A paging container for iterating over a list of :class:`PacketCaptureResult ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[PacketCaptureResult]'} + } + + def __init__(self, *args, **kwargs): + + super(PacketCaptureResultPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/packet_capture_result_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/packet_capture_result_py3.py new file mode 100644 index 000000000000..f0c476aa60f6 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/packet_capture_result_py3.py @@ -0,0 +1,86 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class PacketCaptureResult(Model): + """Information about packet capture session. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar name: Name of the packet capture session. + :vartype name: str + :ivar id: ID of the packet capture operation. + :vartype id: str + :param etag: Default value: "A unique read-only string that changes + whenever the resource is updated." . + :type etag: str + :param target: Required. The ID of the targeted resource, only VM is + currently supported. + :type target: str + :param bytes_to_capture_per_packet: Number of bytes captured per packet, + the remaining bytes are truncated. Default value: 0 . + :type bytes_to_capture_per_packet: int + :param total_bytes_per_session: Maximum size of the capture output. + Default value: 1073741824 . + :type total_bytes_per_session: int + :param time_limit_in_seconds: Maximum duration of the capture session in + seconds. Default value: 18000 . + :type time_limit_in_seconds: int + :param storage_location: Required. + :type storage_location: + ~azure.mgmt.network.v2018_10_01.models.PacketCaptureStorageLocation + :param filters: + :type filters: + list[~azure.mgmt.network.v2018_10_01.models.PacketCaptureFilter] + :param provisioning_state: The provisioning state of the packet capture + session. Possible values include: 'Succeeded', 'Updating', 'Deleting', + 'Failed' + :type provisioning_state: str or + ~azure.mgmt.network.v2018_10_01.models.ProvisioningState + """ + + _validation = { + 'name': {'readonly': True}, + 'id': {'readonly': True}, + 'target': {'required': True}, + 'storage_location': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'target': {'key': 'properties.target', 'type': 'str'}, + 'bytes_to_capture_per_packet': {'key': 'properties.bytesToCapturePerPacket', 'type': 'int'}, + 'total_bytes_per_session': {'key': 'properties.totalBytesPerSession', 'type': 'int'}, + 'time_limit_in_seconds': {'key': 'properties.timeLimitInSeconds', 'type': 'int'}, + 'storage_location': {'key': 'properties.storageLocation', 'type': 'PacketCaptureStorageLocation'}, + 'filters': {'key': 'properties.filters', 'type': '[PacketCaptureFilter]'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + } + + def __init__(self, *, target: str, storage_location, etag: str="A unique read-only string that changes whenever the resource is updated.", bytes_to_capture_per_packet: int=0, total_bytes_per_session: int=1073741824, time_limit_in_seconds: int=18000, filters=None, provisioning_state=None, **kwargs) -> None: + super(PacketCaptureResult, self).__init__(**kwargs) + self.name = None + self.id = None + self.etag = etag + self.target = target + self.bytes_to_capture_per_packet = bytes_to_capture_per_packet + self.total_bytes_per_session = total_bytes_per_session + self.time_limit_in_seconds = time_limit_in_seconds + self.storage_location = storage_location + self.filters = filters + self.provisioning_state = provisioning_state diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/packet_capture_storage_location.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/packet_capture_storage_location.py new file mode 100644 index 000000000000..62ed83d592b3 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/packet_capture_storage_location.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class PacketCaptureStorageLocation(Model): + """Describes the storage location for a packet capture session. + + :param storage_id: The ID of the storage account to save the packet + capture session. Required if no local file path is provided. + :type storage_id: str + :param storage_path: The URI of the storage path to save the packet + capture. Must be a well-formed URI describing the location to save the + packet capture. + :type storage_path: str + :param file_path: A valid local path on the targeting VM. Must include the + name of the capture file (*.cap). For linux virtual machine it must start + with /var/captures. Required if no storage ID is provided, otherwise + optional. + :type file_path: str + """ + + _attribute_map = { + 'storage_id': {'key': 'storageId', 'type': 'str'}, + 'storage_path': {'key': 'storagePath', 'type': 'str'}, + 'file_path': {'key': 'filePath', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(PacketCaptureStorageLocation, self).__init__(**kwargs) + self.storage_id = kwargs.get('storage_id', None) + self.storage_path = kwargs.get('storage_path', None) + self.file_path = kwargs.get('file_path', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/packet_capture_storage_location_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/packet_capture_storage_location_py3.py new file mode 100644 index 000000000000..6925dd4f9bdf --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/packet_capture_storage_location_py3.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class PacketCaptureStorageLocation(Model): + """Describes the storage location for a packet capture session. + + :param storage_id: The ID of the storage account to save the packet + capture session. Required if no local file path is provided. + :type storage_id: str + :param storage_path: The URI of the storage path to save the packet + capture. Must be a well-formed URI describing the location to save the + packet capture. + :type storage_path: str + :param file_path: A valid local path on the targeting VM. Must include the + name of the capture file (*.cap). For linux virtual machine it must start + with /var/captures. Required if no storage ID is provided, otherwise + optional. + :type file_path: str + """ + + _attribute_map = { + 'storage_id': {'key': 'storageId', 'type': 'str'}, + 'storage_path': {'key': 'storagePath', 'type': 'str'}, + 'file_path': {'key': 'filePath', 'type': 'str'}, + } + + def __init__(self, *, storage_id: str=None, storage_path: str=None, file_path: str=None, **kwargs) -> None: + super(PacketCaptureStorageLocation, self).__init__(**kwargs) + self.storage_id = storage_id + self.storage_path = storage_path + self.file_path = file_path diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/patch_route_filter.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/patch_route_filter.py new file mode 100644 index 000000000000..0c16271db797 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/patch_route_filter.py @@ -0,0 +1,71 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource import SubResource + + +class PatchRouteFilter(SubResource): + """Route Filter Resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :param rules: Collection of RouteFilterRules contained within a route + filter. + :type rules: list[~azure.mgmt.network.v2018_10_01.models.RouteFilterRule] + :param peerings: A collection of references to express route circuit + peerings. + :type peerings: + list[~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuitPeering] + :ivar provisioning_state: The provisioning state of the resource. Possible + values are: 'Updating', 'Deleting', 'Succeeded' and 'Failed'. + :vartype provisioning_state: str + :ivar name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. + :vartype name: str + :ivar etag: A unique read-only string that changes whenever the resource + is updated. + :vartype etag: str + :ivar type: Resource type. + :vartype type: str + :param tags: Resource tags. + :type tags: dict[str, str] + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'name': {'readonly': True}, + 'etag': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'rules': {'key': 'properties.rules', 'type': '[RouteFilterRule]'}, + 'peerings': {'key': 'properties.peerings', 'type': '[ExpressRouteCircuitPeering]'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, **kwargs): + super(PatchRouteFilter, self).__init__(**kwargs) + self.rules = kwargs.get('rules', None) + self.peerings = kwargs.get('peerings', None) + self.provisioning_state = None + self.name = None + self.etag = None + self.type = None + self.tags = kwargs.get('tags', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/patch_route_filter_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/patch_route_filter_py3.py new file mode 100644 index 000000000000..282b81e8a9b2 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/patch_route_filter_py3.py @@ -0,0 +1,71 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource_py3 import SubResource + + +class PatchRouteFilter(SubResource): + """Route Filter Resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :param rules: Collection of RouteFilterRules contained within a route + filter. + :type rules: list[~azure.mgmt.network.v2018_10_01.models.RouteFilterRule] + :param peerings: A collection of references to express route circuit + peerings. + :type peerings: + list[~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuitPeering] + :ivar provisioning_state: The provisioning state of the resource. Possible + values are: 'Updating', 'Deleting', 'Succeeded' and 'Failed'. + :vartype provisioning_state: str + :ivar name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. + :vartype name: str + :ivar etag: A unique read-only string that changes whenever the resource + is updated. + :vartype etag: str + :ivar type: Resource type. + :vartype type: str + :param tags: Resource tags. + :type tags: dict[str, str] + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'name': {'readonly': True}, + 'etag': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'rules': {'key': 'properties.rules', 'type': '[RouteFilterRule]'}, + 'peerings': {'key': 'properties.peerings', 'type': '[ExpressRouteCircuitPeering]'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, *, id: str=None, rules=None, peerings=None, tags=None, **kwargs) -> None: + super(PatchRouteFilter, self).__init__(id=id, **kwargs) + self.rules = rules + self.peerings = peerings + self.provisioning_state = None + self.name = None + self.etag = None + self.type = None + self.tags = tags diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/patch_route_filter_rule.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/patch_route_filter_rule.py new file mode 100644 index 000000000000..dac465214181 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/patch_route_filter_rule.py @@ -0,0 +1,72 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource import SubResource + + +class PatchRouteFilterRule(SubResource): + """Route Filter Rule Resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param id: Resource ID. + :type id: str + :param access: Required. The access type of the rule. Valid values are: + 'Allow', 'Deny'. Possible values include: 'Allow', 'Deny' + :type access: str or ~azure.mgmt.network.v2018_10_01.models.Access + :ivar route_filter_rule_type: Required. The rule type of the rule. Valid + value is: 'Community'. Default value: "Community" . + :vartype route_filter_rule_type: str + :param communities: Required. The collection for bgp community values to + filter on. e.g. ['12076:5010','12076:5020'] + :type communities: list[str] + :ivar provisioning_state: The provisioning state of the resource. Possible + values are: 'Updating', 'Deleting', 'Succeeded' and 'Failed'. + :vartype provisioning_state: str + :ivar name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. + :vartype name: str + :ivar etag: A unique read-only string that changes whenever the resource + is updated. + :vartype etag: str + """ + + _validation = { + 'access': {'required': True}, + 'route_filter_rule_type': {'required': True, 'constant': True}, + 'communities': {'required': True}, + 'provisioning_state': {'readonly': True}, + 'name': {'readonly': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'access': {'key': 'properties.access', 'type': 'str'}, + 'route_filter_rule_type': {'key': 'properties.routeFilterRuleType', 'type': 'str'}, + 'communities': {'key': 'properties.communities', 'type': '[str]'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + route_filter_rule_type = "Community" + + def __init__(self, **kwargs): + super(PatchRouteFilterRule, self).__init__(**kwargs) + self.access = kwargs.get('access', None) + self.communities = kwargs.get('communities', None) + self.provisioning_state = None + self.name = None + self.etag = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/patch_route_filter_rule_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/patch_route_filter_rule_py3.py new file mode 100644 index 000000000000..9826f961523e --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/patch_route_filter_rule_py3.py @@ -0,0 +1,72 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource_py3 import SubResource + + +class PatchRouteFilterRule(SubResource): + """Route Filter Rule Resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param id: Resource ID. + :type id: str + :param access: Required. The access type of the rule. Valid values are: + 'Allow', 'Deny'. Possible values include: 'Allow', 'Deny' + :type access: str or ~azure.mgmt.network.v2018_10_01.models.Access + :ivar route_filter_rule_type: Required. The rule type of the rule. Valid + value is: 'Community'. Default value: "Community" . + :vartype route_filter_rule_type: str + :param communities: Required. The collection for bgp community values to + filter on. e.g. ['12076:5010','12076:5020'] + :type communities: list[str] + :ivar provisioning_state: The provisioning state of the resource. Possible + values are: 'Updating', 'Deleting', 'Succeeded' and 'Failed'. + :vartype provisioning_state: str + :ivar name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. + :vartype name: str + :ivar etag: A unique read-only string that changes whenever the resource + is updated. + :vartype etag: str + """ + + _validation = { + 'access': {'required': True}, + 'route_filter_rule_type': {'required': True, 'constant': True}, + 'communities': {'required': True}, + 'provisioning_state': {'readonly': True}, + 'name': {'readonly': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'access': {'key': 'properties.access', 'type': 'str'}, + 'route_filter_rule_type': {'key': 'properties.routeFilterRuleType', 'type': 'str'}, + 'communities': {'key': 'properties.communities', 'type': '[str]'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + route_filter_rule_type = "Community" + + def __init__(self, *, access, communities, id: str=None, **kwargs) -> None: + super(PatchRouteFilterRule, self).__init__(id=id, **kwargs) + self.access = access + self.communities = communities + self.provisioning_state = None + self.name = None + self.etag = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/probe.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/probe.py new file mode 100644 index 000000000000..1f139b1bb025 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/probe.py @@ -0,0 +1,93 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource import SubResource + + +class Probe(SubResource): + """A load balancer probe. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param id: Resource ID. + :type id: str + :ivar load_balancing_rules: The load balancer rules that use this probe. + :vartype load_balancing_rules: + list[~azure.mgmt.network.v2018_10_01.models.SubResource] + :param protocol: Required. The protocol of the end point. Possible values + are: 'Http', 'Tcp', or 'Https'. If 'Tcp' is specified, a received ACK is + required for the probe to be successful. If 'Http' or 'Https' is + specified, a 200 OK response from the specifies URI is required for the + probe to be successful. Possible values include: 'Http', 'Tcp', 'Https' + :type protocol: str or + ~azure.mgmt.network.v2018_10_01.models.ProbeProtocol + :param port: Required. The port for communicating the probe. Possible + values range from 1 to 65535, inclusive. + :type port: int + :param interval_in_seconds: The interval, in seconds, for how frequently + to probe the endpoint for health status. Typically, the interval is + slightly less than half the allocated timeout period (in seconds) which + allows two full probes before taking the instance out of rotation. The + default value is 15, the minimum value is 5. + :type interval_in_seconds: int + :param number_of_probes: The number of probes where if no response, will + result in stopping further traffic from being delivered to the endpoint. + This values allows endpoints to be taken out of rotation faster or slower + than the typical times used in Azure. + :type number_of_probes: int + :param request_path: The URI used for requesting health status from the + VM. Path is required if a protocol is set to http. Otherwise, it is not + allowed. There is no default value. + :type request_path: str + :param provisioning_state: Gets the provisioning state of the public IP + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param name: Gets name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _validation = { + 'load_balancing_rules': {'readonly': True}, + 'protocol': {'required': True}, + 'port': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'load_balancing_rules': {'key': 'properties.loadBalancingRules', 'type': '[SubResource]'}, + 'protocol': {'key': 'properties.protocol', 'type': 'str'}, + 'port': {'key': 'properties.port', 'type': 'int'}, + 'interval_in_seconds': {'key': 'properties.intervalInSeconds', 'type': 'int'}, + 'number_of_probes': {'key': 'properties.numberOfProbes', 'type': 'int'}, + 'request_path': {'key': 'properties.requestPath', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Probe, self).__init__(**kwargs) + self.load_balancing_rules = None + self.protocol = kwargs.get('protocol', None) + self.port = kwargs.get('port', None) + self.interval_in_seconds = kwargs.get('interval_in_seconds', None) + self.number_of_probes = kwargs.get('number_of_probes', None) + self.request_path = kwargs.get('request_path', None) + self.provisioning_state = kwargs.get('provisioning_state', None) + self.name = kwargs.get('name', None) + self.etag = kwargs.get('etag', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/probe_paged.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/probe_paged.py new file mode 100644 index 000000000000..692bcb112481 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/probe_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class ProbePaged(Paged): + """ + A paging container for iterating over a list of :class:`Probe ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[Probe]'} + } + + def __init__(self, *args, **kwargs): + + super(ProbePaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/probe_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/probe_py3.py new file mode 100644 index 000000000000..dc9291d02508 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/probe_py3.py @@ -0,0 +1,93 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource_py3 import SubResource + + +class Probe(SubResource): + """A load balancer probe. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param id: Resource ID. + :type id: str + :ivar load_balancing_rules: The load balancer rules that use this probe. + :vartype load_balancing_rules: + list[~azure.mgmt.network.v2018_10_01.models.SubResource] + :param protocol: Required. The protocol of the end point. Possible values + are: 'Http', 'Tcp', or 'Https'. If 'Tcp' is specified, a received ACK is + required for the probe to be successful. If 'Http' or 'Https' is + specified, a 200 OK response from the specifies URI is required for the + probe to be successful. Possible values include: 'Http', 'Tcp', 'Https' + :type protocol: str or + ~azure.mgmt.network.v2018_10_01.models.ProbeProtocol + :param port: Required. The port for communicating the probe. Possible + values range from 1 to 65535, inclusive. + :type port: int + :param interval_in_seconds: The interval, in seconds, for how frequently + to probe the endpoint for health status. Typically, the interval is + slightly less than half the allocated timeout period (in seconds) which + allows two full probes before taking the instance out of rotation. The + default value is 15, the minimum value is 5. + :type interval_in_seconds: int + :param number_of_probes: The number of probes where if no response, will + result in stopping further traffic from being delivered to the endpoint. + This values allows endpoints to be taken out of rotation faster or slower + than the typical times used in Azure. + :type number_of_probes: int + :param request_path: The URI used for requesting health status from the + VM. Path is required if a protocol is set to http. Otherwise, it is not + allowed. There is no default value. + :type request_path: str + :param provisioning_state: Gets the provisioning state of the public IP + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param name: Gets name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _validation = { + 'load_balancing_rules': {'readonly': True}, + 'protocol': {'required': True}, + 'port': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'load_balancing_rules': {'key': 'properties.loadBalancingRules', 'type': '[SubResource]'}, + 'protocol': {'key': 'properties.protocol', 'type': 'str'}, + 'port': {'key': 'properties.port', 'type': 'int'}, + 'interval_in_seconds': {'key': 'properties.intervalInSeconds', 'type': 'int'}, + 'number_of_probes': {'key': 'properties.numberOfProbes', 'type': 'int'}, + 'request_path': {'key': 'properties.requestPath', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, *, protocol, port: int, id: str=None, interval_in_seconds: int=None, number_of_probes: int=None, request_path: str=None, provisioning_state: str=None, name: str=None, etag: str=None, **kwargs) -> None: + super(Probe, self).__init__(id=id, **kwargs) + self.load_balancing_rules = None + self.protocol = protocol + self.port = port + self.interval_in_seconds = interval_in_seconds + self.number_of_probes = number_of_probes + self.request_path = request_path + self.provisioning_state = provisioning_state + self.name = name + self.etag = etag diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/protocol_configuration.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/protocol_configuration.py new file mode 100644 index 000000000000..df43cbdf910e --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/protocol_configuration.py @@ -0,0 +1,29 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ProtocolConfiguration(Model): + """Configuration of the protocol. + + :param http_configuration: + :type http_configuration: + ~azure.mgmt.network.v2018_10_01.models.HTTPConfiguration + """ + + _attribute_map = { + 'http_configuration': {'key': 'HTTPConfiguration', 'type': 'HTTPConfiguration'}, + } + + def __init__(self, **kwargs): + super(ProtocolConfiguration, self).__init__(**kwargs) + self.http_configuration = kwargs.get('http_configuration', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/protocol_configuration_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/protocol_configuration_py3.py new file mode 100644 index 000000000000..ef4fc420fa23 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/protocol_configuration_py3.py @@ -0,0 +1,29 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ProtocolConfiguration(Model): + """Configuration of the protocol. + + :param http_configuration: + :type http_configuration: + ~azure.mgmt.network.v2018_10_01.models.HTTPConfiguration + """ + + _attribute_map = { + 'http_configuration': {'key': 'HTTPConfiguration', 'type': 'HTTPConfiguration'}, + } + + def __init__(self, *, http_configuration=None, **kwargs) -> None: + super(ProtocolConfiguration, self).__init__(**kwargs) + self.http_configuration = http_configuration diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/public_ip_address.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/public_ip_address.py new file mode 100644 index 000000000000..f9573db9e463 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/public_ip_address.py @@ -0,0 +1,115 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource import Resource + + +class PublicIPAddress(Resource): + """Public IP address resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param sku: The public IP address SKU. + :type sku: ~azure.mgmt.network.v2018_10_01.models.PublicIPAddressSku + :param public_ip_allocation_method: The public IP allocation method. + Possible values are: 'Static' and 'Dynamic'. Possible values include: + 'Static', 'Dynamic' + :type public_ip_allocation_method: str or + ~azure.mgmt.network.v2018_10_01.models.IPAllocationMethod + :param public_ip_address_version: The public IP address version. Possible + values are: 'IPv4' and 'IPv6'. Possible values include: 'IPv4', 'IPv6' + :type public_ip_address_version: str or + ~azure.mgmt.network.v2018_10_01.models.IPVersion + :ivar ip_configuration: The IP configuration associated with the public IP + address. + :vartype ip_configuration: + ~azure.mgmt.network.v2018_10_01.models.IPConfiguration + :param dns_settings: The FQDN of the DNS record associated with the public + IP address. + :type dns_settings: + ~azure.mgmt.network.v2018_10_01.models.PublicIPAddressDnsSettings + :param ip_tags: The list of tags associated with the public IP address. + :type ip_tags: list[~azure.mgmt.network.v2018_10_01.models.IpTag] + :param ip_address: The IP address associated with the public IP address + resource. + :type ip_address: str + :param public_ip_prefix: The Public IP Prefix this Public IP Address + should be allocated from. + :type public_ip_prefix: ~azure.mgmt.network.v2018_10_01.models.SubResource + :param idle_timeout_in_minutes: The idle timeout of the public IP address. + :type idle_timeout_in_minutes: int + :param resource_guid: The resource GUID property of the public IP + resource. + :type resource_guid: str + :param provisioning_state: The provisioning state of the PublicIP + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + :param zones: A list of availability zones denoting the IP allocated for + the resource needs to come from. + :type zones: list[str] + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'ip_configuration': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'sku': {'key': 'sku', 'type': 'PublicIPAddressSku'}, + 'public_ip_allocation_method': {'key': 'properties.publicIPAllocationMethod', 'type': 'str'}, + 'public_ip_address_version': {'key': 'properties.publicIPAddressVersion', 'type': 'str'}, + 'ip_configuration': {'key': 'properties.ipConfiguration', 'type': 'IPConfiguration'}, + 'dns_settings': {'key': 'properties.dnsSettings', 'type': 'PublicIPAddressDnsSettings'}, + 'ip_tags': {'key': 'properties.ipTags', 'type': '[IpTag]'}, + 'ip_address': {'key': 'properties.ipAddress', 'type': 'str'}, + 'public_ip_prefix': {'key': 'properties.publicIPPrefix', 'type': 'SubResource'}, + 'idle_timeout_in_minutes': {'key': 'properties.idleTimeoutInMinutes', 'type': 'int'}, + 'resource_guid': {'key': 'properties.resourceGuid', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'zones': {'key': 'zones', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(PublicIPAddress, self).__init__(**kwargs) + self.sku = kwargs.get('sku', None) + self.public_ip_allocation_method = kwargs.get('public_ip_allocation_method', None) + self.public_ip_address_version = kwargs.get('public_ip_address_version', None) + self.ip_configuration = None + self.dns_settings = kwargs.get('dns_settings', None) + self.ip_tags = kwargs.get('ip_tags', None) + self.ip_address = kwargs.get('ip_address', None) + self.public_ip_prefix = kwargs.get('public_ip_prefix', None) + self.idle_timeout_in_minutes = kwargs.get('idle_timeout_in_minutes', None) + self.resource_guid = kwargs.get('resource_guid', None) + self.provisioning_state = kwargs.get('provisioning_state', None) + self.etag = kwargs.get('etag', None) + self.zones = kwargs.get('zones', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/public_ip_address_dns_settings.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/public_ip_address_dns_settings.py new file mode 100644 index 000000000000..07dfe30433a6 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/public_ip_address_dns_settings.py @@ -0,0 +1,45 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class PublicIPAddressDnsSettings(Model): + """Contains FQDN of the DNS record associated with the public IP address. + + :param domain_name_label: Gets or sets the Domain name label.The + concatenation of the domain name label and the regionalized DNS zone make + up the fully qualified domain name associated with the public IP address. + If a domain name label is specified, an A DNS record is created for the + public IP in the Microsoft Azure DNS system. + :type domain_name_label: str + :param fqdn: Gets the FQDN, Fully qualified domain name of the A DNS + record associated with the public IP. This is the concatenation of the + domainNameLabel and the regionalized DNS zone. + :type fqdn: str + :param reverse_fqdn: Gets or Sets the Reverse FQDN. A user-visible, fully + qualified domain name that resolves to this public IP address. If the + reverseFqdn is specified, then a PTR DNS record is created pointing from + the IP address in the in-addr.arpa domain to the reverse FQDN. + :type reverse_fqdn: str + """ + + _attribute_map = { + 'domain_name_label': {'key': 'domainNameLabel', 'type': 'str'}, + 'fqdn': {'key': 'fqdn', 'type': 'str'}, + 'reverse_fqdn': {'key': 'reverseFqdn', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(PublicIPAddressDnsSettings, self).__init__(**kwargs) + self.domain_name_label = kwargs.get('domain_name_label', None) + self.fqdn = kwargs.get('fqdn', None) + self.reverse_fqdn = kwargs.get('reverse_fqdn', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/public_ip_address_dns_settings_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/public_ip_address_dns_settings_py3.py new file mode 100644 index 000000000000..e84aa9c10bf5 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/public_ip_address_dns_settings_py3.py @@ -0,0 +1,45 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class PublicIPAddressDnsSettings(Model): + """Contains FQDN of the DNS record associated with the public IP address. + + :param domain_name_label: Gets or sets the Domain name label.The + concatenation of the domain name label and the regionalized DNS zone make + up the fully qualified domain name associated with the public IP address. + If a domain name label is specified, an A DNS record is created for the + public IP in the Microsoft Azure DNS system. + :type domain_name_label: str + :param fqdn: Gets the FQDN, Fully qualified domain name of the A DNS + record associated with the public IP. This is the concatenation of the + domainNameLabel and the regionalized DNS zone. + :type fqdn: str + :param reverse_fqdn: Gets or Sets the Reverse FQDN. A user-visible, fully + qualified domain name that resolves to this public IP address. If the + reverseFqdn is specified, then a PTR DNS record is created pointing from + the IP address in the in-addr.arpa domain to the reverse FQDN. + :type reverse_fqdn: str + """ + + _attribute_map = { + 'domain_name_label': {'key': 'domainNameLabel', 'type': 'str'}, + 'fqdn': {'key': 'fqdn', 'type': 'str'}, + 'reverse_fqdn': {'key': 'reverseFqdn', 'type': 'str'}, + } + + def __init__(self, *, domain_name_label: str=None, fqdn: str=None, reverse_fqdn: str=None, **kwargs) -> None: + super(PublicIPAddressDnsSettings, self).__init__(**kwargs) + self.domain_name_label = domain_name_label + self.fqdn = fqdn + self.reverse_fqdn = reverse_fqdn diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/public_ip_address_paged.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/public_ip_address_paged.py new file mode 100644 index 000000000000..dd28c811f51f --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/public_ip_address_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class PublicIPAddressPaged(Paged): + """ + A paging container for iterating over a list of :class:`PublicIPAddress ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[PublicIPAddress]'} + } + + def __init__(self, *args, **kwargs): + + super(PublicIPAddressPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/public_ip_address_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/public_ip_address_py3.py new file mode 100644 index 000000000000..73c4a925ebe3 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/public_ip_address_py3.py @@ -0,0 +1,115 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource_py3 import Resource + + +class PublicIPAddress(Resource): + """Public IP address resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param sku: The public IP address SKU. + :type sku: ~azure.mgmt.network.v2018_10_01.models.PublicIPAddressSku + :param public_ip_allocation_method: The public IP allocation method. + Possible values are: 'Static' and 'Dynamic'. Possible values include: + 'Static', 'Dynamic' + :type public_ip_allocation_method: str or + ~azure.mgmt.network.v2018_10_01.models.IPAllocationMethod + :param public_ip_address_version: The public IP address version. Possible + values are: 'IPv4' and 'IPv6'. Possible values include: 'IPv4', 'IPv6' + :type public_ip_address_version: str or + ~azure.mgmt.network.v2018_10_01.models.IPVersion + :ivar ip_configuration: The IP configuration associated with the public IP + address. + :vartype ip_configuration: + ~azure.mgmt.network.v2018_10_01.models.IPConfiguration + :param dns_settings: The FQDN of the DNS record associated with the public + IP address. + :type dns_settings: + ~azure.mgmt.network.v2018_10_01.models.PublicIPAddressDnsSettings + :param ip_tags: The list of tags associated with the public IP address. + :type ip_tags: list[~azure.mgmt.network.v2018_10_01.models.IpTag] + :param ip_address: The IP address associated with the public IP address + resource. + :type ip_address: str + :param public_ip_prefix: The Public IP Prefix this Public IP Address + should be allocated from. + :type public_ip_prefix: ~azure.mgmt.network.v2018_10_01.models.SubResource + :param idle_timeout_in_minutes: The idle timeout of the public IP address. + :type idle_timeout_in_minutes: int + :param resource_guid: The resource GUID property of the public IP + resource. + :type resource_guid: str + :param provisioning_state: The provisioning state of the PublicIP + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + :param zones: A list of availability zones denoting the IP allocated for + the resource needs to come from. + :type zones: list[str] + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'ip_configuration': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'sku': {'key': 'sku', 'type': 'PublicIPAddressSku'}, + 'public_ip_allocation_method': {'key': 'properties.publicIPAllocationMethod', 'type': 'str'}, + 'public_ip_address_version': {'key': 'properties.publicIPAddressVersion', 'type': 'str'}, + 'ip_configuration': {'key': 'properties.ipConfiguration', 'type': 'IPConfiguration'}, + 'dns_settings': {'key': 'properties.dnsSettings', 'type': 'PublicIPAddressDnsSettings'}, + 'ip_tags': {'key': 'properties.ipTags', 'type': '[IpTag]'}, + 'ip_address': {'key': 'properties.ipAddress', 'type': 'str'}, + 'public_ip_prefix': {'key': 'properties.publicIPPrefix', 'type': 'SubResource'}, + 'idle_timeout_in_minutes': {'key': 'properties.idleTimeoutInMinutes', 'type': 'int'}, + 'resource_guid': {'key': 'properties.resourceGuid', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'zones': {'key': 'zones', 'type': '[str]'}, + } + + def __init__(self, *, id: str=None, location: str=None, tags=None, sku=None, public_ip_allocation_method=None, public_ip_address_version=None, dns_settings=None, ip_tags=None, ip_address: str=None, public_ip_prefix=None, idle_timeout_in_minutes: int=None, resource_guid: str=None, provisioning_state: str=None, etag: str=None, zones=None, **kwargs) -> None: + super(PublicIPAddress, self).__init__(id=id, location=location, tags=tags, **kwargs) + self.sku = sku + self.public_ip_allocation_method = public_ip_allocation_method + self.public_ip_address_version = public_ip_address_version + self.ip_configuration = None + self.dns_settings = dns_settings + self.ip_tags = ip_tags + self.ip_address = ip_address + self.public_ip_prefix = public_ip_prefix + self.idle_timeout_in_minutes = idle_timeout_in_minutes + self.resource_guid = resource_guid + self.provisioning_state = provisioning_state + self.etag = etag + self.zones = zones diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/public_ip_address_sku.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/public_ip_address_sku.py new file mode 100644 index 000000000000..3a3b013de9c8 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/public_ip_address_sku.py @@ -0,0 +1,30 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class PublicIPAddressSku(Model): + """SKU of a public IP address. + + :param name: Name of a public IP address SKU. Possible values include: + 'Basic', 'Standard' + :type name: str or + ~azure.mgmt.network.v2018_10_01.models.PublicIPAddressSkuName + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(PublicIPAddressSku, self).__init__(**kwargs) + self.name = kwargs.get('name', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/public_ip_address_sku_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/public_ip_address_sku_py3.py new file mode 100644 index 000000000000..25c74cb0e74a --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/public_ip_address_sku_py3.py @@ -0,0 +1,30 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class PublicIPAddressSku(Model): + """SKU of a public IP address. + + :param name: Name of a public IP address SKU. Possible values include: + 'Basic', 'Standard' + :type name: str or + ~azure.mgmt.network.v2018_10_01.models.PublicIPAddressSkuName + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + } + + def __init__(self, *, name=None, **kwargs) -> None: + super(PublicIPAddressSku, self).__init__(**kwargs) + self.name = name diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/public_ip_prefix.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/public_ip_prefix.py new file mode 100644 index 000000000000..83b1eee65624 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/public_ip_prefix.py @@ -0,0 +1,94 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource import Resource + + +class PublicIPPrefix(Resource): + """Public IP prefix resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param sku: The public IP prefix SKU. + :type sku: ~azure.mgmt.network.v2018_10_01.models.PublicIPPrefixSku + :param public_ip_address_version: The public IP address version. Possible + values are: 'IPv4' and 'IPv6'. Possible values include: 'IPv4', 'IPv6' + :type public_ip_address_version: str or + ~azure.mgmt.network.v2018_10_01.models.IPVersion + :param ip_tags: The list of tags associated with the public IP prefix. + :type ip_tags: list[~azure.mgmt.network.v2018_10_01.models.IpTag] + :param prefix_length: The Length of the Public IP Prefix. + :type prefix_length: int + :param ip_prefix: The allocated Prefix + :type ip_prefix: str + :param public_ip_addresses: The list of all referenced PublicIPAddresses + :type public_ip_addresses: + list[~azure.mgmt.network.v2018_10_01.models.ReferencedPublicIpAddress] + :param resource_guid: The resource GUID property of the public IP prefix + resource. + :type resource_guid: str + :param provisioning_state: The provisioning state of the Public IP prefix + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + :param zones: A list of availability zones denoting the IP allocated for + the resource needs to come from. + :type zones: list[str] + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'sku': {'key': 'sku', 'type': 'PublicIPPrefixSku'}, + 'public_ip_address_version': {'key': 'properties.publicIPAddressVersion', 'type': 'str'}, + 'ip_tags': {'key': 'properties.ipTags', 'type': '[IpTag]'}, + 'prefix_length': {'key': 'properties.prefixLength', 'type': 'int'}, + 'ip_prefix': {'key': 'properties.ipPrefix', 'type': 'str'}, + 'public_ip_addresses': {'key': 'properties.publicIPAddresses', 'type': '[ReferencedPublicIpAddress]'}, + 'resource_guid': {'key': 'properties.resourceGuid', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'zones': {'key': 'zones', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(PublicIPPrefix, self).__init__(**kwargs) + self.sku = kwargs.get('sku', None) + self.public_ip_address_version = kwargs.get('public_ip_address_version', None) + self.ip_tags = kwargs.get('ip_tags', None) + self.prefix_length = kwargs.get('prefix_length', None) + self.ip_prefix = kwargs.get('ip_prefix', None) + self.public_ip_addresses = kwargs.get('public_ip_addresses', None) + self.resource_guid = kwargs.get('resource_guid', None) + self.provisioning_state = kwargs.get('provisioning_state', None) + self.etag = kwargs.get('etag', None) + self.zones = kwargs.get('zones', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/public_ip_prefix_paged.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/public_ip_prefix_paged.py new file mode 100644 index 000000000000..25698b2755aa --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/public_ip_prefix_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class PublicIPPrefixPaged(Paged): + """ + A paging container for iterating over a list of :class:`PublicIPPrefix ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[PublicIPPrefix]'} + } + + def __init__(self, *args, **kwargs): + + super(PublicIPPrefixPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/public_ip_prefix_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/public_ip_prefix_py3.py new file mode 100644 index 000000000000..41d10abddc18 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/public_ip_prefix_py3.py @@ -0,0 +1,94 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource_py3 import Resource + + +class PublicIPPrefix(Resource): + """Public IP prefix resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param sku: The public IP prefix SKU. + :type sku: ~azure.mgmt.network.v2018_10_01.models.PublicIPPrefixSku + :param public_ip_address_version: The public IP address version. Possible + values are: 'IPv4' and 'IPv6'. Possible values include: 'IPv4', 'IPv6' + :type public_ip_address_version: str or + ~azure.mgmt.network.v2018_10_01.models.IPVersion + :param ip_tags: The list of tags associated with the public IP prefix. + :type ip_tags: list[~azure.mgmt.network.v2018_10_01.models.IpTag] + :param prefix_length: The Length of the Public IP Prefix. + :type prefix_length: int + :param ip_prefix: The allocated Prefix + :type ip_prefix: str + :param public_ip_addresses: The list of all referenced PublicIPAddresses + :type public_ip_addresses: + list[~azure.mgmt.network.v2018_10_01.models.ReferencedPublicIpAddress] + :param resource_guid: The resource GUID property of the public IP prefix + resource. + :type resource_guid: str + :param provisioning_state: The provisioning state of the Public IP prefix + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + :param zones: A list of availability zones denoting the IP allocated for + the resource needs to come from. + :type zones: list[str] + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'sku': {'key': 'sku', 'type': 'PublicIPPrefixSku'}, + 'public_ip_address_version': {'key': 'properties.publicIPAddressVersion', 'type': 'str'}, + 'ip_tags': {'key': 'properties.ipTags', 'type': '[IpTag]'}, + 'prefix_length': {'key': 'properties.prefixLength', 'type': 'int'}, + 'ip_prefix': {'key': 'properties.ipPrefix', 'type': 'str'}, + 'public_ip_addresses': {'key': 'properties.publicIPAddresses', 'type': '[ReferencedPublicIpAddress]'}, + 'resource_guid': {'key': 'properties.resourceGuid', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + 'zones': {'key': 'zones', 'type': '[str]'}, + } + + def __init__(self, *, id: str=None, location: str=None, tags=None, sku=None, public_ip_address_version=None, ip_tags=None, prefix_length: int=None, ip_prefix: str=None, public_ip_addresses=None, resource_guid: str=None, provisioning_state: str=None, etag: str=None, zones=None, **kwargs) -> None: + super(PublicIPPrefix, self).__init__(id=id, location=location, tags=tags, **kwargs) + self.sku = sku + self.public_ip_address_version = public_ip_address_version + self.ip_tags = ip_tags + self.prefix_length = prefix_length + self.ip_prefix = ip_prefix + self.public_ip_addresses = public_ip_addresses + self.resource_guid = resource_guid + self.provisioning_state = provisioning_state + self.etag = etag + self.zones = zones diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/public_ip_prefix_sku.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/public_ip_prefix_sku.py new file mode 100644 index 000000000000..ad603eba21c4 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/public_ip_prefix_sku.py @@ -0,0 +1,30 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class PublicIPPrefixSku(Model): + """SKU of a public IP prefix. + + :param name: Name of a public IP prefix SKU. Possible values include: + 'Standard' + :type name: str or + ~azure.mgmt.network.v2018_10_01.models.PublicIPPrefixSkuName + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(PublicIPPrefixSku, self).__init__(**kwargs) + self.name = kwargs.get('name', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/public_ip_prefix_sku_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/public_ip_prefix_sku_py3.py new file mode 100644 index 000000000000..28d263f0cc66 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/public_ip_prefix_sku_py3.py @@ -0,0 +1,30 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class PublicIPPrefixSku(Model): + """SKU of a public IP prefix. + + :param name: Name of a public IP prefix SKU. Possible values include: + 'Standard' + :type name: str or + ~azure.mgmt.network.v2018_10_01.models.PublicIPPrefixSkuName + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + } + + def __init__(self, *, name=None, **kwargs) -> None: + super(PublicIPPrefixSku, self).__init__(**kwargs) + self.name = name diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/query_troubleshooting_parameters.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/query_troubleshooting_parameters.py new file mode 100644 index 000000000000..6ae1924916c6 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/query_troubleshooting_parameters.py @@ -0,0 +1,35 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class QueryTroubleshootingParameters(Model): + """Parameters that define the resource to query the troubleshooting result. + + All required parameters must be populated in order to send to Azure. + + :param target_resource_id: Required. The target resource ID to query the + troubleshooting result. + :type target_resource_id: str + """ + + _validation = { + 'target_resource_id': {'required': True}, + } + + _attribute_map = { + 'target_resource_id': {'key': 'targetResourceId', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(QueryTroubleshootingParameters, self).__init__(**kwargs) + self.target_resource_id = kwargs.get('target_resource_id', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/query_troubleshooting_parameters_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/query_troubleshooting_parameters_py3.py new file mode 100644 index 000000000000..b5fccb87857c --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/query_troubleshooting_parameters_py3.py @@ -0,0 +1,35 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class QueryTroubleshootingParameters(Model): + """Parameters that define the resource to query the troubleshooting result. + + All required parameters must be populated in order to send to Azure. + + :param target_resource_id: Required. The target resource ID to query the + troubleshooting result. + :type target_resource_id: str + """ + + _validation = { + 'target_resource_id': {'required': True}, + } + + _attribute_map = { + 'target_resource_id': {'key': 'targetResourceId', 'type': 'str'}, + } + + def __init__(self, *, target_resource_id: str, **kwargs) -> None: + super(QueryTroubleshootingParameters, self).__init__(**kwargs) + self.target_resource_id = target_resource_id diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/referenced_public_ip_address.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/referenced_public_ip_address.py new file mode 100644 index 000000000000..76807023de75 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/referenced_public_ip_address.py @@ -0,0 +1,28 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ReferencedPublicIpAddress(Model): + """ReferencedPublicIpAddress. + + :param id: The PublicIPAddress Reference + :type id: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ReferencedPublicIpAddress, self).__init__(**kwargs) + self.id = kwargs.get('id', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/referenced_public_ip_address_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/referenced_public_ip_address_py3.py new file mode 100644 index 000000000000..3d078b57123a --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/referenced_public_ip_address_py3.py @@ -0,0 +1,28 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ReferencedPublicIpAddress(Model): + """ReferencedPublicIpAddress. + + :param id: The PublicIPAddress Reference + :type id: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, **kwargs) -> None: + super(ReferencedPublicIpAddress, self).__init__(**kwargs) + self.id = id diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/resource.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/resource.py new file mode 100644 index 000000000000..7dabab29ac9d --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/resource.py @@ -0,0 +1,52 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class Resource(Model): + """Common resource representation. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, **kwargs): + super(Resource, self).__init__(**kwargs) + self.id = kwargs.get('id', None) + self.name = None + self.type = None + self.location = kwargs.get('location', None) + self.tags = kwargs.get('tags', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/resource_navigation_link.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/resource_navigation_link.py new file mode 100644 index 000000000000..705698f513f6 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/resource_navigation_link.py @@ -0,0 +1,58 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource import SubResource + + +class ResourceNavigationLink(SubResource): + """ResourceNavigationLink resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :param linked_resource_type: Resource type of the linked resource. + :type linked_resource_type: str + :param link: Link to the external resource + :type link: str + :ivar provisioning_state: Provisioning state of the ResourceNavigationLink + resource. + :vartype provisioning_state: str + :param name: Name of the resource that is unique within a resource group. + This name can be used to access the resource. + :type name: str + :ivar etag: A unique read-only string that changes whenever the resource + is updated. + :vartype etag: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'linked_resource_type': {'key': 'properties.linkedResourceType', 'type': 'str'}, + 'link': {'key': 'properties.link', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ResourceNavigationLink, self).__init__(**kwargs) + self.linked_resource_type = kwargs.get('linked_resource_type', None) + self.link = kwargs.get('link', None) + self.provisioning_state = None + self.name = kwargs.get('name', None) + self.etag = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/resource_navigation_link_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/resource_navigation_link_py3.py new file mode 100644 index 000000000000..ba7329e863a1 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/resource_navigation_link_py3.py @@ -0,0 +1,58 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource_py3 import SubResource + + +class ResourceNavigationLink(SubResource): + """ResourceNavigationLink resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :param linked_resource_type: Resource type of the linked resource. + :type linked_resource_type: str + :param link: Link to the external resource + :type link: str + :ivar provisioning_state: Provisioning state of the ResourceNavigationLink + resource. + :vartype provisioning_state: str + :param name: Name of the resource that is unique within a resource group. + This name can be used to access the resource. + :type name: str + :ivar etag: A unique read-only string that changes whenever the resource + is updated. + :vartype etag: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'linked_resource_type': {'key': 'properties.linkedResourceType', 'type': 'str'}, + 'link': {'key': 'properties.link', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, linked_resource_type: str=None, link: str=None, name: str=None, **kwargs) -> None: + super(ResourceNavigationLink, self).__init__(id=id, **kwargs) + self.linked_resource_type = linked_resource_type + self.link = link + self.provisioning_state = None + self.name = name + self.etag = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/resource_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/resource_py3.py new file mode 100644 index 000000000000..ae95b78b4f23 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/resource_py3.py @@ -0,0 +1,52 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class Resource(Model): + """Common resource representation. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, *, id: str=None, location: str=None, tags=None, **kwargs) -> None: + super(Resource, self).__init__(**kwargs) + self.id = id + self.name = None + self.type = None + self.location = location + self.tags = tags diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/retention_policy_parameters.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/retention_policy_parameters.py new file mode 100644 index 000000000000..28cb43056d47 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/retention_policy_parameters.py @@ -0,0 +1,32 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class RetentionPolicyParameters(Model): + """Parameters that define the retention policy for flow log. + + :param days: Number of days to retain flow log records. Default value: 0 . + :type days: int + :param enabled: Flag to enable/disable retention. Default value: False . + :type enabled: bool + """ + + _attribute_map = { + 'days': {'key': 'days', 'type': 'int'}, + 'enabled': {'key': 'enabled', 'type': 'bool'}, + } + + def __init__(self, **kwargs): + super(RetentionPolicyParameters, self).__init__(**kwargs) + self.days = kwargs.get('days', 0) + self.enabled = kwargs.get('enabled', False) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/retention_policy_parameters_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/retention_policy_parameters_py3.py new file mode 100644 index 000000000000..3b2ffc5e741e --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/retention_policy_parameters_py3.py @@ -0,0 +1,32 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class RetentionPolicyParameters(Model): + """Parameters that define the retention policy for flow log. + + :param days: Number of days to retain flow log records. Default value: 0 . + :type days: int + :param enabled: Flag to enable/disable retention. Default value: False . + :type enabled: bool + """ + + _attribute_map = { + 'days': {'key': 'days', 'type': 'int'}, + 'enabled': {'key': 'enabled', 'type': 'bool'}, + } + + def __init__(self, *, days: int=0, enabled: bool=False, **kwargs) -> None: + super(RetentionPolicyParameters, self).__init__(**kwargs) + self.days = days + self.enabled = enabled diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/route.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/route.py new file mode 100644 index 000000000000..1193b064b52d --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/route.py @@ -0,0 +1,67 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource import SubResource + + +class Route(SubResource): + """Route resource. + + All required parameters must be populated in order to send to Azure. + + :param id: Resource ID. + :type id: str + :param address_prefix: The destination CIDR to which the route applies. + :type address_prefix: str + :param next_hop_type: Required. The type of Azure hop the packet should be + sent to. Possible values are: 'VirtualNetworkGateway', 'VnetLocal', + 'Internet', 'VirtualAppliance', and 'None'. Possible values include: + 'VirtualNetworkGateway', 'VnetLocal', 'Internet', 'VirtualAppliance', + 'None' + :type next_hop_type: str or + ~azure.mgmt.network.v2018_10_01.models.RouteNextHopType + :param next_hop_ip_address: The IP address packets should be forwarded to. + Next hop values are only allowed in routes where the next hop type is + VirtualAppliance. + :type next_hop_ip_address: str + :param provisioning_state: The provisioning state of the resource. + Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _validation = { + 'next_hop_type': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'address_prefix': {'key': 'properties.addressPrefix', 'type': 'str'}, + 'next_hop_type': {'key': 'properties.nextHopType', 'type': 'str'}, + 'next_hop_ip_address': {'key': 'properties.nextHopIpAddress', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Route, self).__init__(**kwargs) + self.address_prefix = kwargs.get('address_prefix', None) + self.next_hop_type = kwargs.get('next_hop_type', None) + self.next_hop_ip_address = kwargs.get('next_hop_ip_address', None) + self.provisioning_state = kwargs.get('provisioning_state', None) + self.name = kwargs.get('name', None) + self.etag = kwargs.get('etag', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/route_filter.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/route_filter.py new file mode 100644 index 000000000000..961c534a4bca --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/route_filter.py @@ -0,0 +1,70 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource import Resource + + +class RouteFilter(Resource): + """Route Filter Resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param rules: Collection of RouteFilterRules contained within a route + filter. + :type rules: list[~azure.mgmt.network.v2018_10_01.models.RouteFilterRule] + :param peerings: A collection of references to express route circuit + peerings. + :type peerings: + list[~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuitPeering] + :ivar provisioning_state: The provisioning state of the resource. Possible + values are: 'Updating', 'Deleting', 'Succeeded' and 'Failed'. + :vartype provisioning_state: str + :ivar etag: Gets a unique read-only string that changes whenever the + resource is updated. + :vartype etag: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'rules': {'key': 'properties.rules', 'type': '[RouteFilterRule]'}, + 'peerings': {'key': 'properties.peerings', 'type': '[ExpressRouteCircuitPeering]'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(RouteFilter, self).__init__(**kwargs) + self.rules = kwargs.get('rules', None) + self.peerings = kwargs.get('peerings', None) + self.provisioning_state = None + self.etag = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/route_filter_paged.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/route_filter_paged.py new file mode 100644 index 000000000000..03a5965666e3 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/route_filter_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class RouteFilterPaged(Paged): + """ + A paging container for iterating over a list of :class:`RouteFilter ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[RouteFilter]'} + } + + def __init__(self, *args, **kwargs): + + super(RouteFilterPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/route_filter_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/route_filter_py3.py new file mode 100644 index 000000000000..ce5e17210fe0 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/route_filter_py3.py @@ -0,0 +1,70 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource_py3 import Resource + + +class RouteFilter(Resource): + """Route Filter Resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param rules: Collection of RouteFilterRules contained within a route + filter. + :type rules: list[~azure.mgmt.network.v2018_10_01.models.RouteFilterRule] + :param peerings: A collection of references to express route circuit + peerings. + :type peerings: + list[~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuitPeering] + :ivar provisioning_state: The provisioning state of the resource. Possible + values are: 'Updating', 'Deleting', 'Succeeded' and 'Failed'. + :vartype provisioning_state: str + :ivar etag: Gets a unique read-only string that changes whenever the + resource is updated. + :vartype etag: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'rules': {'key': 'properties.rules', 'type': '[RouteFilterRule]'}, + 'peerings': {'key': 'properties.peerings', 'type': '[ExpressRouteCircuitPeering]'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, location: str=None, tags=None, rules=None, peerings=None, **kwargs) -> None: + super(RouteFilter, self).__init__(id=id, location=location, tags=tags, **kwargs) + self.rules = rules + self.peerings = peerings + self.provisioning_state = None + self.etag = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/route_filter_rule.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/route_filter_rule.py new file mode 100644 index 000000000000..67a727ef75bd --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/route_filter_rule.py @@ -0,0 +1,75 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource import SubResource + + +class RouteFilterRule(SubResource): + """Route Filter Rule Resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param id: Resource ID. + :type id: str + :param access: Required. The access type of the rule. Valid values are: + 'Allow', 'Deny'. Possible values include: 'Allow', 'Deny' + :type access: str or ~azure.mgmt.network.v2018_10_01.models.Access + :ivar route_filter_rule_type: Required. The rule type of the rule. Valid + value is: 'Community'. Default value: "Community" . + :vartype route_filter_rule_type: str + :param communities: Required. The collection for bgp community values to + filter on. e.g. ['12076:5010','12076:5020'] + :type communities: list[str] + :ivar provisioning_state: The provisioning state of the resource. Possible + values are: 'Updating', 'Deleting', 'Succeeded' and 'Failed'. + :vartype provisioning_state: str + :param name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :param location: Resource location. + :type location: str + :ivar etag: A unique read-only string that changes whenever the resource + is updated. + :vartype etag: str + """ + + _validation = { + 'access': {'required': True}, + 'route_filter_rule_type': {'required': True, 'constant': True}, + 'communities': {'required': True}, + 'provisioning_state': {'readonly': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'access': {'key': 'properties.access', 'type': 'str'}, + 'route_filter_rule_type': {'key': 'properties.routeFilterRuleType', 'type': 'str'}, + 'communities': {'key': 'properties.communities', 'type': '[str]'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + route_filter_rule_type = "Community" + + def __init__(self, **kwargs): + super(RouteFilterRule, self).__init__(**kwargs) + self.access = kwargs.get('access', None) + self.communities = kwargs.get('communities', None) + self.provisioning_state = None + self.name = kwargs.get('name', None) + self.location = kwargs.get('location', None) + self.etag = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/route_filter_rule_paged.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/route_filter_rule_paged.py new file mode 100644 index 000000000000..0a5152d81e37 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/route_filter_rule_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class RouteFilterRulePaged(Paged): + """ + A paging container for iterating over a list of :class:`RouteFilterRule ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[RouteFilterRule]'} + } + + def __init__(self, *args, **kwargs): + + super(RouteFilterRulePaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/route_filter_rule_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/route_filter_rule_py3.py new file mode 100644 index 000000000000..a022186ac9fa --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/route_filter_rule_py3.py @@ -0,0 +1,75 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource_py3 import SubResource + + +class RouteFilterRule(SubResource): + """Route Filter Rule Resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param id: Resource ID. + :type id: str + :param access: Required. The access type of the rule. Valid values are: + 'Allow', 'Deny'. Possible values include: 'Allow', 'Deny' + :type access: str or ~azure.mgmt.network.v2018_10_01.models.Access + :ivar route_filter_rule_type: Required. The rule type of the rule. Valid + value is: 'Community'. Default value: "Community" . + :vartype route_filter_rule_type: str + :param communities: Required. The collection for bgp community values to + filter on. e.g. ['12076:5010','12076:5020'] + :type communities: list[str] + :ivar provisioning_state: The provisioning state of the resource. Possible + values are: 'Updating', 'Deleting', 'Succeeded' and 'Failed'. + :vartype provisioning_state: str + :param name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :param location: Resource location. + :type location: str + :ivar etag: A unique read-only string that changes whenever the resource + is updated. + :vartype etag: str + """ + + _validation = { + 'access': {'required': True}, + 'route_filter_rule_type': {'required': True, 'constant': True}, + 'communities': {'required': True}, + 'provisioning_state': {'readonly': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'access': {'key': 'properties.access', 'type': 'str'}, + 'route_filter_rule_type': {'key': 'properties.routeFilterRuleType', 'type': 'str'}, + 'communities': {'key': 'properties.communities', 'type': '[str]'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + route_filter_rule_type = "Community" + + def __init__(self, *, access, communities, id: str=None, name: str=None, location: str=None, **kwargs) -> None: + super(RouteFilterRule, self).__init__(id=id, **kwargs) + self.access = access + self.communities = communities + self.provisioning_state = None + self.name = name + self.location = location + self.etag = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/route_paged.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/route_paged.py new file mode 100644 index 000000000000..a7aff98b5d93 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/route_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class RoutePaged(Paged): + """ + A paging container for iterating over a list of :class:`Route ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[Route]'} + } + + def __init__(self, *args, **kwargs): + + super(RoutePaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/route_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/route_py3.py new file mode 100644 index 000000000000..c06a583a28c3 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/route_py3.py @@ -0,0 +1,67 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource_py3 import SubResource + + +class Route(SubResource): + """Route resource. + + All required parameters must be populated in order to send to Azure. + + :param id: Resource ID. + :type id: str + :param address_prefix: The destination CIDR to which the route applies. + :type address_prefix: str + :param next_hop_type: Required. The type of Azure hop the packet should be + sent to. Possible values are: 'VirtualNetworkGateway', 'VnetLocal', + 'Internet', 'VirtualAppliance', and 'None'. Possible values include: + 'VirtualNetworkGateway', 'VnetLocal', 'Internet', 'VirtualAppliance', + 'None' + :type next_hop_type: str or + ~azure.mgmt.network.v2018_10_01.models.RouteNextHopType + :param next_hop_ip_address: The IP address packets should be forwarded to. + Next hop values are only allowed in routes where the next hop type is + VirtualAppliance. + :type next_hop_ip_address: str + :param provisioning_state: The provisioning state of the resource. + Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _validation = { + 'next_hop_type': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'address_prefix': {'key': 'properties.addressPrefix', 'type': 'str'}, + 'next_hop_type': {'key': 'properties.nextHopType', 'type': 'str'}, + 'next_hop_ip_address': {'key': 'properties.nextHopIpAddress', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, *, next_hop_type, id: str=None, address_prefix: str=None, next_hop_ip_address: str=None, provisioning_state: str=None, name: str=None, etag: str=None, **kwargs) -> None: + super(Route, self).__init__(id=id, **kwargs) + self.address_prefix = address_prefix + self.next_hop_type = next_hop_type + self.next_hop_ip_address = next_hop_ip_address + self.provisioning_state = provisioning_state + self.name = name + self.etag = etag diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/route_table.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/route_table.py new file mode 100644 index 000000000000..07d11c12ea13 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/route_table.py @@ -0,0 +1,71 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource import Resource + + +class RouteTable(Resource): + """Route table resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param routes: Collection of routes contained within a route table. + :type routes: list[~azure.mgmt.network.v2018_10_01.models.Route] + :ivar subnets: A collection of references to subnets. + :vartype subnets: list[~azure.mgmt.network.v2018_10_01.models.Subnet] + :param disable_bgp_route_propagation: Gets or sets whether to disable the + routes learned by BGP on that route table. True means disable. + :type disable_bgp_route_propagation: bool + :param provisioning_state: The provisioning state of the resource. + Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param etag: Gets a unique read-only string that changes whenever the + resource is updated. + :type etag: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'subnets': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'routes': {'key': 'properties.routes', 'type': '[Route]'}, + 'subnets': {'key': 'properties.subnets', 'type': '[Subnet]'}, + 'disable_bgp_route_propagation': {'key': 'properties.disableBgpRoutePropagation', 'type': 'bool'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(RouteTable, self).__init__(**kwargs) + self.routes = kwargs.get('routes', None) + self.subnets = None + self.disable_bgp_route_propagation = kwargs.get('disable_bgp_route_propagation', None) + self.provisioning_state = kwargs.get('provisioning_state', None) + self.etag = kwargs.get('etag', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/route_table_paged.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/route_table_paged.py new file mode 100644 index 000000000000..ff775481ca37 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/route_table_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class RouteTablePaged(Paged): + """ + A paging container for iterating over a list of :class:`RouteTable ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[RouteTable]'} + } + + def __init__(self, *args, **kwargs): + + super(RouteTablePaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/route_table_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/route_table_py3.py new file mode 100644 index 000000000000..8d57edf5c1a0 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/route_table_py3.py @@ -0,0 +1,71 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource_py3 import Resource + + +class RouteTable(Resource): + """Route table resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param routes: Collection of routes contained within a route table. + :type routes: list[~azure.mgmt.network.v2018_10_01.models.Route] + :ivar subnets: A collection of references to subnets. + :vartype subnets: list[~azure.mgmt.network.v2018_10_01.models.Subnet] + :param disable_bgp_route_propagation: Gets or sets whether to disable the + routes learned by BGP on that route table. True means disable. + :type disable_bgp_route_propagation: bool + :param provisioning_state: The provisioning state of the resource. + Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param etag: Gets a unique read-only string that changes whenever the + resource is updated. + :type etag: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'subnets': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'routes': {'key': 'properties.routes', 'type': '[Route]'}, + 'subnets': {'key': 'properties.subnets', 'type': '[Subnet]'}, + 'disable_bgp_route_propagation': {'key': 'properties.disableBgpRoutePropagation', 'type': 'bool'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, location: str=None, tags=None, routes=None, disable_bgp_route_propagation: bool=None, provisioning_state: str=None, etag: str=None, **kwargs) -> None: + super(RouteTable, self).__init__(id=id, location=location, tags=tags, **kwargs) + self.routes = routes + self.subnets = None + self.disable_bgp_route_propagation = disable_bgp_route_propagation + self.provisioning_state = provisioning_state + self.etag = etag diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/security_group_network_interface.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/security_group_network_interface.py new file mode 100644 index 000000000000..b56ec350d263 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/security_group_network_interface.py @@ -0,0 +1,33 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class SecurityGroupNetworkInterface(Model): + """Network interface and all its associated security rules. + + :param id: ID of the network interface. + :type id: str + :param security_rule_associations: + :type security_rule_associations: + ~azure.mgmt.network.v2018_10_01.models.SecurityRuleAssociations + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'security_rule_associations': {'key': 'securityRuleAssociations', 'type': 'SecurityRuleAssociations'}, + } + + def __init__(self, **kwargs): + super(SecurityGroupNetworkInterface, self).__init__(**kwargs) + self.id = kwargs.get('id', None) + self.security_rule_associations = kwargs.get('security_rule_associations', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/security_group_network_interface_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/security_group_network_interface_py3.py new file mode 100644 index 000000000000..8b5c220cec56 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/security_group_network_interface_py3.py @@ -0,0 +1,33 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class SecurityGroupNetworkInterface(Model): + """Network interface and all its associated security rules. + + :param id: ID of the network interface. + :type id: str + :param security_rule_associations: + :type security_rule_associations: + ~azure.mgmt.network.v2018_10_01.models.SecurityRuleAssociations + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'security_rule_associations': {'key': 'securityRuleAssociations', 'type': 'SecurityRuleAssociations'}, + } + + def __init__(self, *, id: str=None, security_rule_associations=None, **kwargs) -> None: + super(SecurityGroupNetworkInterface, self).__init__(**kwargs) + self.id = id + self.security_rule_associations = security_rule_associations diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/security_group_view_parameters.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/security_group_view_parameters.py new file mode 100644 index 000000000000..1d547b0b0e2b --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/security_group_view_parameters.py @@ -0,0 +1,34 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class SecurityGroupViewParameters(Model): + """Parameters that define the VM to check security groups for. + + All required parameters must be populated in order to send to Azure. + + :param target_resource_id: Required. ID of the target VM. + :type target_resource_id: str + """ + + _validation = { + 'target_resource_id': {'required': True}, + } + + _attribute_map = { + 'target_resource_id': {'key': 'targetResourceId', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(SecurityGroupViewParameters, self).__init__(**kwargs) + self.target_resource_id = kwargs.get('target_resource_id', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/security_group_view_parameters_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/security_group_view_parameters_py3.py new file mode 100644 index 000000000000..7ccc48017444 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/security_group_view_parameters_py3.py @@ -0,0 +1,34 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class SecurityGroupViewParameters(Model): + """Parameters that define the VM to check security groups for. + + All required parameters must be populated in order to send to Azure. + + :param target_resource_id: Required. ID of the target VM. + :type target_resource_id: str + """ + + _validation = { + 'target_resource_id': {'required': True}, + } + + _attribute_map = { + 'target_resource_id': {'key': 'targetResourceId', 'type': 'str'}, + } + + def __init__(self, *, target_resource_id: str, **kwargs) -> None: + super(SecurityGroupViewParameters, self).__init__(**kwargs) + self.target_resource_id = target_resource_id diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/security_group_view_result.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/security_group_view_result.py new file mode 100644 index 000000000000..4600ff4286bb --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/security_group_view_result.py @@ -0,0 +1,29 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class SecurityGroupViewResult(Model): + """The information about security rules applied to the specified VM. + + :param network_interfaces: List of network interfaces on the specified VM. + :type network_interfaces: + list[~azure.mgmt.network.v2018_10_01.models.SecurityGroupNetworkInterface] + """ + + _attribute_map = { + 'network_interfaces': {'key': 'networkInterfaces', 'type': '[SecurityGroupNetworkInterface]'}, + } + + def __init__(self, **kwargs): + super(SecurityGroupViewResult, self).__init__(**kwargs) + self.network_interfaces = kwargs.get('network_interfaces', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/security_group_view_result_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/security_group_view_result_py3.py new file mode 100644 index 000000000000..27c03dc52df8 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/security_group_view_result_py3.py @@ -0,0 +1,29 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class SecurityGroupViewResult(Model): + """The information about security rules applied to the specified VM. + + :param network_interfaces: List of network interfaces on the specified VM. + :type network_interfaces: + list[~azure.mgmt.network.v2018_10_01.models.SecurityGroupNetworkInterface] + """ + + _attribute_map = { + 'network_interfaces': {'key': 'networkInterfaces', 'type': '[SecurityGroupNetworkInterface]'}, + } + + def __init__(self, *, network_interfaces=None, **kwargs) -> None: + super(SecurityGroupViewResult, self).__init__(**kwargs) + self.network_interfaces = network_interfaces diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/security_rule.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/security_rule.py new file mode 100644 index 000000000000..4b3b8235beb4 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/security_rule.py @@ -0,0 +1,137 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource import SubResource + + +class SecurityRule(SubResource): + """Network security rule. + + All required parameters must be populated in order to send to Azure. + + :param id: Resource ID. + :type id: str + :param description: A description for this rule. Restricted to 140 chars. + :type description: str + :param protocol: Required. Network protocol this rule applies to. Possible + values are 'Tcp', 'Udp', and '*'. Possible values include: 'Tcp', 'Udp', + '*' + :type protocol: str or + ~azure.mgmt.network.v2018_10_01.models.SecurityRuleProtocol + :param source_port_range: The source port or range. Integer or range + between 0 and 65535. Asterix '*' can also be used to match all ports. + :type source_port_range: str + :param destination_port_range: The destination port or range. Integer or + range between 0 and 65535. Asterix '*' can also be used to match all + ports. + :type destination_port_range: str + :param source_address_prefix: The CIDR or source IP range. Asterix '*' can + also be used to match all source IPs. Default tags such as + 'VirtualNetwork', 'AzureLoadBalancer' and 'Internet' can also be used. If + this is an ingress rule, specifies where network traffic originates from. + :type source_address_prefix: str + :param source_address_prefixes: The CIDR or source IP ranges. + :type source_address_prefixes: list[str] + :param source_application_security_groups: The application security group + specified as source. + :type source_application_security_groups: + list[~azure.mgmt.network.v2018_10_01.models.ApplicationSecurityGroup] + :param destination_address_prefix: The destination address prefix. CIDR or + destination IP range. Asterix '*' can also be used to match all source + IPs. Default tags such as 'VirtualNetwork', 'AzureLoadBalancer' and + 'Internet' can also be used. + :type destination_address_prefix: str + :param destination_address_prefixes: The destination address prefixes. + CIDR or destination IP ranges. + :type destination_address_prefixes: list[str] + :param destination_application_security_groups: The application security + group specified as destination. + :type destination_application_security_groups: + list[~azure.mgmt.network.v2018_10_01.models.ApplicationSecurityGroup] + :param source_port_ranges: The source port ranges. + :type source_port_ranges: list[str] + :param destination_port_ranges: The destination port ranges. + :type destination_port_ranges: list[str] + :param access: Required. The network traffic is allowed or denied. + Possible values are: 'Allow' and 'Deny'. Possible values include: 'Allow', + 'Deny' + :type access: str or + ~azure.mgmt.network.v2018_10_01.models.SecurityRuleAccess + :param priority: The priority of the rule. The value can be between 100 + and 4096. The priority number must be unique for each rule in the + collection. The lower the priority number, the higher the priority of the + rule. + :type priority: int + :param direction: Required. The direction of the rule. The direction + specifies if rule will be evaluated on incoming or outcoming traffic. + Possible values are: 'Inbound' and 'Outbound'. Possible values include: + 'Inbound', 'Outbound' + :type direction: str or + ~azure.mgmt.network.v2018_10_01.models.SecurityRuleDirection + :param provisioning_state: The provisioning state of the public IP + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _validation = { + 'protocol': {'required': True}, + 'access': {'required': True}, + 'direction': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'protocol': {'key': 'properties.protocol', 'type': 'str'}, + 'source_port_range': {'key': 'properties.sourcePortRange', 'type': 'str'}, + 'destination_port_range': {'key': 'properties.destinationPortRange', 'type': 'str'}, + 'source_address_prefix': {'key': 'properties.sourceAddressPrefix', 'type': 'str'}, + 'source_address_prefixes': {'key': 'properties.sourceAddressPrefixes', 'type': '[str]'}, + 'source_application_security_groups': {'key': 'properties.sourceApplicationSecurityGroups', 'type': '[ApplicationSecurityGroup]'}, + 'destination_address_prefix': {'key': 'properties.destinationAddressPrefix', 'type': 'str'}, + 'destination_address_prefixes': {'key': 'properties.destinationAddressPrefixes', 'type': '[str]'}, + 'destination_application_security_groups': {'key': 'properties.destinationApplicationSecurityGroups', 'type': '[ApplicationSecurityGroup]'}, + 'source_port_ranges': {'key': 'properties.sourcePortRanges', 'type': '[str]'}, + 'destination_port_ranges': {'key': 'properties.destinationPortRanges', 'type': '[str]'}, + 'access': {'key': 'properties.access', 'type': 'str'}, + 'priority': {'key': 'properties.priority', 'type': 'int'}, + 'direction': {'key': 'properties.direction', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(SecurityRule, self).__init__(**kwargs) + self.description = kwargs.get('description', None) + self.protocol = kwargs.get('protocol', None) + self.source_port_range = kwargs.get('source_port_range', None) + self.destination_port_range = kwargs.get('destination_port_range', None) + self.source_address_prefix = kwargs.get('source_address_prefix', None) + self.source_address_prefixes = kwargs.get('source_address_prefixes', None) + self.source_application_security_groups = kwargs.get('source_application_security_groups', None) + self.destination_address_prefix = kwargs.get('destination_address_prefix', None) + self.destination_address_prefixes = kwargs.get('destination_address_prefixes', None) + self.destination_application_security_groups = kwargs.get('destination_application_security_groups', None) + self.source_port_ranges = kwargs.get('source_port_ranges', None) + self.destination_port_ranges = kwargs.get('destination_port_ranges', None) + self.access = kwargs.get('access', None) + self.priority = kwargs.get('priority', None) + self.direction = kwargs.get('direction', None) + self.provisioning_state = kwargs.get('provisioning_state', None) + self.name = kwargs.get('name', None) + self.etag = kwargs.get('etag', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/security_rule_associations.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/security_rule_associations.py new file mode 100644 index 000000000000..c459cdb4767e --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/security_rule_associations.py @@ -0,0 +1,45 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class SecurityRuleAssociations(Model): + """All security rules associated with the network interface. + + :param network_interface_association: + :type network_interface_association: + ~azure.mgmt.network.v2018_10_01.models.NetworkInterfaceAssociation + :param subnet_association: + :type subnet_association: + ~azure.mgmt.network.v2018_10_01.models.SubnetAssociation + :param default_security_rules: Collection of default security rules of the + network security group. + :type default_security_rules: + list[~azure.mgmt.network.v2018_10_01.models.SecurityRule] + :param effective_security_rules: Collection of effective security rules. + :type effective_security_rules: + list[~azure.mgmt.network.v2018_10_01.models.EffectiveNetworkSecurityRule] + """ + + _attribute_map = { + 'network_interface_association': {'key': 'networkInterfaceAssociation', 'type': 'NetworkInterfaceAssociation'}, + 'subnet_association': {'key': 'subnetAssociation', 'type': 'SubnetAssociation'}, + 'default_security_rules': {'key': 'defaultSecurityRules', 'type': '[SecurityRule]'}, + 'effective_security_rules': {'key': 'effectiveSecurityRules', 'type': '[EffectiveNetworkSecurityRule]'}, + } + + def __init__(self, **kwargs): + super(SecurityRuleAssociations, self).__init__(**kwargs) + self.network_interface_association = kwargs.get('network_interface_association', None) + self.subnet_association = kwargs.get('subnet_association', None) + self.default_security_rules = kwargs.get('default_security_rules', None) + self.effective_security_rules = kwargs.get('effective_security_rules', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/security_rule_associations_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/security_rule_associations_py3.py new file mode 100644 index 000000000000..61dce1368e38 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/security_rule_associations_py3.py @@ -0,0 +1,45 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class SecurityRuleAssociations(Model): + """All security rules associated with the network interface. + + :param network_interface_association: + :type network_interface_association: + ~azure.mgmt.network.v2018_10_01.models.NetworkInterfaceAssociation + :param subnet_association: + :type subnet_association: + ~azure.mgmt.network.v2018_10_01.models.SubnetAssociation + :param default_security_rules: Collection of default security rules of the + network security group. + :type default_security_rules: + list[~azure.mgmt.network.v2018_10_01.models.SecurityRule] + :param effective_security_rules: Collection of effective security rules. + :type effective_security_rules: + list[~azure.mgmt.network.v2018_10_01.models.EffectiveNetworkSecurityRule] + """ + + _attribute_map = { + 'network_interface_association': {'key': 'networkInterfaceAssociation', 'type': 'NetworkInterfaceAssociation'}, + 'subnet_association': {'key': 'subnetAssociation', 'type': 'SubnetAssociation'}, + 'default_security_rules': {'key': 'defaultSecurityRules', 'type': '[SecurityRule]'}, + 'effective_security_rules': {'key': 'effectiveSecurityRules', 'type': '[EffectiveNetworkSecurityRule]'}, + } + + def __init__(self, *, network_interface_association=None, subnet_association=None, default_security_rules=None, effective_security_rules=None, **kwargs) -> None: + super(SecurityRuleAssociations, self).__init__(**kwargs) + self.network_interface_association = network_interface_association + self.subnet_association = subnet_association + self.default_security_rules = default_security_rules + self.effective_security_rules = effective_security_rules diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/security_rule_paged.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/security_rule_paged.py new file mode 100644 index 000000000000..0a594bb6a6dc --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/security_rule_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class SecurityRulePaged(Paged): + """ + A paging container for iterating over a list of :class:`SecurityRule ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[SecurityRule]'} + } + + def __init__(self, *args, **kwargs): + + super(SecurityRulePaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/security_rule_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/security_rule_py3.py new file mode 100644 index 000000000000..08ed805e33b0 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/security_rule_py3.py @@ -0,0 +1,137 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource_py3 import SubResource + + +class SecurityRule(SubResource): + """Network security rule. + + All required parameters must be populated in order to send to Azure. + + :param id: Resource ID. + :type id: str + :param description: A description for this rule. Restricted to 140 chars. + :type description: str + :param protocol: Required. Network protocol this rule applies to. Possible + values are 'Tcp', 'Udp', and '*'. Possible values include: 'Tcp', 'Udp', + '*' + :type protocol: str or + ~azure.mgmt.network.v2018_10_01.models.SecurityRuleProtocol + :param source_port_range: The source port or range. Integer or range + between 0 and 65535. Asterix '*' can also be used to match all ports. + :type source_port_range: str + :param destination_port_range: The destination port or range. Integer or + range between 0 and 65535. Asterix '*' can also be used to match all + ports. + :type destination_port_range: str + :param source_address_prefix: The CIDR or source IP range. Asterix '*' can + also be used to match all source IPs. Default tags such as + 'VirtualNetwork', 'AzureLoadBalancer' and 'Internet' can also be used. If + this is an ingress rule, specifies where network traffic originates from. + :type source_address_prefix: str + :param source_address_prefixes: The CIDR or source IP ranges. + :type source_address_prefixes: list[str] + :param source_application_security_groups: The application security group + specified as source. + :type source_application_security_groups: + list[~azure.mgmt.network.v2018_10_01.models.ApplicationSecurityGroup] + :param destination_address_prefix: The destination address prefix. CIDR or + destination IP range. Asterix '*' can also be used to match all source + IPs. Default tags such as 'VirtualNetwork', 'AzureLoadBalancer' and + 'Internet' can also be used. + :type destination_address_prefix: str + :param destination_address_prefixes: The destination address prefixes. + CIDR or destination IP ranges. + :type destination_address_prefixes: list[str] + :param destination_application_security_groups: The application security + group specified as destination. + :type destination_application_security_groups: + list[~azure.mgmt.network.v2018_10_01.models.ApplicationSecurityGroup] + :param source_port_ranges: The source port ranges. + :type source_port_ranges: list[str] + :param destination_port_ranges: The destination port ranges. + :type destination_port_ranges: list[str] + :param access: Required. The network traffic is allowed or denied. + Possible values are: 'Allow' and 'Deny'. Possible values include: 'Allow', + 'Deny' + :type access: str or + ~azure.mgmt.network.v2018_10_01.models.SecurityRuleAccess + :param priority: The priority of the rule. The value can be between 100 + and 4096. The priority number must be unique for each rule in the + collection. The lower the priority number, the higher the priority of the + rule. + :type priority: int + :param direction: Required. The direction of the rule. The direction + specifies if rule will be evaluated on incoming or outcoming traffic. + Possible values are: 'Inbound' and 'Outbound'. Possible values include: + 'Inbound', 'Outbound' + :type direction: str or + ~azure.mgmt.network.v2018_10_01.models.SecurityRuleDirection + :param provisioning_state: The provisioning state of the public IP + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _validation = { + 'protocol': {'required': True}, + 'access': {'required': True}, + 'direction': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'protocol': {'key': 'properties.protocol', 'type': 'str'}, + 'source_port_range': {'key': 'properties.sourcePortRange', 'type': 'str'}, + 'destination_port_range': {'key': 'properties.destinationPortRange', 'type': 'str'}, + 'source_address_prefix': {'key': 'properties.sourceAddressPrefix', 'type': 'str'}, + 'source_address_prefixes': {'key': 'properties.sourceAddressPrefixes', 'type': '[str]'}, + 'source_application_security_groups': {'key': 'properties.sourceApplicationSecurityGroups', 'type': '[ApplicationSecurityGroup]'}, + 'destination_address_prefix': {'key': 'properties.destinationAddressPrefix', 'type': 'str'}, + 'destination_address_prefixes': {'key': 'properties.destinationAddressPrefixes', 'type': '[str]'}, + 'destination_application_security_groups': {'key': 'properties.destinationApplicationSecurityGroups', 'type': '[ApplicationSecurityGroup]'}, + 'source_port_ranges': {'key': 'properties.sourcePortRanges', 'type': '[str]'}, + 'destination_port_ranges': {'key': 'properties.destinationPortRanges', 'type': '[str]'}, + 'access': {'key': 'properties.access', 'type': 'str'}, + 'priority': {'key': 'properties.priority', 'type': 'int'}, + 'direction': {'key': 'properties.direction', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, *, protocol, access, direction, id: str=None, description: str=None, source_port_range: str=None, destination_port_range: str=None, source_address_prefix: str=None, source_address_prefixes=None, source_application_security_groups=None, destination_address_prefix: str=None, destination_address_prefixes=None, destination_application_security_groups=None, source_port_ranges=None, destination_port_ranges=None, priority: int=None, provisioning_state: str=None, name: str=None, etag: str=None, **kwargs) -> None: + super(SecurityRule, self).__init__(id=id, **kwargs) + self.description = description + self.protocol = protocol + self.source_port_range = source_port_range + self.destination_port_range = destination_port_range + self.source_address_prefix = source_address_prefix + self.source_address_prefixes = source_address_prefixes + self.source_application_security_groups = source_application_security_groups + self.destination_address_prefix = destination_address_prefix + self.destination_address_prefixes = destination_address_prefixes + self.destination_application_security_groups = destination_application_security_groups + self.source_port_ranges = source_port_ranges + self.destination_port_ranges = destination_port_ranges + self.access = access + self.priority = priority + self.direction = direction + self.provisioning_state = provisioning_state + self.name = name + self.etag = etag diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/service_association_link.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/service_association_link.py new file mode 100644 index 000000000000..b8d1818022dd --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/service_association_link.py @@ -0,0 +1,58 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource import SubResource + + +class ServiceAssociationLink(SubResource): + """ServiceAssociationLink resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :param linked_resource_type: Resource type of the linked resource. + :type linked_resource_type: str + :param link: Link to the external resource. + :type link: str + :ivar provisioning_state: Provisioning state of the ServiceAssociationLink + resource. + :vartype provisioning_state: str + :param name: Name of the resource that is unique within a resource group. + This name can be used to access the resource. + :type name: str + :ivar etag: A unique read-only string that changes whenever the resource + is updated. + :vartype etag: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'linked_resource_type': {'key': 'properties.linkedResourceType', 'type': 'str'}, + 'link': {'key': 'properties.link', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ServiceAssociationLink, self).__init__(**kwargs) + self.linked_resource_type = kwargs.get('linked_resource_type', None) + self.link = kwargs.get('link', None) + self.provisioning_state = None + self.name = kwargs.get('name', None) + self.etag = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/service_association_link_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/service_association_link_py3.py new file mode 100644 index 000000000000..2e01412e05a1 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/service_association_link_py3.py @@ -0,0 +1,58 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource_py3 import SubResource + + +class ServiceAssociationLink(SubResource): + """ServiceAssociationLink resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :param linked_resource_type: Resource type of the linked resource. + :type linked_resource_type: str + :param link: Link to the external resource. + :type link: str + :ivar provisioning_state: Provisioning state of the ServiceAssociationLink + resource. + :vartype provisioning_state: str + :param name: Name of the resource that is unique within a resource group. + This name can be used to access the resource. + :type name: str + :ivar etag: A unique read-only string that changes whenever the resource + is updated. + :vartype etag: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'linked_resource_type': {'key': 'properties.linkedResourceType', 'type': 'str'}, + 'link': {'key': 'properties.link', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, linked_resource_type: str=None, link: str=None, name: str=None, **kwargs) -> None: + super(ServiceAssociationLink, self).__init__(id=id, **kwargs) + self.linked_resource_type = linked_resource_type + self.link = link + self.provisioning_state = None + self.name = name + self.etag = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/service_endpoint_policy.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/service_endpoint_policy.py new file mode 100644 index 000000000000..8e042cb6523b --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/service_endpoint_policy.py @@ -0,0 +1,75 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource import Resource + + +class ServiceEndpointPolicy(Resource): + """Service End point policy resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param service_endpoint_policy_definitions: A collection of service + endpoint policy definitions of the service endpoint policy. + :type service_endpoint_policy_definitions: + list[~azure.mgmt.network.v2018_10_01.models.ServiceEndpointPolicyDefinition] + :ivar subnets: A collection of references to subnets. + :vartype subnets: list[~azure.mgmt.network.v2018_10_01.models.Subnet] + :ivar resource_guid: The resource GUID property of the service endpoint + policy resource. + :vartype resource_guid: str + :ivar provisioning_state: The provisioning state of the service endpoint + policy. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :vartype provisioning_state: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'subnets': {'readonly': True}, + 'resource_guid': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'service_endpoint_policy_definitions': {'key': 'properties.serviceEndpointPolicyDefinitions', 'type': '[ServiceEndpointPolicyDefinition]'}, + 'subnets': {'key': 'properties.subnets', 'type': '[Subnet]'}, + 'resource_guid': {'key': 'properties.resourceGuid', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ServiceEndpointPolicy, self).__init__(**kwargs) + self.service_endpoint_policy_definitions = kwargs.get('service_endpoint_policy_definitions', None) + self.subnets = None + self.resource_guid = None + self.provisioning_state = None + self.etag = kwargs.get('etag', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/service_endpoint_policy_definition.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/service_endpoint_policy_definition.py new file mode 100644 index 000000000000..45d6ab8ff556 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/service_endpoint_policy_definition.py @@ -0,0 +1,62 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource import SubResource + + +class ServiceEndpointPolicyDefinition(SubResource): + """Service Endpoint policy definitions. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :param description: A description for this rule. Restricted to 140 chars. + :type description: str + :param service: service endpoint name. + :type service: str + :param service_resources: A list of service resources. + :type service_resources: list[str] + :ivar provisioning_state: The provisioning state of the service end point + policy definition. Possible values are: 'Updating', 'Deleting', and + 'Failed'. + :vartype provisioning_state: str + :param name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'service': {'key': 'properties.service', 'type': 'str'}, + 'service_resources': {'key': 'properties.serviceResources', 'type': '[str]'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ServiceEndpointPolicyDefinition, self).__init__(**kwargs) + self.description = kwargs.get('description', None) + self.service = kwargs.get('service', None) + self.service_resources = kwargs.get('service_resources', None) + self.provisioning_state = None + self.name = kwargs.get('name', None) + self.etag = kwargs.get('etag', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/service_endpoint_policy_definition_paged.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/service_endpoint_policy_definition_paged.py new file mode 100644 index 000000000000..f0d66294ec44 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/service_endpoint_policy_definition_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class ServiceEndpointPolicyDefinitionPaged(Paged): + """ + A paging container for iterating over a list of :class:`ServiceEndpointPolicyDefinition ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[ServiceEndpointPolicyDefinition]'} + } + + def __init__(self, *args, **kwargs): + + super(ServiceEndpointPolicyDefinitionPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/service_endpoint_policy_definition_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/service_endpoint_policy_definition_py3.py new file mode 100644 index 000000000000..e8c274a6a823 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/service_endpoint_policy_definition_py3.py @@ -0,0 +1,62 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource_py3 import SubResource + + +class ServiceEndpointPolicyDefinition(SubResource): + """Service Endpoint policy definitions. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :param description: A description for this rule. Restricted to 140 chars. + :type description: str + :param service: service endpoint name. + :type service: str + :param service_resources: A list of service resources. + :type service_resources: list[str] + :ivar provisioning_state: The provisioning state of the service end point + policy definition. Possible values are: 'Updating', 'Deleting', and + 'Failed'. + :vartype provisioning_state: str + :param name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'service': {'key': 'properties.service', 'type': 'str'}, + 'service_resources': {'key': 'properties.serviceResources', 'type': '[str]'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, description: str=None, service: str=None, service_resources=None, name: str=None, etag: str=None, **kwargs) -> None: + super(ServiceEndpointPolicyDefinition, self).__init__(id=id, **kwargs) + self.description = description + self.service = service + self.service_resources = service_resources + self.provisioning_state = None + self.name = name + self.etag = etag diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/service_endpoint_policy_paged.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/service_endpoint_policy_paged.py new file mode 100644 index 000000000000..5bf601df827c --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/service_endpoint_policy_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class ServiceEndpointPolicyPaged(Paged): + """ + A paging container for iterating over a list of :class:`ServiceEndpointPolicy ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[ServiceEndpointPolicy]'} + } + + def __init__(self, *args, **kwargs): + + super(ServiceEndpointPolicyPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/service_endpoint_policy_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/service_endpoint_policy_py3.py new file mode 100644 index 000000000000..33d97bf928f2 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/service_endpoint_policy_py3.py @@ -0,0 +1,75 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource_py3 import Resource + + +class ServiceEndpointPolicy(Resource): + """Service End point policy resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param service_endpoint_policy_definitions: A collection of service + endpoint policy definitions of the service endpoint policy. + :type service_endpoint_policy_definitions: + list[~azure.mgmt.network.v2018_10_01.models.ServiceEndpointPolicyDefinition] + :ivar subnets: A collection of references to subnets. + :vartype subnets: list[~azure.mgmt.network.v2018_10_01.models.Subnet] + :ivar resource_guid: The resource GUID property of the service endpoint + policy resource. + :vartype resource_guid: str + :ivar provisioning_state: The provisioning state of the service endpoint + policy. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :vartype provisioning_state: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'subnets': {'readonly': True}, + 'resource_guid': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'service_endpoint_policy_definitions': {'key': 'properties.serviceEndpointPolicyDefinitions', 'type': '[ServiceEndpointPolicyDefinition]'}, + 'subnets': {'key': 'properties.subnets', 'type': '[Subnet]'}, + 'resource_guid': {'key': 'properties.resourceGuid', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, location: str=None, tags=None, service_endpoint_policy_definitions=None, etag: str=None, **kwargs) -> None: + super(ServiceEndpointPolicy, self).__init__(id=id, location=location, tags=tags, **kwargs) + self.service_endpoint_policy_definitions = service_endpoint_policy_definitions + self.subnets = None + self.resource_guid = None + self.provisioning_state = None + self.etag = etag diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/service_endpoint_properties_format.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/service_endpoint_properties_format.py new file mode 100644 index 000000000000..87ca01e64540 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/service_endpoint_properties_format.py @@ -0,0 +1,36 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ServiceEndpointPropertiesFormat(Model): + """The service endpoint properties. + + :param service: The type of the endpoint service. + :type service: str + :param locations: A list of locations. + :type locations: list[str] + :param provisioning_state: The provisioning state of the resource. + :type provisioning_state: str + """ + + _attribute_map = { + 'service': {'key': 'service', 'type': 'str'}, + 'locations': {'key': 'locations', 'type': '[str]'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ServiceEndpointPropertiesFormat, self).__init__(**kwargs) + self.service = kwargs.get('service', None) + self.locations = kwargs.get('locations', None) + self.provisioning_state = kwargs.get('provisioning_state', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/service_endpoint_properties_format_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/service_endpoint_properties_format_py3.py new file mode 100644 index 000000000000..8d3d2e5e8347 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/service_endpoint_properties_format_py3.py @@ -0,0 +1,36 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ServiceEndpointPropertiesFormat(Model): + """The service endpoint properties. + + :param service: The type of the endpoint service. + :type service: str + :param locations: A list of locations. + :type locations: list[str] + :param provisioning_state: The provisioning state of the resource. + :type provisioning_state: str + """ + + _attribute_map = { + 'service': {'key': 'service', 'type': 'str'}, + 'locations': {'key': 'locations', 'type': '[str]'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + } + + def __init__(self, *, service: str=None, locations=None, provisioning_state: str=None, **kwargs) -> None: + super(ServiceEndpointPropertiesFormat, self).__init__(**kwargs) + self.service = service + self.locations = locations + self.provisioning_state = provisioning_state diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/sub_resource.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/sub_resource.py new file mode 100644 index 000000000000..6ab81f55f21b --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/sub_resource.py @@ -0,0 +1,28 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class SubResource(Model): + """Reference to another subresource. + + :param id: Resource ID. + :type id: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(SubResource, self).__init__(**kwargs) + self.id = kwargs.get('id', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/sub_resource_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/sub_resource_py3.py new file mode 100644 index 000000000000..8f4c4c816061 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/sub_resource_py3.py @@ -0,0 +1,28 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class SubResource(Model): + """Reference to another subresource. + + :param id: Resource ID. + :type id: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, **kwargs) -> None: + super(SubResource, self).__init__(**kwargs) + self.id = id diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/subnet.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/subnet.py new file mode 100644 index 000000000000..b549b6209e97 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/subnet.py @@ -0,0 +1,118 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource import SubResource + + +class Subnet(SubResource): + """Subnet in a virtual network resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :param address_prefix: The address prefix for the subnet. + :type address_prefix: str + :param address_prefixes: List of address prefixes for the subnet. + :type address_prefixes: list[str] + :param network_security_group: The reference of the NetworkSecurityGroup + resource. + :type network_security_group: + ~azure.mgmt.network.v2018_10_01.models.NetworkSecurityGroup + :param route_table: The reference of the RouteTable resource. + :type route_table: ~azure.mgmt.network.v2018_10_01.models.RouteTable + :param service_endpoints: An array of service endpoints. + :type service_endpoints: + list[~azure.mgmt.network.v2018_10_01.models.ServiceEndpointPropertiesFormat] + :param service_endpoint_policies: An array of service endpoint policies. + :type service_endpoint_policies: + list[~azure.mgmt.network.v2018_10_01.models.ServiceEndpointPolicy] + :ivar interface_endpoints: An array of references to interface endpoints + :vartype interface_endpoints: + list[~azure.mgmt.network.v2018_10_01.models.InterfaceEndpoint] + :ivar ip_configurations: Gets an array of references to the network + interface IP configurations using subnet. + :vartype ip_configurations: + list[~azure.mgmt.network.v2018_10_01.models.IPConfiguration] + :ivar ip_configuration_profiles: Array of IP configuration profiles which + reference this subnet. + :vartype ip_configuration_profiles: + list[~azure.mgmt.network.v2018_10_01.models.IPConfigurationProfile] + :param resource_navigation_links: Gets an array of references to the + external resources using subnet. + :type resource_navigation_links: + list[~azure.mgmt.network.v2018_10_01.models.ResourceNavigationLink] + :param service_association_links: Gets an array of references to services + injecting into this subnet. + :type service_association_links: + list[~azure.mgmt.network.v2018_10_01.models.ServiceAssociationLink] + :param delegations: Gets an array of references to the delegations on the + subnet. + :type delegations: list[~azure.mgmt.network.v2018_10_01.models.Delegation] + :ivar purpose: A read-only string identifying the intention of use for + this subnet based on delegations and other user-defined properties. + :vartype purpose: str + :param provisioning_state: The provisioning state of the resource. + :type provisioning_state: str + :param name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _validation = { + 'interface_endpoints': {'readonly': True}, + 'ip_configurations': {'readonly': True}, + 'ip_configuration_profiles': {'readonly': True}, + 'purpose': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'address_prefix': {'key': 'properties.addressPrefix', 'type': 'str'}, + 'address_prefixes': {'key': 'properties.addressPrefixes', 'type': '[str]'}, + 'network_security_group': {'key': 'properties.networkSecurityGroup', 'type': 'NetworkSecurityGroup'}, + 'route_table': {'key': 'properties.routeTable', 'type': 'RouteTable'}, + 'service_endpoints': {'key': 'properties.serviceEndpoints', 'type': '[ServiceEndpointPropertiesFormat]'}, + 'service_endpoint_policies': {'key': 'properties.serviceEndpointPolicies', 'type': '[ServiceEndpointPolicy]'}, + 'interface_endpoints': {'key': 'properties.interfaceEndpoints', 'type': '[InterfaceEndpoint]'}, + 'ip_configurations': {'key': 'properties.ipConfigurations', 'type': '[IPConfiguration]'}, + 'ip_configuration_profiles': {'key': 'properties.ipConfigurationProfiles', 'type': '[IPConfigurationProfile]'}, + 'resource_navigation_links': {'key': 'properties.resourceNavigationLinks', 'type': '[ResourceNavigationLink]'}, + 'service_association_links': {'key': 'properties.serviceAssociationLinks', 'type': '[ServiceAssociationLink]'}, + 'delegations': {'key': 'properties.delegations', 'type': '[Delegation]'}, + 'purpose': {'key': 'properties.purpose', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Subnet, self).__init__(**kwargs) + self.address_prefix = kwargs.get('address_prefix', None) + self.address_prefixes = kwargs.get('address_prefixes', None) + self.network_security_group = kwargs.get('network_security_group', None) + self.route_table = kwargs.get('route_table', None) + self.service_endpoints = kwargs.get('service_endpoints', None) + self.service_endpoint_policies = kwargs.get('service_endpoint_policies', None) + self.interface_endpoints = None + self.ip_configurations = None + self.ip_configuration_profiles = None + self.resource_navigation_links = kwargs.get('resource_navigation_links', None) + self.service_association_links = kwargs.get('service_association_links', None) + self.delegations = kwargs.get('delegations', None) + self.purpose = None + self.provisioning_state = kwargs.get('provisioning_state', None) + self.name = kwargs.get('name', None) + self.etag = kwargs.get('etag', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/subnet_association.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/subnet_association.py new file mode 100644 index 000000000000..55e476164aed --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/subnet_association.py @@ -0,0 +1,40 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class SubnetAssociation(Model): + """Network interface and its custom security rules. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Subnet ID. + :vartype id: str + :param security_rules: Collection of custom security rules. + :type security_rules: + list[~azure.mgmt.network.v2018_10_01.models.SecurityRule] + """ + + _validation = { + 'id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'security_rules': {'key': 'securityRules', 'type': '[SecurityRule]'}, + } + + def __init__(self, **kwargs): + super(SubnetAssociation, self).__init__(**kwargs) + self.id = None + self.security_rules = kwargs.get('security_rules', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/subnet_association_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/subnet_association_py3.py new file mode 100644 index 000000000000..5d5d9bc1cb74 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/subnet_association_py3.py @@ -0,0 +1,40 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class SubnetAssociation(Model): + """Network interface and its custom security rules. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Subnet ID. + :vartype id: str + :param security_rules: Collection of custom security rules. + :type security_rules: + list[~azure.mgmt.network.v2018_10_01.models.SecurityRule] + """ + + _validation = { + 'id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'security_rules': {'key': 'securityRules', 'type': '[SecurityRule]'}, + } + + def __init__(self, *, security_rules=None, **kwargs) -> None: + super(SubnetAssociation, self).__init__(**kwargs) + self.id = None + self.security_rules = security_rules diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/subnet_paged.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/subnet_paged.py new file mode 100644 index 000000000000..5d32aa914aa1 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/subnet_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class SubnetPaged(Paged): + """ + A paging container for iterating over a list of :class:`Subnet ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[Subnet]'} + } + + def __init__(self, *args, **kwargs): + + super(SubnetPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/subnet_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/subnet_py3.py new file mode 100644 index 000000000000..ea7f4ddad2b1 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/subnet_py3.py @@ -0,0 +1,118 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource_py3 import SubResource + + +class Subnet(SubResource): + """Subnet in a virtual network resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :param address_prefix: The address prefix for the subnet. + :type address_prefix: str + :param address_prefixes: List of address prefixes for the subnet. + :type address_prefixes: list[str] + :param network_security_group: The reference of the NetworkSecurityGroup + resource. + :type network_security_group: + ~azure.mgmt.network.v2018_10_01.models.NetworkSecurityGroup + :param route_table: The reference of the RouteTable resource. + :type route_table: ~azure.mgmt.network.v2018_10_01.models.RouteTable + :param service_endpoints: An array of service endpoints. + :type service_endpoints: + list[~azure.mgmt.network.v2018_10_01.models.ServiceEndpointPropertiesFormat] + :param service_endpoint_policies: An array of service endpoint policies. + :type service_endpoint_policies: + list[~azure.mgmt.network.v2018_10_01.models.ServiceEndpointPolicy] + :ivar interface_endpoints: An array of references to interface endpoints + :vartype interface_endpoints: + list[~azure.mgmt.network.v2018_10_01.models.InterfaceEndpoint] + :ivar ip_configurations: Gets an array of references to the network + interface IP configurations using subnet. + :vartype ip_configurations: + list[~azure.mgmt.network.v2018_10_01.models.IPConfiguration] + :ivar ip_configuration_profiles: Array of IP configuration profiles which + reference this subnet. + :vartype ip_configuration_profiles: + list[~azure.mgmt.network.v2018_10_01.models.IPConfigurationProfile] + :param resource_navigation_links: Gets an array of references to the + external resources using subnet. + :type resource_navigation_links: + list[~azure.mgmt.network.v2018_10_01.models.ResourceNavigationLink] + :param service_association_links: Gets an array of references to services + injecting into this subnet. + :type service_association_links: + list[~azure.mgmt.network.v2018_10_01.models.ServiceAssociationLink] + :param delegations: Gets an array of references to the delegations on the + subnet. + :type delegations: list[~azure.mgmt.network.v2018_10_01.models.Delegation] + :ivar purpose: A read-only string identifying the intention of use for + this subnet based on delegations and other user-defined properties. + :vartype purpose: str + :param provisioning_state: The provisioning state of the resource. + :type provisioning_state: str + :param name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _validation = { + 'interface_endpoints': {'readonly': True}, + 'ip_configurations': {'readonly': True}, + 'ip_configuration_profiles': {'readonly': True}, + 'purpose': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'address_prefix': {'key': 'properties.addressPrefix', 'type': 'str'}, + 'address_prefixes': {'key': 'properties.addressPrefixes', 'type': '[str]'}, + 'network_security_group': {'key': 'properties.networkSecurityGroup', 'type': 'NetworkSecurityGroup'}, + 'route_table': {'key': 'properties.routeTable', 'type': 'RouteTable'}, + 'service_endpoints': {'key': 'properties.serviceEndpoints', 'type': '[ServiceEndpointPropertiesFormat]'}, + 'service_endpoint_policies': {'key': 'properties.serviceEndpointPolicies', 'type': '[ServiceEndpointPolicy]'}, + 'interface_endpoints': {'key': 'properties.interfaceEndpoints', 'type': '[InterfaceEndpoint]'}, + 'ip_configurations': {'key': 'properties.ipConfigurations', 'type': '[IPConfiguration]'}, + 'ip_configuration_profiles': {'key': 'properties.ipConfigurationProfiles', 'type': '[IPConfigurationProfile]'}, + 'resource_navigation_links': {'key': 'properties.resourceNavigationLinks', 'type': '[ResourceNavigationLink]'}, + 'service_association_links': {'key': 'properties.serviceAssociationLinks', 'type': '[ServiceAssociationLink]'}, + 'delegations': {'key': 'properties.delegations', 'type': '[Delegation]'}, + 'purpose': {'key': 'properties.purpose', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, address_prefix: str=None, address_prefixes=None, network_security_group=None, route_table=None, service_endpoints=None, service_endpoint_policies=None, resource_navigation_links=None, service_association_links=None, delegations=None, provisioning_state: str=None, name: str=None, etag: str=None, **kwargs) -> None: + super(Subnet, self).__init__(id=id, **kwargs) + self.address_prefix = address_prefix + self.address_prefixes = address_prefixes + self.network_security_group = network_security_group + self.route_table = route_table + self.service_endpoints = service_endpoints + self.service_endpoint_policies = service_endpoint_policies + self.interface_endpoints = None + self.ip_configurations = None + self.ip_configuration_profiles = None + self.resource_navigation_links = resource_navigation_links + self.service_association_links = service_association_links + self.delegations = delegations + self.purpose = None + self.provisioning_state = provisioning_state + self.name = name + self.etag = etag diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/tags_object.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/tags_object.py new file mode 100644 index 000000000000..2966ec220f94 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/tags_object.py @@ -0,0 +1,28 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class TagsObject(Model): + """Tags object for patch operations. + + :param tags: Resource tags. + :type tags: dict[str, str] + """ + + _attribute_map = { + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, **kwargs): + super(TagsObject, self).__init__(**kwargs) + self.tags = kwargs.get('tags', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/tags_object_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/tags_object_py3.py new file mode 100644 index 000000000000..8be0bb4a15d7 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/tags_object_py3.py @@ -0,0 +1,28 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class TagsObject(Model): + """Tags object for patch operations. + + :param tags: Resource tags. + :type tags: dict[str, str] + """ + + _attribute_map = { + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, *, tags=None, **kwargs) -> None: + super(TagsObject, self).__init__(**kwargs) + self.tags = tags diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/topology.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/topology.py new file mode 100644 index 000000000000..0838d2b70b28 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/topology.py @@ -0,0 +1,51 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class Topology(Model): + """Topology of the specified resource group. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: GUID representing the operation id. + :vartype id: str + :ivar created_date_time: The datetime when the topology was initially + created for the resource group. + :vartype created_date_time: datetime + :ivar last_modified: The datetime when the topology was last modified. + :vartype last_modified: datetime + :param resources: + :type resources: + list[~azure.mgmt.network.v2018_10_01.models.TopologyResource] + """ + + _validation = { + 'id': {'readonly': True}, + 'created_date_time': {'readonly': True}, + 'last_modified': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'created_date_time': {'key': 'createdDateTime', 'type': 'iso-8601'}, + 'last_modified': {'key': 'lastModified', 'type': 'iso-8601'}, + 'resources': {'key': 'resources', 'type': '[TopologyResource]'}, + } + + def __init__(self, **kwargs): + super(Topology, self).__init__(**kwargs) + self.id = None + self.created_date_time = None + self.last_modified = None + self.resources = kwargs.get('resources', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/topology_association.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/topology_association.py new file mode 100644 index 000000000000..1e81afe73e3a --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/topology_association.py @@ -0,0 +1,40 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class TopologyAssociation(Model): + """Resources that have an association with the parent resource. + + :param name: The name of the resource that is associated with the parent + resource. + :type name: str + :param resource_id: The ID of the resource that is associated with the + parent resource. + :type resource_id: str + :param association_type: The association type of the child resource to the + parent resource. Possible values include: 'Associated', 'Contains' + :type association_type: str or + ~azure.mgmt.network.v2018_10_01.models.AssociationType + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'resource_id': {'key': 'resourceId', 'type': 'str'}, + 'association_type': {'key': 'associationType', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(TopologyAssociation, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.resource_id = kwargs.get('resource_id', None) + self.association_type = kwargs.get('association_type', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/topology_association_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/topology_association_py3.py new file mode 100644 index 000000000000..50f093c9559b --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/topology_association_py3.py @@ -0,0 +1,40 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class TopologyAssociation(Model): + """Resources that have an association with the parent resource. + + :param name: The name of the resource that is associated with the parent + resource. + :type name: str + :param resource_id: The ID of the resource that is associated with the + parent resource. + :type resource_id: str + :param association_type: The association type of the child resource to the + parent resource. Possible values include: 'Associated', 'Contains' + :type association_type: str or + ~azure.mgmt.network.v2018_10_01.models.AssociationType + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'resource_id': {'key': 'resourceId', 'type': 'str'}, + 'association_type': {'key': 'associationType', 'type': 'str'}, + } + + def __init__(self, *, name: str=None, resource_id: str=None, association_type=None, **kwargs) -> None: + super(TopologyAssociation, self).__init__(**kwargs) + self.name = name + self.resource_id = resource_id + self.association_type = association_type diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/topology_parameters.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/topology_parameters.py new file mode 100644 index 000000000000..895a7eba1de8 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/topology_parameters.py @@ -0,0 +1,39 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class TopologyParameters(Model): + """Parameters that define the representation of topology. + + :param target_resource_group_name: The name of the target resource group + to perform topology on. + :type target_resource_group_name: str + :param target_virtual_network: The reference of the Virtual Network + resource. + :type target_virtual_network: + ~azure.mgmt.network.v2018_10_01.models.SubResource + :param target_subnet: The reference of the Subnet resource. + :type target_subnet: ~azure.mgmt.network.v2018_10_01.models.SubResource + """ + + _attribute_map = { + 'target_resource_group_name': {'key': 'targetResourceGroupName', 'type': 'str'}, + 'target_virtual_network': {'key': 'targetVirtualNetwork', 'type': 'SubResource'}, + 'target_subnet': {'key': 'targetSubnet', 'type': 'SubResource'}, + } + + def __init__(self, **kwargs): + super(TopologyParameters, self).__init__(**kwargs) + self.target_resource_group_name = kwargs.get('target_resource_group_name', None) + self.target_virtual_network = kwargs.get('target_virtual_network', None) + self.target_subnet = kwargs.get('target_subnet', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/topology_parameters_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/topology_parameters_py3.py new file mode 100644 index 000000000000..5fb2e5b1714e --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/topology_parameters_py3.py @@ -0,0 +1,39 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class TopologyParameters(Model): + """Parameters that define the representation of topology. + + :param target_resource_group_name: The name of the target resource group + to perform topology on. + :type target_resource_group_name: str + :param target_virtual_network: The reference of the Virtual Network + resource. + :type target_virtual_network: + ~azure.mgmt.network.v2018_10_01.models.SubResource + :param target_subnet: The reference of the Subnet resource. + :type target_subnet: ~azure.mgmt.network.v2018_10_01.models.SubResource + """ + + _attribute_map = { + 'target_resource_group_name': {'key': 'targetResourceGroupName', 'type': 'str'}, + 'target_virtual_network': {'key': 'targetVirtualNetwork', 'type': 'SubResource'}, + 'target_subnet': {'key': 'targetSubnet', 'type': 'SubResource'}, + } + + def __init__(self, *, target_resource_group_name: str=None, target_virtual_network=None, target_subnet=None, **kwargs) -> None: + super(TopologyParameters, self).__init__(**kwargs) + self.target_resource_group_name = target_resource_group_name + self.target_virtual_network = target_virtual_network + self.target_subnet = target_subnet diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/topology_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/topology_py3.py new file mode 100644 index 000000000000..aaa34c8fc2a1 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/topology_py3.py @@ -0,0 +1,51 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class Topology(Model): + """Topology of the specified resource group. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: GUID representing the operation id. + :vartype id: str + :ivar created_date_time: The datetime when the topology was initially + created for the resource group. + :vartype created_date_time: datetime + :ivar last_modified: The datetime when the topology was last modified. + :vartype last_modified: datetime + :param resources: + :type resources: + list[~azure.mgmt.network.v2018_10_01.models.TopologyResource] + """ + + _validation = { + 'id': {'readonly': True}, + 'created_date_time': {'readonly': True}, + 'last_modified': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'created_date_time': {'key': 'createdDateTime', 'type': 'iso-8601'}, + 'last_modified': {'key': 'lastModified', 'type': 'iso-8601'}, + 'resources': {'key': 'resources', 'type': '[TopologyResource]'}, + } + + def __init__(self, *, resources=None, **kwargs) -> None: + super(Topology, self).__init__(**kwargs) + self.id = None + self.created_date_time = None + self.last_modified = None + self.resources = resources diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/topology_resource.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/topology_resource.py new file mode 100644 index 000000000000..02077bb8c757 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/topology_resource.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class TopologyResource(Model): + """The network resource topology information for the given resource group. + + :param name: Name of the resource. + :type name: str + :param id: ID of the resource. + :type id: str + :param location: Resource location. + :type location: str + :param associations: Holds the associations the resource has with other + resources in the resource group. + :type associations: + list[~azure.mgmt.network.v2018_10_01.models.TopologyAssociation] + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'associations': {'key': 'associations', 'type': '[TopologyAssociation]'}, + } + + def __init__(self, **kwargs): + super(TopologyResource, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.id = kwargs.get('id', None) + self.location = kwargs.get('location', None) + self.associations = kwargs.get('associations', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/topology_resource_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/topology_resource_py3.py new file mode 100644 index 000000000000..bd53518e4ce3 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/topology_resource_py3.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class TopologyResource(Model): + """The network resource topology information for the given resource group. + + :param name: Name of the resource. + :type name: str + :param id: ID of the resource. + :type id: str + :param location: Resource location. + :type location: str + :param associations: Holds the associations the resource has with other + resources in the resource group. + :type associations: + list[~azure.mgmt.network.v2018_10_01.models.TopologyAssociation] + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'associations': {'key': 'associations', 'type': '[TopologyAssociation]'}, + } + + def __init__(self, *, name: str=None, id: str=None, location: str=None, associations=None, **kwargs) -> None: + super(TopologyResource, self).__init__(**kwargs) + self.name = name + self.id = id + self.location = location + self.associations = associations diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/traffic_analytics_configuration_properties.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/traffic_analytics_configuration_properties.py new file mode 100644 index 000000000000..f56ab353df82 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/traffic_analytics_configuration_properties.py @@ -0,0 +1,55 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class TrafficAnalyticsConfigurationProperties(Model): + """Parameters that define the configuration of traffic analytics. + + All required parameters must be populated in order to send to Azure. + + :param enabled: Required. Flag to enable/disable traffic analytics. + :type enabled: bool + :param workspace_id: Required. The resource guid of the attached workspace + :type workspace_id: str + :param workspace_region: Required. The location of the attached workspace + :type workspace_region: str + :param workspace_resource_id: Required. Resource Id of the attached + workspace + :type workspace_resource_id: str + :param traffic_analytics_interval: The interval in minutes which would + decide how frequently TA service should do flow analytics + :type traffic_analytics_interval: int + """ + + _validation = { + 'enabled': {'required': True}, + 'workspace_id': {'required': True}, + 'workspace_region': {'required': True}, + 'workspace_resource_id': {'required': True}, + } + + _attribute_map = { + 'enabled': {'key': 'enabled', 'type': 'bool'}, + 'workspace_id': {'key': 'workspaceId', 'type': 'str'}, + 'workspace_region': {'key': 'workspaceRegion', 'type': 'str'}, + 'workspace_resource_id': {'key': 'workspaceResourceId', 'type': 'str'}, + 'traffic_analytics_interval': {'key': 'trafficAnalyticsInterval', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(TrafficAnalyticsConfigurationProperties, self).__init__(**kwargs) + self.enabled = kwargs.get('enabled', None) + self.workspace_id = kwargs.get('workspace_id', None) + self.workspace_region = kwargs.get('workspace_region', None) + self.workspace_resource_id = kwargs.get('workspace_resource_id', None) + self.traffic_analytics_interval = kwargs.get('traffic_analytics_interval', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/traffic_analytics_configuration_properties_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/traffic_analytics_configuration_properties_py3.py new file mode 100644 index 000000000000..852cd6219dd7 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/traffic_analytics_configuration_properties_py3.py @@ -0,0 +1,55 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class TrafficAnalyticsConfigurationProperties(Model): + """Parameters that define the configuration of traffic analytics. + + All required parameters must be populated in order to send to Azure. + + :param enabled: Required. Flag to enable/disable traffic analytics. + :type enabled: bool + :param workspace_id: Required. The resource guid of the attached workspace + :type workspace_id: str + :param workspace_region: Required. The location of the attached workspace + :type workspace_region: str + :param workspace_resource_id: Required. Resource Id of the attached + workspace + :type workspace_resource_id: str + :param traffic_analytics_interval: The interval in minutes which would + decide how frequently TA service should do flow analytics + :type traffic_analytics_interval: int + """ + + _validation = { + 'enabled': {'required': True}, + 'workspace_id': {'required': True}, + 'workspace_region': {'required': True}, + 'workspace_resource_id': {'required': True}, + } + + _attribute_map = { + 'enabled': {'key': 'enabled', 'type': 'bool'}, + 'workspace_id': {'key': 'workspaceId', 'type': 'str'}, + 'workspace_region': {'key': 'workspaceRegion', 'type': 'str'}, + 'workspace_resource_id': {'key': 'workspaceResourceId', 'type': 'str'}, + 'traffic_analytics_interval': {'key': 'trafficAnalyticsInterval', 'type': 'int'}, + } + + def __init__(self, *, enabled: bool, workspace_id: str, workspace_region: str, workspace_resource_id: str, traffic_analytics_interval: int=None, **kwargs) -> None: + super(TrafficAnalyticsConfigurationProperties, self).__init__(**kwargs) + self.enabled = enabled + self.workspace_id = workspace_id + self.workspace_region = workspace_region + self.workspace_resource_id = workspace_resource_id + self.traffic_analytics_interval = traffic_analytics_interval diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/traffic_analytics_properties.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/traffic_analytics_properties.py new file mode 100644 index 000000000000..a815a64a1af2 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/traffic_analytics_properties.py @@ -0,0 +1,35 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class TrafficAnalyticsProperties(Model): + """Parameters that define the configuration of traffic analytics. + + All required parameters must be populated in order to send to Azure. + + :param network_watcher_flow_analytics_configuration: Required. + :type network_watcher_flow_analytics_configuration: + ~azure.mgmt.network.v2018_10_01.models.TrafficAnalyticsConfigurationProperties + """ + + _validation = { + 'network_watcher_flow_analytics_configuration': {'required': True}, + } + + _attribute_map = { + 'network_watcher_flow_analytics_configuration': {'key': 'networkWatcherFlowAnalyticsConfiguration', 'type': 'TrafficAnalyticsConfigurationProperties'}, + } + + def __init__(self, **kwargs): + super(TrafficAnalyticsProperties, self).__init__(**kwargs) + self.network_watcher_flow_analytics_configuration = kwargs.get('network_watcher_flow_analytics_configuration', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/traffic_analytics_properties_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/traffic_analytics_properties_py3.py new file mode 100644 index 000000000000..c656e8f6b57c --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/traffic_analytics_properties_py3.py @@ -0,0 +1,35 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class TrafficAnalyticsProperties(Model): + """Parameters that define the configuration of traffic analytics. + + All required parameters must be populated in order to send to Azure. + + :param network_watcher_flow_analytics_configuration: Required. + :type network_watcher_flow_analytics_configuration: + ~azure.mgmt.network.v2018_10_01.models.TrafficAnalyticsConfigurationProperties + """ + + _validation = { + 'network_watcher_flow_analytics_configuration': {'required': True}, + } + + _attribute_map = { + 'network_watcher_flow_analytics_configuration': {'key': 'networkWatcherFlowAnalyticsConfiguration', 'type': 'TrafficAnalyticsConfigurationProperties'}, + } + + def __init__(self, *, network_watcher_flow_analytics_configuration, **kwargs) -> None: + super(TrafficAnalyticsProperties, self).__init__(**kwargs) + self.network_watcher_flow_analytics_configuration = network_watcher_flow_analytics_configuration diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/troubleshooting_details.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/troubleshooting_details.py new file mode 100644 index 000000000000..d30beaf279ed --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/troubleshooting_details.py @@ -0,0 +1,45 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class TroubleshootingDetails(Model): + """Information gained from troubleshooting of specified resource. + + :param id: The id of the get troubleshoot operation. + :type id: str + :param reason_type: Reason type of failure. + :type reason_type: str + :param summary: A summary of troubleshooting. + :type summary: str + :param detail: Details on troubleshooting results. + :type detail: str + :param recommended_actions: List of recommended actions. + :type recommended_actions: + list[~azure.mgmt.network.v2018_10_01.models.TroubleshootingRecommendedActions] + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'reason_type': {'key': 'reasonType', 'type': 'str'}, + 'summary': {'key': 'summary', 'type': 'str'}, + 'detail': {'key': 'detail', 'type': 'str'}, + 'recommended_actions': {'key': 'recommendedActions', 'type': '[TroubleshootingRecommendedActions]'}, + } + + def __init__(self, **kwargs): + super(TroubleshootingDetails, self).__init__(**kwargs) + self.id = kwargs.get('id', None) + self.reason_type = kwargs.get('reason_type', None) + self.summary = kwargs.get('summary', None) + self.detail = kwargs.get('detail', None) + self.recommended_actions = kwargs.get('recommended_actions', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/troubleshooting_details_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/troubleshooting_details_py3.py new file mode 100644 index 000000000000..9bb62fab10b1 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/troubleshooting_details_py3.py @@ -0,0 +1,45 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class TroubleshootingDetails(Model): + """Information gained from troubleshooting of specified resource. + + :param id: The id of the get troubleshoot operation. + :type id: str + :param reason_type: Reason type of failure. + :type reason_type: str + :param summary: A summary of troubleshooting. + :type summary: str + :param detail: Details on troubleshooting results. + :type detail: str + :param recommended_actions: List of recommended actions. + :type recommended_actions: + list[~azure.mgmt.network.v2018_10_01.models.TroubleshootingRecommendedActions] + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'reason_type': {'key': 'reasonType', 'type': 'str'}, + 'summary': {'key': 'summary', 'type': 'str'}, + 'detail': {'key': 'detail', 'type': 'str'}, + 'recommended_actions': {'key': 'recommendedActions', 'type': '[TroubleshootingRecommendedActions]'}, + } + + def __init__(self, *, id: str=None, reason_type: str=None, summary: str=None, detail: str=None, recommended_actions=None, **kwargs) -> None: + super(TroubleshootingDetails, self).__init__(**kwargs) + self.id = id + self.reason_type = reason_type + self.summary = summary + self.detail = detail + self.recommended_actions = recommended_actions diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/troubleshooting_parameters.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/troubleshooting_parameters.py new file mode 100644 index 000000000000..6b11d3eb5ffc --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/troubleshooting_parameters.py @@ -0,0 +1,46 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class TroubleshootingParameters(Model): + """Parameters that define the resource to troubleshoot. + + All required parameters must be populated in order to send to Azure. + + :param target_resource_id: Required. The target resource to troubleshoot. + :type target_resource_id: str + :param storage_id: Required. The ID for the storage account to save the + troubleshoot result. + :type storage_id: str + :param storage_path: Required. The path to the blob to save the + troubleshoot result in. + :type storage_path: str + """ + + _validation = { + 'target_resource_id': {'required': True}, + 'storage_id': {'required': True}, + 'storage_path': {'required': True}, + } + + _attribute_map = { + 'target_resource_id': {'key': 'targetResourceId', 'type': 'str'}, + 'storage_id': {'key': 'properties.storageId', 'type': 'str'}, + 'storage_path': {'key': 'properties.storagePath', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(TroubleshootingParameters, self).__init__(**kwargs) + self.target_resource_id = kwargs.get('target_resource_id', None) + self.storage_id = kwargs.get('storage_id', None) + self.storage_path = kwargs.get('storage_path', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/troubleshooting_parameters_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/troubleshooting_parameters_py3.py new file mode 100644 index 000000000000..e010b7bdc9de --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/troubleshooting_parameters_py3.py @@ -0,0 +1,46 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class TroubleshootingParameters(Model): + """Parameters that define the resource to troubleshoot. + + All required parameters must be populated in order to send to Azure. + + :param target_resource_id: Required. The target resource to troubleshoot. + :type target_resource_id: str + :param storage_id: Required. The ID for the storage account to save the + troubleshoot result. + :type storage_id: str + :param storage_path: Required. The path to the blob to save the + troubleshoot result in. + :type storage_path: str + """ + + _validation = { + 'target_resource_id': {'required': True}, + 'storage_id': {'required': True}, + 'storage_path': {'required': True}, + } + + _attribute_map = { + 'target_resource_id': {'key': 'targetResourceId', 'type': 'str'}, + 'storage_id': {'key': 'properties.storageId', 'type': 'str'}, + 'storage_path': {'key': 'properties.storagePath', 'type': 'str'}, + } + + def __init__(self, *, target_resource_id: str, storage_id: str, storage_path: str, **kwargs) -> None: + super(TroubleshootingParameters, self).__init__(**kwargs) + self.target_resource_id = target_resource_id + self.storage_id = storage_id + self.storage_path = storage_path diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/troubleshooting_recommended_actions.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/troubleshooting_recommended_actions.py new file mode 100644 index 000000000000..be395be4ad54 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/troubleshooting_recommended_actions.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class TroubleshootingRecommendedActions(Model): + """Recommended actions based on discovered issues. + + :param action_id: ID of the recommended action. + :type action_id: str + :param action_text: Description of recommended actions. + :type action_text: str + :param action_uri: The uri linking to a documentation for the recommended + troubleshooting actions. + :type action_uri: str + :param action_uri_text: The information from the URI for the recommended + troubleshooting actions. + :type action_uri_text: str + """ + + _attribute_map = { + 'action_id': {'key': 'actionId', 'type': 'str'}, + 'action_text': {'key': 'actionText', 'type': 'str'}, + 'action_uri': {'key': 'actionUri', 'type': 'str'}, + 'action_uri_text': {'key': 'actionUriText', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(TroubleshootingRecommendedActions, self).__init__(**kwargs) + self.action_id = kwargs.get('action_id', None) + self.action_text = kwargs.get('action_text', None) + self.action_uri = kwargs.get('action_uri', None) + self.action_uri_text = kwargs.get('action_uri_text', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/troubleshooting_recommended_actions_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/troubleshooting_recommended_actions_py3.py new file mode 100644 index 000000000000..05c3f654353b --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/troubleshooting_recommended_actions_py3.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class TroubleshootingRecommendedActions(Model): + """Recommended actions based on discovered issues. + + :param action_id: ID of the recommended action. + :type action_id: str + :param action_text: Description of recommended actions. + :type action_text: str + :param action_uri: The uri linking to a documentation for the recommended + troubleshooting actions. + :type action_uri: str + :param action_uri_text: The information from the URI for the recommended + troubleshooting actions. + :type action_uri_text: str + """ + + _attribute_map = { + 'action_id': {'key': 'actionId', 'type': 'str'}, + 'action_text': {'key': 'actionText', 'type': 'str'}, + 'action_uri': {'key': 'actionUri', 'type': 'str'}, + 'action_uri_text': {'key': 'actionUriText', 'type': 'str'}, + } + + def __init__(self, *, action_id: str=None, action_text: str=None, action_uri: str=None, action_uri_text: str=None, **kwargs) -> None: + super(TroubleshootingRecommendedActions, self).__init__(**kwargs) + self.action_id = action_id + self.action_text = action_text + self.action_uri = action_uri + self.action_uri_text = action_uri_text diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/troubleshooting_result.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/troubleshooting_result.py new file mode 100644 index 000000000000..6573ec7646b4 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/troubleshooting_result.py @@ -0,0 +1,41 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class TroubleshootingResult(Model): + """Troubleshooting information gained from specified resource. + + :param start_time: The start time of the troubleshooting. + :type start_time: datetime + :param end_time: The end time of the troubleshooting. + :type end_time: datetime + :param code: The result code of the troubleshooting. + :type code: str + :param results: Information from troubleshooting. + :type results: + list[~azure.mgmt.network.v2018_10_01.models.TroubleshootingDetails] + """ + + _attribute_map = { + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + 'code': {'key': 'code', 'type': 'str'}, + 'results': {'key': 'results', 'type': '[TroubleshootingDetails]'}, + } + + def __init__(self, **kwargs): + super(TroubleshootingResult, self).__init__(**kwargs) + self.start_time = kwargs.get('start_time', None) + self.end_time = kwargs.get('end_time', None) + self.code = kwargs.get('code', None) + self.results = kwargs.get('results', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/troubleshooting_result_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/troubleshooting_result_py3.py new file mode 100644 index 000000000000..4d33676b8b47 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/troubleshooting_result_py3.py @@ -0,0 +1,41 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class TroubleshootingResult(Model): + """Troubleshooting information gained from specified resource. + + :param start_time: The start time of the troubleshooting. + :type start_time: datetime + :param end_time: The end time of the troubleshooting. + :type end_time: datetime + :param code: The result code of the troubleshooting. + :type code: str + :param results: Information from troubleshooting. + :type results: + list[~azure.mgmt.network.v2018_10_01.models.TroubleshootingDetails] + """ + + _attribute_map = { + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + 'code': {'key': 'code', 'type': 'str'}, + 'results': {'key': 'results', 'type': '[TroubleshootingDetails]'}, + } + + def __init__(self, *, start_time=None, end_time=None, code: str=None, results=None, **kwargs) -> None: + super(TroubleshootingResult, self).__init__(**kwargs) + self.start_time = start_time + self.end_time = end_time + self.code = code + self.results = results diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/tunnel_connection_health.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/tunnel_connection_health.py new file mode 100644 index 000000000000..38ac3adbb9ec --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/tunnel_connection_health.py @@ -0,0 +1,61 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class TunnelConnectionHealth(Model): + """VirtualNetworkGatewayConnection properties. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar tunnel: Tunnel name. + :vartype tunnel: str + :ivar connection_status: Virtual network Gateway connection status. + Possible values include: 'Unknown', 'Connecting', 'Connected', + 'NotConnected' + :vartype connection_status: str or + ~azure.mgmt.network.v2018_10_01.models.VirtualNetworkGatewayConnectionStatus + :ivar ingress_bytes_transferred: The Ingress Bytes Transferred in this + connection + :vartype ingress_bytes_transferred: long + :ivar egress_bytes_transferred: The Egress Bytes Transferred in this + connection + :vartype egress_bytes_transferred: long + :ivar last_connection_established_utc_time: The time at which connection + was established in Utc format. + :vartype last_connection_established_utc_time: str + """ + + _validation = { + 'tunnel': {'readonly': True}, + 'connection_status': {'readonly': True}, + 'ingress_bytes_transferred': {'readonly': True}, + 'egress_bytes_transferred': {'readonly': True}, + 'last_connection_established_utc_time': {'readonly': True}, + } + + _attribute_map = { + 'tunnel': {'key': 'tunnel', 'type': 'str'}, + 'connection_status': {'key': 'connectionStatus', 'type': 'str'}, + 'ingress_bytes_transferred': {'key': 'ingressBytesTransferred', 'type': 'long'}, + 'egress_bytes_transferred': {'key': 'egressBytesTransferred', 'type': 'long'}, + 'last_connection_established_utc_time': {'key': 'lastConnectionEstablishedUtcTime', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(TunnelConnectionHealth, self).__init__(**kwargs) + self.tunnel = None + self.connection_status = None + self.ingress_bytes_transferred = None + self.egress_bytes_transferred = None + self.last_connection_established_utc_time = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/tunnel_connection_health_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/tunnel_connection_health_py3.py new file mode 100644 index 000000000000..d55a049124b4 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/tunnel_connection_health_py3.py @@ -0,0 +1,61 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class TunnelConnectionHealth(Model): + """VirtualNetworkGatewayConnection properties. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar tunnel: Tunnel name. + :vartype tunnel: str + :ivar connection_status: Virtual network Gateway connection status. + Possible values include: 'Unknown', 'Connecting', 'Connected', + 'NotConnected' + :vartype connection_status: str or + ~azure.mgmt.network.v2018_10_01.models.VirtualNetworkGatewayConnectionStatus + :ivar ingress_bytes_transferred: The Ingress Bytes Transferred in this + connection + :vartype ingress_bytes_transferred: long + :ivar egress_bytes_transferred: The Egress Bytes Transferred in this + connection + :vartype egress_bytes_transferred: long + :ivar last_connection_established_utc_time: The time at which connection + was established in Utc format. + :vartype last_connection_established_utc_time: str + """ + + _validation = { + 'tunnel': {'readonly': True}, + 'connection_status': {'readonly': True}, + 'ingress_bytes_transferred': {'readonly': True}, + 'egress_bytes_transferred': {'readonly': True}, + 'last_connection_established_utc_time': {'readonly': True}, + } + + _attribute_map = { + 'tunnel': {'key': 'tunnel', 'type': 'str'}, + 'connection_status': {'key': 'connectionStatus', 'type': 'str'}, + 'ingress_bytes_transferred': {'key': 'ingressBytesTransferred', 'type': 'long'}, + 'egress_bytes_transferred': {'key': 'egressBytesTransferred', 'type': 'long'}, + 'last_connection_established_utc_time': {'key': 'lastConnectionEstablishedUtcTime', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(TunnelConnectionHealth, self).__init__(**kwargs) + self.tunnel = None + self.connection_status = None + self.ingress_bytes_transferred = None + self.egress_bytes_transferred = None + self.last_connection_established_utc_time = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/usage.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/usage.py new file mode 100644 index 000000000000..677131d0f844 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/usage.py @@ -0,0 +1,59 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class Usage(Model): + """Describes network resource usage. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Resource identifier. + :vartype id: str + :ivar unit: Required. An enum describing the unit of measurement. Default + value: "Count" . + :vartype unit: str + :param current_value: Required. The current value of the usage. + :type current_value: long + :param limit: Required. The limit of usage. + :type limit: long + :param name: Required. The name of the type of usage. + :type name: ~azure.mgmt.network.v2018_10_01.models.UsageName + """ + + _validation = { + 'id': {'readonly': True}, + 'unit': {'required': True, 'constant': True}, + 'current_value': {'required': True}, + 'limit': {'required': True}, + 'name': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'unit': {'key': 'unit', 'type': 'str'}, + 'current_value': {'key': 'currentValue', 'type': 'long'}, + 'limit': {'key': 'limit', 'type': 'long'}, + 'name': {'key': 'name', 'type': 'UsageName'}, + } + + unit = "Count" + + def __init__(self, **kwargs): + super(Usage, self).__init__(**kwargs) + self.id = None + self.current_value = kwargs.get('current_value', None) + self.limit = kwargs.get('limit', None) + self.name = kwargs.get('name', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/usage_name.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/usage_name.py new file mode 100644 index 000000000000..bd1813944fdc --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/usage_name.py @@ -0,0 +1,32 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class UsageName(Model): + """The usage names. + + :param value: A string describing the resource name. + :type value: str + :param localized_value: A localized string describing the resource name. + :type localized_value: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': 'str'}, + 'localized_value': {'key': 'localizedValue', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(UsageName, self).__init__(**kwargs) + self.value = kwargs.get('value', None) + self.localized_value = kwargs.get('localized_value', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/usage_name_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/usage_name_py3.py new file mode 100644 index 000000000000..4e5e3e10de15 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/usage_name_py3.py @@ -0,0 +1,32 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class UsageName(Model): + """The usage names. + + :param value: A string describing the resource name. + :type value: str + :param localized_value: A localized string describing the resource name. + :type localized_value: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': 'str'}, + 'localized_value': {'key': 'localizedValue', 'type': 'str'}, + } + + def __init__(self, *, value: str=None, localized_value: str=None, **kwargs) -> None: + super(UsageName, self).__init__(**kwargs) + self.value = value + self.localized_value = localized_value diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/usage_paged.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/usage_paged.py new file mode 100644 index 000000000000..517075854145 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/usage_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class UsagePaged(Paged): + """ + A paging container for iterating over a list of :class:`Usage ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[Usage]'} + } + + def __init__(self, *args, **kwargs): + + super(UsagePaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/usage_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/usage_py3.py new file mode 100644 index 000000000000..82f3e216ba97 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/usage_py3.py @@ -0,0 +1,59 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class Usage(Model): + """Describes network resource usage. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Resource identifier. + :vartype id: str + :ivar unit: Required. An enum describing the unit of measurement. Default + value: "Count" . + :vartype unit: str + :param current_value: Required. The current value of the usage. + :type current_value: long + :param limit: Required. The limit of usage. + :type limit: long + :param name: Required. The name of the type of usage. + :type name: ~azure.mgmt.network.v2018_10_01.models.UsageName + """ + + _validation = { + 'id': {'readonly': True}, + 'unit': {'required': True, 'constant': True}, + 'current_value': {'required': True}, + 'limit': {'required': True}, + 'name': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'unit': {'key': 'unit', 'type': 'str'}, + 'current_value': {'key': 'currentValue', 'type': 'long'}, + 'limit': {'key': 'limit', 'type': 'long'}, + 'name': {'key': 'name', 'type': 'UsageName'}, + } + + unit = "Count" + + def __init__(self, *, current_value: int, limit: int, name, **kwargs) -> None: + super(Usage, self).__init__(**kwargs) + self.id = None + self.current_value = current_value + self.limit = limit + self.name = name diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/verification_ip_flow_parameters.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/verification_ip_flow_parameters.py new file mode 100644 index 000000000000..34428ebecc82 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/verification_ip_flow_parameters.py @@ -0,0 +1,80 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class VerificationIPFlowParameters(Model): + """Parameters that define the IP flow to be verified. + + All required parameters must be populated in order to send to Azure. + + :param target_resource_id: Required. The ID of the target resource to + perform next-hop on. + :type target_resource_id: str + :param direction: Required. The direction of the packet represented as a + 5-tuple. Possible values include: 'Inbound', 'Outbound' + :type direction: str or ~azure.mgmt.network.v2018_10_01.models.Direction + :param protocol: Required. Protocol to be verified on. Possible values + include: 'TCP', 'UDP' + :type protocol: str or + ~azure.mgmt.network.v2018_10_01.models.IpFlowProtocol + :param local_port: Required. The local port. Acceptable values are a + single integer in the range (0-65535). Support for * for the source port, + which depends on the direction. + :type local_port: str + :param remote_port: Required. The remote port. Acceptable values are a + single integer in the range (0-65535). Support for * for the source port, + which depends on the direction. + :type remote_port: str + :param local_ip_address: Required. The local IP address. Acceptable values + are valid IPv4 addresses. + :type local_ip_address: str + :param remote_ip_address: Required. The remote IP address. Acceptable + values are valid IPv4 addresses. + :type remote_ip_address: str + :param target_nic_resource_id: The NIC ID. (If VM has multiple NICs and IP + forwarding is enabled on any of them, then this parameter must be + specified. Otherwise optional). + :type target_nic_resource_id: str + """ + + _validation = { + 'target_resource_id': {'required': True}, + 'direction': {'required': True}, + 'protocol': {'required': True}, + 'local_port': {'required': True}, + 'remote_port': {'required': True}, + 'local_ip_address': {'required': True}, + 'remote_ip_address': {'required': True}, + } + + _attribute_map = { + 'target_resource_id': {'key': 'targetResourceId', 'type': 'str'}, + 'direction': {'key': 'direction', 'type': 'str'}, + 'protocol': {'key': 'protocol', 'type': 'str'}, + 'local_port': {'key': 'localPort', 'type': 'str'}, + 'remote_port': {'key': 'remotePort', 'type': 'str'}, + 'local_ip_address': {'key': 'localIPAddress', 'type': 'str'}, + 'remote_ip_address': {'key': 'remoteIPAddress', 'type': 'str'}, + 'target_nic_resource_id': {'key': 'targetNicResourceId', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(VerificationIPFlowParameters, self).__init__(**kwargs) + self.target_resource_id = kwargs.get('target_resource_id', None) + self.direction = kwargs.get('direction', None) + self.protocol = kwargs.get('protocol', None) + self.local_port = kwargs.get('local_port', None) + self.remote_port = kwargs.get('remote_port', None) + self.local_ip_address = kwargs.get('local_ip_address', None) + self.remote_ip_address = kwargs.get('remote_ip_address', None) + self.target_nic_resource_id = kwargs.get('target_nic_resource_id', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/verification_ip_flow_parameters_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/verification_ip_flow_parameters_py3.py new file mode 100644 index 000000000000..b6f0ed370a48 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/verification_ip_flow_parameters_py3.py @@ -0,0 +1,80 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class VerificationIPFlowParameters(Model): + """Parameters that define the IP flow to be verified. + + All required parameters must be populated in order to send to Azure. + + :param target_resource_id: Required. The ID of the target resource to + perform next-hop on. + :type target_resource_id: str + :param direction: Required. The direction of the packet represented as a + 5-tuple. Possible values include: 'Inbound', 'Outbound' + :type direction: str or ~azure.mgmt.network.v2018_10_01.models.Direction + :param protocol: Required. Protocol to be verified on. Possible values + include: 'TCP', 'UDP' + :type protocol: str or + ~azure.mgmt.network.v2018_10_01.models.IpFlowProtocol + :param local_port: Required. The local port. Acceptable values are a + single integer in the range (0-65535). Support for * for the source port, + which depends on the direction. + :type local_port: str + :param remote_port: Required. The remote port. Acceptable values are a + single integer in the range (0-65535). Support for * for the source port, + which depends on the direction. + :type remote_port: str + :param local_ip_address: Required. The local IP address. Acceptable values + are valid IPv4 addresses. + :type local_ip_address: str + :param remote_ip_address: Required. The remote IP address. Acceptable + values are valid IPv4 addresses. + :type remote_ip_address: str + :param target_nic_resource_id: The NIC ID. (If VM has multiple NICs and IP + forwarding is enabled on any of them, then this parameter must be + specified. Otherwise optional). + :type target_nic_resource_id: str + """ + + _validation = { + 'target_resource_id': {'required': True}, + 'direction': {'required': True}, + 'protocol': {'required': True}, + 'local_port': {'required': True}, + 'remote_port': {'required': True}, + 'local_ip_address': {'required': True}, + 'remote_ip_address': {'required': True}, + } + + _attribute_map = { + 'target_resource_id': {'key': 'targetResourceId', 'type': 'str'}, + 'direction': {'key': 'direction', 'type': 'str'}, + 'protocol': {'key': 'protocol', 'type': 'str'}, + 'local_port': {'key': 'localPort', 'type': 'str'}, + 'remote_port': {'key': 'remotePort', 'type': 'str'}, + 'local_ip_address': {'key': 'localIPAddress', 'type': 'str'}, + 'remote_ip_address': {'key': 'remoteIPAddress', 'type': 'str'}, + 'target_nic_resource_id': {'key': 'targetNicResourceId', 'type': 'str'}, + } + + def __init__(self, *, target_resource_id: str, direction, protocol, local_port: str, remote_port: str, local_ip_address: str, remote_ip_address: str, target_nic_resource_id: str=None, **kwargs) -> None: + super(VerificationIPFlowParameters, self).__init__(**kwargs) + self.target_resource_id = target_resource_id + self.direction = direction + self.protocol = protocol + self.local_port = local_port + self.remote_port = remote_port + self.local_ip_address = local_ip_address + self.remote_ip_address = remote_ip_address + self.target_nic_resource_id = target_nic_resource_id diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/verification_ip_flow_result.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/verification_ip_flow_result.py new file mode 100644 index 000000000000..a530802a64e1 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/verification_ip_flow_result.py @@ -0,0 +1,34 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class VerificationIPFlowResult(Model): + """Results of IP flow verification on the target resource. + + :param access: Indicates whether the traffic is allowed or denied. + Possible values include: 'Allow', 'Deny' + :type access: str or ~azure.mgmt.network.v2018_10_01.models.Access + :param rule_name: Name of the rule. If input is not matched against any + security rule, it is not displayed. + :type rule_name: str + """ + + _attribute_map = { + 'access': {'key': 'access', 'type': 'str'}, + 'rule_name': {'key': 'ruleName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(VerificationIPFlowResult, self).__init__(**kwargs) + self.access = kwargs.get('access', None) + self.rule_name = kwargs.get('rule_name', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/verification_ip_flow_result_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/verification_ip_flow_result_py3.py new file mode 100644 index 000000000000..73d9c56a881c --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/verification_ip_flow_result_py3.py @@ -0,0 +1,34 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class VerificationIPFlowResult(Model): + """Results of IP flow verification on the target resource. + + :param access: Indicates whether the traffic is allowed or denied. + Possible values include: 'Allow', 'Deny' + :type access: str or ~azure.mgmt.network.v2018_10_01.models.Access + :param rule_name: Name of the rule. If input is not matched against any + security rule, it is not displayed. + :type rule_name: str + """ + + _attribute_map = { + 'access': {'key': 'access', 'type': 'str'}, + 'rule_name': {'key': 'ruleName', 'type': 'str'}, + } + + def __init__(self, *, access=None, rule_name: str=None, **kwargs) -> None: + super(VerificationIPFlowResult, self).__init__(**kwargs) + self.access = access + self.rule_name = rule_name diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_hub.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_hub.py new file mode 100644 index 000000000000..20dd35d54dbc --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_hub.py @@ -0,0 +1,92 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource import Resource + + +class VirtualHub(Resource): + """VirtualHub Resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param virtual_wan: The VirtualWAN to which the VirtualHub belongs + :type virtual_wan: ~azure.mgmt.network.v2018_10_01.models.SubResource + :param vpn_gateway: The VpnGateway associated with this VirtualHub + :type vpn_gateway: ~azure.mgmt.network.v2018_10_01.models.SubResource + :param p2_svpn_gateway: The P2SVpnGateway associated with this VirtualHub + :type p2_svpn_gateway: ~azure.mgmt.network.v2018_10_01.models.SubResource + :param express_route_gateway: The expressRouteGateway associated with this + VirtualHub + :type express_route_gateway: + ~azure.mgmt.network.v2018_10_01.models.SubResource + :param virtual_network_connections: list of all vnet connections with this + VirtualHub. + :type virtual_network_connections: + list[~azure.mgmt.network.v2018_10_01.models.HubVirtualNetworkConnection] + :param address_prefix: Address-prefix for this VirtualHub. + :type address_prefix: str + :param route_table: The routeTable associated with this virtual hub. + :type route_table: + ~azure.mgmt.network.v2018_10_01.models.VirtualHubRouteTable + :param provisioning_state: The provisioning state of the resource. + Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + :type provisioning_state: str or + ~azure.mgmt.network.v2018_10_01.models.ProvisioningState + :ivar etag: Gets a unique read-only string that changes whenever the + resource is updated. + :vartype etag: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'virtual_wan': {'key': 'properties.virtualWan', 'type': 'SubResource'}, + 'vpn_gateway': {'key': 'properties.vpnGateway', 'type': 'SubResource'}, + 'p2_svpn_gateway': {'key': 'properties.p2SVpnGateway', 'type': 'SubResource'}, + 'express_route_gateway': {'key': 'properties.expressRouteGateway', 'type': 'SubResource'}, + 'virtual_network_connections': {'key': 'properties.virtualNetworkConnections', 'type': '[HubVirtualNetworkConnection]'}, + 'address_prefix': {'key': 'properties.addressPrefix', 'type': 'str'}, + 'route_table': {'key': 'properties.routeTable', 'type': 'VirtualHubRouteTable'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(VirtualHub, self).__init__(**kwargs) + self.virtual_wan = kwargs.get('virtual_wan', None) + self.vpn_gateway = kwargs.get('vpn_gateway', None) + self.p2_svpn_gateway = kwargs.get('p2_svpn_gateway', None) + self.express_route_gateway = kwargs.get('express_route_gateway', None) + self.virtual_network_connections = kwargs.get('virtual_network_connections', None) + self.address_prefix = kwargs.get('address_prefix', None) + self.route_table = kwargs.get('route_table', None) + self.provisioning_state = kwargs.get('provisioning_state', None) + self.etag = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_hub_id.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_hub_id.py new file mode 100644 index 000000000000..6754cbd3b4f6 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_hub_id.py @@ -0,0 +1,30 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class VirtualHubId(Model): + """Virtual Hub identifier. + + :param id: The resource URI for the Virtual Hub where the ExpressRoute + gateway is or will be deployed. The Virtual Hub resource and the + ExpressRoute gateway resource reside in the same subscription. + :type id: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(VirtualHubId, self).__init__(**kwargs) + self.id = kwargs.get('id', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_hub_id_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_hub_id_py3.py new file mode 100644 index 000000000000..730c061d5b7e --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_hub_id_py3.py @@ -0,0 +1,30 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class VirtualHubId(Model): + """Virtual Hub identifier. + + :param id: The resource URI for the Virtual Hub where the ExpressRoute + gateway is or will be deployed. The Virtual Hub resource and the + ExpressRoute gateway resource reside in the same subscription. + :type id: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, **kwargs) -> None: + super(VirtualHubId, self).__init__(**kwargs) + self.id = id diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_hub_paged.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_hub_paged.py new file mode 100644 index 000000000000..e527c4c95e6f --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_hub_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class VirtualHubPaged(Paged): + """ + A paging container for iterating over a list of :class:`VirtualHub ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[VirtualHub]'} + } + + def __init__(self, *args, **kwargs): + + super(VirtualHubPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_hub_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_hub_py3.py new file mode 100644 index 000000000000..9ab947f82890 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_hub_py3.py @@ -0,0 +1,92 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource_py3 import Resource + + +class VirtualHub(Resource): + """VirtualHub Resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param virtual_wan: The VirtualWAN to which the VirtualHub belongs + :type virtual_wan: ~azure.mgmt.network.v2018_10_01.models.SubResource + :param vpn_gateway: The VpnGateway associated with this VirtualHub + :type vpn_gateway: ~azure.mgmt.network.v2018_10_01.models.SubResource + :param p2_svpn_gateway: The P2SVpnGateway associated with this VirtualHub + :type p2_svpn_gateway: ~azure.mgmt.network.v2018_10_01.models.SubResource + :param express_route_gateway: The expressRouteGateway associated with this + VirtualHub + :type express_route_gateway: + ~azure.mgmt.network.v2018_10_01.models.SubResource + :param virtual_network_connections: list of all vnet connections with this + VirtualHub. + :type virtual_network_connections: + list[~azure.mgmt.network.v2018_10_01.models.HubVirtualNetworkConnection] + :param address_prefix: Address-prefix for this VirtualHub. + :type address_prefix: str + :param route_table: The routeTable associated with this virtual hub. + :type route_table: + ~azure.mgmt.network.v2018_10_01.models.VirtualHubRouteTable + :param provisioning_state: The provisioning state of the resource. + Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + :type provisioning_state: str or + ~azure.mgmt.network.v2018_10_01.models.ProvisioningState + :ivar etag: Gets a unique read-only string that changes whenever the + resource is updated. + :vartype etag: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'virtual_wan': {'key': 'properties.virtualWan', 'type': 'SubResource'}, + 'vpn_gateway': {'key': 'properties.vpnGateway', 'type': 'SubResource'}, + 'p2_svpn_gateway': {'key': 'properties.p2SVpnGateway', 'type': 'SubResource'}, + 'express_route_gateway': {'key': 'properties.expressRouteGateway', 'type': 'SubResource'}, + 'virtual_network_connections': {'key': 'properties.virtualNetworkConnections', 'type': '[HubVirtualNetworkConnection]'}, + 'address_prefix': {'key': 'properties.addressPrefix', 'type': 'str'}, + 'route_table': {'key': 'properties.routeTable', 'type': 'VirtualHubRouteTable'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, location: str=None, tags=None, virtual_wan=None, vpn_gateway=None, p2_svpn_gateway=None, express_route_gateway=None, virtual_network_connections=None, address_prefix: str=None, route_table=None, provisioning_state=None, **kwargs) -> None: + super(VirtualHub, self).__init__(id=id, location=location, tags=tags, **kwargs) + self.virtual_wan = virtual_wan + self.vpn_gateway = vpn_gateway + self.p2_svpn_gateway = p2_svpn_gateway + self.express_route_gateway = express_route_gateway + self.virtual_network_connections = virtual_network_connections + self.address_prefix = address_prefix + self.route_table = route_table + self.provisioning_state = provisioning_state + self.etag = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_hub_route.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_hub_route.py new file mode 100644 index 000000000000..d25fdb71ad64 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_hub_route.py @@ -0,0 +1,32 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class VirtualHubRoute(Model): + """VirtualHub route. + + :param address_prefixes: list of all addressPrefixes. + :type address_prefixes: list[str] + :param next_hop_ip_address: NextHop ip address. + :type next_hop_ip_address: str + """ + + _attribute_map = { + 'address_prefixes': {'key': 'addressPrefixes', 'type': '[str]'}, + 'next_hop_ip_address': {'key': 'nextHopIpAddress', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(VirtualHubRoute, self).__init__(**kwargs) + self.address_prefixes = kwargs.get('address_prefixes', None) + self.next_hop_ip_address = kwargs.get('next_hop_ip_address', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_hub_route_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_hub_route_py3.py new file mode 100644 index 000000000000..b5430f758c76 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_hub_route_py3.py @@ -0,0 +1,32 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class VirtualHubRoute(Model): + """VirtualHub route. + + :param address_prefixes: list of all addressPrefixes. + :type address_prefixes: list[str] + :param next_hop_ip_address: NextHop ip address. + :type next_hop_ip_address: str + """ + + _attribute_map = { + 'address_prefixes': {'key': 'addressPrefixes', 'type': '[str]'}, + 'next_hop_ip_address': {'key': 'nextHopIpAddress', 'type': 'str'}, + } + + def __init__(self, *, address_prefixes=None, next_hop_ip_address: str=None, **kwargs) -> None: + super(VirtualHubRoute, self).__init__(**kwargs) + self.address_prefixes = address_prefixes + self.next_hop_ip_address = next_hop_ip_address diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_hub_route_table.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_hub_route_table.py new file mode 100644 index 000000000000..ddb18949868a --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_hub_route_table.py @@ -0,0 +1,28 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class VirtualHubRouteTable(Model): + """VirtualHub route table. + + :param routes: list of all routes. + :type routes: list[~azure.mgmt.network.v2018_10_01.models.VirtualHubRoute] + """ + + _attribute_map = { + 'routes': {'key': 'routes', 'type': '[VirtualHubRoute]'}, + } + + def __init__(self, **kwargs): + super(VirtualHubRouteTable, self).__init__(**kwargs) + self.routes = kwargs.get('routes', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_hub_route_table_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_hub_route_table_py3.py new file mode 100644 index 000000000000..5cd30935152a --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_hub_route_table_py3.py @@ -0,0 +1,28 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class VirtualHubRouteTable(Model): + """VirtualHub route table. + + :param routes: list of all routes. + :type routes: list[~azure.mgmt.network.v2018_10_01.models.VirtualHubRoute] + """ + + _attribute_map = { + 'routes': {'key': 'routes', 'type': '[VirtualHubRoute]'}, + } + + def __init__(self, *, routes=None, **kwargs) -> None: + super(VirtualHubRouteTable, self).__init__(**kwargs) + self.routes = routes diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network.py new file mode 100644 index 000000000000..afa5b3db77da --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network.py @@ -0,0 +1,98 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource import Resource + + +class VirtualNetwork(Resource): + """Virtual Network resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param address_space: The AddressSpace that contains an array of IP + address ranges that can be used by subnets. + :type address_space: ~azure.mgmt.network.v2018_10_01.models.AddressSpace + :param dhcp_options: The dhcpOptions that contains an array of DNS servers + available to VMs deployed in the virtual network. + :type dhcp_options: ~azure.mgmt.network.v2018_10_01.models.DhcpOptions + :param subnets: A list of subnets in a Virtual Network. + :type subnets: list[~azure.mgmt.network.v2018_10_01.models.Subnet] + :param virtual_network_peerings: A list of peerings in a Virtual Network. + :type virtual_network_peerings: + list[~azure.mgmt.network.v2018_10_01.models.VirtualNetworkPeering] + :param resource_guid: The resourceGuid property of the Virtual Network + resource. + :type resource_guid: str + :param provisioning_state: The provisioning state of the PublicIP + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param enable_ddos_protection: Indicates if DDoS protection is enabled for + all the protected resources in the virtual network. It requires a DDoS + protection plan associated with the resource. Default value: False . + :type enable_ddos_protection: bool + :param enable_vm_protection: Indicates if VM protection is enabled for all + the subnets in the virtual network. Default value: False . + :type enable_vm_protection: bool + :param ddos_protection_plan: The DDoS protection plan associated with the + virtual network. + :type ddos_protection_plan: + ~azure.mgmt.network.v2018_10_01.models.SubResource + :param etag: Gets a unique read-only string that changes whenever the + resource is updated. + :type etag: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'address_space': {'key': 'properties.addressSpace', 'type': 'AddressSpace'}, + 'dhcp_options': {'key': 'properties.dhcpOptions', 'type': 'DhcpOptions'}, + 'subnets': {'key': 'properties.subnets', 'type': '[Subnet]'}, + 'virtual_network_peerings': {'key': 'properties.virtualNetworkPeerings', 'type': '[VirtualNetworkPeering]'}, + 'resource_guid': {'key': 'properties.resourceGuid', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'enable_ddos_protection': {'key': 'properties.enableDdosProtection', 'type': 'bool'}, + 'enable_vm_protection': {'key': 'properties.enableVmProtection', 'type': 'bool'}, + 'ddos_protection_plan': {'key': 'properties.ddosProtectionPlan', 'type': 'SubResource'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(VirtualNetwork, self).__init__(**kwargs) + self.address_space = kwargs.get('address_space', None) + self.dhcp_options = kwargs.get('dhcp_options', None) + self.subnets = kwargs.get('subnets', None) + self.virtual_network_peerings = kwargs.get('virtual_network_peerings', None) + self.resource_guid = kwargs.get('resource_guid', None) + self.provisioning_state = kwargs.get('provisioning_state', None) + self.enable_ddos_protection = kwargs.get('enable_ddos_protection', False) + self.enable_vm_protection = kwargs.get('enable_vm_protection', False) + self.ddos_protection_plan = kwargs.get('ddos_protection_plan', None) + self.etag = kwargs.get('etag', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_connection_gateway_reference.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_connection_gateway_reference.py new file mode 100644 index 000000000000..aa10101778f6 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_connection_gateway_reference.py @@ -0,0 +1,35 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class VirtualNetworkConnectionGatewayReference(Model): + """A reference to VirtualNetworkGateway or LocalNetworkGateway resource. + + All required parameters must be populated in order to send to Azure. + + :param id: Required. The ID of VirtualNetworkGateway or + LocalNetworkGateway resource. + :type id: str + """ + + _validation = { + 'id': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(VirtualNetworkConnectionGatewayReference, self).__init__(**kwargs) + self.id = kwargs.get('id', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_connection_gateway_reference_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_connection_gateway_reference_py3.py new file mode 100644 index 000000000000..b2d9734baf3c --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_connection_gateway_reference_py3.py @@ -0,0 +1,35 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class VirtualNetworkConnectionGatewayReference(Model): + """A reference to VirtualNetworkGateway or LocalNetworkGateway resource. + + All required parameters must be populated in order to send to Azure. + + :param id: Required. The ID of VirtualNetworkGateway or + LocalNetworkGateway resource. + :type id: str + """ + + _validation = { + 'id': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__(self, *, id: str, **kwargs) -> None: + super(VirtualNetworkConnectionGatewayReference, self).__init__(**kwargs) + self.id = id diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_gateway.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_gateway.py new file mode 100644 index 000000000000..153cdf57ca3c --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_gateway.py @@ -0,0 +1,114 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource import Resource + + +class VirtualNetworkGateway(Resource): + """A common class for general resource information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param ip_configurations: IP configurations for virtual network gateway. + :type ip_configurations: + list[~azure.mgmt.network.v2018_10_01.models.VirtualNetworkGatewayIPConfiguration] + :param gateway_type: The type of this virtual network gateway. Possible + values are: 'Vpn' and 'ExpressRoute'. Possible values include: 'Vpn', + 'ExpressRoute' + :type gateway_type: str or + ~azure.mgmt.network.v2018_10_01.models.VirtualNetworkGatewayType + :param vpn_type: The type of this virtual network gateway. Possible values + are: 'PolicyBased' and 'RouteBased'. Possible values include: + 'PolicyBased', 'RouteBased' + :type vpn_type: str or ~azure.mgmt.network.v2018_10_01.models.VpnType + :param enable_bgp: Whether BGP is enabled for this virtual network gateway + or not. + :type enable_bgp: bool + :param active_active: ActiveActive flag + :type active_active: bool + :param gateway_default_site: The reference of the LocalNetworkGateway + resource which represents local network site having default routes. Assign + Null value in case of removing existing default site setting. + :type gateway_default_site: + ~azure.mgmt.network.v2018_10_01.models.SubResource + :param sku: The reference of the VirtualNetworkGatewaySku resource which + represents the SKU selected for Virtual network gateway. + :type sku: ~azure.mgmt.network.v2018_10_01.models.VirtualNetworkGatewaySku + :param vpn_client_configuration: The reference of the + VpnClientConfiguration resource which represents the P2S VpnClient + configurations. + :type vpn_client_configuration: + ~azure.mgmt.network.v2018_10_01.models.VpnClientConfiguration + :param bgp_settings: Virtual network gateway's BGP speaker settings. + :type bgp_settings: ~azure.mgmt.network.v2018_10_01.models.BgpSettings + :param resource_guid: The resource GUID property of the + VirtualNetworkGateway resource. + :type resource_guid: str + :ivar provisioning_state: The provisioning state of the + VirtualNetworkGateway resource. Possible values are: 'Updating', + 'Deleting', and 'Failed'. + :vartype provisioning_state: str + :param etag: Gets a unique read-only string that changes whenever the + resource is updated. + :type etag: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'ip_configurations': {'key': 'properties.ipConfigurations', 'type': '[VirtualNetworkGatewayIPConfiguration]'}, + 'gateway_type': {'key': 'properties.gatewayType', 'type': 'str'}, + 'vpn_type': {'key': 'properties.vpnType', 'type': 'str'}, + 'enable_bgp': {'key': 'properties.enableBgp', 'type': 'bool'}, + 'active_active': {'key': 'properties.activeActive', 'type': 'bool'}, + 'gateway_default_site': {'key': 'properties.gatewayDefaultSite', 'type': 'SubResource'}, + 'sku': {'key': 'properties.sku', 'type': 'VirtualNetworkGatewaySku'}, + 'vpn_client_configuration': {'key': 'properties.vpnClientConfiguration', 'type': 'VpnClientConfiguration'}, + 'bgp_settings': {'key': 'properties.bgpSettings', 'type': 'BgpSettings'}, + 'resource_guid': {'key': 'properties.resourceGuid', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(VirtualNetworkGateway, self).__init__(**kwargs) + self.ip_configurations = kwargs.get('ip_configurations', None) + self.gateway_type = kwargs.get('gateway_type', None) + self.vpn_type = kwargs.get('vpn_type', None) + self.enable_bgp = kwargs.get('enable_bgp', None) + self.active_active = kwargs.get('active_active', None) + self.gateway_default_site = kwargs.get('gateway_default_site', None) + self.sku = kwargs.get('sku', None) + self.vpn_client_configuration = kwargs.get('vpn_client_configuration', None) + self.bgp_settings = kwargs.get('bgp_settings', None) + self.resource_guid = kwargs.get('resource_guid', None) + self.provisioning_state = None + self.etag = kwargs.get('etag', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_gateway_connection.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_gateway_connection.py new file mode 100644 index 000000000000..0f89bd60958d --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_gateway_connection.py @@ -0,0 +1,163 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource import Resource + + +class VirtualNetworkGatewayConnection(Resource): + """A common class for general resource information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param authorization_key: The authorizationKey. + :type authorization_key: str + :param virtual_network_gateway1: Required. The reference to virtual + network gateway resource. + :type virtual_network_gateway1: + ~azure.mgmt.network.v2018_10_01.models.VirtualNetworkGateway + :param virtual_network_gateway2: The reference to virtual network gateway + resource. + :type virtual_network_gateway2: + ~azure.mgmt.network.v2018_10_01.models.VirtualNetworkGateway + :param local_network_gateway2: The reference to local network gateway + resource. + :type local_network_gateway2: + ~azure.mgmt.network.v2018_10_01.models.LocalNetworkGateway + :param connection_type: Required. Gateway connection type. Possible values + are: 'Ipsec','Vnet2Vnet','ExpressRoute', and 'VPNClient. Possible values + include: 'IPsec', 'Vnet2Vnet', 'ExpressRoute', 'VPNClient' + :type connection_type: str or + ~azure.mgmt.network.v2018_10_01.models.VirtualNetworkGatewayConnectionType + :param connection_protocol: Connection protocol used for this connection. + Possible values include: 'IKEv2', 'IKEv1' + :type connection_protocol: str or + ~azure.mgmt.network.v2018_10_01.models.VirtualNetworkGatewayConnectionProtocol + :param routing_weight: The routing weight. + :type routing_weight: int + :param shared_key: The IPSec shared key. + :type shared_key: str + :ivar connection_status: Virtual network Gateway connection status. + Possible values are 'Unknown', 'Connecting', 'Connected' and + 'NotConnected'. Possible values include: 'Unknown', 'Connecting', + 'Connected', 'NotConnected' + :vartype connection_status: str or + ~azure.mgmt.network.v2018_10_01.models.VirtualNetworkGatewayConnectionStatus + :ivar tunnel_connection_status: Collection of all tunnels' connection + health status. + :vartype tunnel_connection_status: + list[~azure.mgmt.network.v2018_10_01.models.TunnelConnectionHealth] + :ivar egress_bytes_transferred: The egress bytes transferred in this + connection. + :vartype egress_bytes_transferred: long + :ivar ingress_bytes_transferred: The ingress bytes transferred in this + connection. + :vartype ingress_bytes_transferred: long + :param peer: The reference to peerings resource. + :type peer: ~azure.mgmt.network.v2018_10_01.models.SubResource + :param enable_bgp: EnableBgp flag + :type enable_bgp: bool + :param use_policy_based_traffic_selectors: Enable policy-based traffic + selectors. + :type use_policy_based_traffic_selectors: bool + :param ipsec_policies: The IPSec Policies to be considered by this + connection. + :type ipsec_policies: + list[~azure.mgmt.network.v2018_10_01.models.IpsecPolicy] + :param resource_guid: The resource GUID property of the + VirtualNetworkGatewayConnection resource. + :type resource_guid: str + :ivar provisioning_state: The provisioning state of the + VirtualNetworkGatewayConnection resource. Possible values are: 'Updating', + 'Deleting', and 'Failed'. + :vartype provisioning_state: str + :param express_route_gateway_bypass: Bypass ExpressRoute Gateway for data + forwarding + :type express_route_gateway_bypass: bool + :param etag: Gets a unique read-only string that changes whenever the + resource is updated. + :type etag: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'virtual_network_gateway1': {'required': True}, + 'connection_type': {'required': True}, + 'connection_status': {'readonly': True}, + 'tunnel_connection_status': {'readonly': True}, + 'egress_bytes_transferred': {'readonly': True}, + 'ingress_bytes_transferred': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'authorization_key': {'key': 'properties.authorizationKey', 'type': 'str'}, + 'virtual_network_gateway1': {'key': 'properties.virtualNetworkGateway1', 'type': 'VirtualNetworkGateway'}, + 'virtual_network_gateway2': {'key': 'properties.virtualNetworkGateway2', 'type': 'VirtualNetworkGateway'}, + 'local_network_gateway2': {'key': 'properties.localNetworkGateway2', 'type': 'LocalNetworkGateway'}, + 'connection_type': {'key': 'properties.connectionType', 'type': 'str'}, + 'connection_protocol': {'key': 'properties.connectionProtocol', 'type': 'str'}, + 'routing_weight': {'key': 'properties.routingWeight', 'type': 'int'}, + 'shared_key': {'key': 'properties.sharedKey', 'type': 'str'}, + 'connection_status': {'key': 'properties.connectionStatus', 'type': 'str'}, + 'tunnel_connection_status': {'key': 'properties.tunnelConnectionStatus', 'type': '[TunnelConnectionHealth]'}, + 'egress_bytes_transferred': {'key': 'properties.egressBytesTransferred', 'type': 'long'}, + 'ingress_bytes_transferred': {'key': 'properties.ingressBytesTransferred', 'type': 'long'}, + 'peer': {'key': 'properties.peer', 'type': 'SubResource'}, + 'enable_bgp': {'key': 'properties.enableBgp', 'type': 'bool'}, + 'use_policy_based_traffic_selectors': {'key': 'properties.usePolicyBasedTrafficSelectors', 'type': 'bool'}, + 'ipsec_policies': {'key': 'properties.ipsecPolicies', 'type': '[IpsecPolicy]'}, + 'resource_guid': {'key': 'properties.resourceGuid', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'express_route_gateway_bypass': {'key': 'properties.expressRouteGatewayBypass', 'type': 'bool'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(VirtualNetworkGatewayConnection, self).__init__(**kwargs) + self.authorization_key = kwargs.get('authorization_key', None) + self.virtual_network_gateway1 = kwargs.get('virtual_network_gateway1', None) + self.virtual_network_gateway2 = kwargs.get('virtual_network_gateway2', None) + self.local_network_gateway2 = kwargs.get('local_network_gateway2', None) + self.connection_type = kwargs.get('connection_type', None) + self.connection_protocol = kwargs.get('connection_protocol', None) + self.routing_weight = kwargs.get('routing_weight', None) + self.shared_key = kwargs.get('shared_key', None) + self.connection_status = None + self.tunnel_connection_status = None + self.egress_bytes_transferred = None + self.ingress_bytes_transferred = None + self.peer = kwargs.get('peer', None) + self.enable_bgp = kwargs.get('enable_bgp', None) + self.use_policy_based_traffic_selectors = kwargs.get('use_policy_based_traffic_selectors', None) + self.ipsec_policies = kwargs.get('ipsec_policies', None) + self.resource_guid = kwargs.get('resource_guid', None) + self.provisioning_state = None + self.express_route_gateway_bypass = kwargs.get('express_route_gateway_bypass', None) + self.etag = kwargs.get('etag', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_gateway_connection_list_entity.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_gateway_connection_list_entity.py new file mode 100644 index 000000000000..bdc46b8190e9 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_gateway_connection_list_entity.py @@ -0,0 +1,163 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource import Resource + + +class VirtualNetworkGatewayConnectionListEntity(Resource): + """A common class for general resource information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param authorization_key: The authorizationKey. + :type authorization_key: str + :param virtual_network_gateway1: Required. The reference to virtual + network gateway resource. + :type virtual_network_gateway1: + ~azure.mgmt.network.v2018_10_01.models.VirtualNetworkConnectionGatewayReference + :param virtual_network_gateway2: The reference to virtual network gateway + resource. + :type virtual_network_gateway2: + ~azure.mgmt.network.v2018_10_01.models.VirtualNetworkConnectionGatewayReference + :param local_network_gateway2: The reference to local network gateway + resource. + :type local_network_gateway2: + ~azure.mgmt.network.v2018_10_01.models.VirtualNetworkConnectionGatewayReference + :param connection_type: Required. Gateway connection type. Possible values + are: 'Ipsec','Vnet2Vnet','ExpressRoute', and 'VPNClient. Possible values + include: 'IPsec', 'Vnet2Vnet', 'ExpressRoute', 'VPNClient' + :type connection_type: str or + ~azure.mgmt.network.v2018_10_01.models.VirtualNetworkGatewayConnectionType + :param connection_protocol: Connection protocol used for this connection. + Possible values include: 'IKEv2', 'IKEv1' + :type connection_protocol: str or + ~azure.mgmt.network.v2018_10_01.models.VirtualNetworkGatewayConnectionProtocol + :param routing_weight: The routing weight. + :type routing_weight: int + :param shared_key: The IPSec shared key. + :type shared_key: str + :ivar connection_status: Virtual network Gateway connection status. + Possible values are 'Unknown', 'Connecting', 'Connected' and + 'NotConnected'. Possible values include: 'Unknown', 'Connecting', + 'Connected', 'NotConnected' + :vartype connection_status: str or + ~azure.mgmt.network.v2018_10_01.models.VirtualNetworkGatewayConnectionStatus + :ivar tunnel_connection_status: Collection of all tunnels' connection + health status. + :vartype tunnel_connection_status: + list[~azure.mgmt.network.v2018_10_01.models.TunnelConnectionHealth] + :ivar egress_bytes_transferred: The egress bytes transferred in this + connection. + :vartype egress_bytes_transferred: long + :ivar ingress_bytes_transferred: The ingress bytes transferred in this + connection. + :vartype ingress_bytes_transferred: long + :param peer: The reference to peerings resource. + :type peer: ~azure.mgmt.network.v2018_10_01.models.SubResource + :param enable_bgp: EnableBgp flag + :type enable_bgp: bool + :param use_policy_based_traffic_selectors: Enable policy-based traffic + selectors. + :type use_policy_based_traffic_selectors: bool + :param ipsec_policies: The IPSec Policies to be considered by this + connection. + :type ipsec_policies: + list[~azure.mgmt.network.v2018_10_01.models.IpsecPolicy] + :param resource_guid: The resource GUID property of the + VirtualNetworkGatewayConnection resource. + :type resource_guid: str + :ivar provisioning_state: The provisioning state of the + VirtualNetworkGatewayConnection resource. Possible values are: 'Updating', + 'Deleting', and 'Failed'. + :vartype provisioning_state: str + :param express_route_gateway_bypass: Bypass ExpressRoute Gateway for data + forwarding + :type express_route_gateway_bypass: bool + :param etag: Gets a unique read-only string that changes whenever the + resource is updated. + :type etag: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'virtual_network_gateway1': {'required': True}, + 'connection_type': {'required': True}, + 'connection_status': {'readonly': True}, + 'tunnel_connection_status': {'readonly': True}, + 'egress_bytes_transferred': {'readonly': True}, + 'ingress_bytes_transferred': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'authorization_key': {'key': 'properties.authorizationKey', 'type': 'str'}, + 'virtual_network_gateway1': {'key': 'properties.virtualNetworkGateway1', 'type': 'VirtualNetworkConnectionGatewayReference'}, + 'virtual_network_gateway2': {'key': 'properties.virtualNetworkGateway2', 'type': 'VirtualNetworkConnectionGatewayReference'}, + 'local_network_gateway2': {'key': 'properties.localNetworkGateway2', 'type': 'VirtualNetworkConnectionGatewayReference'}, + 'connection_type': {'key': 'properties.connectionType', 'type': 'str'}, + 'connection_protocol': {'key': 'properties.connectionProtocol', 'type': 'str'}, + 'routing_weight': {'key': 'properties.routingWeight', 'type': 'int'}, + 'shared_key': {'key': 'properties.sharedKey', 'type': 'str'}, + 'connection_status': {'key': 'properties.connectionStatus', 'type': 'str'}, + 'tunnel_connection_status': {'key': 'properties.tunnelConnectionStatus', 'type': '[TunnelConnectionHealth]'}, + 'egress_bytes_transferred': {'key': 'properties.egressBytesTransferred', 'type': 'long'}, + 'ingress_bytes_transferred': {'key': 'properties.ingressBytesTransferred', 'type': 'long'}, + 'peer': {'key': 'properties.peer', 'type': 'SubResource'}, + 'enable_bgp': {'key': 'properties.enableBgp', 'type': 'bool'}, + 'use_policy_based_traffic_selectors': {'key': 'properties.usePolicyBasedTrafficSelectors', 'type': 'bool'}, + 'ipsec_policies': {'key': 'properties.ipsecPolicies', 'type': '[IpsecPolicy]'}, + 'resource_guid': {'key': 'properties.resourceGuid', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'express_route_gateway_bypass': {'key': 'properties.expressRouteGatewayBypass', 'type': 'bool'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(VirtualNetworkGatewayConnectionListEntity, self).__init__(**kwargs) + self.authorization_key = kwargs.get('authorization_key', None) + self.virtual_network_gateway1 = kwargs.get('virtual_network_gateway1', None) + self.virtual_network_gateway2 = kwargs.get('virtual_network_gateway2', None) + self.local_network_gateway2 = kwargs.get('local_network_gateway2', None) + self.connection_type = kwargs.get('connection_type', None) + self.connection_protocol = kwargs.get('connection_protocol', None) + self.routing_weight = kwargs.get('routing_weight', None) + self.shared_key = kwargs.get('shared_key', None) + self.connection_status = None + self.tunnel_connection_status = None + self.egress_bytes_transferred = None + self.ingress_bytes_transferred = None + self.peer = kwargs.get('peer', None) + self.enable_bgp = kwargs.get('enable_bgp', None) + self.use_policy_based_traffic_selectors = kwargs.get('use_policy_based_traffic_selectors', None) + self.ipsec_policies = kwargs.get('ipsec_policies', None) + self.resource_guid = kwargs.get('resource_guid', None) + self.provisioning_state = None + self.express_route_gateway_bypass = kwargs.get('express_route_gateway_bypass', None) + self.etag = kwargs.get('etag', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_gateway_connection_list_entity_paged.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_gateway_connection_list_entity_paged.py new file mode 100644 index 000000000000..66bbe545e0b7 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_gateway_connection_list_entity_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class VirtualNetworkGatewayConnectionListEntityPaged(Paged): + """ + A paging container for iterating over a list of :class:`VirtualNetworkGatewayConnectionListEntity ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[VirtualNetworkGatewayConnectionListEntity]'} + } + + def __init__(self, *args, **kwargs): + + super(VirtualNetworkGatewayConnectionListEntityPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_gateway_connection_list_entity_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_gateway_connection_list_entity_py3.py new file mode 100644 index 000000000000..cdd269aebaea --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_gateway_connection_list_entity_py3.py @@ -0,0 +1,163 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource_py3 import Resource + + +class VirtualNetworkGatewayConnectionListEntity(Resource): + """A common class for general resource information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param authorization_key: The authorizationKey. + :type authorization_key: str + :param virtual_network_gateway1: Required. The reference to virtual + network gateway resource. + :type virtual_network_gateway1: + ~azure.mgmt.network.v2018_10_01.models.VirtualNetworkConnectionGatewayReference + :param virtual_network_gateway2: The reference to virtual network gateway + resource. + :type virtual_network_gateway2: + ~azure.mgmt.network.v2018_10_01.models.VirtualNetworkConnectionGatewayReference + :param local_network_gateway2: The reference to local network gateway + resource. + :type local_network_gateway2: + ~azure.mgmt.network.v2018_10_01.models.VirtualNetworkConnectionGatewayReference + :param connection_type: Required. Gateway connection type. Possible values + are: 'Ipsec','Vnet2Vnet','ExpressRoute', and 'VPNClient. Possible values + include: 'IPsec', 'Vnet2Vnet', 'ExpressRoute', 'VPNClient' + :type connection_type: str or + ~azure.mgmt.network.v2018_10_01.models.VirtualNetworkGatewayConnectionType + :param connection_protocol: Connection protocol used for this connection. + Possible values include: 'IKEv2', 'IKEv1' + :type connection_protocol: str or + ~azure.mgmt.network.v2018_10_01.models.VirtualNetworkGatewayConnectionProtocol + :param routing_weight: The routing weight. + :type routing_weight: int + :param shared_key: The IPSec shared key. + :type shared_key: str + :ivar connection_status: Virtual network Gateway connection status. + Possible values are 'Unknown', 'Connecting', 'Connected' and + 'NotConnected'. Possible values include: 'Unknown', 'Connecting', + 'Connected', 'NotConnected' + :vartype connection_status: str or + ~azure.mgmt.network.v2018_10_01.models.VirtualNetworkGatewayConnectionStatus + :ivar tunnel_connection_status: Collection of all tunnels' connection + health status. + :vartype tunnel_connection_status: + list[~azure.mgmt.network.v2018_10_01.models.TunnelConnectionHealth] + :ivar egress_bytes_transferred: The egress bytes transferred in this + connection. + :vartype egress_bytes_transferred: long + :ivar ingress_bytes_transferred: The ingress bytes transferred in this + connection. + :vartype ingress_bytes_transferred: long + :param peer: The reference to peerings resource. + :type peer: ~azure.mgmt.network.v2018_10_01.models.SubResource + :param enable_bgp: EnableBgp flag + :type enable_bgp: bool + :param use_policy_based_traffic_selectors: Enable policy-based traffic + selectors. + :type use_policy_based_traffic_selectors: bool + :param ipsec_policies: The IPSec Policies to be considered by this + connection. + :type ipsec_policies: + list[~azure.mgmt.network.v2018_10_01.models.IpsecPolicy] + :param resource_guid: The resource GUID property of the + VirtualNetworkGatewayConnection resource. + :type resource_guid: str + :ivar provisioning_state: The provisioning state of the + VirtualNetworkGatewayConnection resource. Possible values are: 'Updating', + 'Deleting', and 'Failed'. + :vartype provisioning_state: str + :param express_route_gateway_bypass: Bypass ExpressRoute Gateway for data + forwarding + :type express_route_gateway_bypass: bool + :param etag: Gets a unique read-only string that changes whenever the + resource is updated. + :type etag: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'virtual_network_gateway1': {'required': True}, + 'connection_type': {'required': True}, + 'connection_status': {'readonly': True}, + 'tunnel_connection_status': {'readonly': True}, + 'egress_bytes_transferred': {'readonly': True}, + 'ingress_bytes_transferred': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'authorization_key': {'key': 'properties.authorizationKey', 'type': 'str'}, + 'virtual_network_gateway1': {'key': 'properties.virtualNetworkGateway1', 'type': 'VirtualNetworkConnectionGatewayReference'}, + 'virtual_network_gateway2': {'key': 'properties.virtualNetworkGateway2', 'type': 'VirtualNetworkConnectionGatewayReference'}, + 'local_network_gateway2': {'key': 'properties.localNetworkGateway2', 'type': 'VirtualNetworkConnectionGatewayReference'}, + 'connection_type': {'key': 'properties.connectionType', 'type': 'str'}, + 'connection_protocol': {'key': 'properties.connectionProtocol', 'type': 'str'}, + 'routing_weight': {'key': 'properties.routingWeight', 'type': 'int'}, + 'shared_key': {'key': 'properties.sharedKey', 'type': 'str'}, + 'connection_status': {'key': 'properties.connectionStatus', 'type': 'str'}, + 'tunnel_connection_status': {'key': 'properties.tunnelConnectionStatus', 'type': '[TunnelConnectionHealth]'}, + 'egress_bytes_transferred': {'key': 'properties.egressBytesTransferred', 'type': 'long'}, + 'ingress_bytes_transferred': {'key': 'properties.ingressBytesTransferred', 'type': 'long'}, + 'peer': {'key': 'properties.peer', 'type': 'SubResource'}, + 'enable_bgp': {'key': 'properties.enableBgp', 'type': 'bool'}, + 'use_policy_based_traffic_selectors': {'key': 'properties.usePolicyBasedTrafficSelectors', 'type': 'bool'}, + 'ipsec_policies': {'key': 'properties.ipsecPolicies', 'type': '[IpsecPolicy]'}, + 'resource_guid': {'key': 'properties.resourceGuid', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'express_route_gateway_bypass': {'key': 'properties.expressRouteGatewayBypass', 'type': 'bool'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, *, virtual_network_gateway1, connection_type, id: str=None, location: str=None, tags=None, authorization_key: str=None, virtual_network_gateway2=None, local_network_gateway2=None, connection_protocol=None, routing_weight: int=None, shared_key: str=None, peer=None, enable_bgp: bool=None, use_policy_based_traffic_selectors: bool=None, ipsec_policies=None, resource_guid: str=None, express_route_gateway_bypass: bool=None, etag: str=None, **kwargs) -> None: + super(VirtualNetworkGatewayConnectionListEntity, self).__init__(id=id, location=location, tags=tags, **kwargs) + self.authorization_key = authorization_key + self.virtual_network_gateway1 = virtual_network_gateway1 + self.virtual_network_gateway2 = virtual_network_gateway2 + self.local_network_gateway2 = local_network_gateway2 + self.connection_type = connection_type + self.connection_protocol = connection_protocol + self.routing_weight = routing_weight + self.shared_key = shared_key + self.connection_status = None + self.tunnel_connection_status = None + self.egress_bytes_transferred = None + self.ingress_bytes_transferred = None + self.peer = peer + self.enable_bgp = enable_bgp + self.use_policy_based_traffic_selectors = use_policy_based_traffic_selectors + self.ipsec_policies = ipsec_policies + self.resource_guid = resource_guid + self.provisioning_state = None + self.express_route_gateway_bypass = express_route_gateway_bypass + self.etag = etag diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_gateway_connection_paged.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_gateway_connection_paged.py new file mode 100644 index 000000000000..826d7170e733 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_gateway_connection_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class VirtualNetworkGatewayConnectionPaged(Paged): + """ + A paging container for iterating over a list of :class:`VirtualNetworkGatewayConnection ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[VirtualNetworkGatewayConnection]'} + } + + def __init__(self, *args, **kwargs): + + super(VirtualNetworkGatewayConnectionPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_gateway_connection_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_gateway_connection_py3.py new file mode 100644 index 000000000000..f012d939c9a4 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_gateway_connection_py3.py @@ -0,0 +1,163 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource_py3 import Resource + + +class VirtualNetworkGatewayConnection(Resource): + """A common class for general resource information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param authorization_key: The authorizationKey. + :type authorization_key: str + :param virtual_network_gateway1: Required. The reference to virtual + network gateway resource. + :type virtual_network_gateway1: + ~azure.mgmt.network.v2018_10_01.models.VirtualNetworkGateway + :param virtual_network_gateway2: The reference to virtual network gateway + resource. + :type virtual_network_gateway2: + ~azure.mgmt.network.v2018_10_01.models.VirtualNetworkGateway + :param local_network_gateway2: The reference to local network gateway + resource. + :type local_network_gateway2: + ~azure.mgmt.network.v2018_10_01.models.LocalNetworkGateway + :param connection_type: Required. Gateway connection type. Possible values + are: 'Ipsec','Vnet2Vnet','ExpressRoute', and 'VPNClient. Possible values + include: 'IPsec', 'Vnet2Vnet', 'ExpressRoute', 'VPNClient' + :type connection_type: str or + ~azure.mgmt.network.v2018_10_01.models.VirtualNetworkGatewayConnectionType + :param connection_protocol: Connection protocol used for this connection. + Possible values include: 'IKEv2', 'IKEv1' + :type connection_protocol: str or + ~azure.mgmt.network.v2018_10_01.models.VirtualNetworkGatewayConnectionProtocol + :param routing_weight: The routing weight. + :type routing_weight: int + :param shared_key: The IPSec shared key. + :type shared_key: str + :ivar connection_status: Virtual network Gateway connection status. + Possible values are 'Unknown', 'Connecting', 'Connected' and + 'NotConnected'. Possible values include: 'Unknown', 'Connecting', + 'Connected', 'NotConnected' + :vartype connection_status: str or + ~azure.mgmt.network.v2018_10_01.models.VirtualNetworkGatewayConnectionStatus + :ivar tunnel_connection_status: Collection of all tunnels' connection + health status. + :vartype tunnel_connection_status: + list[~azure.mgmt.network.v2018_10_01.models.TunnelConnectionHealth] + :ivar egress_bytes_transferred: The egress bytes transferred in this + connection. + :vartype egress_bytes_transferred: long + :ivar ingress_bytes_transferred: The ingress bytes transferred in this + connection. + :vartype ingress_bytes_transferred: long + :param peer: The reference to peerings resource. + :type peer: ~azure.mgmt.network.v2018_10_01.models.SubResource + :param enable_bgp: EnableBgp flag + :type enable_bgp: bool + :param use_policy_based_traffic_selectors: Enable policy-based traffic + selectors. + :type use_policy_based_traffic_selectors: bool + :param ipsec_policies: The IPSec Policies to be considered by this + connection. + :type ipsec_policies: + list[~azure.mgmt.network.v2018_10_01.models.IpsecPolicy] + :param resource_guid: The resource GUID property of the + VirtualNetworkGatewayConnection resource. + :type resource_guid: str + :ivar provisioning_state: The provisioning state of the + VirtualNetworkGatewayConnection resource. Possible values are: 'Updating', + 'Deleting', and 'Failed'. + :vartype provisioning_state: str + :param express_route_gateway_bypass: Bypass ExpressRoute Gateway for data + forwarding + :type express_route_gateway_bypass: bool + :param etag: Gets a unique read-only string that changes whenever the + resource is updated. + :type etag: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'virtual_network_gateway1': {'required': True}, + 'connection_type': {'required': True}, + 'connection_status': {'readonly': True}, + 'tunnel_connection_status': {'readonly': True}, + 'egress_bytes_transferred': {'readonly': True}, + 'ingress_bytes_transferred': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'authorization_key': {'key': 'properties.authorizationKey', 'type': 'str'}, + 'virtual_network_gateway1': {'key': 'properties.virtualNetworkGateway1', 'type': 'VirtualNetworkGateway'}, + 'virtual_network_gateway2': {'key': 'properties.virtualNetworkGateway2', 'type': 'VirtualNetworkGateway'}, + 'local_network_gateway2': {'key': 'properties.localNetworkGateway2', 'type': 'LocalNetworkGateway'}, + 'connection_type': {'key': 'properties.connectionType', 'type': 'str'}, + 'connection_protocol': {'key': 'properties.connectionProtocol', 'type': 'str'}, + 'routing_weight': {'key': 'properties.routingWeight', 'type': 'int'}, + 'shared_key': {'key': 'properties.sharedKey', 'type': 'str'}, + 'connection_status': {'key': 'properties.connectionStatus', 'type': 'str'}, + 'tunnel_connection_status': {'key': 'properties.tunnelConnectionStatus', 'type': '[TunnelConnectionHealth]'}, + 'egress_bytes_transferred': {'key': 'properties.egressBytesTransferred', 'type': 'long'}, + 'ingress_bytes_transferred': {'key': 'properties.ingressBytesTransferred', 'type': 'long'}, + 'peer': {'key': 'properties.peer', 'type': 'SubResource'}, + 'enable_bgp': {'key': 'properties.enableBgp', 'type': 'bool'}, + 'use_policy_based_traffic_selectors': {'key': 'properties.usePolicyBasedTrafficSelectors', 'type': 'bool'}, + 'ipsec_policies': {'key': 'properties.ipsecPolicies', 'type': '[IpsecPolicy]'}, + 'resource_guid': {'key': 'properties.resourceGuid', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'express_route_gateway_bypass': {'key': 'properties.expressRouteGatewayBypass', 'type': 'bool'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, *, virtual_network_gateway1, connection_type, id: str=None, location: str=None, tags=None, authorization_key: str=None, virtual_network_gateway2=None, local_network_gateway2=None, connection_protocol=None, routing_weight: int=None, shared_key: str=None, peer=None, enable_bgp: bool=None, use_policy_based_traffic_selectors: bool=None, ipsec_policies=None, resource_guid: str=None, express_route_gateway_bypass: bool=None, etag: str=None, **kwargs) -> None: + super(VirtualNetworkGatewayConnection, self).__init__(id=id, location=location, tags=tags, **kwargs) + self.authorization_key = authorization_key + self.virtual_network_gateway1 = virtual_network_gateway1 + self.virtual_network_gateway2 = virtual_network_gateway2 + self.local_network_gateway2 = local_network_gateway2 + self.connection_type = connection_type + self.connection_protocol = connection_protocol + self.routing_weight = routing_weight + self.shared_key = shared_key + self.connection_status = None + self.tunnel_connection_status = None + self.egress_bytes_transferred = None + self.ingress_bytes_transferred = None + self.peer = peer + self.enable_bgp = enable_bgp + self.use_policy_based_traffic_selectors = use_policy_based_traffic_selectors + self.ipsec_policies = ipsec_policies + self.resource_guid = resource_guid + self.provisioning_state = None + self.express_route_gateway_bypass = express_route_gateway_bypass + self.etag = etag diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_gateway_ip_configuration.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_gateway_ip_configuration.py new file mode 100644 index 000000000000..cd3f7a9c1936 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_gateway_ip_configuration.py @@ -0,0 +1,65 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource import SubResource + + +class VirtualNetworkGatewayIPConfiguration(SubResource): + """IP configuration for virtual network gateway. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :param private_ip_allocation_method: The private IP allocation method. + Possible values are: 'Static' and 'Dynamic'. Possible values include: + 'Static', 'Dynamic' + :type private_ip_allocation_method: str or + ~azure.mgmt.network.v2018_10_01.models.IPAllocationMethod + :param subnet: The reference of the subnet resource. + :type subnet: ~azure.mgmt.network.v2018_10_01.models.SubResource + :param public_ip_address: The reference of the public IP resource. + :type public_ip_address: + ~azure.mgmt.network.v2018_10_01.models.SubResource + :ivar provisioning_state: The provisioning state of the public IP + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :vartype provisioning_state: str + :param name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'private_ip_allocation_method': {'key': 'properties.privateIPAllocationMethod', 'type': 'str'}, + 'subnet': {'key': 'properties.subnet', 'type': 'SubResource'}, + 'public_ip_address': {'key': 'properties.publicIPAddress', 'type': 'SubResource'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(VirtualNetworkGatewayIPConfiguration, self).__init__(**kwargs) + self.private_ip_allocation_method = kwargs.get('private_ip_allocation_method', None) + self.subnet = kwargs.get('subnet', None) + self.public_ip_address = kwargs.get('public_ip_address', None) + self.provisioning_state = None + self.name = kwargs.get('name', None) + self.etag = kwargs.get('etag', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_gateway_ip_configuration_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_gateway_ip_configuration_py3.py new file mode 100644 index 000000000000..c306efbf3d2c --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_gateway_ip_configuration_py3.py @@ -0,0 +1,65 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource_py3 import SubResource + + +class VirtualNetworkGatewayIPConfiguration(SubResource): + """IP configuration for virtual network gateway. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :param private_ip_allocation_method: The private IP allocation method. + Possible values are: 'Static' and 'Dynamic'. Possible values include: + 'Static', 'Dynamic' + :type private_ip_allocation_method: str or + ~azure.mgmt.network.v2018_10_01.models.IPAllocationMethod + :param subnet: The reference of the subnet resource. + :type subnet: ~azure.mgmt.network.v2018_10_01.models.SubResource + :param public_ip_address: The reference of the public IP resource. + :type public_ip_address: + ~azure.mgmt.network.v2018_10_01.models.SubResource + :ivar provisioning_state: The provisioning state of the public IP + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :vartype provisioning_state: str + :param name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'private_ip_allocation_method': {'key': 'properties.privateIPAllocationMethod', 'type': 'str'}, + 'subnet': {'key': 'properties.subnet', 'type': 'SubResource'}, + 'public_ip_address': {'key': 'properties.publicIPAddress', 'type': 'SubResource'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, private_ip_allocation_method=None, subnet=None, public_ip_address=None, name: str=None, etag: str=None, **kwargs) -> None: + super(VirtualNetworkGatewayIPConfiguration, self).__init__(id=id, **kwargs) + self.private_ip_allocation_method = private_ip_allocation_method + self.subnet = subnet + self.public_ip_address = public_ip_address + self.provisioning_state = None + self.name = name + self.etag = etag diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_gateway_paged.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_gateway_paged.py new file mode 100644 index 000000000000..b68cd1b8ec5a --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_gateway_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class VirtualNetworkGatewayPaged(Paged): + """ + A paging container for iterating over a list of :class:`VirtualNetworkGateway ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[VirtualNetworkGateway]'} + } + + def __init__(self, *args, **kwargs): + + super(VirtualNetworkGatewayPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_gateway_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_gateway_py3.py new file mode 100644 index 000000000000..e2710365e416 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_gateway_py3.py @@ -0,0 +1,114 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource_py3 import Resource + + +class VirtualNetworkGateway(Resource): + """A common class for general resource information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param ip_configurations: IP configurations for virtual network gateway. + :type ip_configurations: + list[~azure.mgmt.network.v2018_10_01.models.VirtualNetworkGatewayIPConfiguration] + :param gateway_type: The type of this virtual network gateway. Possible + values are: 'Vpn' and 'ExpressRoute'. Possible values include: 'Vpn', + 'ExpressRoute' + :type gateway_type: str or + ~azure.mgmt.network.v2018_10_01.models.VirtualNetworkGatewayType + :param vpn_type: The type of this virtual network gateway. Possible values + are: 'PolicyBased' and 'RouteBased'. Possible values include: + 'PolicyBased', 'RouteBased' + :type vpn_type: str or ~azure.mgmt.network.v2018_10_01.models.VpnType + :param enable_bgp: Whether BGP is enabled for this virtual network gateway + or not. + :type enable_bgp: bool + :param active_active: ActiveActive flag + :type active_active: bool + :param gateway_default_site: The reference of the LocalNetworkGateway + resource which represents local network site having default routes. Assign + Null value in case of removing existing default site setting. + :type gateway_default_site: + ~azure.mgmt.network.v2018_10_01.models.SubResource + :param sku: The reference of the VirtualNetworkGatewaySku resource which + represents the SKU selected for Virtual network gateway. + :type sku: ~azure.mgmt.network.v2018_10_01.models.VirtualNetworkGatewaySku + :param vpn_client_configuration: The reference of the + VpnClientConfiguration resource which represents the P2S VpnClient + configurations. + :type vpn_client_configuration: + ~azure.mgmt.network.v2018_10_01.models.VpnClientConfiguration + :param bgp_settings: Virtual network gateway's BGP speaker settings. + :type bgp_settings: ~azure.mgmt.network.v2018_10_01.models.BgpSettings + :param resource_guid: The resource GUID property of the + VirtualNetworkGateway resource. + :type resource_guid: str + :ivar provisioning_state: The provisioning state of the + VirtualNetworkGateway resource. Possible values are: 'Updating', + 'Deleting', and 'Failed'. + :vartype provisioning_state: str + :param etag: Gets a unique read-only string that changes whenever the + resource is updated. + :type etag: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'ip_configurations': {'key': 'properties.ipConfigurations', 'type': '[VirtualNetworkGatewayIPConfiguration]'}, + 'gateway_type': {'key': 'properties.gatewayType', 'type': 'str'}, + 'vpn_type': {'key': 'properties.vpnType', 'type': 'str'}, + 'enable_bgp': {'key': 'properties.enableBgp', 'type': 'bool'}, + 'active_active': {'key': 'properties.activeActive', 'type': 'bool'}, + 'gateway_default_site': {'key': 'properties.gatewayDefaultSite', 'type': 'SubResource'}, + 'sku': {'key': 'properties.sku', 'type': 'VirtualNetworkGatewaySku'}, + 'vpn_client_configuration': {'key': 'properties.vpnClientConfiguration', 'type': 'VpnClientConfiguration'}, + 'bgp_settings': {'key': 'properties.bgpSettings', 'type': 'BgpSettings'}, + 'resource_guid': {'key': 'properties.resourceGuid', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, location: str=None, tags=None, ip_configurations=None, gateway_type=None, vpn_type=None, enable_bgp: bool=None, active_active: bool=None, gateway_default_site=None, sku=None, vpn_client_configuration=None, bgp_settings=None, resource_guid: str=None, etag: str=None, **kwargs) -> None: + super(VirtualNetworkGateway, self).__init__(id=id, location=location, tags=tags, **kwargs) + self.ip_configurations = ip_configurations + self.gateway_type = gateway_type + self.vpn_type = vpn_type + self.enable_bgp = enable_bgp + self.active_active = active_active + self.gateway_default_site = gateway_default_site + self.sku = sku + self.vpn_client_configuration = vpn_client_configuration + self.bgp_settings = bgp_settings + self.resource_guid = resource_guid + self.provisioning_state = None + self.etag = etag diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_gateway_sku.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_gateway_sku.py new file mode 100644 index 000000000000..6d5dea7618e7 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_gateway_sku.py @@ -0,0 +1,44 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class VirtualNetworkGatewaySku(Model): + """VirtualNetworkGatewaySku details. + + :param name: Gateway SKU name. Possible values include: 'Basic', + 'HighPerformance', 'Standard', 'UltraPerformance', 'VpnGw1', 'VpnGw2', + 'VpnGw3', 'VpnGw1AZ', 'VpnGw2AZ', 'VpnGw3AZ', 'ErGw1AZ', 'ErGw2AZ', + 'ErGw3AZ' + :type name: str or + ~azure.mgmt.network.v2018_10_01.models.VirtualNetworkGatewaySkuName + :param tier: Gateway SKU tier. Possible values include: 'Basic', + 'HighPerformance', 'Standard', 'UltraPerformance', 'VpnGw1', 'VpnGw2', + 'VpnGw3', 'VpnGw1AZ', 'VpnGw2AZ', 'VpnGw3AZ', 'ErGw1AZ', 'ErGw2AZ', + 'ErGw3AZ' + :type tier: str or + ~azure.mgmt.network.v2018_10_01.models.VirtualNetworkGatewaySkuTier + :param capacity: The capacity. + :type capacity: int + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'tier': {'key': 'tier', 'type': 'str'}, + 'capacity': {'key': 'capacity', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(VirtualNetworkGatewaySku, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.tier = kwargs.get('tier', None) + self.capacity = kwargs.get('capacity', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_gateway_sku_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_gateway_sku_py3.py new file mode 100644 index 000000000000..bbb0af9e27b2 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_gateway_sku_py3.py @@ -0,0 +1,44 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class VirtualNetworkGatewaySku(Model): + """VirtualNetworkGatewaySku details. + + :param name: Gateway SKU name. Possible values include: 'Basic', + 'HighPerformance', 'Standard', 'UltraPerformance', 'VpnGw1', 'VpnGw2', + 'VpnGw3', 'VpnGw1AZ', 'VpnGw2AZ', 'VpnGw3AZ', 'ErGw1AZ', 'ErGw2AZ', + 'ErGw3AZ' + :type name: str or + ~azure.mgmt.network.v2018_10_01.models.VirtualNetworkGatewaySkuName + :param tier: Gateway SKU tier. Possible values include: 'Basic', + 'HighPerformance', 'Standard', 'UltraPerformance', 'VpnGw1', 'VpnGw2', + 'VpnGw3', 'VpnGw1AZ', 'VpnGw2AZ', 'VpnGw3AZ', 'ErGw1AZ', 'ErGw2AZ', + 'ErGw3AZ' + :type tier: str or + ~azure.mgmt.network.v2018_10_01.models.VirtualNetworkGatewaySkuTier + :param capacity: The capacity. + :type capacity: int + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'tier': {'key': 'tier', 'type': 'str'}, + 'capacity': {'key': 'capacity', 'type': 'int'}, + } + + def __init__(self, *, name=None, tier=None, capacity: int=None, **kwargs) -> None: + super(VirtualNetworkGatewaySku, self).__init__(**kwargs) + self.name = name + self.tier = tier + self.capacity = capacity diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_paged.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_paged.py new file mode 100644 index 000000000000..2756a4386b13 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class VirtualNetworkPaged(Paged): + """ + A paging container for iterating over a list of :class:`VirtualNetwork ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[VirtualNetwork]'} + } + + def __init__(self, *args, **kwargs): + + super(VirtualNetworkPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_peering.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_peering.py new file mode 100644 index 000000000000..b3927e03aee9 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_peering.py @@ -0,0 +1,86 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource import SubResource + + +class VirtualNetworkPeering(SubResource): + """Peerings in a virtual network resource. + + :param id: Resource ID. + :type id: str + :param allow_virtual_network_access: Whether the VMs in the linked virtual + network space would be able to access all the VMs in local Virtual network + space. + :type allow_virtual_network_access: bool + :param allow_forwarded_traffic: Whether the forwarded traffic from the VMs + in the remote virtual network will be allowed/disallowed. + :type allow_forwarded_traffic: bool + :param allow_gateway_transit: If gateway links can be used in remote + virtual networking to link to this virtual network. + :type allow_gateway_transit: bool + :param use_remote_gateways: If remote gateways can be used on this virtual + network. If the flag is set to true, and allowGatewayTransit on remote + peering is also true, virtual network will use gateways of remote virtual + network for transit. Only one peering can have this flag set to true. This + flag cannot be set if virtual network already has a gateway. + :type use_remote_gateways: bool + :param remote_virtual_network: The reference of the remote virtual + network. The remote virtual network can be in the same or different region + (preview). See here to register for the preview and learn more + (https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-create-peering). + :type remote_virtual_network: + ~azure.mgmt.network.v2018_10_01.models.SubResource + :param remote_address_space: The reference of the remote virtual network + address space. + :type remote_address_space: + ~azure.mgmt.network.v2018_10_01.models.AddressSpace + :param peering_state: The status of the virtual network peering. Possible + values are 'Initiated', 'Connected', and 'Disconnected'. Possible values + include: 'Initiated', 'Connected', 'Disconnected' + :type peering_state: str or + ~azure.mgmt.network.v2018_10_01.models.VirtualNetworkPeeringState + :param provisioning_state: The provisioning state of the resource. + :type provisioning_state: str + :param name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'allow_virtual_network_access': {'key': 'properties.allowVirtualNetworkAccess', 'type': 'bool'}, + 'allow_forwarded_traffic': {'key': 'properties.allowForwardedTraffic', 'type': 'bool'}, + 'allow_gateway_transit': {'key': 'properties.allowGatewayTransit', 'type': 'bool'}, + 'use_remote_gateways': {'key': 'properties.useRemoteGateways', 'type': 'bool'}, + 'remote_virtual_network': {'key': 'properties.remoteVirtualNetwork', 'type': 'SubResource'}, + 'remote_address_space': {'key': 'properties.remoteAddressSpace', 'type': 'AddressSpace'}, + 'peering_state': {'key': 'properties.peeringState', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(VirtualNetworkPeering, self).__init__(**kwargs) + self.allow_virtual_network_access = kwargs.get('allow_virtual_network_access', None) + self.allow_forwarded_traffic = kwargs.get('allow_forwarded_traffic', None) + self.allow_gateway_transit = kwargs.get('allow_gateway_transit', None) + self.use_remote_gateways = kwargs.get('use_remote_gateways', None) + self.remote_virtual_network = kwargs.get('remote_virtual_network', None) + self.remote_address_space = kwargs.get('remote_address_space', None) + self.peering_state = kwargs.get('peering_state', None) + self.provisioning_state = kwargs.get('provisioning_state', None) + self.name = kwargs.get('name', None) + self.etag = kwargs.get('etag', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_peering_paged.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_peering_paged.py new file mode 100644 index 000000000000..224a40ee163a --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_peering_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class VirtualNetworkPeeringPaged(Paged): + """ + A paging container for iterating over a list of :class:`VirtualNetworkPeering ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[VirtualNetworkPeering]'} + } + + def __init__(self, *args, **kwargs): + + super(VirtualNetworkPeeringPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_peering_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_peering_py3.py new file mode 100644 index 000000000000..9fddb48cb51a --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_peering_py3.py @@ -0,0 +1,86 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource_py3 import SubResource + + +class VirtualNetworkPeering(SubResource): + """Peerings in a virtual network resource. + + :param id: Resource ID. + :type id: str + :param allow_virtual_network_access: Whether the VMs in the linked virtual + network space would be able to access all the VMs in local Virtual network + space. + :type allow_virtual_network_access: bool + :param allow_forwarded_traffic: Whether the forwarded traffic from the VMs + in the remote virtual network will be allowed/disallowed. + :type allow_forwarded_traffic: bool + :param allow_gateway_transit: If gateway links can be used in remote + virtual networking to link to this virtual network. + :type allow_gateway_transit: bool + :param use_remote_gateways: If remote gateways can be used on this virtual + network. If the flag is set to true, and allowGatewayTransit on remote + peering is also true, virtual network will use gateways of remote virtual + network for transit. Only one peering can have this flag set to true. This + flag cannot be set if virtual network already has a gateway. + :type use_remote_gateways: bool + :param remote_virtual_network: The reference of the remote virtual + network. The remote virtual network can be in the same or different region + (preview). See here to register for the preview and learn more + (https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-create-peering). + :type remote_virtual_network: + ~azure.mgmt.network.v2018_10_01.models.SubResource + :param remote_address_space: The reference of the remote virtual network + address space. + :type remote_address_space: + ~azure.mgmt.network.v2018_10_01.models.AddressSpace + :param peering_state: The status of the virtual network peering. Possible + values are 'Initiated', 'Connected', and 'Disconnected'. Possible values + include: 'Initiated', 'Connected', 'Disconnected' + :type peering_state: str or + ~azure.mgmt.network.v2018_10_01.models.VirtualNetworkPeeringState + :param provisioning_state: The provisioning state of the resource. + :type provisioning_state: str + :param name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'allow_virtual_network_access': {'key': 'properties.allowVirtualNetworkAccess', 'type': 'bool'}, + 'allow_forwarded_traffic': {'key': 'properties.allowForwardedTraffic', 'type': 'bool'}, + 'allow_gateway_transit': {'key': 'properties.allowGatewayTransit', 'type': 'bool'}, + 'use_remote_gateways': {'key': 'properties.useRemoteGateways', 'type': 'bool'}, + 'remote_virtual_network': {'key': 'properties.remoteVirtualNetwork', 'type': 'SubResource'}, + 'remote_address_space': {'key': 'properties.remoteAddressSpace', 'type': 'AddressSpace'}, + 'peering_state': {'key': 'properties.peeringState', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, allow_virtual_network_access: bool=None, allow_forwarded_traffic: bool=None, allow_gateway_transit: bool=None, use_remote_gateways: bool=None, remote_virtual_network=None, remote_address_space=None, peering_state=None, provisioning_state: str=None, name: str=None, etag: str=None, **kwargs) -> None: + super(VirtualNetworkPeering, self).__init__(id=id, **kwargs) + self.allow_virtual_network_access = allow_virtual_network_access + self.allow_forwarded_traffic = allow_forwarded_traffic + self.allow_gateway_transit = allow_gateway_transit + self.use_remote_gateways = use_remote_gateways + self.remote_virtual_network = remote_virtual_network + self.remote_address_space = remote_address_space + self.peering_state = peering_state + self.provisioning_state = provisioning_state + self.name = name + self.etag = etag diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_py3.py new file mode 100644 index 000000000000..574f789f31c5 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_py3.py @@ -0,0 +1,98 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource_py3 import Resource + + +class VirtualNetwork(Resource): + """Virtual Network resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param address_space: The AddressSpace that contains an array of IP + address ranges that can be used by subnets. + :type address_space: ~azure.mgmt.network.v2018_10_01.models.AddressSpace + :param dhcp_options: The dhcpOptions that contains an array of DNS servers + available to VMs deployed in the virtual network. + :type dhcp_options: ~azure.mgmt.network.v2018_10_01.models.DhcpOptions + :param subnets: A list of subnets in a Virtual Network. + :type subnets: list[~azure.mgmt.network.v2018_10_01.models.Subnet] + :param virtual_network_peerings: A list of peerings in a Virtual Network. + :type virtual_network_peerings: + list[~azure.mgmt.network.v2018_10_01.models.VirtualNetworkPeering] + :param resource_guid: The resourceGuid property of the Virtual Network + resource. + :type resource_guid: str + :param provisioning_state: The provisioning state of the PublicIP + resource. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :type provisioning_state: str + :param enable_ddos_protection: Indicates if DDoS protection is enabled for + all the protected resources in the virtual network. It requires a DDoS + protection plan associated with the resource. Default value: False . + :type enable_ddos_protection: bool + :param enable_vm_protection: Indicates if VM protection is enabled for all + the subnets in the virtual network. Default value: False . + :type enable_vm_protection: bool + :param ddos_protection_plan: The DDoS protection plan associated with the + virtual network. + :type ddos_protection_plan: + ~azure.mgmt.network.v2018_10_01.models.SubResource + :param etag: Gets a unique read-only string that changes whenever the + resource is updated. + :type etag: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'address_space': {'key': 'properties.addressSpace', 'type': 'AddressSpace'}, + 'dhcp_options': {'key': 'properties.dhcpOptions', 'type': 'DhcpOptions'}, + 'subnets': {'key': 'properties.subnets', 'type': '[Subnet]'}, + 'virtual_network_peerings': {'key': 'properties.virtualNetworkPeerings', 'type': '[VirtualNetworkPeering]'}, + 'resource_guid': {'key': 'properties.resourceGuid', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'enable_ddos_protection': {'key': 'properties.enableDdosProtection', 'type': 'bool'}, + 'enable_vm_protection': {'key': 'properties.enableVmProtection', 'type': 'bool'}, + 'ddos_protection_plan': {'key': 'properties.ddosProtectionPlan', 'type': 'SubResource'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, location: str=None, tags=None, address_space=None, dhcp_options=None, subnets=None, virtual_network_peerings=None, resource_guid: str=None, provisioning_state: str=None, enable_ddos_protection: bool=False, enable_vm_protection: bool=False, ddos_protection_plan=None, etag: str=None, **kwargs) -> None: + super(VirtualNetwork, self).__init__(id=id, location=location, tags=tags, **kwargs) + self.address_space = address_space + self.dhcp_options = dhcp_options + self.subnets = subnets + self.virtual_network_peerings = virtual_network_peerings + self.resource_guid = resource_guid + self.provisioning_state = provisioning_state + self.enable_ddos_protection = enable_ddos_protection + self.enable_vm_protection = enable_vm_protection + self.ddos_protection_plan = ddos_protection_plan + self.etag = etag diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_tap.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_tap.py new file mode 100644 index 000000000000..98f5fac02fd0 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_tap.py @@ -0,0 +1,88 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource import Resource + + +class VirtualNetworkTap(Resource): + """Virtual Network Tap resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :ivar network_interface_tap_configurations: Specifies the list of resource + IDs for the network interface IP configuration that needs to be tapped. + :vartype network_interface_tap_configurations: + list[~azure.mgmt.network.v2018_10_01.models.NetworkInterfaceTapConfiguration] + :ivar resource_guid: The resourceGuid property of the virtual network tap. + :vartype resource_guid: str + :ivar provisioning_state: The provisioning state of the virtual network + tap. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :vartype provisioning_state: str + :param destination_network_interface_ip_configuration: The reference to + the private IP Address of the collector nic that will receive the tap + :type destination_network_interface_ip_configuration: + ~azure.mgmt.network.v2018_10_01.models.NetworkInterfaceIPConfiguration + :param destination_load_balancer_front_end_ip_configuration: The reference + to the private IP address on the internal Load Balancer that will receive + the tap + :type destination_load_balancer_front_end_ip_configuration: + ~azure.mgmt.network.v2018_10_01.models.FrontendIPConfiguration + :param destination_port: The VXLAN destination port that will receive the + tapped traffic. + :type destination_port: int + :param etag: Gets a unique read-only string that changes whenever the + resource is updated. + :type etag: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'network_interface_tap_configurations': {'readonly': True}, + 'resource_guid': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'network_interface_tap_configurations': {'key': 'properties.networkInterfaceTapConfigurations', 'type': '[NetworkInterfaceTapConfiguration]'}, + 'resource_guid': {'key': 'properties.resourceGuid', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'destination_network_interface_ip_configuration': {'key': 'properties.destinationNetworkInterfaceIPConfiguration', 'type': 'NetworkInterfaceIPConfiguration'}, + 'destination_load_balancer_front_end_ip_configuration': {'key': 'properties.destinationLoadBalancerFrontEndIPConfiguration', 'type': 'FrontendIPConfiguration'}, + 'destination_port': {'key': 'properties.destinationPort', 'type': 'int'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(VirtualNetworkTap, self).__init__(**kwargs) + self.network_interface_tap_configurations = None + self.resource_guid = None + self.provisioning_state = None + self.destination_network_interface_ip_configuration = kwargs.get('destination_network_interface_ip_configuration', None) + self.destination_load_balancer_front_end_ip_configuration = kwargs.get('destination_load_balancer_front_end_ip_configuration', None) + self.destination_port = kwargs.get('destination_port', None) + self.etag = kwargs.get('etag', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_tap_paged.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_tap_paged.py new file mode 100644 index 000000000000..f7839fda54de --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_tap_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class VirtualNetworkTapPaged(Paged): + """ + A paging container for iterating over a list of :class:`VirtualNetworkTap ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[VirtualNetworkTap]'} + } + + def __init__(self, *args, **kwargs): + + super(VirtualNetworkTapPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_tap_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_tap_py3.py new file mode 100644 index 000000000000..a715bc8a22c5 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_tap_py3.py @@ -0,0 +1,88 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource_py3 import Resource + + +class VirtualNetworkTap(Resource): + """Virtual Network Tap resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :ivar network_interface_tap_configurations: Specifies the list of resource + IDs for the network interface IP configuration that needs to be tapped. + :vartype network_interface_tap_configurations: + list[~azure.mgmt.network.v2018_10_01.models.NetworkInterfaceTapConfiguration] + :ivar resource_guid: The resourceGuid property of the virtual network tap. + :vartype resource_guid: str + :ivar provisioning_state: The provisioning state of the virtual network + tap. Possible values are: 'Updating', 'Deleting', and 'Failed'. + :vartype provisioning_state: str + :param destination_network_interface_ip_configuration: The reference to + the private IP Address of the collector nic that will receive the tap + :type destination_network_interface_ip_configuration: + ~azure.mgmt.network.v2018_10_01.models.NetworkInterfaceIPConfiguration + :param destination_load_balancer_front_end_ip_configuration: The reference + to the private IP address on the internal Load Balancer that will receive + the tap + :type destination_load_balancer_front_end_ip_configuration: + ~azure.mgmt.network.v2018_10_01.models.FrontendIPConfiguration + :param destination_port: The VXLAN destination port that will receive the + tapped traffic. + :type destination_port: int + :param etag: Gets a unique read-only string that changes whenever the + resource is updated. + :type etag: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'network_interface_tap_configurations': {'readonly': True}, + 'resource_guid': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'network_interface_tap_configurations': {'key': 'properties.networkInterfaceTapConfigurations', 'type': '[NetworkInterfaceTapConfiguration]'}, + 'resource_guid': {'key': 'properties.resourceGuid', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'destination_network_interface_ip_configuration': {'key': 'properties.destinationNetworkInterfaceIPConfiguration', 'type': 'NetworkInterfaceIPConfiguration'}, + 'destination_load_balancer_front_end_ip_configuration': {'key': 'properties.destinationLoadBalancerFrontEndIPConfiguration', 'type': 'FrontendIPConfiguration'}, + 'destination_port': {'key': 'properties.destinationPort', 'type': 'int'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, location: str=None, tags=None, destination_network_interface_ip_configuration=None, destination_load_balancer_front_end_ip_configuration=None, destination_port: int=None, etag: str=None, **kwargs) -> None: + super(VirtualNetworkTap, self).__init__(id=id, location=location, tags=tags, **kwargs) + self.network_interface_tap_configurations = None + self.resource_guid = None + self.provisioning_state = None + self.destination_network_interface_ip_configuration = destination_network_interface_ip_configuration + self.destination_load_balancer_front_end_ip_configuration = destination_load_balancer_front_end_ip_configuration + self.destination_port = destination_port + self.etag = etag diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_usage.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_usage.py new file mode 100644 index 000000000000..f0c48b1458a6 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_usage.py @@ -0,0 +1,56 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class VirtualNetworkUsage(Model): + """Usage details for subnet. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar current_value: Indicates number of IPs used from the Subnet. + :vartype current_value: float + :ivar id: Subnet identifier. + :vartype id: str + :ivar limit: Indicates the size of the subnet. + :vartype limit: float + :ivar name: The name containing common and localized value for usage. + :vartype name: + ~azure.mgmt.network.v2018_10_01.models.VirtualNetworkUsageName + :ivar unit: Usage units. Returns 'Count' + :vartype unit: str + """ + + _validation = { + 'current_value': {'readonly': True}, + 'id': {'readonly': True}, + 'limit': {'readonly': True}, + 'name': {'readonly': True}, + 'unit': {'readonly': True}, + } + + _attribute_map = { + 'current_value': {'key': 'currentValue', 'type': 'float'}, + 'id': {'key': 'id', 'type': 'str'}, + 'limit': {'key': 'limit', 'type': 'float'}, + 'name': {'key': 'name', 'type': 'VirtualNetworkUsageName'}, + 'unit': {'key': 'unit', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(VirtualNetworkUsage, self).__init__(**kwargs) + self.current_value = None + self.id = None + self.limit = None + self.name = None + self.unit = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_usage_name.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_usage_name.py new file mode 100644 index 000000000000..607ccec3b964 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_usage_name.py @@ -0,0 +1,40 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class VirtualNetworkUsageName(Model): + """Usage strings container. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar localized_value: Localized subnet size and usage string. + :vartype localized_value: str + :ivar value: Subnet size and usage string. + :vartype value: str + """ + + _validation = { + 'localized_value': {'readonly': True}, + 'value': {'readonly': True}, + } + + _attribute_map = { + 'localized_value': {'key': 'localizedValue', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(VirtualNetworkUsageName, self).__init__(**kwargs) + self.localized_value = None + self.value = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_usage_name_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_usage_name_py3.py new file mode 100644 index 000000000000..1651ebda7e77 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_usage_name_py3.py @@ -0,0 +1,40 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class VirtualNetworkUsageName(Model): + """Usage strings container. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar localized_value: Localized subnet size and usage string. + :vartype localized_value: str + :ivar value: Subnet size and usage string. + :vartype value: str + """ + + _validation = { + 'localized_value': {'readonly': True}, + 'value': {'readonly': True}, + } + + _attribute_map = { + 'localized_value': {'key': 'localizedValue', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(VirtualNetworkUsageName, self).__init__(**kwargs) + self.localized_value = None + self.value = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_usage_paged.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_usage_paged.py new file mode 100644 index 000000000000..5f50d1609356 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_usage_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class VirtualNetworkUsagePaged(Paged): + """ + A paging container for iterating over a list of :class:`VirtualNetworkUsage ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[VirtualNetworkUsage]'} + } + + def __init__(self, *args, **kwargs): + + super(VirtualNetworkUsagePaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_usage_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_usage_py3.py new file mode 100644 index 000000000000..8ef710e173ef --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_network_usage_py3.py @@ -0,0 +1,56 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class VirtualNetworkUsage(Model): + """Usage details for subnet. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar current_value: Indicates number of IPs used from the Subnet. + :vartype current_value: float + :ivar id: Subnet identifier. + :vartype id: str + :ivar limit: Indicates the size of the subnet. + :vartype limit: float + :ivar name: The name containing common and localized value for usage. + :vartype name: + ~azure.mgmt.network.v2018_10_01.models.VirtualNetworkUsageName + :ivar unit: Usage units. Returns 'Count' + :vartype unit: str + """ + + _validation = { + 'current_value': {'readonly': True}, + 'id': {'readonly': True}, + 'limit': {'readonly': True}, + 'name': {'readonly': True}, + 'unit': {'readonly': True}, + } + + _attribute_map = { + 'current_value': {'key': 'currentValue', 'type': 'float'}, + 'id': {'key': 'id', 'type': 'str'}, + 'limit': {'key': 'limit', 'type': 'float'}, + 'name': {'key': 'name', 'type': 'VirtualNetworkUsageName'}, + 'unit': {'key': 'unit', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(VirtualNetworkUsage, self).__init__(**kwargs) + self.current_value = None + self.id = None + self.limit = None + self.name = None + self.unit = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_wan.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_wan.py new file mode 100644 index 000000000000..633365d59fbb --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_wan.py @@ -0,0 +1,102 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource import Resource + + +class VirtualWAN(Resource): + """VirtualWAN Resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param disable_vpn_encryption: Vpn encryption to be disabled or not. + :type disable_vpn_encryption: bool + :ivar virtual_hubs: List of VirtualHubs in the VirtualWAN. + :vartype virtual_hubs: + list[~azure.mgmt.network.v2018_10_01.models.SubResource] + :ivar vpn_sites: + :vartype vpn_sites: + list[~azure.mgmt.network.v2018_10_01.models.SubResource] + :param security_provider_name: The Security Provider name. + :type security_provider_name: str + :param allow_branch_to_branch_traffic: True if branch to branch traffic is + allowed. + :type allow_branch_to_branch_traffic: bool + :param allow_vnet_to_vnet_traffic: True if Vnet to Vnet traffic is + allowed. + :type allow_vnet_to_vnet_traffic: bool + :param office365_local_breakout_category: The office local breakout + category. Possible values include: 'Optimize', 'OptimizeAndAllow', 'All', + 'None' + :type office365_local_breakout_category: str or + ~azure.mgmt.network.v2018_10_01.models.OfficeTrafficCategory + :param p2_svpn_server_configurations: list of all + P2SVpnServerConfigurations associated with the virtual wan. + :type p2_svpn_server_configurations: + list[~azure.mgmt.network.v2018_10_01.models.P2SVpnServerConfiguration] + :param provisioning_state: The provisioning state of the resource. + Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + :type provisioning_state: str or + ~azure.mgmt.network.v2018_10_01.models.ProvisioningState + :ivar etag: Gets a unique read-only string that changes whenever the + resource is updated. + :vartype etag: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'virtual_hubs': {'readonly': True}, + 'vpn_sites': {'readonly': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'disable_vpn_encryption': {'key': 'properties.disableVpnEncryption', 'type': 'bool'}, + 'virtual_hubs': {'key': 'properties.virtualHubs', 'type': '[SubResource]'}, + 'vpn_sites': {'key': 'properties.vpnSites', 'type': '[SubResource]'}, + 'security_provider_name': {'key': 'properties.securityProviderName', 'type': 'str'}, + 'allow_branch_to_branch_traffic': {'key': 'properties.allowBranchToBranchTraffic', 'type': 'bool'}, + 'allow_vnet_to_vnet_traffic': {'key': 'properties.allowVnetToVnetTraffic', 'type': 'bool'}, + 'office365_local_breakout_category': {'key': 'properties.office365LocalBreakoutCategory', 'type': 'str'}, + 'p2_svpn_server_configurations': {'key': 'properties.p2SVpnServerConfigurations', 'type': '[P2SVpnServerConfiguration]'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(VirtualWAN, self).__init__(**kwargs) + self.disable_vpn_encryption = kwargs.get('disable_vpn_encryption', None) + self.virtual_hubs = None + self.vpn_sites = None + self.security_provider_name = kwargs.get('security_provider_name', None) + self.allow_branch_to_branch_traffic = kwargs.get('allow_branch_to_branch_traffic', None) + self.allow_vnet_to_vnet_traffic = kwargs.get('allow_vnet_to_vnet_traffic', None) + self.office365_local_breakout_category = kwargs.get('office365_local_breakout_category', None) + self.p2_svpn_server_configurations = kwargs.get('p2_svpn_server_configurations', None) + self.provisioning_state = kwargs.get('provisioning_state', None) + self.etag = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_wan_paged.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_wan_paged.py new file mode 100644 index 000000000000..f25e941b765a --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_wan_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class VirtualWANPaged(Paged): + """ + A paging container for iterating over a list of :class:`VirtualWAN ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[VirtualWAN]'} + } + + def __init__(self, *args, **kwargs): + + super(VirtualWANPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_wan_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_wan_py3.py new file mode 100644 index 000000000000..51e0337d79ff --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_wan_py3.py @@ -0,0 +1,102 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource_py3 import Resource + + +class VirtualWAN(Resource): + """VirtualWAN Resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param disable_vpn_encryption: Vpn encryption to be disabled or not. + :type disable_vpn_encryption: bool + :ivar virtual_hubs: List of VirtualHubs in the VirtualWAN. + :vartype virtual_hubs: + list[~azure.mgmt.network.v2018_10_01.models.SubResource] + :ivar vpn_sites: + :vartype vpn_sites: + list[~azure.mgmt.network.v2018_10_01.models.SubResource] + :param security_provider_name: The Security Provider name. + :type security_provider_name: str + :param allow_branch_to_branch_traffic: True if branch to branch traffic is + allowed. + :type allow_branch_to_branch_traffic: bool + :param allow_vnet_to_vnet_traffic: True if Vnet to Vnet traffic is + allowed. + :type allow_vnet_to_vnet_traffic: bool + :param office365_local_breakout_category: The office local breakout + category. Possible values include: 'Optimize', 'OptimizeAndAllow', 'All', + 'None' + :type office365_local_breakout_category: str or + ~azure.mgmt.network.v2018_10_01.models.OfficeTrafficCategory + :param p2_svpn_server_configurations: list of all + P2SVpnServerConfigurations associated with the virtual wan. + :type p2_svpn_server_configurations: + list[~azure.mgmt.network.v2018_10_01.models.P2SVpnServerConfiguration] + :param provisioning_state: The provisioning state of the resource. + Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + :type provisioning_state: str or + ~azure.mgmt.network.v2018_10_01.models.ProvisioningState + :ivar etag: Gets a unique read-only string that changes whenever the + resource is updated. + :vartype etag: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'virtual_hubs': {'readonly': True}, + 'vpn_sites': {'readonly': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'disable_vpn_encryption': {'key': 'properties.disableVpnEncryption', 'type': 'bool'}, + 'virtual_hubs': {'key': 'properties.virtualHubs', 'type': '[SubResource]'}, + 'vpn_sites': {'key': 'properties.vpnSites', 'type': '[SubResource]'}, + 'security_provider_name': {'key': 'properties.securityProviderName', 'type': 'str'}, + 'allow_branch_to_branch_traffic': {'key': 'properties.allowBranchToBranchTraffic', 'type': 'bool'}, + 'allow_vnet_to_vnet_traffic': {'key': 'properties.allowVnetToVnetTraffic', 'type': 'bool'}, + 'office365_local_breakout_category': {'key': 'properties.office365LocalBreakoutCategory', 'type': 'str'}, + 'p2_svpn_server_configurations': {'key': 'properties.p2SVpnServerConfigurations', 'type': '[P2SVpnServerConfiguration]'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, location: str=None, tags=None, disable_vpn_encryption: bool=None, security_provider_name: str=None, allow_branch_to_branch_traffic: bool=None, allow_vnet_to_vnet_traffic: bool=None, office365_local_breakout_category=None, p2_svpn_server_configurations=None, provisioning_state=None, **kwargs) -> None: + super(VirtualWAN, self).__init__(id=id, location=location, tags=tags, **kwargs) + self.disable_vpn_encryption = disable_vpn_encryption + self.virtual_hubs = None + self.vpn_sites = None + self.security_provider_name = security_provider_name + self.allow_branch_to_branch_traffic = allow_branch_to_branch_traffic + self.allow_vnet_to_vnet_traffic = allow_vnet_to_vnet_traffic + self.office365_local_breakout_category = office365_local_breakout_category + self.p2_svpn_server_configurations = p2_svpn_server_configurations + self.provisioning_state = provisioning_state + self.etag = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_wan_security_provider.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_wan_security_provider.py new file mode 100644 index 000000000000..bdb1d3364031 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_wan_security_provider.py @@ -0,0 +1,38 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class VirtualWanSecurityProvider(Model): + """Collection of SecurityProviders. + + :param name: Name of the security provider. + :type name: str + :param url: Url of the security provider. + :type url: str + :param type: Name of the security provider. Possible values include: + 'External', 'Native' + :type type: str or + ~azure.mgmt.network.v2018_10_01.models.VirtualWanSecurityProviderType + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(VirtualWanSecurityProvider, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.url = kwargs.get('url', None) + self.type = kwargs.get('type', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_wan_security_provider_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_wan_security_provider_py3.py new file mode 100644 index 000000000000..0f9d23a033bb --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_wan_security_provider_py3.py @@ -0,0 +1,38 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class VirtualWanSecurityProvider(Model): + """Collection of SecurityProviders. + + :param name: Name of the security provider. + :type name: str + :param url: Url of the security provider. + :type url: str + :param type: Name of the security provider. Possible values include: + 'External', 'Native' + :type type: str or + ~azure.mgmt.network.v2018_10_01.models.VirtualWanSecurityProviderType + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, *, name: str=None, url: str=None, type=None, **kwargs) -> None: + super(VirtualWanSecurityProvider, self).__init__(**kwargs) + self.name = name + self.url = url + self.type = type diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_wan_security_providers.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_wan_security_providers.py new file mode 100644 index 000000000000..dbf1c54ca3fd --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_wan_security_providers.py @@ -0,0 +1,29 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class VirtualWanSecurityProviders(Model): + """Collection of SecurityProviders. + + :param supported_providers: + :type supported_providers: + list[~azure.mgmt.network.v2018_10_01.models.VirtualWanSecurityProvider] + """ + + _attribute_map = { + 'supported_providers': {'key': 'supportedProviders', 'type': '[VirtualWanSecurityProvider]'}, + } + + def __init__(self, **kwargs): + super(VirtualWanSecurityProviders, self).__init__(**kwargs) + self.supported_providers = kwargs.get('supported_providers', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_wan_security_providers_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_wan_security_providers_py3.py new file mode 100644 index 000000000000..ec9815e9975d --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/virtual_wan_security_providers_py3.py @@ -0,0 +1,29 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class VirtualWanSecurityProviders(Model): + """Collection of SecurityProviders. + + :param supported_providers: + :type supported_providers: + list[~azure.mgmt.network.v2018_10_01.models.VirtualWanSecurityProvider] + """ + + _attribute_map = { + 'supported_providers': {'key': 'supportedProviders', 'type': '[VirtualWanSecurityProvider]'}, + } + + def __init__(self, *, supported_providers=None, **kwargs) -> None: + super(VirtualWanSecurityProviders, self).__init__(**kwargs) + self.supported_providers = supported_providers diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_client_configuration.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_client_configuration.py new file mode 100644 index 000000000000..7b85673baa8e --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_client_configuration.py @@ -0,0 +1,64 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class VpnClientConfiguration(Model): + """VpnClientConfiguration for P2S client. + + :param vpn_client_address_pool: The reference of the address space + resource which represents Address space for P2S VpnClient. + :type vpn_client_address_pool: + ~azure.mgmt.network.v2018_10_01.models.AddressSpace + :param vpn_client_root_certificates: VpnClientRootCertificate for virtual + network gateway. + :type vpn_client_root_certificates: + list[~azure.mgmt.network.v2018_10_01.models.VpnClientRootCertificate] + :param vpn_client_revoked_certificates: VpnClientRevokedCertificate for + Virtual network gateway. + :type vpn_client_revoked_certificates: + list[~azure.mgmt.network.v2018_10_01.models.VpnClientRevokedCertificate] + :param vpn_client_protocols: VpnClientProtocols for Virtual network + gateway. + :type vpn_client_protocols: list[str or + ~azure.mgmt.network.v2018_10_01.models.VpnClientProtocol] + :param vpn_client_ipsec_policies: VpnClientIpsecPolicies for virtual + network gateway P2S client. + :type vpn_client_ipsec_policies: + list[~azure.mgmt.network.v2018_10_01.models.IpsecPolicy] + :param radius_server_address: The radius server address property of the + VirtualNetworkGateway resource for vpn client connection. + :type radius_server_address: str + :param radius_server_secret: The radius secret property of the + VirtualNetworkGateway resource for vpn client connection. + :type radius_server_secret: str + """ + + _attribute_map = { + 'vpn_client_address_pool': {'key': 'vpnClientAddressPool', 'type': 'AddressSpace'}, + 'vpn_client_root_certificates': {'key': 'vpnClientRootCertificates', 'type': '[VpnClientRootCertificate]'}, + 'vpn_client_revoked_certificates': {'key': 'vpnClientRevokedCertificates', 'type': '[VpnClientRevokedCertificate]'}, + 'vpn_client_protocols': {'key': 'vpnClientProtocols', 'type': '[str]'}, + 'vpn_client_ipsec_policies': {'key': 'vpnClientIpsecPolicies', 'type': '[IpsecPolicy]'}, + 'radius_server_address': {'key': 'radiusServerAddress', 'type': 'str'}, + 'radius_server_secret': {'key': 'radiusServerSecret', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(VpnClientConfiguration, self).__init__(**kwargs) + self.vpn_client_address_pool = kwargs.get('vpn_client_address_pool', None) + self.vpn_client_root_certificates = kwargs.get('vpn_client_root_certificates', None) + self.vpn_client_revoked_certificates = kwargs.get('vpn_client_revoked_certificates', None) + self.vpn_client_protocols = kwargs.get('vpn_client_protocols', None) + self.vpn_client_ipsec_policies = kwargs.get('vpn_client_ipsec_policies', None) + self.radius_server_address = kwargs.get('radius_server_address', None) + self.radius_server_secret = kwargs.get('radius_server_secret', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_client_configuration_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_client_configuration_py3.py new file mode 100644 index 000000000000..3c04246b1713 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_client_configuration_py3.py @@ -0,0 +1,64 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class VpnClientConfiguration(Model): + """VpnClientConfiguration for P2S client. + + :param vpn_client_address_pool: The reference of the address space + resource which represents Address space for P2S VpnClient. + :type vpn_client_address_pool: + ~azure.mgmt.network.v2018_10_01.models.AddressSpace + :param vpn_client_root_certificates: VpnClientRootCertificate for virtual + network gateway. + :type vpn_client_root_certificates: + list[~azure.mgmt.network.v2018_10_01.models.VpnClientRootCertificate] + :param vpn_client_revoked_certificates: VpnClientRevokedCertificate for + Virtual network gateway. + :type vpn_client_revoked_certificates: + list[~azure.mgmt.network.v2018_10_01.models.VpnClientRevokedCertificate] + :param vpn_client_protocols: VpnClientProtocols for Virtual network + gateway. + :type vpn_client_protocols: list[str or + ~azure.mgmt.network.v2018_10_01.models.VpnClientProtocol] + :param vpn_client_ipsec_policies: VpnClientIpsecPolicies for virtual + network gateway P2S client. + :type vpn_client_ipsec_policies: + list[~azure.mgmt.network.v2018_10_01.models.IpsecPolicy] + :param radius_server_address: The radius server address property of the + VirtualNetworkGateway resource for vpn client connection. + :type radius_server_address: str + :param radius_server_secret: The radius secret property of the + VirtualNetworkGateway resource for vpn client connection. + :type radius_server_secret: str + """ + + _attribute_map = { + 'vpn_client_address_pool': {'key': 'vpnClientAddressPool', 'type': 'AddressSpace'}, + 'vpn_client_root_certificates': {'key': 'vpnClientRootCertificates', 'type': '[VpnClientRootCertificate]'}, + 'vpn_client_revoked_certificates': {'key': 'vpnClientRevokedCertificates', 'type': '[VpnClientRevokedCertificate]'}, + 'vpn_client_protocols': {'key': 'vpnClientProtocols', 'type': '[str]'}, + 'vpn_client_ipsec_policies': {'key': 'vpnClientIpsecPolicies', 'type': '[IpsecPolicy]'}, + 'radius_server_address': {'key': 'radiusServerAddress', 'type': 'str'}, + 'radius_server_secret': {'key': 'radiusServerSecret', 'type': 'str'}, + } + + def __init__(self, *, vpn_client_address_pool=None, vpn_client_root_certificates=None, vpn_client_revoked_certificates=None, vpn_client_protocols=None, vpn_client_ipsec_policies=None, radius_server_address: str=None, radius_server_secret: str=None, **kwargs) -> None: + super(VpnClientConfiguration, self).__init__(**kwargs) + self.vpn_client_address_pool = vpn_client_address_pool + self.vpn_client_root_certificates = vpn_client_root_certificates + self.vpn_client_revoked_certificates = vpn_client_revoked_certificates + self.vpn_client_protocols = vpn_client_protocols + self.vpn_client_ipsec_policies = vpn_client_ipsec_policies + self.radius_server_address = radius_server_address + self.radius_server_secret = radius_server_secret diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_client_connection_health.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_client_connection_health.py new file mode 100644 index 000000000000..ae4271c388f9 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_client_connection_health.py @@ -0,0 +1,52 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class VpnClientConnectionHealth(Model): + """VpnClientConnectionHealth properties. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar total_ingress_bytes_transferred: Total of the Ingress Bytes + Transferred in this P2S Vpn connection + :vartype total_ingress_bytes_transferred: long + :ivar total_egress_bytes_transferred: Total of the Egress Bytes + Transferred in this connection + :vartype total_egress_bytes_transferred: long + :param vpn_client_connections_count: The total of p2s vpn clients + connected at this time to this P2SVpnGateway. + :type vpn_client_connections_count: int + :param allocated_ip_addresses: List of allocated ip addresses to the + connected p2s vpn clients. + :type allocated_ip_addresses: list[str] + """ + + _validation = { + 'total_ingress_bytes_transferred': {'readonly': True}, + 'total_egress_bytes_transferred': {'readonly': True}, + } + + _attribute_map = { + 'total_ingress_bytes_transferred': {'key': 'totalIngressBytesTransferred', 'type': 'long'}, + 'total_egress_bytes_transferred': {'key': 'totalEgressBytesTransferred', 'type': 'long'}, + 'vpn_client_connections_count': {'key': 'vpnClientConnectionsCount', 'type': 'int'}, + 'allocated_ip_addresses': {'key': 'allocatedIpAddresses', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(VpnClientConnectionHealth, self).__init__(**kwargs) + self.total_ingress_bytes_transferred = None + self.total_egress_bytes_transferred = None + self.vpn_client_connections_count = kwargs.get('vpn_client_connections_count', None) + self.allocated_ip_addresses = kwargs.get('allocated_ip_addresses', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_client_connection_health_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_client_connection_health_py3.py new file mode 100644 index 000000000000..13a73f383808 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_client_connection_health_py3.py @@ -0,0 +1,52 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class VpnClientConnectionHealth(Model): + """VpnClientConnectionHealth properties. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar total_ingress_bytes_transferred: Total of the Ingress Bytes + Transferred in this P2S Vpn connection + :vartype total_ingress_bytes_transferred: long + :ivar total_egress_bytes_transferred: Total of the Egress Bytes + Transferred in this connection + :vartype total_egress_bytes_transferred: long + :param vpn_client_connections_count: The total of p2s vpn clients + connected at this time to this P2SVpnGateway. + :type vpn_client_connections_count: int + :param allocated_ip_addresses: List of allocated ip addresses to the + connected p2s vpn clients. + :type allocated_ip_addresses: list[str] + """ + + _validation = { + 'total_ingress_bytes_transferred': {'readonly': True}, + 'total_egress_bytes_transferred': {'readonly': True}, + } + + _attribute_map = { + 'total_ingress_bytes_transferred': {'key': 'totalIngressBytesTransferred', 'type': 'long'}, + 'total_egress_bytes_transferred': {'key': 'totalEgressBytesTransferred', 'type': 'long'}, + 'vpn_client_connections_count': {'key': 'vpnClientConnectionsCount', 'type': 'int'}, + 'allocated_ip_addresses': {'key': 'allocatedIpAddresses', 'type': '[str]'}, + } + + def __init__(self, *, vpn_client_connections_count: int=None, allocated_ip_addresses=None, **kwargs) -> None: + super(VpnClientConnectionHealth, self).__init__(**kwargs) + self.total_ingress_bytes_transferred = None + self.total_egress_bytes_transferred = None + self.vpn_client_connections_count = vpn_client_connections_count + self.allocated_ip_addresses = allocated_ip_addresses diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_client_ipsec_parameters.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_client_ipsec_parameters.py new file mode 100644 index 000000000000..c2ebb422350a --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_client_ipsec_parameters.py @@ -0,0 +1,87 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class VpnClientIPsecParameters(Model): + """An IPSec parameters for a virtual network gateway P2S connection. + + All required parameters must be populated in order to send to Azure. + + :param sa_life_time_seconds: Required. The IPSec Security Association + (also called Quick Mode or Phase 2 SA) lifetime in seconds for P2S client. + :type sa_life_time_seconds: int + :param sa_data_size_kilobytes: Required. The IPSec Security Association + (also called Quick Mode or Phase 2 SA) payload size in KB for P2S client.. + :type sa_data_size_kilobytes: int + :param ipsec_encryption: Required. The IPSec encryption algorithm (IKE + phase 1). Possible values include: 'None', 'DES', 'DES3', 'AES128', + 'AES192', 'AES256', 'GCMAES128', 'GCMAES192', 'GCMAES256' + :type ipsec_encryption: str or + ~azure.mgmt.network.v2018_10_01.models.IpsecEncryption + :param ipsec_integrity: Required. The IPSec integrity algorithm (IKE phase + 1). Possible values include: 'MD5', 'SHA1', 'SHA256', 'GCMAES128', + 'GCMAES192', 'GCMAES256' + :type ipsec_integrity: str or + ~azure.mgmt.network.v2018_10_01.models.IpsecIntegrity + :param ike_encryption: Required. The IKE encryption algorithm (IKE phase + 2). Possible values include: 'DES', 'DES3', 'AES128', 'AES192', 'AES256', + 'GCMAES256', 'GCMAES128' + :type ike_encryption: str or + ~azure.mgmt.network.v2018_10_01.models.IkeEncryption + :param ike_integrity: Required. The IKE integrity algorithm (IKE phase 2). + Possible values include: 'MD5', 'SHA1', 'SHA256', 'SHA384', 'GCMAES256', + 'GCMAES128' + :type ike_integrity: str or + ~azure.mgmt.network.v2018_10_01.models.IkeIntegrity + :param dh_group: Required. The DH Groups used in IKE Phase 1 for initial + SA. Possible values include: 'None', 'DHGroup1', 'DHGroup2', 'DHGroup14', + 'DHGroup2048', 'ECP256', 'ECP384', 'DHGroup24' + :type dh_group: str or ~azure.mgmt.network.v2018_10_01.models.DhGroup + :param pfs_group: Required. The Pfs Groups used in IKE Phase 2 for new + child SA. Possible values include: 'None', 'PFS1', 'PFS2', 'PFS2048', + 'ECP256', 'ECP384', 'PFS24', 'PFS14', 'PFSMM' + :type pfs_group: str or ~azure.mgmt.network.v2018_10_01.models.PfsGroup + """ + + _validation = { + 'sa_life_time_seconds': {'required': True}, + 'sa_data_size_kilobytes': {'required': True}, + 'ipsec_encryption': {'required': True}, + 'ipsec_integrity': {'required': True}, + 'ike_encryption': {'required': True}, + 'ike_integrity': {'required': True}, + 'dh_group': {'required': True}, + 'pfs_group': {'required': True}, + } + + _attribute_map = { + 'sa_life_time_seconds': {'key': 'saLifeTimeSeconds', 'type': 'int'}, + 'sa_data_size_kilobytes': {'key': 'saDataSizeKilobytes', 'type': 'int'}, + 'ipsec_encryption': {'key': 'ipsecEncryption', 'type': 'str'}, + 'ipsec_integrity': {'key': 'ipsecIntegrity', 'type': 'str'}, + 'ike_encryption': {'key': 'ikeEncryption', 'type': 'str'}, + 'ike_integrity': {'key': 'ikeIntegrity', 'type': 'str'}, + 'dh_group': {'key': 'dhGroup', 'type': 'str'}, + 'pfs_group': {'key': 'pfsGroup', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(VpnClientIPsecParameters, self).__init__(**kwargs) + self.sa_life_time_seconds = kwargs.get('sa_life_time_seconds', None) + self.sa_data_size_kilobytes = kwargs.get('sa_data_size_kilobytes', None) + self.ipsec_encryption = kwargs.get('ipsec_encryption', None) + self.ipsec_integrity = kwargs.get('ipsec_integrity', None) + self.ike_encryption = kwargs.get('ike_encryption', None) + self.ike_integrity = kwargs.get('ike_integrity', None) + self.dh_group = kwargs.get('dh_group', None) + self.pfs_group = kwargs.get('pfs_group', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_client_ipsec_parameters_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_client_ipsec_parameters_py3.py new file mode 100644 index 000000000000..1d9bf6869012 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_client_ipsec_parameters_py3.py @@ -0,0 +1,87 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class VpnClientIPsecParameters(Model): + """An IPSec parameters for a virtual network gateway P2S connection. + + All required parameters must be populated in order to send to Azure. + + :param sa_life_time_seconds: Required. The IPSec Security Association + (also called Quick Mode or Phase 2 SA) lifetime in seconds for P2S client. + :type sa_life_time_seconds: int + :param sa_data_size_kilobytes: Required. The IPSec Security Association + (also called Quick Mode or Phase 2 SA) payload size in KB for P2S client.. + :type sa_data_size_kilobytes: int + :param ipsec_encryption: Required. The IPSec encryption algorithm (IKE + phase 1). Possible values include: 'None', 'DES', 'DES3', 'AES128', + 'AES192', 'AES256', 'GCMAES128', 'GCMAES192', 'GCMAES256' + :type ipsec_encryption: str or + ~azure.mgmt.network.v2018_10_01.models.IpsecEncryption + :param ipsec_integrity: Required. The IPSec integrity algorithm (IKE phase + 1). Possible values include: 'MD5', 'SHA1', 'SHA256', 'GCMAES128', + 'GCMAES192', 'GCMAES256' + :type ipsec_integrity: str or + ~azure.mgmt.network.v2018_10_01.models.IpsecIntegrity + :param ike_encryption: Required. The IKE encryption algorithm (IKE phase + 2). Possible values include: 'DES', 'DES3', 'AES128', 'AES192', 'AES256', + 'GCMAES256', 'GCMAES128' + :type ike_encryption: str or + ~azure.mgmt.network.v2018_10_01.models.IkeEncryption + :param ike_integrity: Required. The IKE integrity algorithm (IKE phase 2). + Possible values include: 'MD5', 'SHA1', 'SHA256', 'SHA384', 'GCMAES256', + 'GCMAES128' + :type ike_integrity: str or + ~azure.mgmt.network.v2018_10_01.models.IkeIntegrity + :param dh_group: Required. The DH Groups used in IKE Phase 1 for initial + SA. Possible values include: 'None', 'DHGroup1', 'DHGroup2', 'DHGroup14', + 'DHGroup2048', 'ECP256', 'ECP384', 'DHGroup24' + :type dh_group: str or ~azure.mgmt.network.v2018_10_01.models.DhGroup + :param pfs_group: Required. The Pfs Groups used in IKE Phase 2 for new + child SA. Possible values include: 'None', 'PFS1', 'PFS2', 'PFS2048', + 'ECP256', 'ECP384', 'PFS24', 'PFS14', 'PFSMM' + :type pfs_group: str or ~azure.mgmt.network.v2018_10_01.models.PfsGroup + """ + + _validation = { + 'sa_life_time_seconds': {'required': True}, + 'sa_data_size_kilobytes': {'required': True}, + 'ipsec_encryption': {'required': True}, + 'ipsec_integrity': {'required': True}, + 'ike_encryption': {'required': True}, + 'ike_integrity': {'required': True}, + 'dh_group': {'required': True}, + 'pfs_group': {'required': True}, + } + + _attribute_map = { + 'sa_life_time_seconds': {'key': 'saLifeTimeSeconds', 'type': 'int'}, + 'sa_data_size_kilobytes': {'key': 'saDataSizeKilobytes', 'type': 'int'}, + 'ipsec_encryption': {'key': 'ipsecEncryption', 'type': 'str'}, + 'ipsec_integrity': {'key': 'ipsecIntegrity', 'type': 'str'}, + 'ike_encryption': {'key': 'ikeEncryption', 'type': 'str'}, + 'ike_integrity': {'key': 'ikeIntegrity', 'type': 'str'}, + 'dh_group': {'key': 'dhGroup', 'type': 'str'}, + 'pfs_group': {'key': 'pfsGroup', 'type': 'str'}, + } + + def __init__(self, *, sa_life_time_seconds: int, sa_data_size_kilobytes: int, ipsec_encryption, ipsec_integrity, ike_encryption, ike_integrity, dh_group, pfs_group, **kwargs) -> None: + super(VpnClientIPsecParameters, self).__init__(**kwargs) + self.sa_life_time_seconds = sa_life_time_seconds + self.sa_data_size_kilobytes = sa_data_size_kilobytes + self.ipsec_encryption = ipsec_encryption + self.ipsec_integrity = ipsec_integrity + self.ike_encryption = ike_encryption + self.ike_integrity = ike_integrity + self.dh_group = dh_group + self.pfs_group = pfs_group diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_client_parameters.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_client_parameters.py new file mode 100644 index 000000000000..cc8ffe970aa0 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_client_parameters.py @@ -0,0 +1,50 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class VpnClientParameters(Model): + """Vpn Client Parameters for package generation. + + :param processor_architecture: VPN client Processor Architecture. Possible + values are: 'AMD64' and 'X86'. Possible values include: 'Amd64', 'X86' + :type processor_architecture: str or + ~azure.mgmt.network.v2018_10_01.models.ProcessorArchitecture + :param authentication_method: VPN client Authentication Method. Possible + values are: 'EAPTLS' and 'EAPMSCHAPv2'. Possible values include: 'EAPTLS', + 'EAPMSCHAPv2' + :type authentication_method: str or + ~azure.mgmt.network.v2018_10_01.models.AuthenticationMethod + :param radius_server_auth_certificate: The public certificate data for the + radius server authentication certificate as a Base-64 encoded string. + Required only if external radius authentication has been configured with + EAPTLS authentication. + :type radius_server_auth_certificate: str + :param client_root_certificates: A list of client root certificates public + certificate data encoded as Base-64 strings. Optional parameter for + external radius based authentication with EAPTLS. + :type client_root_certificates: list[str] + """ + + _attribute_map = { + 'processor_architecture': {'key': 'processorArchitecture', 'type': 'str'}, + 'authentication_method': {'key': 'authenticationMethod', 'type': 'str'}, + 'radius_server_auth_certificate': {'key': 'radiusServerAuthCertificate', 'type': 'str'}, + 'client_root_certificates': {'key': 'clientRootCertificates', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(VpnClientParameters, self).__init__(**kwargs) + self.processor_architecture = kwargs.get('processor_architecture', None) + self.authentication_method = kwargs.get('authentication_method', None) + self.radius_server_auth_certificate = kwargs.get('radius_server_auth_certificate', None) + self.client_root_certificates = kwargs.get('client_root_certificates', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_client_parameters_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_client_parameters_py3.py new file mode 100644 index 000000000000..4e231300f0ef --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_client_parameters_py3.py @@ -0,0 +1,50 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class VpnClientParameters(Model): + """Vpn Client Parameters for package generation. + + :param processor_architecture: VPN client Processor Architecture. Possible + values are: 'AMD64' and 'X86'. Possible values include: 'Amd64', 'X86' + :type processor_architecture: str or + ~azure.mgmt.network.v2018_10_01.models.ProcessorArchitecture + :param authentication_method: VPN client Authentication Method. Possible + values are: 'EAPTLS' and 'EAPMSCHAPv2'. Possible values include: 'EAPTLS', + 'EAPMSCHAPv2' + :type authentication_method: str or + ~azure.mgmt.network.v2018_10_01.models.AuthenticationMethod + :param radius_server_auth_certificate: The public certificate data for the + radius server authentication certificate as a Base-64 encoded string. + Required only if external radius authentication has been configured with + EAPTLS authentication. + :type radius_server_auth_certificate: str + :param client_root_certificates: A list of client root certificates public + certificate data encoded as Base-64 strings. Optional parameter for + external radius based authentication with EAPTLS. + :type client_root_certificates: list[str] + """ + + _attribute_map = { + 'processor_architecture': {'key': 'processorArchitecture', 'type': 'str'}, + 'authentication_method': {'key': 'authenticationMethod', 'type': 'str'}, + 'radius_server_auth_certificate': {'key': 'radiusServerAuthCertificate', 'type': 'str'}, + 'client_root_certificates': {'key': 'clientRootCertificates', 'type': '[str]'}, + } + + def __init__(self, *, processor_architecture=None, authentication_method=None, radius_server_auth_certificate: str=None, client_root_certificates=None, **kwargs) -> None: + super(VpnClientParameters, self).__init__(**kwargs) + self.processor_architecture = processor_architecture + self.authentication_method = authentication_method + self.radius_server_auth_certificate = radius_server_auth_certificate + self.client_root_certificates = client_root_certificates diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_client_revoked_certificate.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_client_revoked_certificate.py new file mode 100644 index 000000000000..1fa6f6a1ef23 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_client_revoked_certificate.py @@ -0,0 +1,54 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource import SubResource + + +class VpnClientRevokedCertificate(SubResource): + """VPN client revoked certificate of virtual network gateway. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :param thumbprint: The revoked VPN client certificate thumbprint. + :type thumbprint: str + :ivar provisioning_state: The provisioning state of the VPN client revoked + certificate resource. Possible values are: 'Updating', 'Deleting', and + 'Failed'. + :vartype provisioning_state: str + :param name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'thumbprint': {'key': 'properties.thumbprint', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(VpnClientRevokedCertificate, self).__init__(**kwargs) + self.thumbprint = kwargs.get('thumbprint', None) + self.provisioning_state = None + self.name = kwargs.get('name', None) + self.etag = kwargs.get('etag', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_client_revoked_certificate_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_client_revoked_certificate_py3.py new file mode 100644 index 000000000000..e540c5ff2068 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_client_revoked_certificate_py3.py @@ -0,0 +1,54 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource_py3 import SubResource + + +class VpnClientRevokedCertificate(SubResource): + """VPN client revoked certificate of virtual network gateway. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :param thumbprint: The revoked VPN client certificate thumbprint. + :type thumbprint: str + :ivar provisioning_state: The provisioning state of the VPN client revoked + certificate resource. Possible values are: 'Updating', 'Deleting', and + 'Failed'. + :vartype provisioning_state: str + :param name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _validation = { + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'thumbprint': {'key': 'properties.thumbprint', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, thumbprint: str=None, name: str=None, etag: str=None, **kwargs) -> None: + super(VpnClientRevokedCertificate, self).__init__(id=id, **kwargs) + self.thumbprint = thumbprint + self.provisioning_state = None + self.name = name + self.etag = etag diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_client_root_certificate.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_client_root_certificate.py new file mode 100644 index 000000000000..48c7033d42ec --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_client_root_certificate.py @@ -0,0 +1,57 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource import SubResource + + +class VpnClientRootCertificate(SubResource): + """VPN client root certificate of virtual network gateway. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param id: Resource ID. + :type id: str + :param public_cert_data: Required. The certificate public data. + :type public_cert_data: str + :ivar provisioning_state: The provisioning state of the VPN client root + certificate resource. Possible values are: 'Updating', 'Deleting', and + 'Failed'. + :vartype provisioning_state: str + :param name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _validation = { + 'public_cert_data': {'required': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'public_cert_data': {'key': 'properties.publicCertData', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(VpnClientRootCertificate, self).__init__(**kwargs) + self.public_cert_data = kwargs.get('public_cert_data', None) + self.provisioning_state = None + self.name = kwargs.get('name', None) + self.etag = kwargs.get('etag', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_client_root_certificate_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_client_root_certificate_py3.py new file mode 100644 index 000000000000..6567985eee0b --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_client_root_certificate_py3.py @@ -0,0 +1,57 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource_py3 import SubResource + + +class VpnClientRootCertificate(SubResource): + """VPN client root certificate of virtual network gateway. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param id: Resource ID. + :type id: str + :param public_cert_data: Required. The certificate public data. + :type public_cert_data: str + :ivar provisioning_state: The provisioning state of the VPN client root + certificate resource. Possible values are: 'Updating', 'Deleting', and + 'Failed'. + :vartype provisioning_state: str + :param name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :param etag: A unique read-only string that changes whenever the resource + is updated. + :type etag: str + """ + + _validation = { + 'public_cert_data': {'required': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'public_cert_data': {'key': 'properties.publicCertData', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, *, public_cert_data: str, id: str=None, name: str=None, etag: str=None, **kwargs) -> None: + super(VpnClientRootCertificate, self).__init__(id=id, **kwargs) + self.public_cert_data = public_cert_data + self.provisioning_state = None + self.name = name + self.etag = etag diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_connection.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_connection.py new file mode 100644 index 000000000000..4bf2a59e3047 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_connection.py @@ -0,0 +1,106 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource import SubResource + + +class VpnConnection(SubResource): + """VpnConnection Resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :param remote_vpn_site: Id of the connected vpn site. + :type remote_vpn_site: ~azure.mgmt.network.v2018_10_01.models.SubResource + :param routing_weight: routing weight for vpn connection. + :type routing_weight: int + :param connection_status: The connection status. Possible values include: + 'Unknown', 'Connecting', 'Connected', 'NotConnected' + :type connection_status: str or + ~azure.mgmt.network.v2018_10_01.models.VpnConnectionStatus + :param vpn_connection_protocol_type: Connection protocol used for this + connection. Possible values include: 'IKEv2', 'IKEv1' + :type vpn_connection_protocol_type: str or + ~azure.mgmt.network.v2018_10_01.models.VirtualNetworkGatewayConnectionProtocol + :ivar ingress_bytes_transferred: Ingress bytes transferred. + :vartype ingress_bytes_transferred: long + :ivar egress_bytes_transferred: Egress bytes transferred. + :vartype egress_bytes_transferred: long + :param connection_bandwidth: Expected bandwidth in MBPS. + :type connection_bandwidth: int + :param shared_key: SharedKey for the vpn connection. + :type shared_key: str + :param enable_bgp: EnableBgp flag + :type enable_bgp: bool + :param ipsec_policies: The IPSec Policies to be considered by this + connection. + :type ipsec_policies: + list[~azure.mgmt.network.v2018_10_01.models.IpsecPolicy] + :param enable_rate_limiting: EnableBgp flag + :type enable_rate_limiting: bool + :param enable_internet_security: Enable internet security + :type enable_internet_security: bool + :param provisioning_state: The provisioning state of the resource. + Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + :type provisioning_state: str or + ~azure.mgmt.network.v2018_10_01.models.ProvisioningState + :param name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :ivar etag: Gets a unique read-only string that changes whenever the + resource is updated. + :vartype etag: str + """ + + _validation = { + 'ingress_bytes_transferred': {'readonly': True}, + 'egress_bytes_transferred': {'readonly': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'remote_vpn_site': {'key': 'properties.remoteVpnSite', 'type': 'SubResource'}, + 'routing_weight': {'key': 'properties.routingWeight', 'type': 'int'}, + 'connection_status': {'key': 'properties.connectionStatus', 'type': 'str'}, + 'vpn_connection_protocol_type': {'key': 'properties.vpnConnectionProtocolType', 'type': 'str'}, + 'ingress_bytes_transferred': {'key': 'properties.ingressBytesTransferred', 'type': 'long'}, + 'egress_bytes_transferred': {'key': 'properties.egressBytesTransferred', 'type': 'long'}, + 'connection_bandwidth': {'key': 'properties.connectionBandwidth', 'type': 'int'}, + 'shared_key': {'key': 'properties.sharedKey', 'type': 'str'}, + 'enable_bgp': {'key': 'properties.enableBgp', 'type': 'bool'}, + 'ipsec_policies': {'key': 'properties.ipsecPolicies', 'type': '[IpsecPolicy]'}, + 'enable_rate_limiting': {'key': 'properties.enableRateLimiting', 'type': 'bool'}, + 'enable_internet_security': {'key': 'properties.enableInternetSecurity', 'type': 'bool'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(VpnConnection, self).__init__(**kwargs) + self.remote_vpn_site = kwargs.get('remote_vpn_site', None) + self.routing_weight = kwargs.get('routing_weight', None) + self.connection_status = kwargs.get('connection_status', None) + self.vpn_connection_protocol_type = kwargs.get('vpn_connection_protocol_type', None) + self.ingress_bytes_transferred = None + self.egress_bytes_transferred = None + self.connection_bandwidth = kwargs.get('connection_bandwidth', None) + self.shared_key = kwargs.get('shared_key', None) + self.enable_bgp = kwargs.get('enable_bgp', None) + self.ipsec_policies = kwargs.get('ipsec_policies', None) + self.enable_rate_limiting = kwargs.get('enable_rate_limiting', None) + self.enable_internet_security = kwargs.get('enable_internet_security', None) + self.provisioning_state = kwargs.get('provisioning_state', None) + self.name = kwargs.get('name', None) + self.etag = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_connection_paged.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_connection_paged.py new file mode 100644 index 000000000000..f35799c034a5 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_connection_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class VpnConnectionPaged(Paged): + """ + A paging container for iterating over a list of :class:`VpnConnection ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[VpnConnection]'} + } + + def __init__(self, *args, **kwargs): + + super(VpnConnectionPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_connection_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_connection_py3.py new file mode 100644 index 000000000000..9d9789bd895a --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_connection_py3.py @@ -0,0 +1,106 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource_py3 import SubResource + + +class VpnConnection(SubResource): + """VpnConnection Resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :param remote_vpn_site: Id of the connected vpn site. + :type remote_vpn_site: ~azure.mgmt.network.v2018_10_01.models.SubResource + :param routing_weight: routing weight for vpn connection. + :type routing_weight: int + :param connection_status: The connection status. Possible values include: + 'Unknown', 'Connecting', 'Connected', 'NotConnected' + :type connection_status: str or + ~azure.mgmt.network.v2018_10_01.models.VpnConnectionStatus + :param vpn_connection_protocol_type: Connection protocol used for this + connection. Possible values include: 'IKEv2', 'IKEv1' + :type vpn_connection_protocol_type: str or + ~azure.mgmt.network.v2018_10_01.models.VirtualNetworkGatewayConnectionProtocol + :ivar ingress_bytes_transferred: Ingress bytes transferred. + :vartype ingress_bytes_transferred: long + :ivar egress_bytes_transferred: Egress bytes transferred. + :vartype egress_bytes_transferred: long + :param connection_bandwidth: Expected bandwidth in MBPS. + :type connection_bandwidth: int + :param shared_key: SharedKey for the vpn connection. + :type shared_key: str + :param enable_bgp: EnableBgp flag + :type enable_bgp: bool + :param ipsec_policies: The IPSec Policies to be considered by this + connection. + :type ipsec_policies: + list[~azure.mgmt.network.v2018_10_01.models.IpsecPolicy] + :param enable_rate_limiting: EnableBgp flag + :type enable_rate_limiting: bool + :param enable_internet_security: Enable internet security + :type enable_internet_security: bool + :param provisioning_state: The provisioning state of the resource. + Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + :type provisioning_state: str or + ~azure.mgmt.network.v2018_10_01.models.ProvisioningState + :param name: The name of the resource that is unique within a resource + group. This name can be used to access the resource. + :type name: str + :ivar etag: Gets a unique read-only string that changes whenever the + resource is updated. + :vartype etag: str + """ + + _validation = { + 'ingress_bytes_transferred': {'readonly': True}, + 'egress_bytes_transferred': {'readonly': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'remote_vpn_site': {'key': 'properties.remoteVpnSite', 'type': 'SubResource'}, + 'routing_weight': {'key': 'properties.routingWeight', 'type': 'int'}, + 'connection_status': {'key': 'properties.connectionStatus', 'type': 'str'}, + 'vpn_connection_protocol_type': {'key': 'properties.vpnConnectionProtocolType', 'type': 'str'}, + 'ingress_bytes_transferred': {'key': 'properties.ingressBytesTransferred', 'type': 'long'}, + 'egress_bytes_transferred': {'key': 'properties.egressBytesTransferred', 'type': 'long'}, + 'connection_bandwidth': {'key': 'properties.connectionBandwidth', 'type': 'int'}, + 'shared_key': {'key': 'properties.sharedKey', 'type': 'str'}, + 'enable_bgp': {'key': 'properties.enableBgp', 'type': 'bool'}, + 'ipsec_policies': {'key': 'properties.ipsecPolicies', 'type': '[IpsecPolicy]'}, + 'enable_rate_limiting': {'key': 'properties.enableRateLimiting', 'type': 'bool'}, + 'enable_internet_security': {'key': 'properties.enableInternetSecurity', 'type': 'bool'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, remote_vpn_site=None, routing_weight: int=None, connection_status=None, vpn_connection_protocol_type=None, connection_bandwidth: int=None, shared_key: str=None, enable_bgp: bool=None, ipsec_policies=None, enable_rate_limiting: bool=None, enable_internet_security: bool=None, provisioning_state=None, name: str=None, **kwargs) -> None: + super(VpnConnection, self).__init__(id=id, **kwargs) + self.remote_vpn_site = remote_vpn_site + self.routing_weight = routing_weight + self.connection_status = connection_status + self.vpn_connection_protocol_type = vpn_connection_protocol_type + self.ingress_bytes_transferred = None + self.egress_bytes_transferred = None + self.connection_bandwidth = connection_bandwidth + self.shared_key = shared_key + self.enable_bgp = enable_bgp + self.ipsec_policies = ipsec_policies + self.enable_rate_limiting = enable_rate_limiting + self.enable_internet_security = enable_internet_security + self.provisioning_state = provisioning_state + self.name = name + self.etag = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_device_script_parameters.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_device_script_parameters.py new file mode 100644 index 000000000000..e4f8f12701b7 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_device_script_parameters.py @@ -0,0 +1,36 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class VpnDeviceScriptParameters(Model): + """Vpn device configuration script generation parameters. + + :param vendor: The vendor for the vpn device. + :type vendor: str + :param device_family: The device family for the vpn device. + :type device_family: str + :param firmware_version: The firmware version for the vpn device. + :type firmware_version: str + """ + + _attribute_map = { + 'vendor': {'key': 'vendor', 'type': 'str'}, + 'device_family': {'key': 'deviceFamily', 'type': 'str'}, + 'firmware_version': {'key': 'firmwareVersion', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(VpnDeviceScriptParameters, self).__init__(**kwargs) + self.vendor = kwargs.get('vendor', None) + self.device_family = kwargs.get('device_family', None) + self.firmware_version = kwargs.get('firmware_version', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_device_script_parameters_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_device_script_parameters_py3.py new file mode 100644 index 000000000000..e5520ffb5a18 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_device_script_parameters_py3.py @@ -0,0 +1,36 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class VpnDeviceScriptParameters(Model): + """Vpn device configuration script generation parameters. + + :param vendor: The vendor for the vpn device. + :type vendor: str + :param device_family: The device family for the vpn device. + :type device_family: str + :param firmware_version: The firmware version for the vpn device. + :type firmware_version: str + """ + + _attribute_map = { + 'vendor': {'key': 'vendor', 'type': 'str'}, + 'device_family': {'key': 'deviceFamily', 'type': 'str'}, + 'firmware_version': {'key': 'firmwareVersion', 'type': 'str'}, + } + + def __init__(self, *, vendor: str=None, device_family: str=None, firmware_version: str=None, **kwargs) -> None: + super(VpnDeviceScriptParameters, self).__init__(**kwargs) + self.vendor = vendor + self.device_family = device_family + self.firmware_version = firmware_version diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_gateway.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_gateway.py new file mode 100644 index 000000000000..bd2fdbcb3467 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_gateway.py @@ -0,0 +1,76 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource import Resource + + +class VpnGateway(Resource): + """VpnGateway Resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param virtual_hub: The VirtualHub to which the gateway belongs + :type virtual_hub: ~azure.mgmt.network.v2018_10_01.models.SubResource + :param connections: list of all vpn connections to the gateway. + :type connections: + list[~azure.mgmt.network.v2018_10_01.models.VpnConnection] + :param bgp_settings: Local network gateway's BGP speaker settings. + :type bgp_settings: ~azure.mgmt.network.v2018_10_01.models.BgpSettings + :param provisioning_state: The provisioning state of the resource. + Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + :type provisioning_state: str or + ~azure.mgmt.network.v2018_10_01.models.ProvisioningState + :param vpn_gateway_scale_unit: The scale unit for this vpn gateway. + :type vpn_gateway_scale_unit: int + :ivar etag: Gets a unique read-only string that changes whenever the + resource is updated. + :vartype etag: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'virtual_hub': {'key': 'properties.virtualHub', 'type': 'SubResource'}, + 'connections': {'key': 'properties.connections', 'type': '[VpnConnection]'}, + 'bgp_settings': {'key': 'properties.bgpSettings', 'type': 'BgpSettings'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'vpn_gateway_scale_unit': {'key': 'properties.vpnGatewayScaleUnit', 'type': 'int'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(VpnGateway, self).__init__(**kwargs) + self.virtual_hub = kwargs.get('virtual_hub', None) + self.connections = kwargs.get('connections', None) + self.bgp_settings = kwargs.get('bgp_settings', None) + self.provisioning_state = kwargs.get('provisioning_state', None) + self.vpn_gateway_scale_unit = kwargs.get('vpn_gateway_scale_unit', None) + self.etag = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_gateway_paged.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_gateway_paged.py new file mode 100644 index 000000000000..7cab76d5db50 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_gateway_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class VpnGatewayPaged(Paged): + """ + A paging container for iterating over a list of :class:`VpnGateway ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[VpnGateway]'} + } + + def __init__(self, *args, **kwargs): + + super(VpnGatewayPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_gateway_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_gateway_py3.py new file mode 100644 index 000000000000..338018646613 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_gateway_py3.py @@ -0,0 +1,76 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource_py3 import Resource + + +class VpnGateway(Resource): + """VpnGateway Resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param virtual_hub: The VirtualHub to which the gateway belongs + :type virtual_hub: ~azure.mgmt.network.v2018_10_01.models.SubResource + :param connections: list of all vpn connections to the gateway. + :type connections: + list[~azure.mgmt.network.v2018_10_01.models.VpnConnection] + :param bgp_settings: Local network gateway's BGP speaker settings. + :type bgp_settings: ~azure.mgmt.network.v2018_10_01.models.BgpSettings + :param provisioning_state: The provisioning state of the resource. + Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + :type provisioning_state: str or + ~azure.mgmt.network.v2018_10_01.models.ProvisioningState + :param vpn_gateway_scale_unit: The scale unit for this vpn gateway. + :type vpn_gateway_scale_unit: int + :ivar etag: Gets a unique read-only string that changes whenever the + resource is updated. + :vartype etag: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'virtual_hub': {'key': 'properties.virtualHub', 'type': 'SubResource'}, + 'connections': {'key': 'properties.connections', 'type': '[VpnConnection]'}, + 'bgp_settings': {'key': 'properties.bgpSettings', 'type': 'BgpSettings'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'vpn_gateway_scale_unit': {'key': 'properties.vpnGatewayScaleUnit', 'type': 'int'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, location: str=None, tags=None, virtual_hub=None, connections=None, bgp_settings=None, provisioning_state=None, vpn_gateway_scale_unit: int=None, **kwargs) -> None: + super(VpnGateway, self).__init__(id=id, location=location, tags=tags, **kwargs) + self.virtual_hub = virtual_hub + self.connections = connections + self.bgp_settings = bgp_settings + self.provisioning_state = provisioning_state + self.vpn_gateway_scale_unit = vpn_gateway_scale_unit + self.etag = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_profile_response.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_profile_response.py new file mode 100644 index 000000000000..ec8320a2d0cf --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_profile_response.py @@ -0,0 +1,28 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class VpnProfileResponse(Model): + """Vpn Profile Response for package generation. + + :param profile_url: URL to the VPN profile + :type profile_url: str + """ + + _attribute_map = { + 'profile_url': {'key': 'profileUrl', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(VpnProfileResponse, self).__init__(**kwargs) + self.profile_url = kwargs.get('profile_url', None) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_profile_response_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_profile_response_py3.py new file mode 100644 index 000000000000..96fb208bf55d --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_profile_response_py3.py @@ -0,0 +1,28 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class VpnProfileResponse(Model): + """Vpn Profile Response for package generation. + + :param profile_url: URL to the VPN profile + :type profile_url: str + """ + + _attribute_map = { + 'profile_url': {'key': 'profileUrl', 'type': 'str'}, + } + + def __init__(self, *, profile_url: str=None, **kwargs) -> None: + super(VpnProfileResponse, self).__init__(**kwargs) + self.profile_url = profile_url diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_site.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_site.py new file mode 100644 index 000000000000..32298ab8e7d3 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_site.py @@ -0,0 +1,89 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource import Resource + + +class VpnSite(Resource): + """VpnSite Resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param virtual_wan: The VirtualWAN to which the vpnSite belongs + :type virtual_wan: ~azure.mgmt.network.v2018_10_01.models.SubResource + :param device_properties: The device properties + :type device_properties: + ~azure.mgmt.network.v2018_10_01.models.DeviceProperties + :param ip_address: The ip-address for the vpn-site. + :type ip_address: str + :param site_key: The key for vpn-site that can be used for connections. + :type site_key: str + :param address_space: The AddressSpace that contains an array of IP + address ranges. + :type address_space: ~azure.mgmt.network.v2018_10_01.models.AddressSpace + :param bgp_properties: The set of bgp properties. + :type bgp_properties: ~azure.mgmt.network.v2018_10_01.models.BgpSettings + :param provisioning_state: The provisioning state of the resource. + Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + :type provisioning_state: str or + ~azure.mgmt.network.v2018_10_01.models.ProvisioningState + :param is_security_site: IsSecuritySite flag + :type is_security_site: bool + :ivar etag: Gets a unique read-only string that changes whenever the + resource is updated. + :vartype etag: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'virtual_wan': {'key': 'properties.virtualWan', 'type': 'SubResource'}, + 'device_properties': {'key': 'properties.deviceProperties', 'type': 'DeviceProperties'}, + 'ip_address': {'key': 'properties.ipAddress', 'type': 'str'}, + 'site_key': {'key': 'properties.siteKey', 'type': 'str'}, + 'address_space': {'key': 'properties.addressSpace', 'type': 'AddressSpace'}, + 'bgp_properties': {'key': 'properties.bgpProperties', 'type': 'BgpSettings'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'is_security_site': {'key': 'properties.isSecuritySite', 'type': 'bool'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(VpnSite, self).__init__(**kwargs) + self.virtual_wan = kwargs.get('virtual_wan', None) + self.device_properties = kwargs.get('device_properties', None) + self.ip_address = kwargs.get('ip_address', None) + self.site_key = kwargs.get('site_key', None) + self.address_space = kwargs.get('address_space', None) + self.bgp_properties = kwargs.get('bgp_properties', None) + self.provisioning_state = kwargs.get('provisioning_state', None) + self.is_security_site = kwargs.get('is_security_site', None) + self.etag = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_site_id.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_site_id.py new file mode 100644 index 000000000000..f033d813f347 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_site_id.py @@ -0,0 +1,36 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class VpnSiteId(Model): + """VpnSite Resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar vpn_site: The resource-uri of the vpn-site for which config is to be + fetched. + :vartype vpn_site: str + """ + + _validation = { + 'vpn_site': {'readonly': True}, + } + + _attribute_map = { + 'vpn_site': {'key': 'vpnSite', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(VpnSiteId, self).__init__(**kwargs) + self.vpn_site = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_site_id_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_site_id_py3.py new file mode 100644 index 000000000000..3a12683973e3 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_site_id_py3.py @@ -0,0 +1,36 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class VpnSiteId(Model): + """VpnSite Resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar vpn_site: The resource-uri of the vpn-site for which config is to be + fetched. + :vartype vpn_site: str + """ + + _validation = { + 'vpn_site': {'readonly': True}, + } + + _attribute_map = { + 'vpn_site': {'key': 'vpnSite', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(VpnSiteId, self).__init__(**kwargs) + self.vpn_site = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_site_paged.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_site_paged.py new file mode 100644 index 000000000000..d6278f3b2eeb --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_site_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class VpnSitePaged(Paged): + """ + A paging container for iterating over a list of :class:`VpnSite ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[VpnSite]'} + } + + def __init__(self, *args, **kwargs): + + super(VpnSitePaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_site_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_site_py3.py new file mode 100644 index 000000000000..c5d429f1f08b --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/vpn_site_py3.py @@ -0,0 +1,89 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource_py3 import Resource + + +class VpnSite(Resource): + """VpnSite Resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param id: Resource ID. + :type id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param virtual_wan: The VirtualWAN to which the vpnSite belongs + :type virtual_wan: ~azure.mgmt.network.v2018_10_01.models.SubResource + :param device_properties: The device properties + :type device_properties: + ~azure.mgmt.network.v2018_10_01.models.DeviceProperties + :param ip_address: The ip-address for the vpn-site. + :type ip_address: str + :param site_key: The key for vpn-site that can be used for connections. + :type site_key: str + :param address_space: The AddressSpace that contains an array of IP + address ranges. + :type address_space: ~azure.mgmt.network.v2018_10_01.models.AddressSpace + :param bgp_properties: The set of bgp properties. + :type bgp_properties: ~azure.mgmt.network.v2018_10_01.models.BgpSettings + :param provisioning_state: The provisioning state of the resource. + Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed' + :type provisioning_state: str or + ~azure.mgmt.network.v2018_10_01.models.ProvisioningState + :param is_security_site: IsSecuritySite flag + :type is_security_site: bool + :ivar etag: Gets a unique read-only string that changes whenever the + resource is updated. + :vartype etag: str + """ + + _validation = { + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'virtual_wan': {'key': 'properties.virtualWan', 'type': 'SubResource'}, + 'device_properties': {'key': 'properties.deviceProperties', 'type': 'DeviceProperties'}, + 'ip_address': {'key': 'properties.ipAddress', 'type': 'str'}, + 'site_key': {'key': 'properties.siteKey', 'type': 'str'}, + 'address_space': {'key': 'properties.addressSpace', 'type': 'AddressSpace'}, + 'bgp_properties': {'key': 'properties.bgpProperties', 'type': 'BgpSettings'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'is_security_site': {'key': 'properties.isSecuritySite', 'type': 'bool'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, *, id: str=None, location: str=None, tags=None, virtual_wan=None, device_properties=None, ip_address: str=None, site_key: str=None, address_space=None, bgp_properties=None, provisioning_state=None, is_security_site: bool=None, **kwargs) -> None: + super(VpnSite, self).__init__(id=id, location=location, tags=tags, **kwargs) + self.virtual_wan = virtual_wan + self.device_properties = device_properties + self.ip_address = ip_address + self.site_key = site_key + self.address_space = address_space + self.bgp_properties = bgp_properties + self.provisioning_state = provisioning_state + self.is_security_site = is_security_site + self.etag = None diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/network_management_client.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/network_management_client.py new file mode 100644 index 000000000000..3ac3b0fe6f4e --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/network_management_client.py @@ -0,0 +1,552 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.service_client import SDKClient +from msrest import Serializer, Deserializer +from msrestazure import AzureConfiguration +from .version import VERSION +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +from msrest.polling import LROPoller, NoPolling +from msrestazure.polling.arm_polling import ARMPolling +import uuid +from .operations.application_gateways_operations import ApplicationGatewaysOperations +from .operations.application_security_groups_operations import ApplicationSecurityGroupsOperations +from .operations.available_delegations_operations import AvailableDelegationsOperations +from .operations.available_resource_group_delegations_operations import AvailableResourceGroupDelegationsOperations +from .operations.azure_firewalls_operations import AzureFirewallsOperations +from .operations.azure_firewall_fqdn_tags_operations import AzureFirewallFqdnTagsOperations +from .operations.ddos_protection_plans_operations import DdosProtectionPlansOperations +from .operations.available_endpoint_services_operations import AvailableEndpointServicesOperations +from .operations.express_route_circuit_authorizations_operations import ExpressRouteCircuitAuthorizationsOperations +from .operations.express_route_circuit_peerings_operations import ExpressRouteCircuitPeeringsOperations +from .operations.express_route_circuit_connections_operations import ExpressRouteCircuitConnectionsOperations +from .operations.express_route_circuits_operations import ExpressRouteCircuitsOperations +from .operations.express_route_service_providers_operations import ExpressRouteServiceProvidersOperations +from .operations.express_route_cross_connections_operations import ExpressRouteCrossConnectionsOperations +from .operations.express_route_cross_connection_peerings_operations import ExpressRouteCrossConnectionPeeringsOperations +from .operations.express_route_gateways_operations import ExpressRouteGatewaysOperations +from .operations.express_route_connections_operations import ExpressRouteConnectionsOperations +from .operations.express_route_ports_locations_operations import ExpressRoutePortsLocationsOperations +from .operations.express_route_ports_operations import ExpressRoutePortsOperations +from .operations.express_route_links_operations import ExpressRouteLinksOperations +from .operations.interface_endpoints_operations import InterfaceEndpointsOperations +from .operations.load_balancers_operations import LoadBalancersOperations +from .operations.load_balancer_backend_address_pools_operations import LoadBalancerBackendAddressPoolsOperations +from .operations.load_balancer_frontend_ip_configurations_operations import LoadBalancerFrontendIPConfigurationsOperations +from .operations.inbound_nat_rules_operations import InboundNatRulesOperations +from .operations.load_balancer_load_balancing_rules_operations import LoadBalancerLoadBalancingRulesOperations +from .operations.load_balancer_outbound_rules_operations import LoadBalancerOutboundRulesOperations +from .operations.load_balancer_network_interfaces_operations import LoadBalancerNetworkInterfacesOperations +from .operations.load_balancer_probes_operations import LoadBalancerProbesOperations +from .operations.network_interfaces_operations import NetworkInterfacesOperations +from .operations.network_interface_ip_configurations_operations import NetworkInterfaceIPConfigurationsOperations +from .operations.network_interface_load_balancers_operations import NetworkInterfaceLoadBalancersOperations +from .operations.network_interface_tap_configurations_operations import NetworkInterfaceTapConfigurationsOperations +from .operations.network_profiles_operations import NetworkProfilesOperations +from .operations.network_security_groups_operations import NetworkSecurityGroupsOperations +from .operations.security_rules_operations import SecurityRulesOperations +from .operations.default_security_rules_operations import DefaultSecurityRulesOperations +from .operations.network_watchers_operations import NetworkWatchersOperations +from .operations.packet_captures_operations import PacketCapturesOperations +from .operations.connection_monitors_operations import ConnectionMonitorsOperations +from .operations.operations import Operations +from .operations.public_ip_addresses_operations import PublicIPAddressesOperations +from .operations.public_ip_prefixes_operations import PublicIPPrefixesOperations +from .operations.route_filters_operations import RouteFiltersOperations +from .operations.route_filter_rules_operations import RouteFilterRulesOperations +from .operations.route_tables_operations import RouteTablesOperations +from .operations.routes_operations import RoutesOperations +from .operations.bgp_service_communities_operations import BgpServiceCommunitiesOperations +from .operations.service_endpoint_policies_operations import ServiceEndpointPoliciesOperations +from .operations.service_endpoint_policy_definitions_operations import ServiceEndpointPolicyDefinitionsOperations +from .operations.usages_operations import UsagesOperations +from .operations.virtual_networks_operations import VirtualNetworksOperations +from .operations.subnets_operations import SubnetsOperations +from .operations.virtual_network_peerings_operations import VirtualNetworkPeeringsOperations +from .operations.virtual_network_gateways_operations import VirtualNetworkGatewaysOperations +from .operations.virtual_network_gateway_connections_operations import VirtualNetworkGatewayConnectionsOperations +from .operations.local_network_gateways_operations import LocalNetworkGatewaysOperations +from .operations.virtual_network_taps_operations import VirtualNetworkTapsOperations +from .operations.virtual_wans_operations import VirtualWansOperations +from .operations.vpn_sites_operations import VpnSitesOperations +from .operations.vpn_sites_configuration_operations import VpnSitesConfigurationOperations +from .operations.virtual_hubs_operations import VirtualHubsOperations +from .operations.hub_virtual_network_connections_operations import HubVirtualNetworkConnectionsOperations +from .operations.vpn_gateways_operations import VpnGatewaysOperations +from .operations.vpn_connections_operations import VpnConnectionsOperations +from .operations.p2s_vpn_server_configurations_operations import P2sVpnServerConfigurationsOperations +from .operations.p2s_vpn_gateways_operations import P2sVpnGatewaysOperations +from . import models + + +class NetworkManagementClientConfiguration(AzureConfiguration): + """Configuration for NetworkManagementClient + Note that all parameters used to create this instance are saved as instance + attributes. + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param subscription_id: The subscription credentials which uniquely + identify the Microsoft Azure subscription. The subscription ID forms part + of the URI for every service call. + :type subscription_id: str + :param str base_url: Service URL + """ + + def __init__( + self, credentials, subscription_id, base_url=None): + + if credentials is None: + raise ValueError("Parameter 'credentials' must not be None.") + if subscription_id is None: + raise ValueError("Parameter 'subscription_id' must not be None.") + if not base_url: + base_url = 'https://management.azure.com' + + super(NetworkManagementClientConfiguration, self).__init__(base_url) + + self.add_user_agent('azure-mgmt-network/{}'.format(VERSION)) + self.add_user_agent('Azure-SDK-For-Python') + + self.credentials = credentials + self.subscription_id = subscription_id + + +class NetworkManagementClient(SDKClient): + """Network Client + + :ivar config: Configuration for client. + :vartype config: NetworkManagementClientConfiguration + + :ivar application_gateways: ApplicationGateways operations + :vartype application_gateways: azure.mgmt.network.v2018_10_01.operations.ApplicationGatewaysOperations + :ivar application_security_groups: ApplicationSecurityGroups operations + :vartype application_security_groups: azure.mgmt.network.v2018_10_01.operations.ApplicationSecurityGroupsOperations + :ivar available_delegations: AvailableDelegations operations + :vartype available_delegations: azure.mgmt.network.v2018_10_01.operations.AvailableDelegationsOperations + :ivar available_resource_group_delegations: AvailableResourceGroupDelegations operations + :vartype available_resource_group_delegations: azure.mgmt.network.v2018_10_01.operations.AvailableResourceGroupDelegationsOperations + :ivar azure_firewalls: AzureFirewalls operations + :vartype azure_firewalls: azure.mgmt.network.v2018_10_01.operations.AzureFirewallsOperations + :ivar azure_firewall_fqdn_tags: AzureFirewallFqdnTags operations + :vartype azure_firewall_fqdn_tags: azure.mgmt.network.v2018_10_01.operations.AzureFirewallFqdnTagsOperations + :ivar ddos_protection_plans: DdosProtectionPlans operations + :vartype ddos_protection_plans: azure.mgmt.network.v2018_10_01.operations.DdosProtectionPlansOperations + :ivar available_endpoint_services: AvailableEndpointServices operations + :vartype available_endpoint_services: azure.mgmt.network.v2018_10_01.operations.AvailableEndpointServicesOperations + :ivar express_route_circuit_authorizations: ExpressRouteCircuitAuthorizations operations + :vartype express_route_circuit_authorizations: azure.mgmt.network.v2018_10_01.operations.ExpressRouteCircuitAuthorizationsOperations + :ivar express_route_circuit_peerings: ExpressRouteCircuitPeerings operations + :vartype express_route_circuit_peerings: azure.mgmt.network.v2018_10_01.operations.ExpressRouteCircuitPeeringsOperations + :ivar express_route_circuit_connections: ExpressRouteCircuitConnections operations + :vartype express_route_circuit_connections: azure.mgmt.network.v2018_10_01.operations.ExpressRouteCircuitConnectionsOperations + :ivar express_route_circuits: ExpressRouteCircuits operations + :vartype express_route_circuits: azure.mgmt.network.v2018_10_01.operations.ExpressRouteCircuitsOperations + :ivar express_route_service_providers: ExpressRouteServiceProviders operations + :vartype express_route_service_providers: azure.mgmt.network.v2018_10_01.operations.ExpressRouteServiceProvidersOperations + :ivar express_route_cross_connections: ExpressRouteCrossConnections operations + :vartype express_route_cross_connections: azure.mgmt.network.v2018_10_01.operations.ExpressRouteCrossConnectionsOperations + :ivar express_route_cross_connection_peerings: ExpressRouteCrossConnectionPeerings operations + :vartype express_route_cross_connection_peerings: azure.mgmt.network.v2018_10_01.operations.ExpressRouteCrossConnectionPeeringsOperations + :ivar express_route_gateways: ExpressRouteGateways operations + :vartype express_route_gateways: azure.mgmt.network.v2018_10_01.operations.ExpressRouteGatewaysOperations + :ivar express_route_connections: ExpressRouteConnections operations + :vartype express_route_connections: azure.mgmt.network.v2018_10_01.operations.ExpressRouteConnectionsOperations + :ivar express_route_ports_locations: ExpressRoutePortsLocations operations + :vartype express_route_ports_locations: azure.mgmt.network.v2018_10_01.operations.ExpressRoutePortsLocationsOperations + :ivar express_route_ports: ExpressRoutePorts operations + :vartype express_route_ports: azure.mgmt.network.v2018_10_01.operations.ExpressRoutePortsOperations + :ivar express_route_links: ExpressRouteLinks operations + :vartype express_route_links: azure.mgmt.network.v2018_10_01.operations.ExpressRouteLinksOperations + :ivar interface_endpoints: InterfaceEndpoints operations + :vartype interface_endpoints: azure.mgmt.network.v2018_10_01.operations.InterfaceEndpointsOperations + :ivar load_balancers: LoadBalancers operations + :vartype load_balancers: azure.mgmt.network.v2018_10_01.operations.LoadBalancersOperations + :ivar load_balancer_backend_address_pools: LoadBalancerBackendAddressPools operations + :vartype load_balancer_backend_address_pools: azure.mgmt.network.v2018_10_01.operations.LoadBalancerBackendAddressPoolsOperations + :ivar load_balancer_frontend_ip_configurations: LoadBalancerFrontendIPConfigurations operations + :vartype load_balancer_frontend_ip_configurations: azure.mgmt.network.v2018_10_01.operations.LoadBalancerFrontendIPConfigurationsOperations + :ivar inbound_nat_rules: InboundNatRules operations + :vartype inbound_nat_rules: azure.mgmt.network.v2018_10_01.operations.InboundNatRulesOperations + :ivar load_balancer_load_balancing_rules: LoadBalancerLoadBalancingRules operations + :vartype load_balancer_load_balancing_rules: azure.mgmt.network.v2018_10_01.operations.LoadBalancerLoadBalancingRulesOperations + :ivar load_balancer_outbound_rules: LoadBalancerOutboundRules operations + :vartype load_balancer_outbound_rules: azure.mgmt.network.v2018_10_01.operations.LoadBalancerOutboundRulesOperations + :ivar load_balancer_network_interfaces: LoadBalancerNetworkInterfaces operations + :vartype load_balancer_network_interfaces: azure.mgmt.network.v2018_10_01.operations.LoadBalancerNetworkInterfacesOperations + :ivar load_balancer_probes: LoadBalancerProbes operations + :vartype load_balancer_probes: azure.mgmt.network.v2018_10_01.operations.LoadBalancerProbesOperations + :ivar network_interfaces: NetworkInterfaces operations + :vartype network_interfaces: azure.mgmt.network.v2018_10_01.operations.NetworkInterfacesOperations + :ivar network_interface_ip_configurations: NetworkInterfaceIPConfigurations operations + :vartype network_interface_ip_configurations: azure.mgmt.network.v2018_10_01.operations.NetworkInterfaceIPConfigurationsOperations + :ivar network_interface_load_balancers: NetworkInterfaceLoadBalancers operations + :vartype network_interface_load_balancers: azure.mgmt.network.v2018_10_01.operations.NetworkInterfaceLoadBalancersOperations + :ivar network_interface_tap_configurations: NetworkInterfaceTapConfigurations operations + :vartype network_interface_tap_configurations: azure.mgmt.network.v2018_10_01.operations.NetworkInterfaceTapConfigurationsOperations + :ivar network_profiles: NetworkProfiles operations + :vartype network_profiles: azure.mgmt.network.v2018_10_01.operations.NetworkProfilesOperations + :ivar network_security_groups: NetworkSecurityGroups operations + :vartype network_security_groups: azure.mgmt.network.v2018_10_01.operations.NetworkSecurityGroupsOperations + :ivar security_rules: SecurityRules operations + :vartype security_rules: azure.mgmt.network.v2018_10_01.operations.SecurityRulesOperations + :ivar default_security_rules: DefaultSecurityRules operations + :vartype default_security_rules: azure.mgmt.network.v2018_10_01.operations.DefaultSecurityRulesOperations + :ivar network_watchers: NetworkWatchers operations + :vartype network_watchers: azure.mgmt.network.v2018_10_01.operations.NetworkWatchersOperations + :ivar packet_captures: PacketCaptures operations + :vartype packet_captures: azure.mgmt.network.v2018_10_01.operations.PacketCapturesOperations + :ivar connection_monitors: ConnectionMonitors operations + :vartype connection_monitors: azure.mgmt.network.v2018_10_01.operations.ConnectionMonitorsOperations + :ivar operations: Operations operations + :vartype operations: azure.mgmt.network.v2018_10_01.operations.Operations + :ivar public_ip_addresses: PublicIPAddresses operations + :vartype public_ip_addresses: azure.mgmt.network.v2018_10_01.operations.PublicIPAddressesOperations + :ivar public_ip_prefixes: PublicIPPrefixes operations + :vartype public_ip_prefixes: azure.mgmt.network.v2018_10_01.operations.PublicIPPrefixesOperations + :ivar route_filters: RouteFilters operations + :vartype route_filters: azure.mgmt.network.v2018_10_01.operations.RouteFiltersOperations + :ivar route_filter_rules: RouteFilterRules operations + :vartype route_filter_rules: azure.mgmt.network.v2018_10_01.operations.RouteFilterRulesOperations + :ivar route_tables: RouteTables operations + :vartype route_tables: azure.mgmt.network.v2018_10_01.operations.RouteTablesOperations + :ivar routes: Routes operations + :vartype routes: azure.mgmt.network.v2018_10_01.operations.RoutesOperations + :ivar bgp_service_communities: BgpServiceCommunities operations + :vartype bgp_service_communities: azure.mgmt.network.v2018_10_01.operations.BgpServiceCommunitiesOperations + :ivar service_endpoint_policies: ServiceEndpointPolicies operations + :vartype service_endpoint_policies: azure.mgmt.network.v2018_10_01.operations.ServiceEndpointPoliciesOperations + :ivar service_endpoint_policy_definitions: ServiceEndpointPolicyDefinitions operations + :vartype service_endpoint_policy_definitions: azure.mgmt.network.v2018_10_01.operations.ServiceEndpointPolicyDefinitionsOperations + :ivar usages: Usages operations + :vartype usages: azure.mgmt.network.v2018_10_01.operations.UsagesOperations + :ivar virtual_networks: VirtualNetworks operations + :vartype virtual_networks: azure.mgmt.network.v2018_10_01.operations.VirtualNetworksOperations + :ivar subnets: Subnets operations + :vartype subnets: azure.mgmt.network.v2018_10_01.operations.SubnetsOperations + :ivar virtual_network_peerings: VirtualNetworkPeerings operations + :vartype virtual_network_peerings: azure.mgmt.network.v2018_10_01.operations.VirtualNetworkPeeringsOperations + :ivar virtual_network_gateways: VirtualNetworkGateways operations + :vartype virtual_network_gateways: azure.mgmt.network.v2018_10_01.operations.VirtualNetworkGatewaysOperations + :ivar virtual_network_gateway_connections: VirtualNetworkGatewayConnections operations + :vartype virtual_network_gateway_connections: azure.mgmt.network.v2018_10_01.operations.VirtualNetworkGatewayConnectionsOperations + :ivar local_network_gateways: LocalNetworkGateways operations + :vartype local_network_gateways: azure.mgmt.network.v2018_10_01.operations.LocalNetworkGatewaysOperations + :ivar virtual_network_taps: VirtualNetworkTaps operations + :vartype virtual_network_taps: azure.mgmt.network.v2018_10_01.operations.VirtualNetworkTapsOperations + :ivar virtual_wans: VirtualWans operations + :vartype virtual_wans: azure.mgmt.network.v2018_10_01.operations.VirtualWansOperations + :ivar vpn_sites: VpnSites operations + :vartype vpn_sites: azure.mgmt.network.v2018_10_01.operations.VpnSitesOperations + :ivar vpn_sites_configuration: VpnSitesConfiguration operations + :vartype vpn_sites_configuration: azure.mgmt.network.v2018_10_01.operations.VpnSitesConfigurationOperations + :ivar virtual_hubs: VirtualHubs operations + :vartype virtual_hubs: azure.mgmt.network.v2018_10_01.operations.VirtualHubsOperations + :ivar hub_virtual_network_connections: HubVirtualNetworkConnections operations + :vartype hub_virtual_network_connections: azure.mgmt.network.v2018_10_01.operations.HubVirtualNetworkConnectionsOperations + :ivar vpn_gateways: VpnGateways operations + :vartype vpn_gateways: azure.mgmt.network.v2018_10_01.operations.VpnGatewaysOperations + :ivar vpn_connections: VpnConnections operations + :vartype vpn_connections: azure.mgmt.network.v2018_10_01.operations.VpnConnectionsOperations + :ivar p2s_vpn_server_configurations: P2sVpnServerConfigurations operations + :vartype p2s_vpn_server_configurations: azure.mgmt.network.v2018_10_01.operations.P2sVpnServerConfigurationsOperations + :ivar p2s_vpn_gateways: P2sVpnGateways operations + :vartype p2s_vpn_gateways: azure.mgmt.network.v2018_10_01.operations.P2sVpnGatewaysOperations + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param subscription_id: The subscription credentials which uniquely + identify the Microsoft Azure subscription. The subscription ID forms part + of the URI for every service call. + :type subscription_id: str + :param str base_url: Service URL + """ + + def __init__( + self, credentials, subscription_id, base_url=None): + + self.config = NetworkManagementClientConfiguration(credentials, subscription_id, base_url) + super(NetworkManagementClient, self).__init__(self.config.credentials, self.config) + + client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} + self._serialize = Serializer(client_models) + self._deserialize = Deserializer(client_models) + + self.application_gateways = ApplicationGatewaysOperations( + self._client, self.config, self._serialize, self._deserialize) + self.application_security_groups = ApplicationSecurityGroupsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.available_delegations = AvailableDelegationsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.available_resource_group_delegations = AvailableResourceGroupDelegationsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.azure_firewalls = AzureFirewallsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.azure_firewall_fqdn_tags = AzureFirewallFqdnTagsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.ddos_protection_plans = DdosProtectionPlansOperations( + self._client, self.config, self._serialize, self._deserialize) + self.available_endpoint_services = AvailableEndpointServicesOperations( + self._client, self.config, self._serialize, self._deserialize) + self.express_route_circuit_authorizations = ExpressRouteCircuitAuthorizationsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.express_route_circuit_peerings = ExpressRouteCircuitPeeringsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.express_route_circuit_connections = ExpressRouteCircuitConnectionsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.express_route_circuits = ExpressRouteCircuitsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.express_route_service_providers = ExpressRouteServiceProvidersOperations( + self._client, self.config, self._serialize, self._deserialize) + self.express_route_cross_connections = ExpressRouteCrossConnectionsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.express_route_cross_connection_peerings = ExpressRouteCrossConnectionPeeringsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.express_route_gateways = ExpressRouteGatewaysOperations( + self._client, self.config, self._serialize, self._deserialize) + self.express_route_connections = ExpressRouteConnectionsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.express_route_ports_locations = ExpressRoutePortsLocationsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.express_route_ports = ExpressRoutePortsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.express_route_links = ExpressRouteLinksOperations( + self._client, self.config, self._serialize, self._deserialize) + self.interface_endpoints = InterfaceEndpointsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.load_balancers = LoadBalancersOperations( + self._client, self.config, self._serialize, self._deserialize) + self.load_balancer_backend_address_pools = LoadBalancerBackendAddressPoolsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.load_balancer_frontend_ip_configurations = LoadBalancerFrontendIPConfigurationsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.inbound_nat_rules = InboundNatRulesOperations( + self._client, self.config, self._serialize, self._deserialize) + self.load_balancer_load_balancing_rules = LoadBalancerLoadBalancingRulesOperations( + self._client, self.config, self._serialize, self._deserialize) + self.load_balancer_outbound_rules = LoadBalancerOutboundRulesOperations( + self._client, self.config, self._serialize, self._deserialize) + self.load_balancer_network_interfaces = LoadBalancerNetworkInterfacesOperations( + self._client, self.config, self._serialize, self._deserialize) + self.load_balancer_probes = LoadBalancerProbesOperations( + self._client, self.config, self._serialize, self._deserialize) + self.network_interfaces = NetworkInterfacesOperations( + self._client, self.config, self._serialize, self._deserialize) + self.network_interface_ip_configurations = NetworkInterfaceIPConfigurationsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.network_interface_load_balancers = NetworkInterfaceLoadBalancersOperations( + self._client, self.config, self._serialize, self._deserialize) + self.network_interface_tap_configurations = NetworkInterfaceTapConfigurationsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.network_profiles = NetworkProfilesOperations( + self._client, self.config, self._serialize, self._deserialize) + self.network_security_groups = NetworkSecurityGroupsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.security_rules = SecurityRulesOperations( + self._client, self.config, self._serialize, self._deserialize) + self.default_security_rules = DefaultSecurityRulesOperations( + self._client, self.config, self._serialize, self._deserialize) + self.network_watchers = NetworkWatchersOperations( + self._client, self.config, self._serialize, self._deserialize) + self.packet_captures = PacketCapturesOperations( + self._client, self.config, self._serialize, self._deserialize) + self.connection_monitors = ConnectionMonitorsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.operations = Operations( + self._client, self.config, self._serialize, self._deserialize) + self.public_ip_addresses = PublicIPAddressesOperations( + self._client, self.config, self._serialize, self._deserialize) + self.public_ip_prefixes = PublicIPPrefixesOperations( + self._client, self.config, self._serialize, self._deserialize) + self.route_filters = RouteFiltersOperations( + self._client, self.config, self._serialize, self._deserialize) + self.route_filter_rules = RouteFilterRulesOperations( + self._client, self.config, self._serialize, self._deserialize) + self.route_tables = RouteTablesOperations( + self._client, self.config, self._serialize, self._deserialize) + self.routes = RoutesOperations( + self._client, self.config, self._serialize, self._deserialize) + self.bgp_service_communities = BgpServiceCommunitiesOperations( + self._client, self.config, self._serialize, self._deserialize) + self.service_endpoint_policies = ServiceEndpointPoliciesOperations( + self._client, self.config, self._serialize, self._deserialize) + self.service_endpoint_policy_definitions = ServiceEndpointPolicyDefinitionsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.usages = UsagesOperations( + self._client, self.config, self._serialize, self._deserialize) + self.virtual_networks = VirtualNetworksOperations( + self._client, self.config, self._serialize, self._deserialize) + self.subnets = SubnetsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.virtual_network_peerings = VirtualNetworkPeeringsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.virtual_network_gateways = VirtualNetworkGatewaysOperations( + self._client, self.config, self._serialize, self._deserialize) + self.virtual_network_gateway_connections = VirtualNetworkGatewayConnectionsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.local_network_gateways = LocalNetworkGatewaysOperations( + self._client, self.config, self._serialize, self._deserialize) + self.virtual_network_taps = VirtualNetworkTapsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.virtual_wans = VirtualWansOperations( + self._client, self.config, self._serialize, self._deserialize) + self.vpn_sites = VpnSitesOperations( + self._client, self.config, self._serialize, self._deserialize) + self.vpn_sites_configuration = VpnSitesConfigurationOperations( + self._client, self.config, self._serialize, self._deserialize) + self.virtual_hubs = VirtualHubsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.hub_virtual_network_connections = HubVirtualNetworkConnectionsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.vpn_gateways = VpnGatewaysOperations( + self._client, self.config, self._serialize, self._deserialize) + self.vpn_connections = VpnConnectionsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.p2s_vpn_server_configurations = P2sVpnServerConfigurationsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.p2s_vpn_gateways = P2sVpnGatewaysOperations( + self._client, self.config, self._serialize, self._deserialize) + + def check_dns_name_availability( + self, location, domain_name_label, custom_headers=None, raw=False, **operation_config): + """Checks whether a domain name in the cloudapp.azure.com zone is + available for use. + + :param location: The location of the domain name. + :type location: str + :param domain_name_label: The domain name to be verified. It must + conform to the following regular expression: + ^[a-z][a-z0-9-]{1,61}[a-z0-9]$. + :type domain_name_label: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: DnsNameAvailabilityResult or ClientRawResponse if raw=true + :rtype: + ~azure.mgmt.network.v2018_10_01.models.DnsNameAvailabilityResult or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + api_version = "2018-10-01" + + # Construct URL + url = self.check_dns_name_availability.metadata['url'] + path_format_arguments = { + 'location': self._serialize.url("location", location, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['domainNameLabel'] = self._serialize.query("domain_name_label", domain_name_label, 'str') + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('DnsNameAvailabilityResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + check_dns_name_availability.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/CheckDnsNameAvailability'} + + def supported_security_providers( + self, resource_group_name, virtual_wan_name, custom_headers=None, raw=False, **operation_config): + """Gives the supported security providers for the virtual wan. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param virtual_wan_name: The name of the VirtualWAN for which + supported security providers are needed. + :type virtual_wan_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: VirtualWanSecurityProviders or ClientRawResponse if raw=true + :rtype: + ~azure.mgmt.network.v2018_10_01.models.VirtualWanSecurityProviders or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorException` + """ + api_version = "2018-10-01" + + # Construct URL + url = self.supported_security_providers.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualWANName': self._serialize.url("virtual_wan_name", virtual_wan_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('VirtualWanSecurityProviders', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + supported_security_providers.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{virtualWANName}/supportedSecurityProviders'} diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/__init__.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/__init__.py new file mode 100644 index 000000000000..07f25b3265a7 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/__init__.py @@ -0,0 +1,148 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .application_gateways_operations import ApplicationGatewaysOperations +from .application_security_groups_operations import ApplicationSecurityGroupsOperations +from .available_delegations_operations import AvailableDelegationsOperations +from .available_resource_group_delegations_operations import AvailableResourceGroupDelegationsOperations +from .azure_firewalls_operations import AzureFirewallsOperations +from .azure_firewall_fqdn_tags_operations import AzureFirewallFqdnTagsOperations +from .ddos_protection_plans_operations import DdosProtectionPlansOperations +from .available_endpoint_services_operations import AvailableEndpointServicesOperations +from .express_route_circuit_authorizations_operations import ExpressRouteCircuitAuthorizationsOperations +from .express_route_circuit_peerings_operations import ExpressRouteCircuitPeeringsOperations +from .express_route_circuit_connections_operations import ExpressRouteCircuitConnectionsOperations +from .express_route_circuits_operations import ExpressRouteCircuitsOperations +from .express_route_service_providers_operations import ExpressRouteServiceProvidersOperations +from .express_route_cross_connections_operations import ExpressRouteCrossConnectionsOperations +from .express_route_cross_connection_peerings_operations import ExpressRouteCrossConnectionPeeringsOperations +from .express_route_gateways_operations import ExpressRouteGatewaysOperations +from .express_route_connections_operations import ExpressRouteConnectionsOperations +from .express_route_ports_locations_operations import ExpressRoutePortsLocationsOperations +from .express_route_ports_operations import ExpressRoutePortsOperations +from .express_route_links_operations import ExpressRouteLinksOperations +from .interface_endpoints_operations import InterfaceEndpointsOperations +from .load_balancers_operations import LoadBalancersOperations +from .load_balancer_backend_address_pools_operations import LoadBalancerBackendAddressPoolsOperations +from .load_balancer_frontend_ip_configurations_operations import LoadBalancerFrontendIPConfigurationsOperations +from .inbound_nat_rules_operations import InboundNatRulesOperations +from .load_balancer_load_balancing_rules_operations import LoadBalancerLoadBalancingRulesOperations +from .load_balancer_outbound_rules_operations import LoadBalancerOutboundRulesOperations +from .load_balancer_network_interfaces_operations import LoadBalancerNetworkInterfacesOperations +from .load_balancer_probes_operations import LoadBalancerProbesOperations +from .network_interfaces_operations import NetworkInterfacesOperations +from .network_interface_ip_configurations_operations import NetworkInterfaceIPConfigurationsOperations +from .network_interface_load_balancers_operations import NetworkInterfaceLoadBalancersOperations +from .network_interface_tap_configurations_operations import NetworkInterfaceTapConfigurationsOperations +from .network_profiles_operations import NetworkProfilesOperations +from .network_security_groups_operations import NetworkSecurityGroupsOperations +from .security_rules_operations import SecurityRulesOperations +from .default_security_rules_operations import DefaultSecurityRulesOperations +from .network_watchers_operations import NetworkWatchersOperations +from .packet_captures_operations import PacketCapturesOperations +from .connection_monitors_operations import ConnectionMonitorsOperations +from .operations import Operations +from .public_ip_addresses_operations import PublicIPAddressesOperations +from .public_ip_prefixes_operations import PublicIPPrefixesOperations +from .route_filters_operations import RouteFiltersOperations +from .route_filter_rules_operations import RouteFilterRulesOperations +from .route_tables_operations import RouteTablesOperations +from .routes_operations import RoutesOperations +from .bgp_service_communities_operations import BgpServiceCommunitiesOperations +from .service_endpoint_policies_operations import ServiceEndpointPoliciesOperations +from .service_endpoint_policy_definitions_operations import ServiceEndpointPolicyDefinitionsOperations +from .usages_operations import UsagesOperations +from .virtual_networks_operations import VirtualNetworksOperations +from .subnets_operations import SubnetsOperations +from .virtual_network_peerings_operations import VirtualNetworkPeeringsOperations +from .virtual_network_gateways_operations import VirtualNetworkGatewaysOperations +from .virtual_network_gateway_connections_operations import VirtualNetworkGatewayConnectionsOperations +from .local_network_gateways_operations import LocalNetworkGatewaysOperations +from .virtual_network_taps_operations import VirtualNetworkTapsOperations +from .virtual_wans_operations import VirtualWansOperations +from .vpn_sites_operations import VpnSitesOperations +from .vpn_sites_configuration_operations import VpnSitesConfigurationOperations +from .virtual_hubs_operations import VirtualHubsOperations +from .hub_virtual_network_connections_operations import HubVirtualNetworkConnectionsOperations +from .vpn_gateways_operations import VpnGatewaysOperations +from .vpn_connections_operations import VpnConnectionsOperations +from .p2s_vpn_server_configurations_operations import P2sVpnServerConfigurationsOperations +from .p2s_vpn_gateways_operations import P2sVpnGatewaysOperations + +__all__ = [ + 'ApplicationGatewaysOperations', + 'ApplicationSecurityGroupsOperations', + 'AvailableDelegationsOperations', + 'AvailableResourceGroupDelegationsOperations', + 'AzureFirewallsOperations', + 'AzureFirewallFqdnTagsOperations', + 'DdosProtectionPlansOperations', + 'AvailableEndpointServicesOperations', + 'ExpressRouteCircuitAuthorizationsOperations', + 'ExpressRouteCircuitPeeringsOperations', + 'ExpressRouteCircuitConnectionsOperations', + 'ExpressRouteCircuitsOperations', + 'ExpressRouteServiceProvidersOperations', + 'ExpressRouteCrossConnectionsOperations', + 'ExpressRouteCrossConnectionPeeringsOperations', + 'ExpressRouteGatewaysOperations', + 'ExpressRouteConnectionsOperations', + 'ExpressRoutePortsLocationsOperations', + 'ExpressRoutePortsOperations', + 'ExpressRouteLinksOperations', + 'InterfaceEndpointsOperations', + 'LoadBalancersOperations', + 'LoadBalancerBackendAddressPoolsOperations', + 'LoadBalancerFrontendIPConfigurationsOperations', + 'InboundNatRulesOperations', + 'LoadBalancerLoadBalancingRulesOperations', + 'LoadBalancerOutboundRulesOperations', + 'LoadBalancerNetworkInterfacesOperations', + 'LoadBalancerProbesOperations', + 'NetworkInterfacesOperations', + 'NetworkInterfaceIPConfigurationsOperations', + 'NetworkInterfaceLoadBalancersOperations', + 'NetworkInterfaceTapConfigurationsOperations', + 'NetworkProfilesOperations', + 'NetworkSecurityGroupsOperations', + 'SecurityRulesOperations', + 'DefaultSecurityRulesOperations', + 'NetworkWatchersOperations', + 'PacketCapturesOperations', + 'ConnectionMonitorsOperations', + 'Operations', + 'PublicIPAddressesOperations', + 'PublicIPPrefixesOperations', + 'RouteFiltersOperations', + 'RouteFilterRulesOperations', + 'RouteTablesOperations', + 'RoutesOperations', + 'BgpServiceCommunitiesOperations', + 'ServiceEndpointPoliciesOperations', + 'ServiceEndpointPolicyDefinitionsOperations', + 'UsagesOperations', + 'VirtualNetworksOperations', + 'SubnetsOperations', + 'VirtualNetworkPeeringsOperations', + 'VirtualNetworkGatewaysOperations', + 'VirtualNetworkGatewayConnectionsOperations', + 'LocalNetworkGatewaysOperations', + 'VirtualNetworkTapsOperations', + 'VirtualWansOperations', + 'VpnSitesOperations', + 'VpnSitesConfigurationOperations', + 'VirtualHubsOperations', + 'HubVirtualNetworkConnectionsOperations', + 'VpnGatewaysOperations', + 'VpnConnectionsOperations', + 'P2sVpnServerConfigurationsOperations', + 'P2sVpnGatewaysOperations', +] diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/application_gateways_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/application_gateways_operations.py new file mode 100644 index 000000000000..58aaa8bc05dd --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/application_gateways_operations.py @@ -0,0 +1,1019 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +from msrest.polling import LROPoller, NoPolling +from msrestazure.polling.arm_polling import ARMPolling + +from .. import models + + +class ApplicationGatewaysOperations(object): + """ApplicationGatewaysOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client API version. Constant value: "2018-10-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-10-01" + + self.config = config + + + def _delete_initial( + self, resource_group_name, application_gateway_name, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'applicationGatewayName': self._serialize.url("application_gateway_name", application_gateway_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202, 204]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def delete( + self, resource_group_name, application_gateway_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Deletes the specified application gateway. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param application_gateway_name: The name of the application gateway. + :type application_gateway_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: :class:`CloudError` + """ + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + application_gateway_name=application_gateway_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}'} + + def get( + self, resource_group_name, application_gateway_name, custom_headers=None, raw=False, **operation_config): + """Gets the specified application gateway. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param application_gateway_name: The name of the application gateway. + :type application_gateway_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: ApplicationGateway or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.network.v2018_10_01.models.ApplicationGateway or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'applicationGatewayName': self._serialize.url("application_gateway_name", application_gateway_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ApplicationGateway', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}'} + + + def _create_or_update_initial( + self, resource_group_name, application_gateway_name, parameters, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'applicationGatewayName': self._serialize.url("application_gateway_name", application_gateway_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'ApplicationGateway') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ApplicationGateway', response) + if response.status_code == 201: + deserialized = self._deserialize('ApplicationGateway', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update( + self, resource_group_name, application_gateway_name, parameters, custom_headers=None, raw=False, polling=True, **operation_config): + """Creates or updates the specified application gateway. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param application_gateway_name: The name of the application gateway. + :type application_gateway_name: str + :param parameters: Parameters supplied to the create or update + application gateway operation. + :type parameters: + ~azure.mgmt.network.v2018_10_01.models.ApplicationGateway + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns ApplicationGateway or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.ApplicationGateway] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.ApplicationGateway]] + :raises: :class:`CloudError` + """ + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + application_gateway_name=application_gateway_name, + parameters=parameters, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('ApplicationGateway', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}'} + + + def _update_tags_initial( + self, resource_group_name, application_gateway_name, tags=None, custom_headers=None, raw=False, **operation_config): + parameters = models.TagsObject(tags=tags) + + # Construct URL + url = self.update_tags.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'applicationGatewayName': self._serialize.url("application_gateway_name", application_gateway_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'TagsObject') + + # Construct and send request + request = self._client.patch(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ApplicationGateway', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def update_tags( + self, resource_group_name, application_gateway_name, tags=None, custom_headers=None, raw=False, polling=True, **operation_config): + """Updates the specified application gateway tags. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param application_gateway_name: The name of the application gateway. + :type application_gateway_name: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns ApplicationGateway or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.ApplicationGateway] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.ApplicationGateway]] + :raises: :class:`CloudError` + """ + raw_result = self._update_tags_initial( + resource_group_name=resource_group_name, + application_gateway_name=application_gateway_name, + tags=tags, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('ApplicationGateway', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + update_tags.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}'} + + def list( + self, resource_group_name, custom_headers=None, raw=False, **operation_config): + """Lists all application gateways in a resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of ApplicationGateway + :rtype: + ~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayPaged[~azure.mgmt.network.v2018_10_01.models.ApplicationGateway] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.ApplicationGatewayPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.ApplicationGatewayPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways'} + + def list_all( + self, custom_headers=None, raw=False, **operation_config): + """Gets all the application gateways in a subscription. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of ApplicationGateway + :rtype: + ~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayPaged[~azure.mgmt.network.v2018_10_01.models.ApplicationGateway] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_all.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.ApplicationGatewayPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.ApplicationGatewayPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_all.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGateways'} + + + def _start_initial( + self, resource_group_name, application_gateway_name, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.start.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'applicationGatewayName': self._serialize.url("application_gateway_name", application_gateway_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def start( + self, resource_group_name, application_gateway_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Starts the specified application gateway. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param application_gateway_name: The name of the application gateway. + :type application_gateway_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: :class:`CloudError` + """ + raw_result = self._start_initial( + resource_group_name=resource_group_name, + application_gateway_name=application_gateway_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + start.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/start'} + + + def _stop_initial( + self, resource_group_name, application_gateway_name, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.stop.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'applicationGatewayName': self._serialize.url("application_gateway_name", application_gateway_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def stop( + self, resource_group_name, application_gateway_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Stops the specified application gateway in a resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param application_gateway_name: The name of the application gateway. + :type application_gateway_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: :class:`CloudError` + """ + raw_result = self._stop_initial( + resource_group_name=resource_group_name, + application_gateway_name=application_gateway_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + stop.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/stop'} + + + def _backend_health_initial( + self, resource_group_name, application_gateway_name, expand=None, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.backend_health.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'applicationGatewayName': self._serialize.url("application_gateway_name", application_gateway_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ApplicationGatewayBackendHealth', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def backend_health( + self, resource_group_name, application_gateway_name, expand=None, custom_headers=None, raw=False, polling=True, **operation_config): + """Gets the backend health of the specified application gateway in a + resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param application_gateway_name: The name of the application gateway. + :type application_gateway_name: str + :param expand: Expands BackendAddressPool and BackendHttpSettings + referenced in backend health. + :type expand: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns + ApplicationGatewayBackendHealth or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayBackendHealth] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayBackendHealth]] + :raises: :class:`CloudError` + """ + raw_result = self._backend_health_initial( + resource_group_name=resource_group_name, + application_gateway_name=application_gateway_name, + expand=expand, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('ApplicationGatewayBackendHealth', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + backend_health.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/backendhealth'} + + def list_available_waf_rule_sets( + self, custom_headers=None, raw=False, **operation_config): + """Lists all available web application firewall rule sets. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: ApplicationGatewayAvailableWafRuleSetsResult or + ClientRawResponse if raw=true + :rtype: + ~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayAvailableWafRuleSetsResult + or ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.list_available_waf_rule_sets.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ApplicationGatewayAvailableWafRuleSetsResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + list_available_waf_rule_sets.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableWafRuleSets'} + + def list_available_ssl_options( + self, custom_headers=None, raw=False, **operation_config): + """Lists available Ssl options for configuring Ssl policy. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: ApplicationGatewayAvailableSslOptions or ClientRawResponse if + raw=true + :rtype: + ~azure.mgmt.network.v2018_10_01.models.ApplicationGatewayAvailableSslOptions + or ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.list_available_ssl_options.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ApplicationGatewayAvailableSslOptions', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + list_available_ssl_options.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableSslOptions/default'} + + def list_available_ssl_predefined_policies( + self, custom_headers=None, raw=False, **operation_config): + """Lists all SSL predefined policies for configuring Ssl policy. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of + ApplicationGatewaySslPredefinedPolicy + :rtype: + ~azure.mgmt.network.v2018_10_01.models.ApplicationGatewaySslPredefinedPolicyPaged[~azure.mgmt.network.v2018_10_01.models.ApplicationGatewaySslPredefinedPolicy] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_available_ssl_predefined_policies.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.ApplicationGatewaySslPredefinedPolicyPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.ApplicationGatewaySslPredefinedPolicyPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_available_ssl_predefined_policies.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableSslOptions/default/predefinedPolicies'} + + def get_ssl_predefined_policy( + self, predefined_policy_name, custom_headers=None, raw=False, **operation_config): + """Gets Ssl predefined policy with the specified policy name. + + :param predefined_policy_name: Name of Ssl predefined policy. + :type predefined_policy_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: ApplicationGatewaySslPredefinedPolicy or ClientRawResponse if + raw=true + :rtype: + ~azure.mgmt.network.v2018_10_01.models.ApplicationGatewaySslPredefinedPolicy + or ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get_ssl_predefined_policy.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'predefinedPolicyName': self._serialize.url("predefined_policy_name", predefined_policy_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ApplicationGatewaySslPredefinedPolicy', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get_ssl_predefined_policy.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableSslOptions/default/predefinedPolicies/{predefinedPolicyName}'} diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/application_security_groups_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/application_security_groups_operations.py new file mode 100644 index 000000000000..0bea1a9a935b --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/application_security_groups_operations.py @@ -0,0 +1,421 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +from msrest.polling import LROPoller, NoPolling +from msrestazure.polling.arm_polling import ARMPolling + +from .. import models + + +class ApplicationSecurityGroupsOperations(object): + """ApplicationSecurityGroupsOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client API version. Constant value: "2018-10-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-10-01" + + self.config = config + + + def _delete_initial( + self, resource_group_name, application_security_group_name, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'applicationSecurityGroupName': self._serialize.url("application_security_group_name", application_security_group_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202, 204]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def delete( + self, resource_group_name, application_security_group_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Deletes the specified application security group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param application_security_group_name: The name of the application + security group. + :type application_security_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: :class:`CloudError` + """ + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + application_security_group_name=application_security_group_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups/{applicationSecurityGroupName}'} + + def get( + self, resource_group_name, application_security_group_name, custom_headers=None, raw=False, **operation_config): + """Gets information about the specified application security group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param application_security_group_name: The name of the application + security group. + :type application_security_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: ApplicationSecurityGroup or ClientRawResponse if raw=true + :rtype: + ~azure.mgmt.network.v2018_10_01.models.ApplicationSecurityGroup or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'applicationSecurityGroupName': self._serialize.url("application_security_group_name", application_security_group_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ApplicationSecurityGroup', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups/{applicationSecurityGroupName}'} + + + def _create_or_update_initial( + self, resource_group_name, application_security_group_name, parameters, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'applicationSecurityGroupName': self._serialize.url("application_security_group_name", application_security_group_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'ApplicationSecurityGroup') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ApplicationSecurityGroup', response) + if response.status_code == 201: + deserialized = self._deserialize('ApplicationSecurityGroup', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update( + self, resource_group_name, application_security_group_name, parameters, custom_headers=None, raw=False, polling=True, **operation_config): + """Creates or updates an application security group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param application_security_group_name: The name of the application + security group. + :type application_security_group_name: str + :param parameters: Parameters supplied to the create or update + ApplicationSecurityGroup operation. + :type parameters: + ~azure.mgmt.network.v2018_10_01.models.ApplicationSecurityGroup + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns + ApplicationSecurityGroup or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.ApplicationSecurityGroup] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.ApplicationSecurityGroup]] + :raises: :class:`CloudError` + """ + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + application_security_group_name=application_security_group_name, + parameters=parameters, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('ApplicationSecurityGroup', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups/{applicationSecurityGroupName}'} + + def list_all( + self, custom_headers=None, raw=False, **operation_config): + """Gets all application security groups in a subscription. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of ApplicationSecurityGroup + :rtype: + ~azure.mgmt.network.v2018_10_01.models.ApplicationSecurityGroupPaged[~azure.mgmt.network.v2018_10_01.models.ApplicationSecurityGroup] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_all.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.ApplicationSecurityGroupPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.ApplicationSecurityGroupPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_all.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationSecurityGroups'} + + def list( + self, resource_group_name, custom_headers=None, raw=False, **operation_config): + """Gets all the application security groups in a resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of ApplicationSecurityGroup + :rtype: + ~azure.mgmt.network.v2018_10_01.models.ApplicationSecurityGroupPaged[~azure.mgmt.network.v2018_10_01.models.ApplicationSecurityGroup] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.ApplicationSecurityGroupPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.ApplicationSecurityGroupPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups'} diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/available_delegations_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/available_delegations_operations.py new file mode 100644 index 000000000000..122cedfeb497 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/available_delegations_operations.py @@ -0,0 +1,106 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError + +from .. import models + + +class AvailableDelegationsOperations(object): + """AvailableDelegationsOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client API version. Constant value: "2018-10-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-10-01" + + self.config = config + + def list( + self, location, custom_headers=None, raw=False, **operation_config): + """Gets all of the available subnet delegations for this subscription in + this region. + + :param location: The location of the subnet. + :type location: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of AvailableDelegation + :rtype: + ~azure.mgmt.network.v2018_10_01.models.AvailableDelegationPaged[~azure.mgmt.network.v2018_10_01.models.AvailableDelegation] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'location': self._serialize.url("location", location, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.AvailableDelegationPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.AvailableDelegationPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/availableDelegations'} diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/available_endpoint_services_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/available_endpoint_services_operations.py new file mode 100644 index 000000000000..4fbb047ce759 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/available_endpoint_services_operations.py @@ -0,0 +1,105 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError + +from .. import models + + +class AvailableEndpointServicesOperations(object): + """AvailableEndpointServicesOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client API version. Constant value: "2018-10-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-10-01" + + self.config = config + + def list( + self, location, custom_headers=None, raw=False, **operation_config): + """List what values of endpoint services are available for use. + + :param location: The location to check available endpoint services. + :type location: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of EndpointServiceResult + :rtype: + ~azure.mgmt.network.v2018_10_01.models.EndpointServiceResultPaged[~azure.mgmt.network.v2018_10_01.models.EndpointServiceResult] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'location': self._serialize.url("location", location, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.EndpointServiceResultPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.EndpointServiceResultPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/virtualNetworkAvailableEndpointServices'} diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/available_resource_group_delegations_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/available_resource_group_delegations_operations.py new file mode 100644 index 000000000000..de3ae05d733a --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/available_resource_group_delegations_operations.py @@ -0,0 +1,109 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError + +from .. import models + + +class AvailableResourceGroupDelegationsOperations(object): + """AvailableResourceGroupDelegationsOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client API version. Constant value: "2018-10-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-10-01" + + self.config = config + + def list( + self, location, resource_group_name, custom_headers=None, raw=False, **operation_config): + """Gets all of the available subnet delegations for this resource group in + this region. + + :param location: The location of the domain name. + :type location: str + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of AvailableDelegation + :rtype: + ~azure.mgmt.network.v2018_10_01.models.AvailableDelegationPaged[~azure.mgmt.network.v2018_10_01.models.AvailableDelegation] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'location': self._serialize.url("location", location, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.AvailableDelegationPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.AvailableDelegationPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/locations/{location}/availableDelegations'} diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/azure_firewall_fqdn_tags_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/azure_firewall_fqdn_tags_operations.py new file mode 100644 index 000000000000..e5892daa6c97 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/azure_firewall_fqdn_tags_operations.py @@ -0,0 +1,102 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError + +from .. import models + + +class AzureFirewallFqdnTagsOperations(object): + """AzureFirewallFqdnTagsOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client API version. Constant value: "2018-10-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-10-01" + + self.config = config + + def list_all( + self, custom_headers=None, raw=False, **operation_config): + """Gets all the Azure Firewall FQDN Tags in a subscription. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of AzureFirewallFqdnTag + :rtype: + ~azure.mgmt.network.v2018_10_01.models.AzureFirewallFqdnTagPaged[~azure.mgmt.network.v2018_10_01.models.AzureFirewallFqdnTag] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_all.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.AzureFirewallFqdnTagPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.AzureFirewallFqdnTagPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_all.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Network/azureFirewallFqdnTags'} diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/azure_firewalls_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/azure_firewalls_operations.py new file mode 100644 index 000000000000..ba0773f7b522 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/azure_firewalls_operations.py @@ -0,0 +1,415 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +from msrest.polling import LROPoller, NoPolling +from msrestazure.polling.arm_polling import ARMPolling + +from .. import models + + +class AzureFirewallsOperations(object): + """AzureFirewallsOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client API version. Constant value: "2018-10-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-10-01" + + self.config = config + + + def _delete_initial( + self, resource_group_name, azure_firewall_name, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'azureFirewallName': self._serialize.url("azure_firewall_name", azure_firewall_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202, 204]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def delete( + self, resource_group_name, azure_firewall_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Deletes the specified Azure Firewall. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param azure_firewall_name: The name of the Azure Firewall. + :type azure_firewall_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: :class:`CloudError` + """ + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + azure_firewall_name=azure_firewall_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/azureFirewalls/{azureFirewallName}'} + + def get( + self, resource_group_name, azure_firewall_name, custom_headers=None, raw=False, **operation_config): + """Gets the specified Azure Firewall. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param azure_firewall_name: The name of the Azure Firewall. + :type azure_firewall_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: AzureFirewall or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.network.v2018_10_01.models.AzureFirewall or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'azureFirewallName': self._serialize.url("azure_firewall_name", azure_firewall_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('AzureFirewall', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/azureFirewalls/{azureFirewallName}'} + + + def _create_or_update_initial( + self, resource_group_name, azure_firewall_name, parameters, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'azureFirewallName': self._serialize.url("azure_firewall_name", azure_firewall_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'AzureFirewall') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('AzureFirewall', response) + if response.status_code == 201: + deserialized = self._deserialize('AzureFirewall', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update( + self, resource_group_name, azure_firewall_name, parameters, custom_headers=None, raw=False, polling=True, **operation_config): + """Creates or updates the specified Azure Firewall. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param azure_firewall_name: The name of the Azure Firewall. + :type azure_firewall_name: str + :param parameters: Parameters supplied to the create or update Azure + Firewall operation. + :type parameters: ~azure.mgmt.network.v2018_10_01.models.AzureFirewall + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns AzureFirewall or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.AzureFirewall] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.AzureFirewall]] + :raises: :class:`CloudError` + """ + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + azure_firewall_name=azure_firewall_name, + parameters=parameters, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('AzureFirewall', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/azureFirewalls/{azureFirewallName}'} + + def list( + self, resource_group_name, custom_headers=None, raw=False, **operation_config): + """Lists all Azure Firewalls in a resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of AzureFirewall + :rtype: + ~azure.mgmt.network.v2018_10_01.models.AzureFirewallPaged[~azure.mgmt.network.v2018_10_01.models.AzureFirewall] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.AzureFirewallPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.AzureFirewallPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/azureFirewalls'} + + def list_all( + self, custom_headers=None, raw=False, **operation_config): + """Gets all the Azure Firewalls in a subscription. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of AzureFirewall + :rtype: + ~azure.mgmt.network.v2018_10_01.models.AzureFirewallPaged[~azure.mgmt.network.v2018_10_01.models.AzureFirewall] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_all.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.AzureFirewallPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.AzureFirewallPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_all.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Network/azureFirewalls'} diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/bgp_service_communities_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/bgp_service_communities_operations.py new file mode 100644 index 000000000000..abdc7bc8d947 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/bgp_service_communities_operations.py @@ -0,0 +1,102 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError + +from .. import models + + +class BgpServiceCommunitiesOperations(object): + """BgpServiceCommunitiesOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client API version. Constant value: "2018-10-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-10-01" + + self.config = config + + def list( + self, custom_headers=None, raw=False, **operation_config): + """Gets all the available bgp service communities. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of BgpServiceCommunity + :rtype: + ~azure.mgmt.network.v2018_10_01.models.BgpServiceCommunityPaged[~azure.mgmt.network.v2018_10_01.models.BgpServiceCommunity] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.BgpServiceCommunityPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.BgpServiceCommunityPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Network/bgpServiceCommunities'} diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/connection_monitors_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/connection_monitors_operations.py new file mode 100644 index 000000000000..2b98788d50cf --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/connection_monitors_operations.py @@ -0,0 +1,632 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrest.polling import LROPoller, NoPolling +from msrestazure.polling.arm_polling import ARMPolling + +from .. import models + + +class ConnectionMonitorsOperations(object): + """ConnectionMonitorsOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client API version. Constant value: "2018-10-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-10-01" + + self.config = config + + + def _create_or_update_initial( + self, resource_group_name, network_watcher_name, connection_monitor_name, parameters, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkWatcherName': self._serialize.url("network_watcher_name", network_watcher_name, 'str'), + 'connectionMonitorName': self._serialize.url("connection_monitor_name", connection_monitor_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'ConnectionMonitor') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201]: + raise models.ErrorResponseException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ConnectionMonitorResult', response) + if response.status_code == 201: + deserialized = self._deserialize('ConnectionMonitorResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update( + self, resource_group_name, network_watcher_name, connection_monitor_name, parameters, custom_headers=None, raw=False, polling=True, **operation_config): + """Create or update a connection monitor. + + :param resource_group_name: The name of the resource group containing + Network Watcher. + :type resource_group_name: str + :param network_watcher_name: The name of the Network Watcher resource. + :type network_watcher_name: str + :param connection_monitor_name: The name of the connection monitor. + :type connection_monitor_name: str + :param parameters: Parameters that define the operation to create a + connection monitor. + :type parameters: + ~azure.mgmt.network.v2018_10_01.models.ConnectionMonitor + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns ConnectionMonitorResult + or ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.ConnectionMonitorResult] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.ConnectionMonitorResult]] + :raises: + :class:`ErrorResponseException` + """ + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + network_watcher_name=network_watcher_name, + connection_monitor_name=connection_monitor_name, + parameters=parameters, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('ConnectionMonitorResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}'} + + def get( + self, resource_group_name, network_watcher_name, connection_monitor_name, custom_headers=None, raw=False, **operation_config): + """Gets a connection monitor by name. + + :param resource_group_name: The name of the resource group containing + Network Watcher. + :type resource_group_name: str + :param network_watcher_name: The name of the Network Watcher resource. + :type network_watcher_name: str + :param connection_monitor_name: The name of the connection monitor. + :type connection_monitor_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: ConnectionMonitorResult or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.network.v2018_10_01.models.ConnectionMonitorResult + or ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorResponseException` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkWatcherName': self._serialize.url("network_watcher_name", network_watcher_name, 'str'), + 'connectionMonitorName': self._serialize.url("connection_monitor_name", connection_monitor_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorResponseException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ConnectionMonitorResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}'} + + + def _delete_initial( + self, resource_group_name, network_watcher_name, connection_monitor_name, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkWatcherName': self._serialize.url("network_watcher_name", network_watcher_name, 'str'), + 'connectionMonitorName': self._serialize.url("connection_monitor_name", connection_monitor_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [202, 204]: + raise models.ErrorResponseException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def delete( + self, resource_group_name, network_watcher_name, connection_monitor_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Deletes the specified connection monitor. + + :param resource_group_name: The name of the resource group containing + Network Watcher. + :type resource_group_name: str + :param network_watcher_name: The name of the Network Watcher resource. + :type network_watcher_name: str + :param connection_monitor_name: The name of the connection monitor. + :type connection_monitor_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: + :class:`ErrorResponseException` + """ + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + network_watcher_name=network_watcher_name, + connection_monitor_name=connection_monitor_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}'} + + + def _stop_initial( + self, resource_group_name, network_watcher_name, connection_monitor_name, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.stop.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkWatcherName': self._serialize.url("network_watcher_name", network_watcher_name, 'str'), + 'connectionMonitorName': self._serialize.url("connection_monitor_name", connection_monitor_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202]: + raise models.ErrorResponseException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def stop( + self, resource_group_name, network_watcher_name, connection_monitor_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Stops the specified connection monitor. + + :param resource_group_name: The name of the resource group containing + Network Watcher. + :type resource_group_name: str + :param network_watcher_name: The name of the Network Watcher resource. + :type network_watcher_name: str + :param connection_monitor_name: The name of the connection monitor. + :type connection_monitor_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: + :class:`ErrorResponseException` + """ + raw_result = self._stop_initial( + resource_group_name=resource_group_name, + network_watcher_name=network_watcher_name, + connection_monitor_name=connection_monitor_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + stop.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}/stop'} + + + def _start_initial( + self, resource_group_name, network_watcher_name, connection_monitor_name, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.start.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkWatcherName': self._serialize.url("network_watcher_name", network_watcher_name, 'str'), + 'connectionMonitorName': self._serialize.url("connection_monitor_name", connection_monitor_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202]: + raise models.ErrorResponseException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def start( + self, resource_group_name, network_watcher_name, connection_monitor_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Starts the specified connection monitor. + + :param resource_group_name: The name of the resource group containing + Network Watcher. + :type resource_group_name: str + :param network_watcher_name: The name of the Network Watcher resource. + :type network_watcher_name: str + :param connection_monitor_name: The name of the connection monitor. + :type connection_monitor_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: + :class:`ErrorResponseException` + """ + raw_result = self._start_initial( + resource_group_name=resource_group_name, + network_watcher_name=network_watcher_name, + connection_monitor_name=connection_monitor_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + start.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}/start'} + + + def _query_initial( + self, resource_group_name, network_watcher_name, connection_monitor_name, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.query.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkWatcherName': self._serialize.url("network_watcher_name", network_watcher_name, 'str'), + 'connectionMonitorName': self._serialize.url("connection_monitor_name", connection_monitor_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202]: + raise models.ErrorResponseException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ConnectionMonitorQueryResult', response) + if response.status_code == 202: + deserialized = self._deserialize('ConnectionMonitorQueryResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def query( + self, resource_group_name, network_watcher_name, connection_monitor_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Query a snapshot of the most recent connection states. + + :param resource_group_name: The name of the resource group containing + Network Watcher. + :type resource_group_name: str + :param network_watcher_name: The name of the Network Watcher resource. + :type network_watcher_name: str + :param connection_monitor_name: The name given to the connection + monitor. + :type connection_monitor_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns + ConnectionMonitorQueryResult or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.ConnectionMonitorQueryResult] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.ConnectionMonitorQueryResult]] + :raises: + :class:`ErrorResponseException` + """ + raw_result = self._query_initial( + resource_group_name=resource_group_name, + network_watcher_name=network_watcher_name, + connection_monitor_name=connection_monitor_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('ConnectionMonitorQueryResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + query.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}/query'} + + def list( + self, resource_group_name, network_watcher_name, custom_headers=None, raw=False, **operation_config): + """Lists all connection monitors for the specified Network Watcher. + + :param resource_group_name: The name of the resource group containing + Network Watcher. + :type resource_group_name: str + :param network_watcher_name: The name of the Network Watcher resource. + :type network_watcher_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of ConnectionMonitorResult + :rtype: + ~azure.mgmt.network.v2018_10_01.models.ConnectionMonitorResultPaged[~azure.mgmt.network.v2018_10_01.models.ConnectionMonitorResult] + :raises: + :class:`ErrorResponseException` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkWatcherName': self._serialize.url("network_watcher_name", network_watcher_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorResponseException(self._deserialize, response) + + return response + + # Deserialize response + deserialized = models.ConnectionMonitorResultPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.ConnectionMonitorResultPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors'} diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/ddos_protection_plans_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/ddos_protection_plans_operations.py new file mode 100644 index 000000000000..62fd16950bd3 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/ddos_protection_plans_operations.py @@ -0,0 +1,422 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +from msrest.polling import LROPoller, NoPolling +from msrestazure.polling.arm_polling import ARMPolling + +from .. import models + + +class DdosProtectionPlansOperations(object): + """DdosProtectionPlansOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client API version. Constant value: "2018-10-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-10-01" + + self.config = config + + + def _delete_initial( + self, resource_group_name, ddos_protection_plan_name, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'ddosProtectionPlanName': self._serialize.url("ddos_protection_plan_name", ddos_protection_plan_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202, 204]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def delete( + self, resource_group_name, ddos_protection_plan_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Deletes the specified DDoS protection plan. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param ddos_protection_plan_name: The name of the DDoS protection + plan. + :type ddos_protection_plan_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: :class:`CloudError` + """ + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + ddos_protection_plan_name=ddos_protection_plan_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ddosProtectionPlans/{ddosProtectionPlanName}'} + + def get( + self, resource_group_name, ddos_protection_plan_name, custom_headers=None, raw=False, **operation_config): + """Gets information about the specified DDoS protection plan. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param ddos_protection_plan_name: The name of the DDoS protection + plan. + :type ddos_protection_plan_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: DdosProtectionPlan or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.network.v2018_10_01.models.DdosProtectionPlan or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'ddosProtectionPlanName': self._serialize.url("ddos_protection_plan_name", ddos_protection_plan_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('DdosProtectionPlan', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ddosProtectionPlans/{ddosProtectionPlanName}'} + + + def _create_or_update_initial( + self, resource_group_name, ddos_protection_plan_name, location=None, tags=None, custom_headers=None, raw=False, **operation_config): + parameters = models.DdosProtectionPlan(location=location, tags=tags) + + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'ddosProtectionPlanName': self._serialize.url("ddos_protection_plan_name", ddos_protection_plan_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'DdosProtectionPlan') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('DdosProtectionPlan', response) + if response.status_code == 201: + deserialized = self._deserialize('DdosProtectionPlan', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update( + self, resource_group_name, ddos_protection_plan_name, location=None, tags=None, custom_headers=None, raw=False, polling=True, **operation_config): + """Creates or updates a DDoS protection plan. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param ddos_protection_plan_name: The name of the DDoS protection + plan. + :type ddos_protection_plan_name: str + :param location: Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns DdosProtectionPlan or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.DdosProtectionPlan] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.DdosProtectionPlan]] + :raises: :class:`CloudError` + """ + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + ddos_protection_plan_name=ddos_protection_plan_name, + location=location, + tags=tags, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('DdosProtectionPlan', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ddosProtectionPlans/{ddosProtectionPlanName}'} + + def list( + self, custom_headers=None, raw=False, **operation_config): + """Gets all DDoS protection plans in a subscription. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of DdosProtectionPlan + :rtype: + ~azure.mgmt.network.v2018_10_01.models.DdosProtectionPlanPaged[~azure.mgmt.network.v2018_10_01.models.DdosProtectionPlan] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.DdosProtectionPlanPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.DdosProtectionPlanPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Network/ddosProtectionPlans'} + + def list_by_resource_group( + self, resource_group_name, custom_headers=None, raw=False, **operation_config): + """Gets all the DDoS protection plans in a resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of DdosProtectionPlan + :rtype: + ~azure.mgmt.network.v2018_10_01.models.DdosProtectionPlanPaged[~azure.mgmt.network.v2018_10_01.models.DdosProtectionPlan] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_by_resource_group.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.DdosProtectionPlanPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.DdosProtectionPlanPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ddosProtectionPlans'} diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/default_security_rules_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/default_security_rules_operations.py new file mode 100644 index 000000000000..0fe082e66ff9 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/default_security_rules_operations.py @@ -0,0 +1,176 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError + +from .. import models + + +class DefaultSecurityRulesOperations(object): + """DefaultSecurityRulesOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client API version. Constant value: "2018-10-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-10-01" + + self.config = config + + def list( + self, resource_group_name, network_security_group_name, custom_headers=None, raw=False, **operation_config): + """Gets all default security rules in a network security group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param network_security_group_name: The name of the network security + group. + :type network_security_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of SecurityRule + :rtype: + ~azure.mgmt.network.v2018_10_01.models.SecurityRulePaged[~azure.mgmt.network.v2018_10_01.models.SecurityRule] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkSecurityGroupName': self._serialize.url("network_security_group_name", network_security_group_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.SecurityRulePaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.SecurityRulePaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}/defaultSecurityRules'} + + def get( + self, resource_group_name, network_security_group_name, default_security_rule_name, custom_headers=None, raw=False, **operation_config): + """Get the specified default network security rule. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param network_security_group_name: The name of the network security + group. + :type network_security_group_name: str + :param default_security_rule_name: The name of the default security + rule. + :type default_security_rule_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: SecurityRule or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.network.v2018_10_01.models.SecurityRule or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkSecurityGroupName': self._serialize.url("network_security_group_name", network_security_group_name, 'str'), + 'defaultSecurityRuleName': self._serialize.url("default_security_rule_name", default_security_rule_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('SecurityRule', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}/defaultSecurityRules/{defaultSecurityRuleName}'} diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/express_route_circuit_authorizations_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/express_route_circuit_authorizations_operations.py new file mode 100644 index 000000000000..64b8acf04d21 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/express_route_circuit_authorizations_operations.py @@ -0,0 +1,372 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +from msrest.polling import LROPoller, NoPolling +from msrestazure.polling.arm_polling import ARMPolling + +from .. import models + + +class ExpressRouteCircuitAuthorizationsOperations(object): + """ExpressRouteCircuitAuthorizationsOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client API version. Constant value: "2018-10-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-10-01" + + self.config = config + + + def _delete_initial( + self, resource_group_name, circuit_name, authorization_name, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'circuitName': self._serialize.url("circuit_name", circuit_name, 'str'), + 'authorizationName': self._serialize.url("authorization_name", authorization_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202, 204]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def delete( + self, resource_group_name, circuit_name, authorization_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Deletes the specified authorization from the specified express route + circuit. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param circuit_name: The name of the express route circuit. + :type circuit_name: str + :param authorization_name: The name of the authorization. + :type authorization_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: :class:`CloudError` + """ + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + circuit_name=circuit_name, + authorization_name=authorization_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/authorizations/{authorizationName}'} + + def get( + self, resource_group_name, circuit_name, authorization_name, custom_headers=None, raw=False, **operation_config): + """Gets the specified authorization from the specified express route + circuit. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param circuit_name: The name of the express route circuit. + :type circuit_name: str + :param authorization_name: The name of the authorization. + :type authorization_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: ExpressRouteCircuitAuthorization or ClientRawResponse if + raw=true + :rtype: + ~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuitAuthorization + or ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'circuitName': self._serialize.url("circuit_name", circuit_name, 'str'), + 'authorizationName': self._serialize.url("authorization_name", authorization_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ExpressRouteCircuitAuthorization', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/authorizations/{authorizationName}'} + + + def _create_or_update_initial( + self, resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'circuitName': self._serialize.url("circuit_name", circuit_name, 'str'), + 'authorizationName': self._serialize.url("authorization_name", authorization_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(authorization_parameters, 'ExpressRouteCircuitAuthorization') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ExpressRouteCircuitAuthorization', response) + if response.status_code == 201: + deserialized = self._deserialize('ExpressRouteCircuitAuthorization', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update( + self, resource_group_name, circuit_name, authorization_name, authorization_parameters, custom_headers=None, raw=False, polling=True, **operation_config): + """Creates or updates an authorization in the specified express route + circuit. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param circuit_name: The name of the express route circuit. + :type circuit_name: str + :param authorization_name: The name of the authorization. + :type authorization_name: str + :param authorization_parameters: Parameters supplied to the create or + update express route circuit authorization operation. + :type authorization_parameters: + ~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuitAuthorization + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns + ExpressRouteCircuitAuthorization or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuitAuthorization] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuitAuthorization]] + :raises: :class:`CloudError` + """ + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + circuit_name=circuit_name, + authorization_name=authorization_name, + authorization_parameters=authorization_parameters, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('ExpressRouteCircuitAuthorization', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/authorizations/{authorizationName}'} + + def list( + self, resource_group_name, circuit_name, custom_headers=None, raw=False, **operation_config): + """Gets all authorizations in an express route circuit. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param circuit_name: The name of the circuit. + :type circuit_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of ExpressRouteCircuitAuthorization + :rtype: + ~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuitAuthorizationPaged[~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuitAuthorization] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'circuitName': self._serialize.url("circuit_name", circuit_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.ExpressRouteCircuitAuthorizationPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.ExpressRouteCircuitAuthorizationPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/authorizations'} diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/express_route_circuit_connections_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/express_route_circuit_connections_operations.py new file mode 100644 index 000000000000..617cc2275af6 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/express_route_circuit_connections_operations.py @@ -0,0 +1,391 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +from msrest.polling import LROPoller, NoPolling +from msrestazure.polling.arm_polling import ARMPolling + +from .. import models + + +class ExpressRouteCircuitConnectionsOperations(object): + """ExpressRouteCircuitConnectionsOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client API version. Constant value: "2018-10-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-10-01" + + self.config = config + + + def _delete_initial( + self, resource_group_name, circuit_name, peering_name, connection_name, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'circuitName': self._serialize.url("circuit_name", circuit_name, 'str'), + 'peeringName': self._serialize.url("peering_name", peering_name, 'str'), + 'connectionName': self._serialize.url("connection_name", connection_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202, 204]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def delete( + self, resource_group_name, circuit_name, peering_name, connection_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Deletes the specified Express Route Circuit Connection from the + specified express route circuit. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param circuit_name: The name of the express route circuit. + :type circuit_name: str + :param peering_name: The name of the peering. + :type peering_name: str + :param connection_name: The name of the express route circuit + connection. + :type connection_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: :class:`CloudError` + """ + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + circuit_name=circuit_name, + peering_name=peering_name, + connection_name=connection_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/connections/{connectionName}'} + + def get( + self, resource_group_name, circuit_name, peering_name, connection_name, custom_headers=None, raw=False, **operation_config): + """Gets the specified Express Route Circuit Connection from the specified + express route circuit. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param circuit_name: The name of the express route circuit. + :type circuit_name: str + :param peering_name: The name of the peering. + :type peering_name: str + :param connection_name: The name of the express route circuit + connection. + :type connection_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: ExpressRouteCircuitConnection or ClientRawResponse if + raw=true + :rtype: + ~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuitConnection + or ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'circuitName': self._serialize.url("circuit_name", circuit_name, 'str'), + 'peeringName': self._serialize.url("peering_name", peering_name, 'str'), + 'connectionName': self._serialize.url("connection_name", connection_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ExpressRouteCircuitConnection', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/connections/{connectionName}'} + + + def _create_or_update_initial( + self, resource_group_name, circuit_name, peering_name, connection_name, express_route_circuit_connection_parameters, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'circuitName': self._serialize.url("circuit_name", circuit_name, 'str'), + 'peeringName': self._serialize.url("peering_name", peering_name, 'str'), + 'connectionName': self._serialize.url("connection_name", connection_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(express_route_circuit_connection_parameters, 'ExpressRouteCircuitConnection') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ExpressRouteCircuitConnection', response) + if response.status_code == 201: + deserialized = self._deserialize('ExpressRouteCircuitConnection', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update( + self, resource_group_name, circuit_name, peering_name, connection_name, express_route_circuit_connection_parameters, custom_headers=None, raw=False, polling=True, **operation_config): + """Creates or updates a Express Route Circuit Connection in the specified + express route circuits. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param circuit_name: The name of the express route circuit. + :type circuit_name: str + :param peering_name: The name of the peering. + :type peering_name: str + :param connection_name: The name of the express route circuit + connection. + :type connection_name: str + :param express_route_circuit_connection_parameters: Parameters + supplied to the create or update express route circuit circuit + connection operation. + :type express_route_circuit_connection_parameters: + ~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuitConnection + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns + ExpressRouteCircuitConnection or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuitConnection] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuitConnection]] + :raises: :class:`CloudError` + """ + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + circuit_name=circuit_name, + peering_name=peering_name, + connection_name=connection_name, + express_route_circuit_connection_parameters=express_route_circuit_connection_parameters, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('ExpressRouteCircuitConnection', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/connections/{connectionName}'} + + def list( + self, resource_group_name, circuit_name, peering_name, custom_headers=None, raw=False, **operation_config): + """Gets all global reach connections associated with a private peering in + an express route circuit. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param circuit_name: The name of the circuit. + :type circuit_name: str + :param peering_name: The name of the peering. + :type peering_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of ExpressRouteCircuitConnection + :rtype: + ~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuitConnectionPaged[~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuitConnection] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'circuitName': self._serialize.url("circuit_name", circuit_name, 'str'), + 'peeringName': self._serialize.url("peering_name", peering_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.ExpressRouteCircuitConnectionPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.ExpressRouteCircuitConnectionPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/connections'} diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/express_route_circuit_peerings_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/express_route_circuit_peerings_operations.py new file mode 100644 index 000000000000..ad4664c27fd7 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/express_route_circuit_peerings_operations.py @@ -0,0 +1,368 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +from msrest.polling import LROPoller, NoPolling +from msrestazure.polling.arm_polling import ARMPolling + +from .. import models + + +class ExpressRouteCircuitPeeringsOperations(object): + """ExpressRouteCircuitPeeringsOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client API version. Constant value: "2018-10-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-10-01" + + self.config = config + + + def _delete_initial( + self, resource_group_name, circuit_name, peering_name, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'circuitName': self._serialize.url("circuit_name", circuit_name, 'str'), + 'peeringName': self._serialize.url("peering_name", peering_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202, 204]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def delete( + self, resource_group_name, circuit_name, peering_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Deletes the specified peering from the specified express route circuit. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param circuit_name: The name of the express route circuit. + :type circuit_name: str + :param peering_name: The name of the peering. + :type peering_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: :class:`CloudError` + """ + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + circuit_name=circuit_name, + peering_name=peering_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}'} + + def get( + self, resource_group_name, circuit_name, peering_name, custom_headers=None, raw=False, **operation_config): + """Gets the specified peering for the express route circuit. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param circuit_name: The name of the express route circuit. + :type circuit_name: str + :param peering_name: The name of the peering. + :type peering_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: ExpressRouteCircuitPeering or ClientRawResponse if raw=true + :rtype: + ~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuitPeering or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'circuitName': self._serialize.url("circuit_name", circuit_name, 'str'), + 'peeringName': self._serialize.url("peering_name", peering_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ExpressRouteCircuitPeering', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}'} + + + def _create_or_update_initial( + self, resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'circuitName': self._serialize.url("circuit_name", circuit_name, 'str'), + 'peeringName': self._serialize.url("peering_name", peering_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(peering_parameters, 'ExpressRouteCircuitPeering') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ExpressRouteCircuitPeering', response) + if response.status_code == 201: + deserialized = self._deserialize('ExpressRouteCircuitPeering', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update( + self, resource_group_name, circuit_name, peering_name, peering_parameters, custom_headers=None, raw=False, polling=True, **operation_config): + """Creates or updates a peering in the specified express route circuits. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param circuit_name: The name of the express route circuit. + :type circuit_name: str + :param peering_name: The name of the peering. + :type peering_name: str + :param peering_parameters: Parameters supplied to the create or update + express route circuit peering operation. + :type peering_parameters: + ~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuitPeering + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns + ExpressRouteCircuitPeering or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuitPeering] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuitPeering]] + :raises: :class:`CloudError` + """ + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + circuit_name=circuit_name, + peering_name=peering_name, + peering_parameters=peering_parameters, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('ExpressRouteCircuitPeering', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}'} + + def list( + self, resource_group_name, circuit_name, custom_headers=None, raw=False, **operation_config): + """Gets all peerings in a specified express route circuit. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param circuit_name: The name of the express route circuit. + :type circuit_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of ExpressRouteCircuitPeering + :rtype: + ~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuitPeeringPaged[~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuitPeering] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'circuitName': self._serialize.url("circuit_name", circuit_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.ExpressRouteCircuitPeeringPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.ExpressRouteCircuitPeeringPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings'} diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/express_route_circuits_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/express_route_circuits_operations.py new file mode 100644 index 000000000000..03bf053ceb40 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/express_route_circuits_operations.py @@ -0,0 +1,958 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +from msrest.polling import LROPoller, NoPolling +from msrestazure.polling.arm_polling import ARMPolling + +from .. import models + + +class ExpressRouteCircuitsOperations(object): + """ExpressRouteCircuitsOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client API version. Constant value: "2018-10-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-10-01" + + self.config = config + + + def _delete_initial( + self, resource_group_name, circuit_name, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'circuitName': self._serialize.url("circuit_name", circuit_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202, 204]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def delete( + self, resource_group_name, circuit_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Deletes the specified express route circuit. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param circuit_name: The name of the express route circuit. + :type circuit_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: :class:`CloudError` + """ + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + circuit_name=circuit_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}'} + + def get( + self, resource_group_name, circuit_name, custom_headers=None, raw=False, **operation_config): + """Gets information about the specified express route circuit. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param circuit_name: The name of express route circuit. + :type circuit_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: ExpressRouteCircuit or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuit or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'circuitName': self._serialize.url("circuit_name", circuit_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ExpressRouteCircuit', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}'} + + + def _create_or_update_initial( + self, resource_group_name, circuit_name, parameters, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'circuitName': self._serialize.url("circuit_name", circuit_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'ExpressRouteCircuit') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ExpressRouteCircuit', response) + if response.status_code == 201: + deserialized = self._deserialize('ExpressRouteCircuit', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update( + self, resource_group_name, circuit_name, parameters, custom_headers=None, raw=False, polling=True, **operation_config): + """Creates or updates an express route circuit. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param circuit_name: The name of the circuit. + :type circuit_name: str + :param parameters: Parameters supplied to the create or update express + route circuit operation. + :type parameters: + ~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuit + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns ExpressRouteCircuit or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuit] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuit]] + :raises: :class:`CloudError` + """ + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + circuit_name=circuit_name, + parameters=parameters, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('ExpressRouteCircuit', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}'} + + + def _update_tags_initial( + self, resource_group_name, circuit_name, tags=None, custom_headers=None, raw=False, **operation_config): + parameters = models.TagsObject(tags=tags) + + # Construct URL + url = self.update_tags.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'circuitName': self._serialize.url("circuit_name", circuit_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'TagsObject') + + # Construct and send request + request = self._client.patch(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ExpressRouteCircuit', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def update_tags( + self, resource_group_name, circuit_name, tags=None, custom_headers=None, raw=False, polling=True, **operation_config): + """Updates an express route circuit tags. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param circuit_name: The name of the circuit. + :type circuit_name: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns ExpressRouteCircuit or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuit] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuit]] + :raises: :class:`CloudError` + """ + raw_result = self._update_tags_initial( + resource_group_name=resource_group_name, + circuit_name=circuit_name, + tags=tags, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('ExpressRouteCircuit', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + update_tags.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}'} + + + def _list_arp_table_initial( + self, resource_group_name, circuit_name, peering_name, device_path, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.list_arp_table.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'circuitName': self._serialize.url("circuit_name", circuit_name, 'str'), + 'peeringName': self._serialize.url("peering_name", peering_name, 'str'), + 'devicePath': self._serialize.url("device_path", device_path, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ExpressRouteCircuitsArpTableListResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def list_arp_table( + self, resource_group_name, circuit_name, peering_name, device_path, custom_headers=None, raw=False, polling=True, **operation_config): + """Gets the currently advertised ARP table associated with the express + route circuit in a resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param circuit_name: The name of the express route circuit. + :type circuit_name: str + :param peering_name: The name of the peering. + :type peering_name: str + :param device_path: The path of the device. + :type device_path: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns + ExpressRouteCircuitsArpTableListResult or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuitsArpTableListResult] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuitsArpTableListResult]] + :raises: :class:`CloudError` + """ + raw_result = self._list_arp_table_initial( + resource_group_name=resource_group_name, + circuit_name=circuit_name, + peering_name=peering_name, + device_path=device_path, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('ExpressRouteCircuitsArpTableListResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + list_arp_table.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/arpTables/{devicePath}'} + + + def _list_routes_table_initial( + self, resource_group_name, circuit_name, peering_name, device_path, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.list_routes_table.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'circuitName': self._serialize.url("circuit_name", circuit_name, 'str'), + 'peeringName': self._serialize.url("peering_name", peering_name, 'str'), + 'devicePath': self._serialize.url("device_path", device_path, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ExpressRouteCircuitsRoutesTableListResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def list_routes_table( + self, resource_group_name, circuit_name, peering_name, device_path, custom_headers=None, raw=False, polling=True, **operation_config): + """Gets the currently advertised routes table associated with the express + route circuit in a resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param circuit_name: The name of the express route circuit. + :type circuit_name: str + :param peering_name: The name of the peering. + :type peering_name: str + :param device_path: The path of the device. + :type device_path: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns + ExpressRouteCircuitsRoutesTableListResult or + ClientRawResponse if + raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuitsRoutesTableListResult] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuitsRoutesTableListResult]] + :raises: :class:`CloudError` + """ + raw_result = self._list_routes_table_initial( + resource_group_name=resource_group_name, + circuit_name=circuit_name, + peering_name=peering_name, + device_path=device_path, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('ExpressRouteCircuitsRoutesTableListResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + list_routes_table.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/routeTables/{devicePath}'} + + + def _list_routes_table_summary_initial( + self, resource_group_name, circuit_name, peering_name, device_path, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.list_routes_table_summary.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'circuitName': self._serialize.url("circuit_name", circuit_name, 'str'), + 'peeringName': self._serialize.url("peering_name", peering_name, 'str'), + 'devicePath': self._serialize.url("device_path", device_path, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ExpressRouteCircuitsRoutesTableSummaryListResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def list_routes_table_summary( + self, resource_group_name, circuit_name, peering_name, device_path, custom_headers=None, raw=False, polling=True, **operation_config): + """Gets the currently advertised routes table summary associated with the + express route circuit in a resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param circuit_name: The name of the express route circuit. + :type circuit_name: str + :param peering_name: The name of the peering. + :type peering_name: str + :param device_path: The path of the device. + :type device_path: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns + ExpressRouteCircuitsRoutesTableSummaryListResult or + ClientRawResponse if + raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuitsRoutesTableSummaryListResult] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuitsRoutesTableSummaryListResult]] + :raises: :class:`CloudError` + """ + raw_result = self._list_routes_table_summary_initial( + resource_group_name=resource_group_name, + circuit_name=circuit_name, + peering_name=peering_name, + device_path=device_path, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('ExpressRouteCircuitsRoutesTableSummaryListResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + list_routes_table_summary.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/routeTablesSummary/{devicePath}'} + + def get_stats( + self, resource_group_name, circuit_name, custom_headers=None, raw=False, **operation_config): + """Gets all the stats from an express route circuit in a resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param circuit_name: The name of the express route circuit. + :type circuit_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: ExpressRouteCircuitStats or ClientRawResponse if raw=true + :rtype: + ~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuitStats or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get_stats.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'circuitName': self._serialize.url("circuit_name", circuit_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ExpressRouteCircuitStats', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get_stats.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/stats'} + + def get_peering_stats( + self, resource_group_name, circuit_name, peering_name, custom_headers=None, raw=False, **operation_config): + """Gets all stats from an express route circuit in a resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param circuit_name: The name of the express route circuit. + :type circuit_name: str + :param peering_name: The name of the peering. + :type peering_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: ExpressRouteCircuitStats or ClientRawResponse if raw=true + :rtype: + ~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuitStats or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get_peering_stats.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'circuitName': self._serialize.url("circuit_name", circuit_name, 'str'), + 'peeringName': self._serialize.url("peering_name", peering_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ExpressRouteCircuitStats', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get_peering_stats.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/stats'} + + def list( + self, resource_group_name, custom_headers=None, raw=False, **operation_config): + """Gets all the express route circuits in a resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of ExpressRouteCircuit + :rtype: + ~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuitPaged[~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuit] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.ExpressRouteCircuitPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.ExpressRouteCircuitPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits'} + + def list_all( + self, custom_headers=None, raw=False, **operation_config): + """Gets all the express route circuits in a subscription. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of ExpressRouteCircuit + :rtype: + ~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuitPaged[~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuit] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_all.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.ExpressRouteCircuitPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.ExpressRouteCircuitPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_all.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Network/expressRouteCircuits'} diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/express_route_connections_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/express_route_connections_operations.py new file mode 100644 index 000000000000..75073bca444f --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/express_route_connections_operations.py @@ -0,0 +1,364 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +from msrest.polling import LROPoller, NoPolling +from msrestazure.polling.arm_polling import ARMPolling + +from .. import models + + +class ExpressRouteConnectionsOperations(object): + """ExpressRouteConnectionsOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client API version. Constant value: "2018-10-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-10-01" + + self.config = config + + + def _create_or_update_initial( + self, resource_group_name, express_route_gateway_name, connection_name, put_express_route_connection_parameters, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'expressRouteGatewayName': self._serialize.url("express_route_gateway_name", express_route_gateway_name, 'str'), + 'connectionName': self._serialize.url("connection_name", connection_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(put_express_route_connection_parameters, 'ExpressRouteConnection') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ExpressRouteConnection', response) + if response.status_code == 201: + deserialized = self._deserialize('ExpressRouteConnection', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update( + self, resource_group_name, express_route_gateway_name, connection_name, put_express_route_connection_parameters, custom_headers=None, raw=False, polling=True, **operation_config): + """Creates a connection between an ExpressRoute gateway and an + ExpressRoute circuit. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param express_route_gateway_name: The name of the ExpressRoute + gateway. + :type express_route_gateway_name: str + :param connection_name: The name of the connection subresource. + :type connection_name: str + :param put_express_route_connection_parameters: Parameters required in + an ExpressRouteConnection PUT operation. + :type put_express_route_connection_parameters: + ~azure.mgmt.network.v2018_10_01.models.ExpressRouteConnection + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns ExpressRouteConnection + or ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.ExpressRouteConnection] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.ExpressRouteConnection]] + :raises: :class:`CloudError` + """ + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + express_route_gateway_name=express_route_gateway_name, + connection_name=connection_name, + put_express_route_connection_parameters=put_express_route_connection_parameters, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('ExpressRouteConnection', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteGateways/{expressRouteGatewayName}/expressRouteConnections/{connectionName}'} + + def get( + self, resource_group_name, express_route_gateway_name, connection_name, custom_headers=None, raw=False, **operation_config): + """Gets the specified ExpressRouteConnection. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param express_route_gateway_name: The name of the ExpressRoute + gateway. + :type express_route_gateway_name: str + :param connection_name: The name of the ExpressRoute connection. + :type connection_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: ExpressRouteConnection or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.network.v2018_10_01.models.ExpressRouteConnection + or ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'expressRouteGatewayName': self._serialize.url("express_route_gateway_name", express_route_gateway_name, 'str'), + 'connectionName': self._serialize.url("connection_name", connection_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ExpressRouteConnection', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteGateways/{expressRouteGatewayName}/expressRouteConnections/{connectionName}'} + + + def _delete_initial( + self, resource_group_name, express_route_gateway_name, connection_name, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'expressRouteGatewayName': self._serialize.url("express_route_gateway_name", express_route_gateway_name, 'str'), + 'connectionName': self._serialize.url("connection_name", connection_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202, 204]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def delete( + self, resource_group_name, express_route_gateway_name, connection_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Deletes a connection to a ExpressRoute circuit. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param express_route_gateway_name: The name of the ExpressRoute + gateway. + :type express_route_gateway_name: str + :param connection_name: The name of the connection subresource. + :type connection_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: :class:`CloudError` + """ + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + express_route_gateway_name=express_route_gateway_name, + connection_name=connection_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteGateways/{expressRouteGatewayName}/expressRouteConnections/{connectionName}'} + + def list( + self, resource_group_name, express_route_gateway_name, custom_headers=None, raw=False, **operation_config): + """Lists ExpressRouteConnections. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param express_route_gateway_name: The name of the ExpressRoute + gateway. + :type express_route_gateway_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: ExpressRouteConnectionList or ClientRawResponse if raw=true + :rtype: + ~azure.mgmt.network.v2018_10_01.models.ExpressRouteConnectionList or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'expressRouteGatewayName': self._serialize.url("express_route_gateway_name", express_route_gateway_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ExpressRouteConnectionList', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteGateways/{expressRouteGatewayName}/expressRouteConnections'} diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/express_route_cross_connection_peerings_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/express_route_cross_connection_peerings_operations.py new file mode 100644 index 000000000000..7c02fbba9581 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/express_route_cross_connection_peerings_operations.py @@ -0,0 +1,375 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +from msrest.polling import LROPoller, NoPolling +from msrestazure.polling.arm_polling import ARMPolling + +from .. import models + + +class ExpressRouteCrossConnectionPeeringsOperations(object): + """ExpressRouteCrossConnectionPeeringsOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client API version. Constant value: "2018-10-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-10-01" + + self.config = config + + def list( + self, resource_group_name, cross_connection_name, custom_headers=None, raw=False, **operation_config): + """Gets all peerings in a specified ExpressRouteCrossConnection. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param cross_connection_name: The name of the + ExpressRouteCrossConnection. + :type cross_connection_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of + ExpressRouteCrossConnectionPeering + :rtype: + ~azure.mgmt.network.v2018_10_01.models.ExpressRouteCrossConnectionPeeringPaged[~azure.mgmt.network.v2018_10_01.models.ExpressRouteCrossConnectionPeering] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'crossConnectionName': self._serialize.url("cross_connection_name", cross_connection_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.ExpressRouteCrossConnectionPeeringPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.ExpressRouteCrossConnectionPeeringPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections/{crossConnectionName}/peerings'} + + + def _delete_initial( + self, resource_group_name, cross_connection_name, peering_name, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'crossConnectionName': self._serialize.url("cross_connection_name", cross_connection_name, 'str'), + 'peeringName': self._serialize.url("peering_name", peering_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202, 204]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def delete( + self, resource_group_name, cross_connection_name, peering_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Deletes the specified peering from the ExpressRouteCrossConnection. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param cross_connection_name: The name of the + ExpressRouteCrossConnection. + :type cross_connection_name: str + :param peering_name: The name of the peering. + :type peering_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: :class:`CloudError` + """ + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + cross_connection_name=cross_connection_name, + peering_name=peering_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections/{crossConnectionName}/peerings/{peeringName}'} + + def get( + self, resource_group_name, cross_connection_name, peering_name, custom_headers=None, raw=False, **operation_config): + """Gets the specified peering for the ExpressRouteCrossConnection. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param cross_connection_name: The name of the + ExpressRouteCrossConnection. + :type cross_connection_name: str + :param peering_name: The name of the peering. + :type peering_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: ExpressRouteCrossConnectionPeering or ClientRawResponse if + raw=true + :rtype: + ~azure.mgmt.network.v2018_10_01.models.ExpressRouteCrossConnectionPeering + or ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'crossConnectionName': self._serialize.url("cross_connection_name", cross_connection_name, 'str'), + 'peeringName': self._serialize.url("peering_name", peering_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ExpressRouteCrossConnectionPeering', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections/{crossConnectionName}/peerings/{peeringName}'} + + + def _create_or_update_initial( + self, resource_group_name, cross_connection_name, peering_name, peering_parameters, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'crossConnectionName': self._serialize.url("cross_connection_name", cross_connection_name, 'str'), + 'peeringName': self._serialize.url("peering_name", peering_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(peering_parameters, 'ExpressRouteCrossConnectionPeering') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ExpressRouteCrossConnectionPeering', response) + if response.status_code == 201: + deserialized = self._deserialize('ExpressRouteCrossConnectionPeering', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update( + self, resource_group_name, cross_connection_name, peering_name, peering_parameters, custom_headers=None, raw=False, polling=True, **operation_config): + """Creates or updates a peering in the specified + ExpressRouteCrossConnection. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param cross_connection_name: The name of the + ExpressRouteCrossConnection. + :type cross_connection_name: str + :param peering_name: The name of the peering. + :type peering_name: str + :param peering_parameters: Parameters supplied to the create or update + ExpressRouteCrossConnection peering operation. + :type peering_parameters: + ~azure.mgmt.network.v2018_10_01.models.ExpressRouteCrossConnectionPeering + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns + ExpressRouteCrossConnectionPeering or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.ExpressRouteCrossConnectionPeering] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.ExpressRouteCrossConnectionPeering]] + :raises: :class:`CloudError` + """ + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + cross_connection_name=cross_connection_name, + peering_name=peering_name, + peering_parameters=peering_parameters, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('ExpressRouteCrossConnectionPeering', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections/{crossConnectionName}/peerings/{peeringName}'} diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/express_route_cross_connections_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/express_route_cross_connections_operations.py new file mode 100644 index 000000000000..29f7f883fae8 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/express_route_cross_connections_operations.py @@ -0,0 +1,757 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +from msrest.polling import LROPoller, NoPolling +from msrestazure.polling.arm_polling import ARMPolling + +from .. import models + + +class ExpressRouteCrossConnectionsOperations(object): + """ExpressRouteCrossConnectionsOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client API version. Constant value: "2018-10-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-10-01" + + self.config = config + + def list( + self, custom_headers=None, raw=False, **operation_config): + """Retrieves all the ExpressRouteCrossConnections in a subscription. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of ExpressRouteCrossConnection + :rtype: + ~azure.mgmt.network.v2018_10_01.models.ExpressRouteCrossConnectionPaged[~azure.mgmt.network.v2018_10_01.models.ExpressRouteCrossConnection] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.ExpressRouteCrossConnectionPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.ExpressRouteCrossConnectionPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Network/expressRouteCrossConnections'} + + def list_by_resource_group( + self, resource_group_name, custom_headers=None, raw=False, **operation_config): + """Retrieves all the ExpressRouteCrossConnections in a resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of ExpressRouteCrossConnection + :rtype: + ~azure.mgmt.network.v2018_10_01.models.ExpressRouteCrossConnectionPaged[~azure.mgmt.network.v2018_10_01.models.ExpressRouteCrossConnection] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_by_resource_group.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.ExpressRouteCrossConnectionPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.ExpressRouteCrossConnectionPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections'} + + def get( + self, resource_group_name, cross_connection_name, custom_headers=None, raw=False, **operation_config): + """Gets details about the specified ExpressRouteCrossConnection. + + :param resource_group_name: The name of the resource group (peering + location of the circuit). + :type resource_group_name: str + :param cross_connection_name: The name of the + ExpressRouteCrossConnection (service key of the circuit). + :type cross_connection_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: ExpressRouteCrossConnection or ClientRawResponse if raw=true + :rtype: + ~azure.mgmt.network.v2018_10_01.models.ExpressRouteCrossConnection or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'crossConnectionName': self._serialize.url("cross_connection_name", cross_connection_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ExpressRouteCrossConnection', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections/{crossConnectionName}'} + + + def _create_or_update_initial( + self, resource_group_name, cross_connection_name, parameters, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'crossConnectionName': self._serialize.url("cross_connection_name", cross_connection_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'ExpressRouteCrossConnection') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ExpressRouteCrossConnection', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update( + self, resource_group_name, cross_connection_name, parameters, custom_headers=None, raw=False, polling=True, **operation_config): + """Update the specified ExpressRouteCrossConnection. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param cross_connection_name: The name of the + ExpressRouteCrossConnection. + :type cross_connection_name: str + :param parameters: Parameters supplied to the update express route + crossConnection operation. + :type parameters: + ~azure.mgmt.network.v2018_10_01.models.ExpressRouteCrossConnection + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns + ExpressRouteCrossConnection or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.ExpressRouteCrossConnection] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.ExpressRouteCrossConnection]] + :raises: :class:`CloudError` + """ + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + cross_connection_name=cross_connection_name, + parameters=parameters, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('ExpressRouteCrossConnection', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections/{crossConnectionName}'} + + + def _update_tags_initial( + self, resource_group_name, cross_connection_name, tags=None, custom_headers=None, raw=False, **operation_config): + cross_connection_parameters = models.TagsObject(tags=tags) + + # Construct URL + url = self.update_tags.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'crossConnectionName': self._serialize.url("cross_connection_name", cross_connection_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(cross_connection_parameters, 'TagsObject') + + # Construct and send request + request = self._client.patch(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ExpressRouteCrossConnection', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def update_tags( + self, resource_group_name, cross_connection_name, tags=None, custom_headers=None, raw=False, polling=True, **operation_config): + """Updates an express route cross connection tags. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param cross_connection_name: The name of the cross connection. + :type cross_connection_name: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns + ExpressRouteCrossConnection or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.ExpressRouteCrossConnection] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.ExpressRouteCrossConnection]] + :raises: :class:`CloudError` + """ + raw_result = self._update_tags_initial( + resource_group_name=resource_group_name, + cross_connection_name=cross_connection_name, + tags=tags, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('ExpressRouteCrossConnection', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + update_tags.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections/{crossConnectionName}'} + + + def _list_arp_table_initial( + self, resource_group_name, cross_connection_name, peering_name, device_path, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.list_arp_table.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'crossConnectionName': self._serialize.url("cross_connection_name", cross_connection_name, 'str'), + 'peeringName': self._serialize.url("peering_name", peering_name, 'str'), + 'devicePath': self._serialize.url("device_path", device_path, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ExpressRouteCircuitsArpTableListResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def list_arp_table( + self, resource_group_name, cross_connection_name, peering_name, device_path, custom_headers=None, raw=False, polling=True, **operation_config): + """Gets the currently advertised ARP table associated with the express + route cross connection in a resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param cross_connection_name: The name of the + ExpressRouteCrossConnection. + :type cross_connection_name: str + :param peering_name: The name of the peering. + :type peering_name: str + :param device_path: The path of the device + :type device_path: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns + ExpressRouteCircuitsArpTableListResult or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuitsArpTableListResult] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuitsArpTableListResult]] + :raises: :class:`CloudError` + """ + raw_result = self._list_arp_table_initial( + resource_group_name=resource_group_name, + cross_connection_name=cross_connection_name, + peering_name=peering_name, + device_path=device_path, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('ExpressRouteCircuitsArpTableListResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + list_arp_table.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections/{crossConnectionName}/peerings/{peeringName}/arpTables/{devicePath}'} + + + def _list_routes_table_summary_initial( + self, resource_group_name, cross_connection_name, peering_name, device_path, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.list_routes_table_summary.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'crossConnectionName': self._serialize.url("cross_connection_name", cross_connection_name, 'str'), + 'peeringName': self._serialize.url("peering_name", peering_name, 'str'), + 'devicePath': self._serialize.url("device_path", device_path, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ExpressRouteCrossConnectionsRoutesTableSummaryListResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def list_routes_table_summary( + self, resource_group_name, cross_connection_name, peering_name, device_path, custom_headers=None, raw=False, polling=True, **operation_config): + """Gets the route table summary associated with the express route cross + connection in a resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param cross_connection_name: The name of the + ExpressRouteCrossConnection. + :type cross_connection_name: str + :param peering_name: The name of the peering. + :type peering_name: str + :param device_path: The path of the device. + :type device_path: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns + ExpressRouteCrossConnectionsRoutesTableSummaryListResult or + ClientRawResponse + if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.ExpressRouteCrossConnectionsRoutesTableSummaryListResult] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.ExpressRouteCrossConnectionsRoutesTableSummaryListResult]] + :raises: :class:`CloudError` + """ + raw_result = self._list_routes_table_summary_initial( + resource_group_name=resource_group_name, + cross_connection_name=cross_connection_name, + peering_name=peering_name, + device_path=device_path, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('ExpressRouteCrossConnectionsRoutesTableSummaryListResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + list_routes_table_summary.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections/{crossConnectionName}/peerings/{peeringName}/routeTablesSummary/{devicePath}'} + + + def _list_routes_table_initial( + self, resource_group_name, cross_connection_name, peering_name, device_path, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.list_routes_table.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'crossConnectionName': self._serialize.url("cross_connection_name", cross_connection_name, 'str'), + 'peeringName': self._serialize.url("peering_name", peering_name, 'str'), + 'devicePath': self._serialize.url("device_path", device_path, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ExpressRouteCircuitsRoutesTableListResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def list_routes_table( + self, resource_group_name, cross_connection_name, peering_name, device_path, custom_headers=None, raw=False, polling=True, **operation_config): + """Gets the currently advertised routes table associated with the express + route cross connection in a resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param cross_connection_name: The name of the + ExpressRouteCrossConnection. + :type cross_connection_name: str + :param peering_name: The name of the peering. + :type peering_name: str + :param device_path: The path of the device. + :type device_path: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns + ExpressRouteCircuitsRoutesTableListResult or + ClientRawResponse if + raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuitsRoutesTableListResult] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.ExpressRouteCircuitsRoutesTableListResult]] + :raises: :class:`CloudError` + """ + raw_result = self._list_routes_table_initial( + resource_group_name=resource_group_name, + cross_connection_name=cross_connection_name, + peering_name=peering_name, + device_path=device_path, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('ExpressRouteCircuitsRoutesTableListResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + list_routes_table.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections/{crossConnectionName}/peerings/{peeringName}/routeTables/{devicePath}'} diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/express_route_gateways_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/express_route_gateways_operations.py new file mode 100644 index 000000000000..457faae3a44c --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/express_route_gateways_operations.py @@ -0,0 +1,406 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +from msrest.polling import LROPoller, NoPolling +from msrestazure.polling.arm_polling import ARMPolling + +from .. import models + + +class ExpressRouteGatewaysOperations(object): + """ExpressRouteGatewaysOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client API version. Constant value: "2018-10-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-10-01" + + self.config = config + + def list_by_subscription( + self, custom_headers=None, raw=False, **operation_config): + """Lists ExpressRoute gateways under a given subscription. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: ExpressRouteGatewayList or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.network.v2018_10_01.models.ExpressRouteGatewayList + or ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.list_by_subscription.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ExpressRouteGatewayList', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + list_by_subscription.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Network/expressRouteGateways'} + + def list_by_resource_group( + self, resource_group_name, custom_headers=None, raw=False, **operation_config): + """Lists ExpressRoute gateways in a given resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: ExpressRouteGatewayList or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.network.v2018_10_01.models.ExpressRouteGatewayList + or ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.list_by_resource_group.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ExpressRouteGatewayList', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteGateways'} + + + def _create_or_update_initial( + self, resource_group_name, express_route_gateway_name, put_express_route_gateway_parameters, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'expressRouteGatewayName': self._serialize.url("express_route_gateway_name", express_route_gateway_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(put_express_route_gateway_parameters, 'ExpressRouteGateway') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ExpressRouteGateway', response) + if response.status_code == 201: + deserialized = self._deserialize('ExpressRouteGateway', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update( + self, resource_group_name, express_route_gateway_name, put_express_route_gateway_parameters, custom_headers=None, raw=False, polling=True, **operation_config): + """Creates or updates a ExpressRoute gateway in a specified resource + group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param express_route_gateway_name: The name of the ExpressRoute + gateway. + :type express_route_gateway_name: str + :param put_express_route_gateway_parameters: Parameters required in an + ExpressRoute gateway PUT operation. + :type put_express_route_gateway_parameters: + ~azure.mgmt.network.v2018_10_01.models.ExpressRouteGateway + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns ExpressRouteGateway or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.ExpressRouteGateway] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.ExpressRouteGateway]] + :raises: :class:`CloudError` + """ + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + express_route_gateway_name=express_route_gateway_name, + put_express_route_gateway_parameters=put_express_route_gateway_parameters, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('ExpressRouteGateway', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteGateways/{expressRouteGatewayName}'} + + def get( + self, resource_group_name, express_route_gateway_name, custom_headers=None, raw=False, **operation_config): + """Fetches the details of a ExpressRoute gateway in a resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param express_route_gateway_name: The name of the ExpressRoute + gateway. + :type express_route_gateway_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: ExpressRouteGateway or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.network.v2018_10_01.models.ExpressRouteGateway or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'expressRouteGatewayName': self._serialize.url("express_route_gateway_name", express_route_gateway_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ExpressRouteGateway', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteGateways/{expressRouteGatewayName}'} + + + def _delete_initial( + self, resource_group_name, express_route_gateway_name, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'expressRouteGatewayName': self._serialize.url("express_route_gateway_name", express_route_gateway_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202, 204]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def delete( + self, resource_group_name, express_route_gateway_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Deletes the specified ExpressRoute gateway in a resource group. An + ExpressRoute gateway resource can only be deleted when there are no + connection subresources. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param express_route_gateway_name: The name of the ExpressRoute + gateway. + :type express_route_gateway_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: :class:`CloudError` + """ + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + express_route_gateway_name=express_route_gateway_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteGateways/{expressRouteGatewayName}'} diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/express_route_links_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/express_route_links_operations.py new file mode 100644 index 000000000000..43ce725d8372 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/express_route_links_operations.py @@ -0,0 +1,176 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError + +from .. import models + + +class ExpressRouteLinksOperations(object): + """ExpressRouteLinksOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client API version. Constant value: "2018-10-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-10-01" + + self.config = config + + def get( + self, resource_group_name, express_route_port_name, link_name, custom_headers=None, raw=False, **operation_config): + """Retrieves the specified ExpressRouteLink resource. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param express_route_port_name: The name of the ExpressRoutePort + resource. + :type express_route_port_name: str + :param link_name: The name of the ExpressRouteLink resource. + :type link_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: ExpressRouteLink or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.network.v2018_10_01.models.ExpressRouteLink or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'expressRoutePortName': self._serialize.url("express_route_port_name", express_route_port_name, 'str'), + 'linkName': self._serialize.url("link_name", link_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ExpressRouteLink', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ExpressRoutePorts/{expressRoutePortName}/links/{linkName}'} + + def list( + self, resource_group_name, express_route_port_name, custom_headers=None, raw=False, **operation_config): + """Retrieve the ExpressRouteLink sub-resources of the specified + ExpressRoutePort resource. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param express_route_port_name: The name of the ExpressRoutePort + resource. + :type express_route_port_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of ExpressRouteLink + :rtype: + ~azure.mgmt.network.v2018_10_01.models.ExpressRouteLinkPaged[~azure.mgmt.network.v2018_10_01.models.ExpressRouteLink] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'expressRoutePortName': self._serialize.url("express_route_port_name", express_route_port_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.ExpressRouteLinkPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.ExpressRouteLinkPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ExpressRoutePorts/{expressRoutePortName}/links'} diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/express_route_ports_locations_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/express_route_ports_locations_operations.py new file mode 100644 index 000000000000..95114f0e2da0 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/express_route_ports_locations_operations.py @@ -0,0 +1,166 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError + +from .. import models + + +class ExpressRoutePortsLocationsOperations(object): + """ExpressRoutePortsLocationsOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client API version. Constant value: "2018-10-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-10-01" + + self.config = config + + def list( + self, custom_headers=None, raw=False, **operation_config): + """Retrieves all ExpressRoutePort peering locations. Does not return + available bandwidths for each location. Available bandwidths can only + be obtained when retriving a specific peering location. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of ExpressRoutePortsLocation + :rtype: + ~azure.mgmt.network.v2018_10_01.models.ExpressRoutePortsLocationPaged[~azure.mgmt.network.v2018_10_01.models.ExpressRoutePortsLocation] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.ExpressRoutePortsLocationPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.ExpressRoutePortsLocationPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Network/ExpressRoutePortsLocations'} + + def get( + self, location_name, custom_headers=None, raw=False, **operation_config): + """Retrieves a single ExpressRoutePort peering location, including the + list of available bandwidths available at said peering location. + + :param location_name: Name of the requested ExpressRoutePort peering + location. + :type location_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: ExpressRoutePortsLocation or ClientRawResponse if raw=true + :rtype: + ~azure.mgmt.network.v2018_10_01.models.ExpressRoutePortsLocation or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'locationName': self._serialize.url("location_name", location_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ExpressRoutePortsLocation', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Network/ExpressRoutePortsLocations/{locationName}'} diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/express_route_ports_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/express_route_ports_operations.py new file mode 100644 index 000000000000..1d7e2f09ffdd --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/express_route_ports_operations.py @@ -0,0 +1,522 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +from msrest.polling import LROPoller, NoPolling +from msrestazure.polling.arm_polling import ARMPolling + +from .. import models + + +class ExpressRoutePortsOperations(object): + """ExpressRoutePortsOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client API version. Constant value: "2018-10-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-10-01" + + self.config = config + + + def _delete_initial( + self, resource_group_name, express_route_port_name, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'expressRoutePortName': self._serialize.url("express_route_port_name", express_route_port_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202, 204]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def delete( + self, resource_group_name, express_route_port_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Deletes the specified ExpressRoutePort resource. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param express_route_port_name: The name of the ExpressRoutePort + resource. + :type express_route_port_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: :class:`CloudError` + """ + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + express_route_port_name=express_route_port_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ExpressRoutePorts/{expressRoutePortName}'} + + def get( + self, resource_group_name, express_route_port_name, custom_headers=None, raw=False, **operation_config): + """Retrieves the requested ExpressRoutePort resource. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param express_route_port_name: The name of ExpressRoutePort. + :type express_route_port_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: ExpressRoutePort or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.network.v2018_10_01.models.ExpressRoutePort or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'expressRoutePortName': self._serialize.url("express_route_port_name", express_route_port_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ExpressRoutePort', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ExpressRoutePorts/{expressRoutePortName}'} + + + def _create_or_update_initial( + self, resource_group_name, express_route_port_name, parameters, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'expressRoutePortName': self._serialize.url("express_route_port_name", express_route_port_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'ExpressRoutePort') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ExpressRoutePort', response) + if response.status_code == 201: + deserialized = self._deserialize('ExpressRoutePort', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update( + self, resource_group_name, express_route_port_name, parameters, custom_headers=None, raw=False, polling=True, **operation_config): + """Creates or updates the specified ExpressRoutePort resource. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param express_route_port_name: The name of the ExpressRoutePort + resource. + :type express_route_port_name: str + :param parameters: Parameters supplied to the create ExpressRoutePort + operation. + :type parameters: + ~azure.mgmt.network.v2018_10_01.models.ExpressRoutePort + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns ExpressRoutePort or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.ExpressRoutePort] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.ExpressRoutePort]] + :raises: :class:`CloudError` + """ + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + express_route_port_name=express_route_port_name, + parameters=parameters, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('ExpressRoutePort', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ExpressRoutePorts/{expressRoutePortName}'} + + + def _update_tags_initial( + self, resource_group_name, express_route_port_name, tags=None, custom_headers=None, raw=False, **operation_config): + parameters = models.TagsObject(tags=tags) + + # Construct URL + url = self.update_tags.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'expressRoutePortName': self._serialize.url("express_route_port_name", express_route_port_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'TagsObject') + + # Construct and send request + request = self._client.patch(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ExpressRoutePort', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def update_tags( + self, resource_group_name, express_route_port_name, tags=None, custom_headers=None, raw=False, polling=True, **operation_config): + """Update ExpressRoutePort tags. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param express_route_port_name: The name of the ExpressRoutePort + resource. + :type express_route_port_name: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns ExpressRoutePort or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.ExpressRoutePort] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.ExpressRoutePort]] + :raises: :class:`CloudError` + """ + raw_result = self._update_tags_initial( + resource_group_name=resource_group_name, + express_route_port_name=express_route_port_name, + tags=tags, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('ExpressRoutePort', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + update_tags.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ExpressRoutePorts/{expressRoutePortName}'} + + def list_by_resource_group( + self, resource_group_name, custom_headers=None, raw=False, **operation_config): + """List all the ExpressRoutePort resources in the specified resource + group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of ExpressRoutePort + :rtype: + ~azure.mgmt.network.v2018_10_01.models.ExpressRoutePortPaged[~azure.mgmt.network.v2018_10_01.models.ExpressRoutePort] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_by_resource_group.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.ExpressRoutePortPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.ExpressRoutePortPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ExpressRoutePorts'} + + def list( + self, custom_headers=None, raw=False, **operation_config): + """List all the ExpressRoutePort resources in the specified subscription. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of ExpressRoutePort + :rtype: + ~azure.mgmt.network.v2018_10_01.models.ExpressRoutePortPaged[~azure.mgmt.network.v2018_10_01.models.ExpressRoutePort] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.ExpressRoutePortPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.ExpressRoutePortPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Network/ExpressRoutePorts'} diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/express_route_service_providers_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/express_route_service_providers_operations.py new file mode 100644 index 000000000000..a29804555501 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/express_route_service_providers_operations.py @@ -0,0 +1,102 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError + +from .. import models + + +class ExpressRouteServiceProvidersOperations(object): + """ExpressRouteServiceProvidersOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client API version. Constant value: "2018-10-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-10-01" + + self.config = config + + def list( + self, custom_headers=None, raw=False, **operation_config): + """Gets all the available express route service providers. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of ExpressRouteServiceProvider + :rtype: + ~azure.mgmt.network.v2018_10_01.models.ExpressRouteServiceProviderPaged[~azure.mgmt.network.v2018_10_01.models.ExpressRouteServiceProvider] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.ExpressRouteServiceProviderPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.ExpressRouteServiceProviderPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Network/expressRouteServiceProviders'} diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/hub_virtual_network_connections_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/hub_virtual_network_connections_operations.py new file mode 100644 index 000000000000..f1de3fa5510e --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/hub_virtual_network_connections_operations.py @@ -0,0 +1,171 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse + +from .. import models + + +class HubVirtualNetworkConnectionsOperations(object): + """HubVirtualNetworkConnectionsOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client API version. Constant value: "2018-10-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-10-01" + + self.config = config + + def get( + self, resource_group_name, virtual_hub_name, connection_name, custom_headers=None, raw=False, **operation_config): + """Retrieves the details of a HubVirtualNetworkConnection. + + :param resource_group_name: The resource group name of the VirtualHub. + :type resource_group_name: str + :param virtual_hub_name: The name of the VirtualHub. + :type virtual_hub_name: str + :param connection_name: The name of the vpn connection. + :type connection_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: HubVirtualNetworkConnection or ClientRawResponse if raw=true + :rtype: + ~azure.mgmt.network.v2018_10_01.models.HubVirtualNetworkConnection or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorException` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualHubName': self._serialize.url("virtual_hub_name", virtual_hub_name, 'str'), + 'connectionName': self._serialize.url("connection_name", connection_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('HubVirtualNetworkConnection', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/hubVirtualNetworkConnections/{connectionName}'} + + def list( + self, resource_group_name, virtual_hub_name, custom_headers=None, raw=False, **operation_config): + """Retrieves the details of all HubVirtualNetworkConnections. + + :param resource_group_name: The resource group name of the VirtualHub. + :type resource_group_name: str + :param virtual_hub_name: The name of the VirtualHub. + :type virtual_hub_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of HubVirtualNetworkConnection + :rtype: + ~azure.mgmt.network.v2018_10_01.models.HubVirtualNetworkConnectionPaged[~azure.mgmt.network.v2018_10_01.models.HubVirtualNetworkConnection] + :raises: + :class:`ErrorException` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualHubName': self._serialize.url("virtual_hub_name", virtual_hub_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + return response + + # Deserialize response + deserialized = models.HubVirtualNetworkConnectionPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.HubVirtualNetworkConnectionPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/hubVirtualNetworkConnections'} diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/inbound_nat_rules_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/inbound_nat_rules_operations.py new file mode 100644 index 000000000000..1269722e58c8 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/inbound_nat_rules_operations.py @@ -0,0 +1,370 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +from msrest.polling import LROPoller, NoPolling +from msrestazure.polling.arm_polling import ARMPolling + +from .. import models + + +class InboundNatRulesOperations(object): + """InboundNatRulesOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client API version. Constant value: "2018-10-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-10-01" + + self.config = config + + def list( + self, resource_group_name, load_balancer_name, custom_headers=None, raw=False, **operation_config): + """Gets all the inbound nat rules in a load balancer. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param load_balancer_name: The name of the load balancer. + :type load_balancer_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of InboundNatRule + :rtype: + ~azure.mgmt.network.v2018_10_01.models.InboundNatRulePaged[~azure.mgmt.network.v2018_10_01.models.InboundNatRule] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'loadBalancerName': self._serialize.url("load_balancer_name", load_balancer_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.InboundNatRulePaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.InboundNatRulePaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatRules'} + + + def _delete_initial( + self, resource_group_name, load_balancer_name, inbound_nat_rule_name, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'loadBalancerName': self._serialize.url("load_balancer_name", load_balancer_name, 'str'), + 'inboundNatRuleName': self._serialize.url("inbound_nat_rule_name", inbound_nat_rule_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202, 204]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def delete( + self, resource_group_name, load_balancer_name, inbound_nat_rule_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Deletes the specified load balancer inbound nat rule. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param load_balancer_name: The name of the load balancer. + :type load_balancer_name: str + :param inbound_nat_rule_name: The name of the inbound nat rule. + :type inbound_nat_rule_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: :class:`CloudError` + """ + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + load_balancer_name=load_balancer_name, + inbound_nat_rule_name=inbound_nat_rule_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatRules/{inboundNatRuleName}'} + + def get( + self, resource_group_name, load_balancer_name, inbound_nat_rule_name, expand=None, custom_headers=None, raw=False, **operation_config): + """Gets the specified load balancer inbound nat rule. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param load_balancer_name: The name of the load balancer. + :type load_balancer_name: str + :param inbound_nat_rule_name: The name of the inbound nat rule. + :type inbound_nat_rule_name: str + :param expand: Expands referenced resources. + :type expand: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: InboundNatRule or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.network.v2018_10_01.models.InboundNatRule or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'loadBalancerName': self._serialize.url("load_balancer_name", load_balancer_name, 'str'), + 'inboundNatRuleName': self._serialize.url("inbound_nat_rule_name", inbound_nat_rule_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('InboundNatRule', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatRules/{inboundNatRuleName}'} + + + def _create_or_update_initial( + self, resource_group_name, load_balancer_name, inbound_nat_rule_name, inbound_nat_rule_parameters, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'loadBalancerName': self._serialize.url("load_balancer_name", load_balancer_name, 'str'), + 'inboundNatRuleName': self._serialize.url("inbound_nat_rule_name", inbound_nat_rule_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(inbound_nat_rule_parameters, 'InboundNatRule') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('InboundNatRule', response) + if response.status_code == 201: + deserialized = self._deserialize('InboundNatRule', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update( + self, resource_group_name, load_balancer_name, inbound_nat_rule_name, inbound_nat_rule_parameters, custom_headers=None, raw=False, polling=True, **operation_config): + """Creates or updates a load balancer inbound nat rule. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param load_balancer_name: The name of the load balancer. + :type load_balancer_name: str + :param inbound_nat_rule_name: The name of the inbound nat rule. + :type inbound_nat_rule_name: str + :param inbound_nat_rule_parameters: Parameters supplied to the create + or update inbound nat rule operation. + :type inbound_nat_rule_parameters: + ~azure.mgmt.network.v2018_10_01.models.InboundNatRule + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns InboundNatRule or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.InboundNatRule] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.InboundNatRule]] + :raises: :class:`CloudError` + """ + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + load_balancer_name=load_balancer_name, + inbound_nat_rule_name=inbound_nat_rule_name, + inbound_nat_rule_parameters=inbound_nat_rule_parameters, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('InboundNatRule', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatRules/{inboundNatRuleName}'} diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/interface_endpoints_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/interface_endpoints_operations.py new file mode 100644 index 000000000000..93d9a612b923 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/interface_endpoints_operations.py @@ -0,0 +1,421 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +from msrest.polling import LROPoller, NoPolling +from msrestazure.polling.arm_polling import ARMPolling + +from .. import models + + +class InterfaceEndpointsOperations(object): + """InterfaceEndpointsOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client API version. Constant value: "2018-10-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-10-01" + + self.config = config + + + def _delete_initial( + self, resource_group_name, interface_endpoint_name, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'interfaceEndpointName': self._serialize.url("interface_endpoint_name", interface_endpoint_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202, 204]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def delete( + self, resource_group_name, interface_endpoint_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Deletes the specified interface endpoint. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param interface_endpoint_name: The name of the interface endpoint. + :type interface_endpoint_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: :class:`CloudError` + """ + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + interface_endpoint_name=interface_endpoint_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/interfaceEndpoints/{interfaceEndpointName}'} + + def get( + self, resource_group_name, interface_endpoint_name, expand=None, custom_headers=None, raw=False, **operation_config): + """Gets the specified interface endpoint by resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param interface_endpoint_name: The name of the interface endpoint. + :type interface_endpoint_name: str + :param expand: Expands referenced resources. + :type expand: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: InterfaceEndpoint or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.network.v2018_10_01.models.InterfaceEndpoint or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'interfaceEndpointName': self._serialize.url("interface_endpoint_name", interface_endpoint_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('InterfaceEndpoint', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/interfaceEndpoints/{interfaceEndpointName}'} + + + def _create_or_update_initial( + self, resource_group_name, interface_endpoint_name, parameters, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'interfaceEndpointName': self._serialize.url("interface_endpoint_name", interface_endpoint_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'InterfaceEndpoint') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('InterfaceEndpoint', response) + if response.status_code == 201: + deserialized = self._deserialize('InterfaceEndpoint', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update( + self, resource_group_name, interface_endpoint_name, parameters, custom_headers=None, raw=False, polling=True, **operation_config): + """Creates or updates an interface endpoint in the specified resource + group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param interface_endpoint_name: The name of the interface endpoint. + :type interface_endpoint_name: str + :param parameters: Parameters supplied to the create or update + interface endpoint operation + :type parameters: + ~azure.mgmt.network.v2018_10_01.models.InterfaceEndpoint + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns InterfaceEndpoint or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.InterfaceEndpoint] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.InterfaceEndpoint]] + :raises: :class:`CloudError` + """ + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + interface_endpoint_name=interface_endpoint_name, + parameters=parameters, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('InterfaceEndpoint', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/interfaceEndpoints/{interfaceEndpointName}'} + + def list( + self, resource_group_name, custom_headers=None, raw=False, **operation_config): + """Gets all interface endpoints in a resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of InterfaceEndpoint + :rtype: + ~azure.mgmt.network.v2018_10_01.models.InterfaceEndpointPaged[~azure.mgmt.network.v2018_10_01.models.InterfaceEndpoint] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.InterfaceEndpointPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.InterfaceEndpointPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/interfaceEndpoints'} + + def list_by_subscription( + self, custom_headers=None, raw=False, **operation_config): + """Gets all interface endpoints in a subscription. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of InterfaceEndpoint + :rtype: + ~azure.mgmt.network.v2018_10_01.models.InterfaceEndpointPaged[~azure.mgmt.network.v2018_10_01.models.InterfaceEndpoint] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_by_subscription.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.InterfaceEndpointPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.InterfaceEndpointPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_by_subscription.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Network/interfaceEndpoints'} diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/load_balancer_backend_address_pools_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/load_balancer_backend_address_pools_operations.py new file mode 100644 index 000000000000..042ae4b79f61 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/load_balancer_backend_address_pools_operations.py @@ -0,0 +1,174 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError + +from .. import models + + +class LoadBalancerBackendAddressPoolsOperations(object): + """LoadBalancerBackendAddressPoolsOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client API version. Constant value: "2018-10-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-10-01" + + self.config = config + + def list( + self, resource_group_name, load_balancer_name, custom_headers=None, raw=False, **operation_config): + """Gets all the load balancer backed address pools. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param load_balancer_name: The name of the load balancer. + :type load_balancer_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of BackendAddressPool + :rtype: + ~azure.mgmt.network.v2018_10_01.models.BackendAddressPoolPaged[~azure.mgmt.network.v2018_10_01.models.BackendAddressPool] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'loadBalancerName': self._serialize.url("load_balancer_name", load_balancer_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.BackendAddressPoolPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.BackendAddressPoolPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/backendAddressPools'} + + def get( + self, resource_group_name, load_balancer_name, backend_address_pool_name, custom_headers=None, raw=False, **operation_config): + """Gets load balancer backend address pool. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param load_balancer_name: The name of the load balancer. + :type load_balancer_name: str + :param backend_address_pool_name: The name of the backend address + pool. + :type backend_address_pool_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: BackendAddressPool or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.network.v2018_10_01.models.BackendAddressPool or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'loadBalancerName': self._serialize.url("load_balancer_name", load_balancer_name, 'str'), + 'backendAddressPoolName': self._serialize.url("backend_address_pool_name", backend_address_pool_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('BackendAddressPool', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/backendAddressPools/{backendAddressPoolName}'} diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/load_balancer_frontend_ip_configurations_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/load_balancer_frontend_ip_configurations_operations.py new file mode 100644 index 000000000000..dc655e287c83 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/load_balancer_frontend_ip_configurations_operations.py @@ -0,0 +1,174 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError + +from .. import models + + +class LoadBalancerFrontendIPConfigurationsOperations(object): + """LoadBalancerFrontendIPConfigurationsOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client API version. Constant value: "2018-10-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-10-01" + + self.config = config + + def list( + self, resource_group_name, load_balancer_name, custom_headers=None, raw=False, **operation_config): + """Gets all the load balancer frontend IP configurations. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param load_balancer_name: The name of the load balancer. + :type load_balancer_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of FrontendIPConfiguration + :rtype: + ~azure.mgmt.network.v2018_10_01.models.FrontendIPConfigurationPaged[~azure.mgmt.network.v2018_10_01.models.FrontendIPConfiguration] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'loadBalancerName': self._serialize.url("load_balancer_name", load_balancer_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.FrontendIPConfigurationPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.FrontendIPConfigurationPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/frontendIPConfigurations'} + + def get( + self, resource_group_name, load_balancer_name, frontend_ip_configuration_name, custom_headers=None, raw=False, **operation_config): + """Gets load balancer frontend IP configuration. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param load_balancer_name: The name of the load balancer. + :type load_balancer_name: str + :param frontend_ip_configuration_name: The name of the frontend IP + configuration. + :type frontend_ip_configuration_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: FrontendIPConfiguration or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.network.v2018_10_01.models.FrontendIPConfiguration + or ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'loadBalancerName': self._serialize.url("load_balancer_name", load_balancer_name, 'str'), + 'frontendIPConfigurationName': self._serialize.url("frontend_ip_configuration_name", frontend_ip_configuration_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('FrontendIPConfiguration', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/frontendIPConfigurations/{frontendIPConfigurationName}'} diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/load_balancer_load_balancing_rules_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/load_balancer_load_balancing_rules_operations.py new file mode 100644 index 000000000000..bde163535d85 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/load_balancer_load_balancing_rules_operations.py @@ -0,0 +1,173 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError + +from .. import models + + +class LoadBalancerLoadBalancingRulesOperations(object): + """LoadBalancerLoadBalancingRulesOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client API version. Constant value: "2018-10-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-10-01" + + self.config = config + + def list( + self, resource_group_name, load_balancer_name, custom_headers=None, raw=False, **operation_config): + """Gets all the load balancing rules in a load balancer. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param load_balancer_name: The name of the load balancer. + :type load_balancer_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of LoadBalancingRule + :rtype: + ~azure.mgmt.network.v2018_10_01.models.LoadBalancingRulePaged[~azure.mgmt.network.v2018_10_01.models.LoadBalancingRule] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'loadBalancerName': self._serialize.url("load_balancer_name", load_balancer_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.LoadBalancingRulePaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.LoadBalancingRulePaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/loadBalancingRules'} + + def get( + self, resource_group_name, load_balancer_name, load_balancing_rule_name, custom_headers=None, raw=False, **operation_config): + """Gets the specified load balancer load balancing rule. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param load_balancer_name: The name of the load balancer. + :type load_balancer_name: str + :param load_balancing_rule_name: The name of the load balancing rule. + :type load_balancing_rule_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: LoadBalancingRule or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.network.v2018_10_01.models.LoadBalancingRule or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'loadBalancerName': self._serialize.url("load_balancer_name", load_balancer_name, 'str'), + 'loadBalancingRuleName': self._serialize.url("load_balancing_rule_name", load_balancing_rule_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('LoadBalancingRule', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/loadBalancingRules/{loadBalancingRuleName}'} diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/load_balancer_network_interfaces_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/load_balancer_network_interfaces_operations.py new file mode 100644 index 000000000000..d207313750d4 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/load_balancer_network_interfaces_operations.py @@ -0,0 +1,108 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError + +from .. import models + + +class LoadBalancerNetworkInterfacesOperations(object): + """LoadBalancerNetworkInterfacesOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client API version. Constant value: "2018-10-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-10-01" + + self.config = config + + def list( + self, resource_group_name, load_balancer_name, custom_headers=None, raw=False, **operation_config): + """Gets associated load balancer network interfaces. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param load_balancer_name: The name of the load balancer. + :type load_balancer_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of NetworkInterface + :rtype: + ~azure.mgmt.network.v2018_10_01.models.NetworkInterfacePaged[~azure.mgmt.network.v2018_10_01.models.NetworkInterface] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'loadBalancerName': self._serialize.url("load_balancer_name", load_balancer_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.NetworkInterfacePaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.NetworkInterfacePaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/networkInterfaces'} diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/load_balancer_outbound_rules_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/load_balancer_outbound_rules_operations.py new file mode 100644 index 000000000000..3a291ad68de1 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/load_balancer_outbound_rules_operations.py @@ -0,0 +1,173 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError + +from .. import models + + +class LoadBalancerOutboundRulesOperations(object): + """LoadBalancerOutboundRulesOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client API version. Constant value: "2018-10-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-10-01" + + self.config = config + + def list( + self, resource_group_name, load_balancer_name, custom_headers=None, raw=False, **operation_config): + """Gets all the outbound rules in a load balancer. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param load_balancer_name: The name of the load balancer. + :type load_balancer_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of OutboundRule + :rtype: + ~azure.mgmt.network.v2018_10_01.models.OutboundRulePaged[~azure.mgmt.network.v2018_10_01.models.OutboundRule] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'loadBalancerName': self._serialize.url("load_balancer_name", load_balancer_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.OutboundRulePaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.OutboundRulePaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/outboundRules'} + + def get( + self, resource_group_name, load_balancer_name, outbound_rule_name, custom_headers=None, raw=False, **operation_config): + """Gets the specified load balancer outbound rule. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param load_balancer_name: The name of the load balancer. + :type load_balancer_name: str + :param outbound_rule_name: The name of the outbound rule. + :type outbound_rule_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: OutboundRule or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.network.v2018_10_01.models.OutboundRule or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'loadBalancerName': self._serialize.url("load_balancer_name", load_balancer_name, 'str'), + 'outboundRuleName': self._serialize.url("outbound_rule_name", outbound_rule_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('OutboundRule', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/outboundRules/{outboundRuleName}'} diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/load_balancer_probes_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/load_balancer_probes_operations.py new file mode 100644 index 000000000000..0e4a1bc268f0 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/load_balancer_probes_operations.py @@ -0,0 +1,173 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError + +from .. import models + + +class LoadBalancerProbesOperations(object): + """LoadBalancerProbesOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client API version. Constant value: "2018-10-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-10-01" + + self.config = config + + def list( + self, resource_group_name, load_balancer_name, custom_headers=None, raw=False, **operation_config): + """Gets all the load balancer probes. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param load_balancer_name: The name of the load balancer. + :type load_balancer_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of Probe + :rtype: + ~azure.mgmt.network.v2018_10_01.models.ProbePaged[~azure.mgmt.network.v2018_10_01.models.Probe] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'loadBalancerName': self._serialize.url("load_balancer_name", load_balancer_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.ProbePaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.ProbePaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes'} + + def get( + self, resource_group_name, load_balancer_name, probe_name, custom_headers=None, raw=False, **operation_config): + """Gets load balancer probe. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param load_balancer_name: The name of the load balancer. + :type load_balancer_name: str + :param probe_name: The name of the probe. + :type probe_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: Probe or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.network.v2018_10_01.models.Probe or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'loadBalancerName': self._serialize.url("load_balancer_name", load_balancer_name, 'str'), + 'probeName': self._serialize.url("probe_name", probe_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('Probe', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes/{probeName}'} diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/load_balancers_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/load_balancers_operations.py new file mode 100644 index 000000000000..44321a5b4337 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/load_balancers_operations.py @@ -0,0 +1,521 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +from msrest.polling import LROPoller, NoPolling +from msrestazure.polling.arm_polling import ARMPolling + +from .. import models + + +class LoadBalancersOperations(object): + """LoadBalancersOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client API version. Constant value: "2018-10-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-10-01" + + self.config = config + + + def _delete_initial( + self, resource_group_name, load_balancer_name, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'loadBalancerName': self._serialize.url("load_balancer_name", load_balancer_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202, 204]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def delete( + self, resource_group_name, load_balancer_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Deletes the specified load balancer. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param load_balancer_name: The name of the load balancer. + :type load_balancer_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: :class:`CloudError` + """ + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + load_balancer_name=load_balancer_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}'} + + def get( + self, resource_group_name, load_balancer_name, expand=None, custom_headers=None, raw=False, **operation_config): + """Gets the specified load balancer. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param load_balancer_name: The name of the load balancer. + :type load_balancer_name: str + :param expand: Expands referenced resources. + :type expand: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: LoadBalancer or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.network.v2018_10_01.models.LoadBalancer or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'loadBalancerName': self._serialize.url("load_balancer_name", load_balancer_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('LoadBalancer', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}'} + + + def _create_or_update_initial( + self, resource_group_name, load_balancer_name, parameters, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'loadBalancerName': self._serialize.url("load_balancer_name", load_balancer_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'LoadBalancer') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('LoadBalancer', response) + if response.status_code == 201: + deserialized = self._deserialize('LoadBalancer', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update( + self, resource_group_name, load_balancer_name, parameters, custom_headers=None, raw=False, polling=True, **operation_config): + """Creates or updates a load balancer. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param load_balancer_name: The name of the load balancer. + :type load_balancer_name: str + :param parameters: Parameters supplied to the create or update load + balancer operation. + :type parameters: ~azure.mgmt.network.v2018_10_01.models.LoadBalancer + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns LoadBalancer or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.LoadBalancer] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.LoadBalancer]] + :raises: :class:`CloudError` + """ + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + load_balancer_name=load_balancer_name, + parameters=parameters, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('LoadBalancer', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}'} + + + def _update_tags_initial( + self, resource_group_name, load_balancer_name, tags=None, custom_headers=None, raw=False, **operation_config): + parameters = models.TagsObject(tags=tags) + + # Construct URL + url = self.update_tags.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'loadBalancerName': self._serialize.url("load_balancer_name", load_balancer_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'TagsObject') + + # Construct and send request + request = self._client.patch(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('LoadBalancer', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def update_tags( + self, resource_group_name, load_balancer_name, tags=None, custom_headers=None, raw=False, polling=True, **operation_config): + """Updates a load balancer tags. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param load_balancer_name: The name of the load balancer. + :type load_balancer_name: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns LoadBalancer or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.LoadBalancer] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.LoadBalancer]] + :raises: :class:`CloudError` + """ + raw_result = self._update_tags_initial( + resource_group_name=resource_group_name, + load_balancer_name=load_balancer_name, + tags=tags, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('LoadBalancer', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + update_tags.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}'} + + def list_all( + self, custom_headers=None, raw=False, **operation_config): + """Gets all the load balancers in a subscription. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of LoadBalancer + :rtype: + ~azure.mgmt.network.v2018_10_01.models.LoadBalancerPaged[~azure.mgmt.network.v2018_10_01.models.LoadBalancer] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_all.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.LoadBalancerPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.LoadBalancerPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_all.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Network/loadBalancers'} + + def list( + self, resource_group_name, custom_headers=None, raw=False, **operation_config): + """Gets all the load balancers in a resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of LoadBalancer + :rtype: + ~azure.mgmt.network.v2018_10_01.models.LoadBalancerPaged[~azure.mgmt.network.v2018_10_01.models.LoadBalancer] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.LoadBalancerPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.LoadBalancerPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers'} diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/local_network_gateways_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/local_network_gateways_operations.py new file mode 100644 index 000000000000..468e94a86811 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/local_network_gateways_operations.py @@ -0,0 +1,459 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +from msrest.polling import LROPoller, NoPolling +from msrestazure.polling.arm_polling import ARMPolling + +from .. import models + + +class LocalNetworkGatewaysOperations(object): + """LocalNetworkGatewaysOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client API version. Constant value: "2018-10-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-10-01" + + self.config = config + + + def _create_or_update_initial( + self, resource_group_name, local_network_gateway_name, parameters, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'localNetworkGatewayName': self._serialize.url("local_network_gateway_name", local_network_gateway_name, 'str', min_length=1), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'LocalNetworkGateway') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('LocalNetworkGateway', response) + if response.status_code == 201: + deserialized = self._deserialize('LocalNetworkGateway', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update( + self, resource_group_name, local_network_gateway_name, parameters, custom_headers=None, raw=False, polling=True, **operation_config): + """Creates or updates a local network gateway in the specified resource + group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param local_network_gateway_name: The name of the local network + gateway. + :type local_network_gateway_name: str + :param parameters: Parameters supplied to the create or update local + network gateway operation. + :type parameters: + ~azure.mgmt.network.v2018_10_01.models.LocalNetworkGateway + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns LocalNetworkGateway or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.LocalNetworkGateway] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.LocalNetworkGateway]] + :raises: :class:`CloudError` + """ + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + local_network_gateway_name=local_network_gateway_name, + parameters=parameters, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('LocalNetworkGateway', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/localNetworkGateways/{localNetworkGatewayName}'} + + def get( + self, resource_group_name, local_network_gateway_name, custom_headers=None, raw=False, **operation_config): + """Gets the specified local network gateway in a resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param local_network_gateway_name: The name of the local network + gateway. + :type local_network_gateway_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: LocalNetworkGateway or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.network.v2018_10_01.models.LocalNetworkGateway or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'localNetworkGatewayName': self._serialize.url("local_network_gateway_name", local_network_gateway_name, 'str', min_length=1), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('LocalNetworkGateway', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/localNetworkGateways/{localNetworkGatewayName}'} + + + def _delete_initial( + self, resource_group_name, local_network_gateway_name, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'localNetworkGatewayName': self._serialize.url("local_network_gateway_name", local_network_gateway_name, 'str', min_length=1), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202, 204]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def delete( + self, resource_group_name, local_network_gateway_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Deletes the specified local network gateway. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param local_network_gateway_name: The name of the local network + gateway. + :type local_network_gateway_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: :class:`CloudError` + """ + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + local_network_gateway_name=local_network_gateway_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/localNetworkGateways/{localNetworkGatewayName}'} + + + def _update_tags_initial( + self, resource_group_name, local_network_gateway_name, tags=None, custom_headers=None, raw=False, **operation_config): + parameters = models.TagsObject(tags=tags) + + # Construct URL + url = self.update_tags.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'localNetworkGatewayName': self._serialize.url("local_network_gateway_name", local_network_gateway_name, 'str', min_length=1), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'TagsObject') + + # Construct and send request + request = self._client.patch(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('LocalNetworkGateway', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def update_tags( + self, resource_group_name, local_network_gateway_name, tags=None, custom_headers=None, raw=False, polling=True, **operation_config): + """Updates a local network gateway tags. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param local_network_gateway_name: The name of the local network + gateway. + :type local_network_gateway_name: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns LocalNetworkGateway or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.LocalNetworkGateway] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.LocalNetworkGateway]] + :raises: :class:`CloudError` + """ + raw_result = self._update_tags_initial( + resource_group_name=resource_group_name, + local_network_gateway_name=local_network_gateway_name, + tags=tags, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('LocalNetworkGateway', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + update_tags.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/localNetworkGateways/{localNetworkGatewayName}'} + + def list( + self, resource_group_name, custom_headers=None, raw=False, **operation_config): + """Gets all the local network gateways in a resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of LocalNetworkGateway + :rtype: + ~azure.mgmt.network.v2018_10_01.models.LocalNetworkGatewayPaged[~azure.mgmt.network.v2018_10_01.models.LocalNetworkGateway] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.LocalNetworkGatewayPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.LocalNetworkGatewayPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/localNetworkGateways'} diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/network_interface_ip_configurations_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/network_interface_ip_configurations_operations.py new file mode 100644 index 000000000000..b27158d5215d --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/network_interface_ip_configurations_operations.py @@ -0,0 +1,175 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError + +from .. import models + + +class NetworkInterfaceIPConfigurationsOperations(object): + """NetworkInterfaceIPConfigurationsOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client API version. Constant value: "2018-10-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-10-01" + + self.config = config + + def list( + self, resource_group_name, network_interface_name, custom_headers=None, raw=False, **operation_config): + """Get all ip configurations in a network interface. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param network_interface_name: The name of the network interface. + :type network_interface_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of NetworkInterfaceIPConfiguration + :rtype: + ~azure.mgmt.network.v2018_10_01.models.NetworkInterfaceIPConfigurationPaged[~azure.mgmt.network.v2018_10_01.models.NetworkInterfaceIPConfiguration] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkInterfaceName': self._serialize.url("network_interface_name", network_interface_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.NetworkInterfaceIPConfigurationPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.NetworkInterfaceIPConfigurationPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/ipConfigurations'} + + def get( + self, resource_group_name, network_interface_name, ip_configuration_name, custom_headers=None, raw=False, **operation_config): + """Gets the specified network interface ip configuration. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param network_interface_name: The name of the network interface. + :type network_interface_name: str + :param ip_configuration_name: The name of the ip configuration name. + :type ip_configuration_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: NetworkInterfaceIPConfiguration or ClientRawResponse if + raw=true + :rtype: + ~azure.mgmt.network.v2018_10_01.models.NetworkInterfaceIPConfiguration + or ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkInterfaceName': self._serialize.url("network_interface_name", network_interface_name, 'str'), + 'ipConfigurationName': self._serialize.url("ip_configuration_name", ip_configuration_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('NetworkInterfaceIPConfiguration', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/ipConfigurations/{ipConfigurationName}'} diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/network_interface_load_balancers_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/network_interface_load_balancers_operations.py new file mode 100644 index 000000000000..501cb536a4e2 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/network_interface_load_balancers_operations.py @@ -0,0 +1,108 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError + +from .. import models + + +class NetworkInterfaceLoadBalancersOperations(object): + """NetworkInterfaceLoadBalancersOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client API version. Constant value: "2018-10-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-10-01" + + self.config = config + + def list( + self, resource_group_name, network_interface_name, custom_headers=None, raw=False, **operation_config): + """List all load balancers in a network interface. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param network_interface_name: The name of the network interface. + :type network_interface_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of LoadBalancer + :rtype: + ~azure.mgmt.network.v2018_10_01.models.LoadBalancerPaged[~azure.mgmt.network.v2018_10_01.models.LoadBalancer] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkInterfaceName': self._serialize.url("network_interface_name", network_interface_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.LoadBalancerPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.LoadBalancerPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/loadBalancers'} diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/network_interface_tap_configurations_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/network_interface_tap_configurations_operations.py new file mode 100644 index 000000000000..96f7a84da55b --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/network_interface_tap_configurations_operations.py @@ -0,0 +1,370 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +from msrest.polling import LROPoller, NoPolling +from msrestazure.polling.arm_polling import ARMPolling + +from .. import models + + +class NetworkInterfaceTapConfigurationsOperations(object): + """NetworkInterfaceTapConfigurationsOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client API version. Constant value: "2018-10-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-10-01" + + self.config = config + + + def _delete_initial( + self, resource_group_name, network_interface_name, tap_configuration_name, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkInterfaceName': self._serialize.url("network_interface_name", network_interface_name, 'str'), + 'tapConfigurationName': self._serialize.url("tap_configuration_name", tap_configuration_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202, 204]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def delete( + self, resource_group_name, network_interface_name, tap_configuration_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Deletes the specified tap configuration from the NetworkInterface. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param network_interface_name: The name of the network interface. + :type network_interface_name: str + :param tap_configuration_name: The name of the tap configuration. + :type tap_configuration_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: :class:`CloudError` + """ + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + network_interface_name=network_interface_name, + tap_configuration_name=tap_configuration_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/tapConfigurations/{tapConfigurationName}'} + + def get( + self, resource_group_name, network_interface_name, tap_configuration_name, custom_headers=None, raw=False, **operation_config): + """Get the specified tap configuration on a network interface. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param network_interface_name: The name of the network interface. + :type network_interface_name: str + :param tap_configuration_name: The name of the tap configuration. + :type tap_configuration_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: NetworkInterfaceTapConfiguration or ClientRawResponse if + raw=true + :rtype: + ~azure.mgmt.network.v2018_10_01.models.NetworkInterfaceTapConfiguration + or ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkInterfaceName': self._serialize.url("network_interface_name", network_interface_name, 'str'), + 'tapConfigurationName': self._serialize.url("tap_configuration_name", tap_configuration_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('NetworkInterfaceTapConfiguration', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/tapConfigurations/{tapConfigurationName}'} + + + def _create_or_update_initial( + self, resource_group_name, network_interface_name, tap_configuration_name, tap_configuration_parameters, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkInterfaceName': self._serialize.url("network_interface_name", network_interface_name, 'str'), + 'tapConfigurationName': self._serialize.url("tap_configuration_name", tap_configuration_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(tap_configuration_parameters, 'NetworkInterfaceTapConfiguration') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('NetworkInterfaceTapConfiguration', response) + if response.status_code == 201: + deserialized = self._deserialize('NetworkInterfaceTapConfiguration', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update( + self, resource_group_name, network_interface_name, tap_configuration_name, tap_configuration_parameters, custom_headers=None, raw=False, polling=True, **operation_config): + """Creates or updates a Tap configuration in the specified + NetworkInterface. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param network_interface_name: The name of the network interface. + :type network_interface_name: str + :param tap_configuration_name: The name of the tap configuration. + :type tap_configuration_name: str + :param tap_configuration_parameters: Parameters supplied to the create + or update tap configuration operation. + :type tap_configuration_parameters: + ~azure.mgmt.network.v2018_10_01.models.NetworkInterfaceTapConfiguration + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns + NetworkInterfaceTapConfiguration or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.NetworkInterfaceTapConfiguration] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.NetworkInterfaceTapConfiguration]] + :raises: :class:`CloudError` + """ + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + network_interface_name=network_interface_name, + tap_configuration_name=tap_configuration_name, + tap_configuration_parameters=tap_configuration_parameters, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('NetworkInterfaceTapConfiguration', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/tapConfigurations/{tapConfigurationName}'} + + def list( + self, resource_group_name, network_interface_name, custom_headers=None, raw=False, **operation_config): + """Get all Tap configurations in a network interface. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param network_interface_name: The name of the network interface. + :type network_interface_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of NetworkInterfaceTapConfiguration + :rtype: + ~azure.mgmt.network.v2018_10_01.models.NetworkInterfaceTapConfigurationPaged[~azure.mgmt.network.v2018_10_01.models.NetworkInterfaceTapConfiguration] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkInterfaceName': self._serialize.url("network_interface_name", network_interface_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.NetworkInterfaceTapConfigurationPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.NetworkInterfaceTapConfigurationPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/tapConfigurations'} diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/network_interfaces_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/network_interfaces_operations.py new file mode 100644 index 000000000000..a6ab8936f115 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/network_interfaces_operations.py @@ -0,0 +1,1115 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +from msrest.polling import LROPoller, NoPolling +from msrestazure.polling.arm_polling import ARMPolling + +from .. import models + + +class NetworkInterfacesOperations(object): + """NetworkInterfacesOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + + self.config = config + + + def _delete_initial( + self, resource_group_name, network_interface_name, custom_headers=None, raw=False, **operation_config): + api_version = "2018-10-01" + + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkInterfaceName': self._serialize.url("network_interface_name", network_interface_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202, 204]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def delete( + self, resource_group_name, network_interface_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Deletes the specified network interface. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param network_interface_name: The name of the network interface. + :type network_interface_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: :class:`CloudError` + """ + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + network_interface_name=network_interface_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}'} + + def get( + self, resource_group_name, network_interface_name, expand=None, custom_headers=None, raw=False, **operation_config): + """Gets information about the specified network interface. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param network_interface_name: The name of the network interface. + :type network_interface_name: str + :param expand: Expands referenced resources. + :type expand: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: NetworkInterface or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.network.v2018_10_01.models.NetworkInterface or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + api_version = "2018-10-01" + + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkInterfaceName': self._serialize.url("network_interface_name", network_interface_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('NetworkInterface', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}'} + + + def _create_or_update_initial( + self, resource_group_name, network_interface_name, parameters, custom_headers=None, raw=False, **operation_config): + api_version = "2018-10-01" + + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkInterfaceName': self._serialize.url("network_interface_name", network_interface_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'NetworkInterface') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('NetworkInterface', response) + if response.status_code == 201: + deserialized = self._deserialize('NetworkInterface', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update( + self, resource_group_name, network_interface_name, parameters, custom_headers=None, raw=False, polling=True, **operation_config): + """Creates or updates a network interface. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param network_interface_name: The name of the network interface. + :type network_interface_name: str + :param parameters: Parameters supplied to the create or update network + interface operation. + :type parameters: + ~azure.mgmt.network.v2018_10_01.models.NetworkInterface + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns NetworkInterface or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.NetworkInterface] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.NetworkInterface]] + :raises: :class:`CloudError` + """ + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + network_interface_name=network_interface_name, + parameters=parameters, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('NetworkInterface', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}'} + + + def _update_tags_initial( + self, resource_group_name, network_interface_name, tags=None, custom_headers=None, raw=False, **operation_config): + parameters = models.TagsObject(tags=tags) + + api_version = "2018-10-01" + + # Construct URL + url = self.update_tags.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkInterfaceName': self._serialize.url("network_interface_name", network_interface_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'TagsObject') + + # Construct and send request + request = self._client.patch(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('NetworkInterface', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def update_tags( + self, resource_group_name, network_interface_name, tags=None, custom_headers=None, raw=False, polling=True, **operation_config): + """Updates a network interface tags. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param network_interface_name: The name of the network interface. + :type network_interface_name: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns NetworkInterface or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.NetworkInterface] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.NetworkInterface]] + :raises: :class:`CloudError` + """ + raw_result = self._update_tags_initial( + resource_group_name=resource_group_name, + network_interface_name=network_interface_name, + tags=tags, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('NetworkInterface', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + update_tags.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}'} + + def list_all( + self, custom_headers=None, raw=False, **operation_config): + """Gets all network interfaces in a subscription. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of NetworkInterface + :rtype: + ~azure.mgmt.network.v2018_10_01.models.NetworkInterfacePaged[~azure.mgmt.network.v2018_10_01.models.NetworkInterface] + :raises: :class:`CloudError` + """ + api_version = "2018-10-01" + + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_all.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.NetworkInterfacePaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.NetworkInterfacePaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_all.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkInterfaces'} + + def list( + self, resource_group_name, custom_headers=None, raw=False, **operation_config): + """Gets all network interfaces in a resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of NetworkInterface + :rtype: + ~azure.mgmt.network.v2018_10_01.models.NetworkInterfacePaged[~azure.mgmt.network.v2018_10_01.models.NetworkInterface] + :raises: :class:`CloudError` + """ + api_version = "2018-10-01" + + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.NetworkInterfacePaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.NetworkInterfacePaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces'} + + + def _get_effective_route_table_initial( + self, resource_group_name, network_interface_name, custom_headers=None, raw=False, **operation_config): + api_version = "2018-10-01" + + # Construct URL + url = self.get_effective_route_table.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkInterfaceName': self._serialize.url("network_interface_name", network_interface_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('EffectiveRouteListResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def get_effective_route_table( + self, resource_group_name, network_interface_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Gets all route tables applied to a network interface. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param network_interface_name: The name of the network interface. + :type network_interface_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns + EffectiveRouteListResult or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.EffectiveRouteListResult] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.EffectiveRouteListResult]] + :raises: :class:`CloudError` + """ + raw_result = self._get_effective_route_table_initial( + resource_group_name=resource_group_name, + network_interface_name=network_interface_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('EffectiveRouteListResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + get_effective_route_table.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/effectiveRouteTable'} + + + def _list_effective_network_security_groups_initial( + self, resource_group_name, network_interface_name, custom_headers=None, raw=False, **operation_config): + api_version = "2018-10-01" + + # Construct URL + url = self.list_effective_network_security_groups.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkInterfaceName': self._serialize.url("network_interface_name", network_interface_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('EffectiveNetworkSecurityGroupListResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def list_effective_network_security_groups( + self, resource_group_name, network_interface_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Gets all network security groups applied to a network interface. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param network_interface_name: The name of the network interface. + :type network_interface_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns + EffectiveNetworkSecurityGroupListResult or + ClientRawResponse if + raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.EffectiveNetworkSecurityGroupListResult] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.EffectiveNetworkSecurityGroupListResult]] + :raises: :class:`CloudError` + """ + raw_result = self._list_effective_network_security_groups_initial( + resource_group_name=resource_group_name, + network_interface_name=network_interface_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('EffectiveNetworkSecurityGroupListResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + list_effective_network_security_groups.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/effectiveNetworkSecurityGroups'} + + def list_virtual_machine_scale_set_vm_network_interfaces( + self, resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, custom_headers=None, raw=False, **operation_config): + """Gets information about all network interfaces in a virtual machine in a + virtual machine scale set. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_machine_scale_set_name: The name of the virtual machine + scale set. + :type virtual_machine_scale_set_name: str + :param virtualmachine_index: The virtual machine index. + :type virtualmachine_index: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of NetworkInterface + :rtype: + ~azure.mgmt.network.v2018_10_01.models.NetworkInterfacePaged[~azure.mgmt.network.v2018_10_01.models.NetworkInterface] + :raises: :class:`CloudError` + """ + api_version = "2017-03-30" + + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_virtual_machine_scale_set_vm_network_interfaces.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualMachineScaleSetName': self._serialize.url("virtual_machine_scale_set_name", virtual_machine_scale_set_name, 'str'), + 'virtualmachineIndex': self._serialize.url("virtualmachine_index", virtualmachine_index, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.NetworkInterfacePaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.NetworkInterfacePaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_virtual_machine_scale_set_vm_network_interfaces.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{virtualmachineIndex}/networkInterfaces'} + + def list_virtual_machine_scale_set_network_interfaces( + self, resource_group_name, virtual_machine_scale_set_name, custom_headers=None, raw=False, **operation_config): + """Gets all network interfaces in a virtual machine scale set. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_machine_scale_set_name: The name of the virtual machine + scale set. + :type virtual_machine_scale_set_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of NetworkInterface + :rtype: + ~azure.mgmt.network.v2018_10_01.models.NetworkInterfacePaged[~azure.mgmt.network.v2018_10_01.models.NetworkInterface] + :raises: :class:`CloudError` + """ + api_version = "2017-03-30" + + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_virtual_machine_scale_set_network_interfaces.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualMachineScaleSetName': self._serialize.url("virtual_machine_scale_set_name", virtual_machine_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.NetworkInterfacePaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.NetworkInterfacePaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_virtual_machine_scale_set_network_interfaces.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/networkInterfaces'} + + def get_virtual_machine_scale_set_network_interface( + self, resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand=None, custom_headers=None, raw=False, **operation_config): + """Get the specified network interface in a virtual machine scale set. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_machine_scale_set_name: The name of the virtual machine + scale set. + :type virtual_machine_scale_set_name: str + :param virtualmachine_index: The virtual machine index. + :type virtualmachine_index: str + :param network_interface_name: The name of the network interface. + :type network_interface_name: str + :param expand: Expands referenced resources. + :type expand: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: NetworkInterface or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.network.v2018_10_01.models.NetworkInterface or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + api_version = "2017-03-30" + + # Construct URL + url = self.get_virtual_machine_scale_set_network_interface.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualMachineScaleSetName': self._serialize.url("virtual_machine_scale_set_name", virtual_machine_scale_set_name, 'str'), + 'virtualmachineIndex': self._serialize.url("virtualmachine_index", virtualmachine_index, 'str'), + 'networkInterfaceName': self._serialize.url("network_interface_name", network_interface_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('NetworkInterface', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get_virtual_machine_scale_set_network_interface.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{virtualmachineIndex}/networkInterfaces/{networkInterfaceName}'} + + def list_virtual_machine_scale_set_ip_configurations( + self, resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, expand=None, custom_headers=None, raw=False, **operation_config): + """Get the specified network interface ip configuration in a virtual + machine scale set. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_machine_scale_set_name: The name of the virtual machine + scale set. + :type virtual_machine_scale_set_name: str + :param virtualmachine_index: The virtual machine index. + :type virtualmachine_index: str + :param network_interface_name: The name of the network interface. + :type network_interface_name: str + :param expand: Expands referenced resources. + :type expand: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of NetworkInterfaceIPConfiguration + :rtype: + ~azure.mgmt.network.v2018_10_01.models.NetworkInterfaceIPConfigurationPaged[~azure.mgmt.network.v2018_10_01.models.NetworkInterfaceIPConfiguration] + :raises: :class:`CloudError` + """ + api_version = "2017-03-30" + + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_virtual_machine_scale_set_ip_configurations.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualMachineScaleSetName': self._serialize.url("virtual_machine_scale_set_name", virtual_machine_scale_set_name, 'str'), + 'virtualmachineIndex': self._serialize.url("virtualmachine_index", virtualmachine_index, 'str'), + 'networkInterfaceName': self._serialize.url("network_interface_name", network_interface_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.NetworkInterfaceIPConfigurationPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.NetworkInterfaceIPConfigurationPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_virtual_machine_scale_set_ip_configurations.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{virtualmachineIndex}/networkInterfaces/{networkInterfaceName}/ipConfigurations'} + + def get_virtual_machine_scale_set_ip_configuration( + self, resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, ip_configuration_name, expand=None, custom_headers=None, raw=False, **operation_config): + """Get the specified network interface ip configuration in a virtual + machine scale set. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_machine_scale_set_name: The name of the virtual machine + scale set. + :type virtual_machine_scale_set_name: str + :param virtualmachine_index: The virtual machine index. + :type virtualmachine_index: str + :param network_interface_name: The name of the network interface. + :type network_interface_name: str + :param ip_configuration_name: The name of the ip configuration. + :type ip_configuration_name: str + :param expand: Expands referenced resources. + :type expand: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: NetworkInterfaceIPConfiguration or ClientRawResponse if + raw=true + :rtype: + ~azure.mgmt.network.v2018_10_01.models.NetworkInterfaceIPConfiguration + or ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + api_version = "2017-03-30" + + # Construct URL + url = self.get_virtual_machine_scale_set_ip_configuration.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualMachineScaleSetName': self._serialize.url("virtual_machine_scale_set_name", virtual_machine_scale_set_name, 'str'), + 'virtualmachineIndex': self._serialize.url("virtualmachine_index", virtualmachine_index, 'str'), + 'networkInterfaceName': self._serialize.url("network_interface_name", network_interface_name, 'str'), + 'ipConfigurationName': self._serialize.url("ip_configuration_name", ip_configuration_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('NetworkInterfaceIPConfiguration', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get_virtual_machine_scale_set_ip_configuration.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{virtualmachineIndex}/networkInterfaces/{networkInterfaceName}/ipConfigurations/{ipConfigurationName}'} diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/network_profiles_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/network_profiles_operations.py new file mode 100644 index 000000000000..7f1cb537ac79 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/network_profiles_operations.py @@ -0,0 +1,522 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +from msrest.polling import LROPoller, NoPolling +from msrestazure.polling.arm_polling import ARMPolling + +from .. import models + + +class NetworkProfilesOperations(object): + """NetworkProfilesOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client API version. Constant value: "2018-10-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-10-01" + + self.config = config + + + def _delete_initial( + self, resource_group_name, network_profile_name, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkProfileName': self._serialize.url("network_profile_name", network_profile_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202, 204]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def delete( + self, resource_group_name, network_profile_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Deletes the specified network profile. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param network_profile_name: The name of the NetworkProfile. + :type network_profile_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: :class:`CloudError` + """ + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + network_profile_name=network_profile_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkProfiles/{networkProfileName}'} + + def get( + self, resource_group_name, network_profile_name, expand=None, custom_headers=None, raw=False, **operation_config): + """Gets the specified network profile in a specified resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param network_profile_name: The name of the PublicIPPrefx. + :type network_profile_name: str + :param expand: Expands referenced resources. + :type expand: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: NetworkProfile or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.network.v2018_10_01.models.NetworkProfile or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkProfileName': self._serialize.url("network_profile_name", network_profile_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('NetworkProfile', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkProfiles/{networkProfileName}'} + + + def _create_or_update_initial( + self, resource_group_name, network_profile_name, parameters, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkProfileName': self._serialize.url("network_profile_name", network_profile_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'NetworkProfile') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('NetworkProfile', response) + if response.status_code == 201: + deserialized = self._deserialize('NetworkProfile', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update( + self, resource_group_name, network_profile_name, parameters, custom_headers=None, raw=False, polling=True, **operation_config): + """Creates or updates a network profile. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param network_profile_name: The name of the network profile. + :type network_profile_name: str + :param parameters: Parameters supplied to the create or update network + profile operation. + :type parameters: + ~azure.mgmt.network.v2018_10_01.models.NetworkProfile + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns NetworkProfile or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.NetworkProfile] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.NetworkProfile]] + :raises: :class:`CloudError` + """ + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + network_profile_name=network_profile_name, + parameters=parameters, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('NetworkProfile', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkProfiles/{networkProfileName}'} + + + def _update_tags_initial( + self, resource_group_name, network_profile_name, tags=None, custom_headers=None, raw=False, **operation_config): + parameters = models.TagsObject(tags=tags) + + # Construct URL + url = self.update_tags.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkProfileName': self._serialize.url("network_profile_name", network_profile_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'TagsObject') + + # Construct and send request + request = self._client.patch(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('NetworkProfile', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def update_tags( + self, resource_group_name, network_profile_name, tags=None, custom_headers=None, raw=False, polling=True, **operation_config): + """Updates network profile tags. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param network_profile_name: The name of the network profile. + :type network_profile_name: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns NetworkProfile or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.NetworkProfile] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.NetworkProfile]] + :raises: :class:`CloudError` + """ + raw_result = self._update_tags_initial( + resource_group_name=resource_group_name, + network_profile_name=network_profile_name, + tags=tags, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('NetworkProfile', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + update_tags.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkProfiles/{networkProfileName}'} + + def list_all( + self, custom_headers=None, raw=False, **operation_config): + """Gets all the network profiles in a subscription. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of NetworkProfile + :rtype: + ~azure.mgmt.network.v2018_10_01.models.NetworkProfilePaged[~azure.mgmt.network.v2018_10_01.models.NetworkProfile] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_all.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.NetworkProfilePaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.NetworkProfilePaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_all.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkProfiles'} + + def list( + self, resource_group_name, custom_headers=None, raw=False, **operation_config): + """Gets all network profiles in a resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of NetworkProfile + :rtype: + ~azure.mgmt.network.v2018_10_01.models.NetworkProfilePaged[~azure.mgmt.network.v2018_10_01.models.NetworkProfile] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.NetworkProfilePaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.NetworkProfilePaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkProfiles'} diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/network_security_groups_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/network_security_groups_operations.py new file mode 100644 index 000000000000..cdaf049da57e --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/network_security_groups_operations.py @@ -0,0 +1,527 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +from msrest.polling import LROPoller, NoPolling +from msrestazure.polling.arm_polling import ARMPolling + +from .. import models + + +class NetworkSecurityGroupsOperations(object): + """NetworkSecurityGroupsOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client API version. Constant value: "2018-10-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-10-01" + + self.config = config + + + def _delete_initial( + self, resource_group_name, network_security_group_name, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkSecurityGroupName': self._serialize.url("network_security_group_name", network_security_group_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202, 204]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def delete( + self, resource_group_name, network_security_group_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Deletes the specified network security group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param network_security_group_name: The name of the network security + group. + :type network_security_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: :class:`CloudError` + """ + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + network_security_group_name=network_security_group_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}'} + + def get( + self, resource_group_name, network_security_group_name, expand=None, custom_headers=None, raw=False, **operation_config): + """Gets the specified network security group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param network_security_group_name: The name of the network security + group. + :type network_security_group_name: str + :param expand: Expands referenced resources. + :type expand: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: NetworkSecurityGroup or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.network.v2018_10_01.models.NetworkSecurityGroup or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkSecurityGroupName': self._serialize.url("network_security_group_name", network_security_group_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('NetworkSecurityGroup', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}'} + + + def _create_or_update_initial( + self, resource_group_name, network_security_group_name, parameters, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkSecurityGroupName': self._serialize.url("network_security_group_name", network_security_group_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'NetworkSecurityGroup') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('NetworkSecurityGroup', response) + if response.status_code == 201: + deserialized = self._deserialize('NetworkSecurityGroup', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update( + self, resource_group_name, network_security_group_name, parameters, custom_headers=None, raw=False, polling=True, **operation_config): + """Creates or updates a network security group in the specified resource + group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param network_security_group_name: The name of the network security + group. + :type network_security_group_name: str + :param parameters: Parameters supplied to the create or update network + security group operation. + :type parameters: + ~azure.mgmt.network.v2018_10_01.models.NetworkSecurityGroup + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns NetworkSecurityGroup or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.NetworkSecurityGroup] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.NetworkSecurityGroup]] + :raises: :class:`CloudError` + """ + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + network_security_group_name=network_security_group_name, + parameters=parameters, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('NetworkSecurityGroup', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}'} + + + def _update_tags_initial( + self, resource_group_name, network_security_group_name, tags=None, custom_headers=None, raw=False, **operation_config): + parameters = models.TagsObject(tags=tags) + + # Construct URL + url = self.update_tags.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkSecurityGroupName': self._serialize.url("network_security_group_name", network_security_group_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'TagsObject') + + # Construct and send request + request = self._client.patch(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('NetworkSecurityGroup', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def update_tags( + self, resource_group_name, network_security_group_name, tags=None, custom_headers=None, raw=False, polling=True, **operation_config): + """Updates a network security group tags. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param network_security_group_name: The name of the network security + group. + :type network_security_group_name: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns NetworkSecurityGroup or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.NetworkSecurityGroup] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.NetworkSecurityGroup]] + :raises: :class:`CloudError` + """ + raw_result = self._update_tags_initial( + resource_group_name=resource_group_name, + network_security_group_name=network_security_group_name, + tags=tags, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('NetworkSecurityGroup', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + update_tags.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}'} + + def list_all( + self, custom_headers=None, raw=False, **operation_config): + """Gets all network security groups in a subscription. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of NetworkSecurityGroup + :rtype: + ~azure.mgmt.network.v2018_10_01.models.NetworkSecurityGroupPaged[~azure.mgmt.network.v2018_10_01.models.NetworkSecurityGroup] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_all.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.NetworkSecurityGroupPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.NetworkSecurityGroupPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_all.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkSecurityGroups'} + + def list( + self, resource_group_name, custom_headers=None, raw=False, **operation_config): + """Gets all network security groups in a resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of NetworkSecurityGroup + :rtype: + ~azure.mgmt.network.v2018_10_01.models.NetworkSecurityGroupPaged[~azure.mgmt.network.v2018_10_01.models.NetworkSecurityGroup] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.NetworkSecurityGroupPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.NetworkSecurityGroupPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups'} diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/network_watchers_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/network_watchers_operations.py new file mode 100644 index 000000000000..d2036a432b53 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/network_watchers_operations.py @@ -0,0 +1,1664 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrest.polling import LROPoller, NoPolling +from msrestazure.polling.arm_polling import ARMPolling + +from .. import models + + +class NetworkWatchersOperations(object): + """NetworkWatchersOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client API version. Constant value: "2018-10-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-10-01" + + self.config = config + + def create_or_update( + self, resource_group_name, network_watcher_name, parameters, custom_headers=None, raw=False, **operation_config): + """Creates or updates a network watcher in the specified resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher. + :type network_watcher_name: str + :param parameters: Parameters that define the network watcher + resource. + :type parameters: + ~azure.mgmt.network.v2018_10_01.models.NetworkWatcher + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: NetworkWatcher or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.network.v2018_10_01.models.NetworkWatcher or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorResponseException` + """ + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkWatcherName': self._serialize.url("network_watcher_name", network_watcher_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'NetworkWatcher') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201]: + raise models.ErrorResponseException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('NetworkWatcher', response) + if response.status_code == 201: + deserialized = self._deserialize('NetworkWatcher', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}'} + + def get( + self, resource_group_name, network_watcher_name, custom_headers=None, raw=False, **operation_config): + """Gets the specified network watcher by resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher. + :type network_watcher_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: NetworkWatcher or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.network.v2018_10_01.models.NetworkWatcher or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorResponseException` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkWatcherName': self._serialize.url("network_watcher_name", network_watcher_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorResponseException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('NetworkWatcher', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}'} + + + def _delete_initial( + self, resource_group_name, network_watcher_name, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkWatcherName': self._serialize.url("network_watcher_name", network_watcher_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [202, 204]: + raise models.ErrorResponseException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def delete( + self, resource_group_name, network_watcher_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Deletes the specified network watcher resource. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher. + :type network_watcher_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: + :class:`ErrorResponseException` + """ + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + network_watcher_name=network_watcher_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}'} + + def update_tags( + self, resource_group_name, network_watcher_name, tags=None, custom_headers=None, raw=False, **operation_config): + """Updates a network watcher tags. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher. + :type network_watcher_name: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: NetworkWatcher or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.network.v2018_10_01.models.NetworkWatcher or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorResponseException` + """ + parameters = models.TagsObject(tags=tags) + + # Construct URL + url = self.update_tags.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkWatcherName': self._serialize.url("network_watcher_name", network_watcher_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'TagsObject') + + # Construct and send request + request = self._client.patch(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorResponseException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('NetworkWatcher', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + update_tags.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}'} + + def list( + self, resource_group_name, custom_headers=None, raw=False, **operation_config): + """Gets all network watchers by resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of NetworkWatcher + :rtype: + ~azure.mgmt.network.v2018_10_01.models.NetworkWatcherPaged[~azure.mgmt.network.v2018_10_01.models.NetworkWatcher] + :raises: + :class:`ErrorResponseException` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorResponseException(self._deserialize, response) + + return response + + # Deserialize response + deserialized = models.NetworkWatcherPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.NetworkWatcherPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers'} + + def list_all( + self, custom_headers=None, raw=False, **operation_config): + """Gets all network watchers by subscription. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of NetworkWatcher + :rtype: + ~azure.mgmt.network.v2018_10_01.models.NetworkWatcherPaged[~azure.mgmt.network.v2018_10_01.models.NetworkWatcher] + :raises: + :class:`ErrorResponseException` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_all.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorResponseException(self._deserialize, response) + + return response + + # Deserialize response + deserialized = models.NetworkWatcherPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.NetworkWatcherPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_all.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkWatchers'} + + def get_topology( + self, resource_group_name, network_watcher_name, parameters, custom_headers=None, raw=False, **operation_config): + """Gets the current network topology by resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher. + :type network_watcher_name: str + :param parameters: Parameters that define the representation of + topology. + :type parameters: + ~azure.mgmt.network.v2018_10_01.models.TopologyParameters + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: Topology or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.network.v2018_10_01.models.Topology or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorResponseException` + """ + # Construct URL + url = self.get_topology.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkWatcherName': self._serialize.url("network_watcher_name", network_watcher_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'TopologyParameters') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorResponseException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('Topology', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get_topology.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/topology'} + + + def _verify_ip_flow_initial( + self, resource_group_name, network_watcher_name, parameters, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.verify_ip_flow.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkWatcherName': self._serialize.url("network_watcher_name", network_watcher_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'VerificationIPFlowParameters') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202]: + raise models.ErrorResponseException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('VerificationIPFlowResult', response) + if response.status_code == 202: + deserialized = self._deserialize('VerificationIPFlowResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def verify_ip_flow( + self, resource_group_name, network_watcher_name, parameters, custom_headers=None, raw=False, polling=True, **operation_config): + """Verify IP flow from the specified VM to a location given the currently + configured NSG rules. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher. + :type network_watcher_name: str + :param parameters: Parameters that define the IP flow to be verified. + :type parameters: + ~azure.mgmt.network.v2018_10_01.models.VerificationIPFlowParameters + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns + VerificationIPFlowResult or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.VerificationIPFlowResult] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.VerificationIPFlowResult]] + :raises: + :class:`ErrorResponseException` + """ + raw_result = self._verify_ip_flow_initial( + resource_group_name=resource_group_name, + network_watcher_name=network_watcher_name, + parameters=parameters, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('VerificationIPFlowResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + verify_ip_flow.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/ipFlowVerify'} + + + def _get_next_hop_initial( + self, resource_group_name, network_watcher_name, parameters, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.get_next_hop.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkWatcherName': self._serialize.url("network_watcher_name", network_watcher_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'NextHopParameters') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202]: + raise models.ErrorResponseException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('NextHopResult', response) + if response.status_code == 202: + deserialized = self._deserialize('NextHopResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def get_next_hop( + self, resource_group_name, network_watcher_name, parameters, custom_headers=None, raw=False, polling=True, **operation_config): + """Gets the next hop from the specified VM. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher. + :type network_watcher_name: str + :param parameters: Parameters that define the source and destination + endpoint. + :type parameters: + ~azure.mgmt.network.v2018_10_01.models.NextHopParameters + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns NextHopResult or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.NextHopResult] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.NextHopResult]] + :raises: + :class:`ErrorResponseException` + """ + raw_result = self._get_next_hop_initial( + resource_group_name=resource_group_name, + network_watcher_name=network_watcher_name, + parameters=parameters, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('NextHopResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + get_next_hop.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/nextHop'} + + + def _get_vm_security_rules_initial( + self, resource_group_name, network_watcher_name, target_resource_id, custom_headers=None, raw=False, **operation_config): + parameters = models.SecurityGroupViewParameters(target_resource_id=target_resource_id) + + # Construct URL + url = self.get_vm_security_rules.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkWatcherName': self._serialize.url("network_watcher_name", network_watcher_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'SecurityGroupViewParameters') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202]: + raise models.ErrorResponseException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('SecurityGroupViewResult', response) + if response.status_code == 202: + deserialized = self._deserialize('SecurityGroupViewResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def get_vm_security_rules( + self, resource_group_name, network_watcher_name, target_resource_id, custom_headers=None, raw=False, polling=True, **operation_config): + """Gets the configured and effective security group rules on the specified + VM. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher. + :type network_watcher_name: str + :param target_resource_id: ID of the target VM. + :type target_resource_id: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns SecurityGroupViewResult + or ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.SecurityGroupViewResult] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.SecurityGroupViewResult]] + :raises: + :class:`ErrorResponseException` + """ + raw_result = self._get_vm_security_rules_initial( + resource_group_name=resource_group_name, + network_watcher_name=network_watcher_name, + target_resource_id=target_resource_id, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('SecurityGroupViewResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + get_vm_security_rules.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/securityGroupView'} + + + def _get_troubleshooting_initial( + self, resource_group_name, network_watcher_name, parameters, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.get_troubleshooting.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkWatcherName': self._serialize.url("network_watcher_name", network_watcher_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'TroubleshootingParameters') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202]: + raise models.ErrorResponseException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('TroubleshootingResult', response) + if response.status_code == 202: + deserialized = self._deserialize('TroubleshootingResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def get_troubleshooting( + self, resource_group_name, network_watcher_name, parameters, custom_headers=None, raw=False, polling=True, **operation_config): + """Initiate troubleshooting on a specified resource. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher resource. + :type network_watcher_name: str + :param parameters: Parameters that define the resource to + troubleshoot. + :type parameters: + ~azure.mgmt.network.v2018_10_01.models.TroubleshootingParameters + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns TroubleshootingResult + or ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.TroubleshootingResult] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.TroubleshootingResult]] + :raises: + :class:`ErrorResponseException` + """ + raw_result = self._get_troubleshooting_initial( + resource_group_name=resource_group_name, + network_watcher_name=network_watcher_name, + parameters=parameters, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('TroubleshootingResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + get_troubleshooting.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/troubleshoot'} + + + def _get_troubleshooting_result_initial( + self, resource_group_name, network_watcher_name, target_resource_id, custom_headers=None, raw=False, **operation_config): + parameters = models.QueryTroubleshootingParameters(target_resource_id=target_resource_id) + + # Construct URL + url = self.get_troubleshooting_result.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkWatcherName': self._serialize.url("network_watcher_name", network_watcher_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'QueryTroubleshootingParameters') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202]: + raise models.ErrorResponseException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('TroubleshootingResult', response) + if response.status_code == 202: + deserialized = self._deserialize('TroubleshootingResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def get_troubleshooting_result( + self, resource_group_name, network_watcher_name, target_resource_id, custom_headers=None, raw=False, polling=True, **operation_config): + """Get the last completed troubleshooting result on a specified resource. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher resource. + :type network_watcher_name: str + :param target_resource_id: The target resource ID to query the + troubleshooting result. + :type target_resource_id: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns TroubleshootingResult + or ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.TroubleshootingResult] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.TroubleshootingResult]] + :raises: + :class:`ErrorResponseException` + """ + raw_result = self._get_troubleshooting_result_initial( + resource_group_name=resource_group_name, + network_watcher_name=network_watcher_name, + target_resource_id=target_resource_id, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('TroubleshootingResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + get_troubleshooting_result.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/queryTroubleshootResult'} + + + def _set_flow_log_configuration_initial( + self, resource_group_name, network_watcher_name, parameters, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.set_flow_log_configuration.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkWatcherName': self._serialize.url("network_watcher_name", network_watcher_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'FlowLogInformation') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202]: + raise models.ErrorResponseException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('FlowLogInformation', response) + if response.status_code == 202: + deserialized = self._deserialize('FlowLogInformation', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def set_flow_log_configuration( + self, resource_group_name, network_watcher_name, parameters, custom_headers=None, raw=False, polling=True, **operation_config): + """Configures flow log and traffic analytics (optional) on a specified + resource. + + :param resource_group_name: The name of the network watcher resource + group. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher resource. + :type network_watcher_name: str + :param parameters: Parameters that define the configuration of flow + log. + :type parameters: + ~azure.mgmt.network.v2018_10_01.models.FlowLogInformation + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns FlowLogInformation or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.FlowLogInformation] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.FlowLogInformation]] + :raises: + :class:`ErrorResponseException` + """ + raw_result = self._set_flow_log_configuration_initial( + resource_group_name=resource_group_name, + network_watcher_name=network_watcher_name, + parameters=parameters, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('FlowLogInformation', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + set_flow_log_configuration.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/configureFlowLog'} + + + def _get_flow_log_status_initial( + self, resource_group_name, network_watcher_name, target_resource_id, custom_headers=None, raw=False, **operation_config): + parameters = models.FlowLogStatusParameters(target_resource_id=target_resource_id) + + # Construct URL + url = self.get_flow_log_status.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkWatcherName': self._serialize.url("network_watcher_name", network_watcher_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'FlowLogStatusParameters') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202]: + raise models.ErrorResponseException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('FlowLogInformation', response) + if response.status_code == 202: + deserialized = self._deserialize('FlowLogInformation', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def get_flow_log_status( + self, resource_group_name, network_watcher_name, target_resource_id, custom_headers=None, raw=False, polling=True, **operation_config): + """Queries status of flow log and traffic analytics (optional) on a + specified resource. + + :param resource_group_name: The name of the network watcher resource + group. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher resource. + :type network_watcher_name: str + :param target_resource_id: The target resource where getting the flow + log and traffic analytics (optional) status. + :type target_resource_id: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns FlowLogInformation or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.FlowLogInformation] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.FlowLogInformation]] + :raises: + :class:`ErrorResponseException` + """ + raw_result = self._get_flow_log_status_initial( + resource_group_name=resource_group_name, + network_watcher_name=network_watcher_name, + target_resource_id=target_resource_id, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('FlowLogInformation', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + get_flow_log_status.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/queryFlowLogStatus'} + + + def _check_connectivity_initial( + self, resource_group_name, network_watcher_name, parameters, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.check_connectivity.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkWatcherName': self._serialize.url("network_watcher_name", network_watcher_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'ConnectivityParameters') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202]: + raise models.ErrorResponseException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ConnectivityInformation', response) + if response.status_code == 202: + deserialized = self._deserialize('ConnectivityInformation', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def check_connectivity( + self, resource_group_name, network_watcher_name, parameters, custom_headers=None, raw=False, polling=True, **operation_config): + """Verifies the possibility of establishing a direct TCP connection from a + virtual machine to a given endpoint including another VM or an + arbitrary remote server. + + :param resource_group_name: The name of the network watcher resource + group. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher resource. + :type network_watcher_name: str + :param parameters: Parameters that determine how the connectivity + check will be performed. + :type parameters: + ~azure.mgmt.network.v2018_10_01.models.ConnectivityParameters + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns ConnectivityInformation + or ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.ConnectivityInformation] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.ConnectivityInformation]] + :raises: + :class:`ErrorResponseException` + """ + raw_result = self._check_connectivity_initial( + resource_group_name=resource_group_name, + network_watcher_name=network_watcher_name, + parameters=parameters, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('ConnectivityInformation', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + check_connectivity.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectivityCheck'} + + + def _get_azure_reachability_report_initial( + self, resource_group_name, network_watcher_name, parameters, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.get_azure_reachability_report.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkWatcherName': self._serialize.url("network_watcher_name", network_watcher_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'AzureReachabilityReportParameters') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202]: + raise models.ErrorResponseException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('AzureReachabilityReport', response) + if response.status_code == 202: + deserialized = self._deserialize('AzureReachabilityReport', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def get_azure_reachability_report( + self, resource_group_name, network_watcher_name, parameters, custom_headers=None, raw=False, polling=True, **operation_config): + """Gets the relative latency score for internet service providers from a + specified location to Azure regions. + + :param resource_group_name: The name of the network watcher resource + group. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher resource. + :type network_watcher_name: str + :param parameters: Parameters that determine Azure reachability report + configuration. + :type parameters: + ~azure.mgmt.network.v2018_10_01.models.AzureReachabilityReportParameters + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns AzureReachabilityReport + or ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.AzureReachabilityReport] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.AzureReachabilityReport]] + :raises: + :class:`ErrorResponseException` + """ + raw_result = self._get_azure_reachability_report_initial( + resource_group_name=resource_group_name, + network_watcher_name=network_watcher_name, + parameters=parameters, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('AzureReachabilityReport', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + get_azure_reachability_report.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/azureReachabilityReport'} + + + def _list_available_providers_initial( + self, resource_group_name, network_watcher_name, parameters, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.list_available_providers.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkWatcherName': self._serialize.url("network_watcher_name", network_watcher_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'AvailableProvidersListParameters') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202]: + raise models.ErrorResponseException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('AvailableProvidersList', response) + if response.status_code == 202: + deserialized = self._deserialize('AvailableProvidersList', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def list_available_providers( + self, resource_group_name, network_watcher_name, parameters, custom_headers=None, raw=False, polling=True, **operation_config): + """Lists all available internet service providers for a specified Azure + region. + + :param resource_group_name: The name of the network watcher resource + group. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher resource. + :type network_watcher_name: str + :param parameters: Parameters that scope the list of available + providers. + :type parameters: + ~azure.mgmt.network.v2018_10_01.models.AvailableProvidersListParameters + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns AvailableProvidersList + or ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.AvailableProvidersList] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.AvailableProvidersList]] + :raises: + :class:`ErrorResponseException` + """ + raw_result = self._list_available_providers_initial( + resource_group_name=resource_group_name, + network_watcher_name=network_watcher_name, + parameters=parameters, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('AvailableProvidersList', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + list_available_providers.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/availableProvidersList'} + + + def _get_network_configuration_diagnostic_initial( + self, resource_group_name, network_watcher_name, parameters, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.get_network_configuration_diagnostic.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkWatcherName': self._serialize.url("network_watcher_name", network_watcher_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'NetworkConfigurationDiagnosticParameters') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202]: + raise models.ErrorResponseException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('NetworkConfigurationDiagnosticResponse', response) + if response.status_code == 202: + deserialized = self._deserialize('NetworkConfigurationDiagnosticResponse', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def get_network_configuration_diagnostic( + self, resource_group_name, network_watcher_name, parameters, custom_headers=None, raw=False, polling=True, **operation_config): + """Get network configuration diagnostic. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher. + :type network_watcher_name: str + :param parameters: Parameters to get network configuration diagnostic. + :type parameters: + ~azure.mgmt.network.v2018_10_01.models.NetworkConfigurationDiagnosticParameters + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns + NetworkConfigurationDiagnosticResponse or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.NetworkConfigurationDiagnosticResponse] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.NetworkConfigurationDiagnosticResponse]] + :raises: + :class:`ErrorResponseException` + """ + raw_result = self._get_network_configuration_diagnostic_initial( + resource_group_name=resource_group_name, + network_watcher_name=network_watcher_name, + parameters=parameters, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('NetworkConfigurationDiagnosticResponse', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, lro_options={'final-state-via': 'location'}, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + get_network_configuration_diagnostic.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/networkConfigurationDiagnostic'} diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/operations.py new file mode 100644 index 000000000000..8f7163770ee9 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/operations.py @@ -0,0 +1,98 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError + +from .. import models + + +class Operations(object): + """Operations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client API version. Constant value: "2018-10-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-10-01" + + self.config = config + + def list( + self, custom_headers=None, raw=False, **operation_config): + """Lists all of the available Network Rest API operations. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of Operation + :rtype: + ~azure.mgmt.network.v2018_10_01.models.OperationPaged[~azure.mgmt.network.v2018_10_01.models.Operation] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.OperationPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.OperationPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/providers/Microsoft.Network/operations'} diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/p2s_vpn_gateways_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/p2s_vpn_gateways_operations.py new file mode 100644 index 000000000000..b0e7a2cf8938 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/p2s_vpn_gateways_operations.py @@ -0,0 +1,626 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +from msrest.polling import LROPoller, NoPolling +from msrestazure.polling.arm_polling import ARMPolling + +from .. import models + + +class P2sVpnGatewaysOperations(object): + """P2sVpnGatewaysOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client API version. Constant value: "2018-10-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-10-01" + + self.config = config + + def get( + self, resource_group_name, gateway_name, custom_headers=None, raw=False, **operation_config): + """Retrieves the details of a virtual wan p2s vpn gateway. + + :param resource_group_name: The resource group name of the + P2SVpnGateway. + :type resource_group_name: str + :param gateway_name: The name of the gateway. + :type gateway_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: P2SVpnGateway or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.network.v2018_10_01.models.P2SVpnGateway or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorException` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'gatewayName': self._serialize.url("gateway_name", gateway_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('P2SVpnGateway', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/p2svpnGateways/{gatewayName}'} + + + def _create_or_update_initial( + self, resource_group_name, gateway_name, p2_svpn_gateway_parameters, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'gatewayName': self._serialize.url("gateway_name", gateway_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(p2_svpn_gateway_parameters, 'P2SVpnGateway') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('P2SVpnGateway', response) + if response.status_code == 201: + deserialized = self._deserialize('P2SVpnGateway', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update( + self, resource_group_name, gateway_name, p2_svpn_gateway_parameters, custom_headers=None, raw=False, polling=True, **operation_config): + """Creates a virtual wan p2s vpn gateway if it doesn't exist else updates + the existing gateway. + + :param resource_group_name: The resource group name of the + P2SVpnGateway. + :type resource_group_name: str + :param gateway_name: The name of the gateway. + :type gateway_name: str + :param p2_svpn_gateway_parameters: Parameters supplied to create or + Update a virtual wan p2s vpn gateway. + :type p2_svpn_gateway_parameters: + ~azure.mgmt.network.v2018_10_01.models.P2SVpnGateway + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns P2SVpnGateway or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.P2SVpnGateway] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.P2SVpnGateway]] + :raises: + :class:`ErrorException` + """ + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + gateway_name=gateway_name, + p2_svpn_gateway_parameters=p2_svpn_gateway_parameters, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('P2SVpnGateway', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/p2svpnGateways/{gatewayName}'} + + + def _update_tags_initial( + self, resource_group_name, gateway_name, tags=None, custom_headers=None, raw=False, **operation_config): + p2_svpn_gateway_parameters = models.TagsObject(tags=tags) + + # Construct URL + url = self.update_tags.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'gatewayName': self._serialize.url("gateway_name", gateway_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(p2_svpn_gateway_parameters, 'TagsObject') + + # Construct and send request + request = self._client.patch(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('P2SVpnGateway', response) + if response.status_code == 201: + deserialized = self._deserialize('P2SVpnGateway', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def update_tags( + self, resource_group_name, gateway_name, tags=None, custom_headers=None, raw=False, polling=True, **operation_config): + """Updates virtual wan p2s vpn gateway tags. + + :param resource_group_name: The resource group name of the + P2SVpnGateway. + :type resource_group_name: str + :param gateway_name: The name of the gateway. + :type gateway_name: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns P2SVpnGateway or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.P2SVpnGateway] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.P2SVpnGateway]] + :raises: + :class:`ErrorException` + """ + raw_result = self._update_tags_initial( + resource_group_name=resource_group_name, + gateway_name=gateway_name, + tags=tags, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('P2SVpnGateway', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + update_tags.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/p2svpnGateways/{gatewayName}'} + + + def _delete_initial( + self, resource_group_name, gateway_name, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'gatewayName': self._serialize.url("gateway_name", gateway_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202, 204]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def delete( + self, resource_group_name, gateway_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Deletes a virtual wan p2s vpn gateway. + + :param resource_group_name: The resource group name of the + P2SVpnGateway. + :type resource_group_name: str + :param gateway_name: The name of the gateway. + :type gateway_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: + :class:`ErrorException` + """ + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + gateway_name=gateway_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/p2svpnGateways/{gatewayName}'} + + def list_by_resource_group( + self, resource_group_name, custom_headers=None, raw=False, **operation_config): + """Lists all the P2SVpnGateways in a resource group. + + :param resource_group_name: The resource group name of the + P2SVpnGateway. + :type resource_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of P2SVpnGateway + :rtype: + ~azure.mgmt.network.v2018_10_01.models.P2SVpnGatewayPaged[~azure.mgmt.network.v2018_10_01.models.P2SVpnGateway] + :raises: + :class:`ErrorException` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_by_resource_group.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + return response + + # Deserialize response + deserialized = models.P2SVpnGatewayPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.P2SVpnGatewayPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/p2svpnGateways'} + + def list( + self, custom_headers=None, raw=False, **operation_config): + """Lists all the P2SVpnGateways in a subscription. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of P2SVpnGateway + :rtype: + ~azure.mgmt.network.v2018_10_01.models.P2SVpnGatewayPaged[~azure.mgmt.network.v2018_10_01.models.P2SVpnGateway] + :raises: + :class:`ErrorException` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + return response + + # Deserialize response + deserialized = models.P2SVpnGatewayPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.P2SVpnGatewayPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Network/p2svpnGateways'} + + + def _generate_vpn_profile_initial( + self, resource_group_name, gateway_name, authentication_method=None, custom_headers=None, raw=False, **operation_config): + parameters = models.P2SVpnProfileParameters(authentication_method=authentication_method) + + # Construct URL + url = self.generate_vpn_profile.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'gatewayName': self._serialize.url("gateway_name", gateway_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'P2SVpnProfileParameters') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('VpnProfileResponse', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def generate_vpn_profile( + self, resource_group_name, gateway_name, authentication_method=None, custom_headers=None, raw=False, polling=True, **operation_config): + """Generates VPN profile for P2S client of the P2SVpnGateway in the + specified resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param gateway_name: The name of the P2SVpnGateway. + :type gateway_name: str + :param authentication_method: VPN client Authentication Method. + Possible values are: 'EAPTLS' and 'EAPMSCHAPv2'. Possible values + include: 'EAPTLS', 'EAPMSCHAPv2' + :type authentication_method: str or + ~azure.mgmt.network.v2018_10_01.models.AuthenticationMethod + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns VpnProfileResponse or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.VpnProfileResponse] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.VpnProfileResponse]] + :raises: :class:`CloudError` + """ + raw_result = self._generate_vpn_profile_initial( + resource_group_name=resource_group_name, + gateway_name=gateway_name, + authentication_method=authentication_method, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('VpnProfileResponse', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + generate_vpn_profile.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/p2svpnGateways/{gatewayName}/generatevpnprofile'} diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/p2s_vpn_server_configurations_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/p2s_vpn_server_configurations_operations.py new file mode 100644 index 000000000000..834fca669e2b --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/p2s_vpn_server_configurations_operations.py @@ -0,0 +1,369 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrest.polling import LROPoller, NoPolling +from msrestazure.polling.arm_polling import ARMPolling + +from .. import models + + +class P2sVpnServerConfigurationsOperations(object): + """P2sVpnServerConfigurationsOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client API version. Constant value: "2018-10-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-10-01" + + self.config = config + + def get( + self, resource_group_name, virtual_wan_name, p2_svpn_server_configuration_name, custom_headers=None, raw=False, **operation_config): + """Retrieves the details of a P2SVpnServerConfiguration. + + :param resource_group_name: The resource group name of the + P2SVpnServerConfiguration. + :type resource_group_name: str + :param virtual_wan_name: The name of the VirtualWan. + :type virtual_wan_name: str + :param p2_svpn_server_configuration_name: The name of the + P2SVpnServerConfiguration. + :type p2_svpn_server_configuration_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: P2SVpnServerConfiguration or ClientRawResponse if raw=true + :rtype: + ~azure.mgmt.network.v2018_10_01.models.P2SVpnServerConfiguration or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorException` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualWanName': self._serialize.url("virtual_wan_name", virtual_wan_name, 'str'), + 'p2SVpnServerConfigurationName': self._serialize.url("p2_svpn_server_configuration_name", p2_svpn_server_configuration_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('P2SVpnServerConfiguration', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{virtualWanName}/p2sVpnServerConfigurations/{p2SVpnServerConfigurationName}'} + + + def _create_or_update_initial( + self, resource_group_name, virtual_wan_name, p2_svpn_server_configuration_name, p2_svpn_server_configuration_parameters, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualWanName': self._serialize.url("virtual_wan_name", virtual_wan_name, 'str'), + 'p2SVpnServerConfigurationName': self._serialize.url("p2_svpn_server_configuration_name", p2_svpn_server_configuration_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(p2_svpn_server_configuration_parameters, 'P2SVpnServerConfiguration') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('P2SVpnServerConfiguration', response) + if response.status_code == 201: + deserialized = self._deserialize('P2SVpnServerConfiguration', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update( + self, resource_group_name, virtual_wan_name, p2_svpn_server_configuration_name, p2_svpn_server_configuration_parameters, custom_headers=None, raw=False, polling=True, **operation_config): + """Creates a P2SVpnServerConfiguration to associate with a VirtualWan if + it doesn't exist else updates the existing P2SVpnServerConfiguration. + + :param resource_group_name: The resource group name of the VirtualWan. + :type resource_group_name: str + :param virtual_wan_name: The name of the VirtualWan. + :type virtual_wan_name: str + :param p2_svpn_server_configuration_name: The name of the + P2SVpnServerConfiguration. + :type p2_svpn_server_configuration_name: str + :param p2_svpn_server_configuration_parameters: Parameters supplied to + create or Update a P2SVpnServerConfiguration. + :type p2_svpn_server_configuration_parameters: + ~azure.mgmt.network.v2018_10_01.models.P2SVpnServerConfiguration + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns + P2SVpnServerConfiguration or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.P2SVpnServerConfiguration] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.P2SVpnServerConfiguration]] + :raises: + :class:`ErrorException` + """ + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + virtual_wan_name=virtual_wan_name, + p2_svpn_server_configuration_name=p2_svpn_server_configuration_name, + p2_svpn_server_configuration_parameters=p2_svpn_server_configuration_parameters, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('P2SVpnServerConfiguration', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{virtualWanName}/p2sVpnServerConfigurations/{p2SVpnServerConfigurationName}'} + + + def _delete_initial( + self, resource_group_name, virtual_wan_name, p2_svpn_server_configuration_name, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualWanName': self._serialize.url("virtual_wan_name", virtual_wan_name, 'str'), + 'p2SVpnServerConfigurationName': self._serialize.url("p2_svpn_server_configuration_name", p2_svpn_server_configuration_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202, 204]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def delete( + self, resource_group_name, virtual_wan_name, p2_svpn_server_configuration_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Deletes a P2SVpnServerConfiguration. + + :param resource_group_name: The resource group name of the + P2SVpnServerConfiguration. + :type resource_group_name: str + :param virtual_wan_name: The name of the VirtualWan. + :type virtual_wan_name: str + :param p2_svpn_server_configuration_name: The name of the + P2SVpnServerConfiguration. + :type p2_svpn_server_configuration_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: + :class:`ErrorException` + """ + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + virtual_wan_name=virtual_wan_name, + p2_svpn_server_configuration_name=p2_svpn_server_configuration_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{virtualWanName}/p2sVpnServerConfigurations/{p2SVpnServerConfigurationName}'} + + def list_by_virtual_wan( + self, resource_group_name, virtual_wan_name, custom_headers=None, raw=False, **operation_config): + """Retrieves all P2SVpnServerConfigurations for a particular VirtualWan. + + :param resource_group_name: The resource group name of the VirtualWan. + :type resource_group_name: str + :param virtual_wan_name: The name of the VirtualWan. + :type virtual_wan_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of P2SVpnServerConfiguration + :rtype: + ~azure.mgmt.network.v2018_10_01.models.P2SVpnServerConfigurationPaged[~azure.mgmt.network.v2018_10_01.models.P2SVpnServerConfiguration] + :raises: + :class:`ErrorException` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_by_virtual_wan.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualWanName': self._serialize.url("virtual_wan_name", virtual_wan_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + return response + + # Deserialize response + deserialized = models.P2SVpnServerConfigurationPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.P2SVpnServerConfigurationPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_by_virtual_wan.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{virtualWanName}/p2sVpnServerConfigurations'} diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/packet_captures_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/packet_captures_operations.py new file mode 100644 index 000000000000..0ec986e5bb4f --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/packet_captures_operations.py @@ -0,0 +1,540 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrest.polling import LROPoller, NoPolling +from msrestazure.polling.arm_polling import ARMPolling + +from .. import models + + +class PacketCapturesOperations(object): + """PacketCapturesOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client API version. Constant value: "2018-10-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-10-01" + + self.config = config + + + def _create_initial( + self, resource_group_name, network_watcher_name, packet_capture_name, parameters, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.create.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkWatcherName': self._serialize.url("network_watcher_name", network_watcher_name, 'str'), + 'packetCaptureName': self._serialize.url("packet_capture_name", packet_capture_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'PacketCapture') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [201]: + raise models.ErrorResponseException(self._deserialize, response) + + deserialized = None + + if response.status_code == 201: + deserialized = self._deserialize('PacketCaptureResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create( + self, resource_group_name, network_watcher_name, packet_capture_name, parameters, custom_headers=None, raw=False, polling=True, **operation_config): + """Create and start a packet capture on the specified VM. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher. + :type network_watcher_name: str + :param packet_capture_name: The name of the packet capture session. + :type packet_capture_name: str + :param parameters: Parameters that define the create packet capture + operation. + :type parameters: ~azure.mgmt.network.v2018_10_01.models.PacketCapture + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns PacketCaptureResult or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.PacketCaptureResult] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.PacketCaptureResult]] + :raises: + :class:`ErrorResponseException` + """ + raw_result = self._create_initial( + resource_group_name=resource_group_name, + network_watcher_name=network_watcher_name, + packet_capture_name=packet_capture_name, + parameters=parameters, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('PacketCaptureResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/packetCaptures/{packetCaptureName}'} + + def get( + self, resource_group_name, network_watcher_name, packet_capture_name, custom_headers=None, raw=False, **operation_config): + """Gets a packet capture session by name. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher. + :type network_watcher_name: str + :param packet_capture_name: The name of the packet capture session. + :type packet_capture_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: PacketCaptureResult or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.network.v2018_10_01.models.PacketCaptureResult or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorResponseException` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkWatcherName': self._serialize.url("network_watcher_name", network_watcher_name, 'str'), + 'packetCaptureName': self._serialize.url("packet_capture_name", packet_capture_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorResponseException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('PacketCaptureResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/packetCaptures/{packetCaptureName}'} + + + def _delete_initial( + self, resource_group_name, network_watcher_name, packet_capture_name, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkWatcherName': self._serialize.url("network_watcher_name", network_watcher_name, 'str'), + 'packetCaptureName': self._serialize.url("packet_capture_name", packet_capture_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [202, 204]: + raise models.ErrorResponseException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def delete( + self, resource_group_name, network_watcher_name, packet_capture_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Deletes the specified packet capture session. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher. + :type network_watcher_name: str + :param packet_capture_name: The name of the packet capture session. + :type packet_capture_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: + :class:`ErrorResponseException` + """ + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + network_watcher_name=network_watcher_name, + packet_capture_name=packet_capture_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/packetCaptures/{packetCaptureName}'} + + + def _stop_initial( + self, resource_group_name, network_watcher_name, packet_capture_name, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.stop.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkWatcherName': self._serialize.url("network_watcher_name", network_watcher_name, 'str'), + 'packetCaptureName': self._serialize.url("packet_capture_name", packet_capture_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202]: + raise models.ErrorResponseException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def stop( + self, resource_group_name, network_watcher_name, packet_capture_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Stops a specified packet capture session. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param network_watcher_name: The name of the network watcher. + :type network_watcher_name: str + :param packet_capture_name: The name of the packet capture session. + :type packet_capture_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: + :class:`ErrorResponseException` + """ + raw_result = self._stop_initial( + resource_group_name=resource_group_name, + network_watcher_name=network_watcher_name, + packet_capture_name=packet_capture_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + stop.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/packetCaptures/{packetCaptureName}/stop'} + + + def _get_status_initial( + self, resource_group_name, network_watcher_name, packet_capture_name, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.get_status.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkWatcherName': self._serialize.url("network_watcher_name", network_watcher_name, 'str'), + 'packetCaptureName': self._serialize.url("packet_capture_name", packet_capture_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202]: + raise models.ErrorResponseException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('PacketCaptureQueryStatusResult', response) + if response.status_code == 202: + deserialized = self._deserialize('PacketCaptureQueryStatusResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def get_status( + self, resource_group_name, network_watcher_name, packet_capture_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Query the status of a running packet capture session. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param network_watcher_name: The name of the Network Watcher resource. + :type network_watcher_name: str + :param packet_capture_name: The name given to the packet capture + session. + :type packet_capture_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns + PacketCaptureQueryStatusResult or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.PacketCaptureQueryStatusResult] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.PacketCaptureQueryStatusResult]] + :raises: + :class:`ErrorResponseException` + """ + raw_result = self._get_status_initial( + resource_group_name=resource_group_name, + network_watcher_name=network_watcher_name, + packet_capture_name=packet_capture_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('PacketCaptureQueryStatusResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, lro_options={'final-state-via': 'location'}, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + get_status.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/packetCaptures/{packetCaptureName}/queryStatus'} + + def list( + self, resource_group_name, network_watcher_name, custom_headers=None, raw=False, **operation_config): + """Lists all packet capture sessions within the specified resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param network_watcher_name: The name of the Network Watcher resource. + :type network_watcher_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of PacketCaptureResult + :rtype: + ~azure.mgmt.network.v2018_10_01.models.PacketCaptureResultPaged[~azure.mgmt.network.v2018_10_01.models.PacketCaptureResult] + :raises: + :class:`ErrorResponseException` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkWatcherName': self._serialize.url("network_watcher_name", network_watcher_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorResponseException(self._deserialize, response) + + return response + + # Deserialize response + deserialized = models.PacketCaptureResultPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.PacketCaptureResultPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/packetCaptures'} diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/public_ip_addresses_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/public_ip_addresses_operations.py new file mode 100644 index 000000000000..3df7d864cd1e --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/public_ip_addresses_operations.py @@ -0,0 +1,770 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +from msrest.polling import LROPoller, NoPolling +from msrestazure.polling.arm_polling import ARMPolling + +from .. import models + + +class PublicIPAddressesOperations(object): + """PublicIPAddressesOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + + self.config = config + + + def _delete_initial( + self, resource_group_name, public_ip_address_name, custom_headers=None, raw=False, **operation_config): + api_version = "2018-10-01" + + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'publicIpAddressName': self._serialize.url("public_ip_address_name", public_ip_address_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202, 204]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def delete( + self, resource_group_name, public_ip_address_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Deletes the specified public IP address. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param public_ip_address_name: The name of the subnet. + :type public_ip_address_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: :class:`CloudError` + """ + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + public_ip_address_name=public_ip_address_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses/{publicIpAddressName}'} + + def get( + self, resource_group_name, public_ip_address_name, expand=None, custom_headers=None, raw=False, **operation_config): + """Gets the specified public IP address in a specified resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param public_ip_address_name: The name of the subnet. + :type public_ip_address_name: str + :param expand: Expands referenced resources. + :type expand: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: PublicIPAddress or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.network.v2018_10_01.models.PublicIPAddress or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + api_version = "2018-10-01" + + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'publicIpAddressName': self._serialize.url("public_ip_address_name", public_ip_address_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('PublicIPAddress', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses/{publicIpAddressName}'} + + + def _create_or_update_initial( + self, resource_group_name, public_ip_address_name, parameters, custom_headers=None, raw=False, **operation_config): + api_version = "2018-10-01" + + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'publicIpAddressName': self._serialize.url("public_ip_address_name", public_ip_address_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'PublicIPAddress') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('PublicIPAddress', response) + if response.status_code == 201: + deserialized = self._deserialize('PublicIPAddress', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update( + self, resource_group_name, public_ip_address_name, parameters, custom_headers=None, raw=False, polling=True, **operation_config): + """Creates or updates a static or dynamic public IP address. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param public_ip_address_name: The name of the public IP address. + :type public_ip_address_name: str + :param parameters: Parameters supplied to the create or update public + IP address operation. + :type parameters: + ~azure.mgmt.network.v2018_10_01.models.PublicIPAddress + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns PublicIPAddress or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.PublicIPAddress] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.PublicIPAddress]] + :raises: :class:`CloudError` + """ + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + public_ip_address_name=public_ip_address_name, + parameters=parameters, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('PublicIPAddress', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses/{publicIpAddressName}'} + + + def _update_tags_initial( + self, resource_group_name, public_ip_address_name, tags=None, custom_headers=None, raw=False, **operation_config): + parameters = models.TagsObject(tags=tags) + + api_version = "2018-10-01" + + # Construct URL + url = self.update_tags.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'publicIpAddressName': self._serialize.url("public_ip_address_name", public_ip_address_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'TagsObject') + + # Construct and send request + request = self._client.patch(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('PublicIPAddress', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def update_tags( + self, resource_group_name, public_ip_address_name, tags=None, custom_headers=None, raw=False, polling=True, **operation_config): + """Updates public IP address tags. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param public_ip_address_name: The name of the public IP address. + :type public_ip_address_name: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns PublicIPAddress or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.PublicIPAddress] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.PublicIPAddress]] + :raises: :class:`CloudError` + """ + raw_result = self._update_tags_initial( + resource_group_name=resource_group_name, + public_ip_address_name=public_ip_address_name, + tags=tags, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('PublicIPAddress', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + update_tags.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses/{publicIpAddressName}'} + + def list_all( + self, custom_headers=None, raw=False, **operation_config): + """Gets all the public IP addresses in a subscription. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of PublicIPAddress + :rtype: + ~azure.mgmt.network.v2018_10_01.models.PublicIPAddressPaged[~azure.mgmt.network.v2018_10_01.models.PublicIPAddress] + :raises: :class:`CloudError` + """ + api_version = "2018-10-01" + + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_all.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.PublicIPAddressPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.PublicIPAddressPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_all.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Network/publicIPAddresses'} + + def list( + self, resource_group_name, custom_headers=None, raw=False, **operation_config): + """Gets all public IP addresses in a resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of PublicIPAddress + :rtype: + ~azure.mgmt.network.v2018_10_01.models.PublicIPAddressPaged[~azure.mgmt.network.v2018_10_01.models.PublicIPAddress] + :raises: :class:`CloudError` + """ + api_version = "2018-10-01" + + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.PublicIPAddressPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.PublicIPAddressPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses'} + + def list_virtual_machine_scale_set_public_ip_addresses( + self, resource_group_name, virtual_machine_scale_set_name, custom_headers=None, raw=False, **operation_config): + """Gets information about all public IP addresses on a virtual machine + scale set level. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_machine_scale_set_name: The name of the virtual machine + scale set. + :type virtual_machine_scale_set_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of PublicIPAddress + :rtype: + ~azure.mgmt.network.v2018_10_01.models.PublicIPAddressPaged[~azure.mgmt.network.v2018_10_01.models.PublicIPAddress] + :raises: :class:`CloudError` + """ + api_version = "2017-03-30" + + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_virtual_machine_scale_set_public_ip_addresses.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualMachineScaleSetName': self._serialize.url("virtual_machine_scale_set_name", virtual_machine_scale_set_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.PublicIPAddressPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.PublicIPAddressPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_virtual_machine_scale_set_public_ip_addresses.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/publicipaddresses'} + + def list_virtual_machine_scale_set_vm_public_ip_addresses( + self, resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, ip_configuration_name, custom_headers=None, raw=False, **operation_config): + """Gets information about all public IP addresses in a virtual machine IP + configuration in a virtual machine scale set. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_machine_scale_set_name: The name of the virtual machine + scale set. + :type virtual_machine_scale_set_name: str + :param virtualmachine_index: The virtual machine index. + :type virtualmachine_index: str + :param network_interface_name: The network interface name. + :type network_interface_name: str + :param ip_configuration_name: The IP configuration name. + :type ip_configuration_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of PublicIPAddress + :rtype: + ~azure.mgmt.network.v2018_10_01.models.PublicIPAddressPaged[~azure.mgmt.network.v2018_10_01.models.PublicIPAddress] + :raises: :class:`CloudError` + """ + api_version = "2017-03-30" + + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_virtual_machine_scale_set_vm_public_ip_addresses.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualMachineScaleSetName': self._serialize.url("virtual_machine_scale_set_name", virtual_machine_scale_set_name, 'str'), + 'virtualmachineIndex': self._serialize.url("virtualmachine_index", virtualmachine_index, 'str'), + 'networkInterfaceName': self._serialize.url("network_interface_name", network_interface_name, 'str'), + 'ipConfigurationName': self._serialize.url("ip_configuration_name", ip_configuration_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.PublicIPAddressPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.PublicIPAddressPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_virtual_machine_scale_set_vm_public_ip_addresses.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{virtualmachineIndex}/networkInterfaces/{networkInterfaceName}/ipconfigurations/{ipConfigurationName}/publicipaddresses'} + + def get_virtual_machine_scale_set_public_ip_address( + self, resource_group_name, virtual_machine_scale_set_name, virtualmachine_index, network_interface_name, ip_configuration_name, public_ip_address_name, expand=None, custom_headers=None, raw=False, **operation_config): + """Get the specified public IP address in a virtual machine scale set. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_machine_scale_set_name: The name of the virtual machine + scale set. + :type virtual_machine_scale_set_name: str + :param virtualmachine_index: The virtual machine index. + :type virtualmachine_index: str + :param network_interface_name: The name of the network interface. + :type network_interface_name: str + :param ip_configuration_name: The name of the IP configuration. + :type ip_configuration_name: str + :param public_ip_address_name: The name of the public IP Address. + :type public_ip_address_name: str + :param expand: Expands referenced resources. + :type expand: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: PublicIPAddress or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.network.v2018_10_01.models.PublicIPAddress or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + api_version = "2017-03-30" + + # Construct URL + url = self.get_virtual_machine_scale_set_public_ip_address.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualMachineScaleSetName': self._serialize.url("virtual_machine_scale_set_name", virtual_machine_scale_set_name, 'str'), + 'virtualmachineIndex': self._serialize.url("virtualmachine_index", virtualmachine_index, 'str'), + 'networkInterfaceName': self._serialize.url("network_interface_name", network_interface_name, 'str'), + 'ipConfigurationName': self._serialize.url("ip_configuration_name", ip_configuration_name, 'str'), + 'publicIpAddressName': self._serialize.url("public_ip_address_name", public_ip_address_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('PublicIPAddress', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get_virtual_machine_scale_set_public_ip_address.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines/{virtualmachineIndex}/networkInterfaces/{networkInterfaceName}/ipconfigurations/{ipConfigurationName}/publicipaddresses/{publicIpAddressName}'} diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/public_ip_prefixes_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/public_ip_prefixes_operations.py new file mode 100644 index 000000000000..7915def818f7 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/public_ip_prefixes_operations.py @@ -0,0 +1,522 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +from msrest.polling import LROPoller, NoPolling +from msrestazure.polling.arm_polling import ARMPolling + +from .. import models + + +class PublicIPPrefixesOperations(object): + """PublicIPPrefixesOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client API version. Constant value: "2018-10-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-10-01" + + self.config = config + + + def _delete_initial( + self, resource_group_name, public_ip_prefix_name, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'publicIpPrefixName': self._serialize.url("public_ip_prefix_name", public_ip_prefix_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202, 204]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def delete( + self, resource_group_name, public_ip_prefix_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Deletes the specified public IP prefix. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param public_ip_prefix_name: The name of the PublicIpPrefix. + :type public_ip_prefix_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: :class:`CloudError` + """ + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + public_ip_prefix_name=public_ip_prefix_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{publicIpPrefixName}'} + + def get( + self, resource_group_name, public_ip_prefix_name, expand=None, custom_headers=None, raw=False, **operation_config): + """Gets the specified public IP prefix in a specified resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param public_ip_prefix_name: The name of the PublicIPPrefx. + :type public_ip_prefix_name: str + :param expand: Expands referenced resources. + :type expand: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: PublicIPPrefix or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.network.v2018_10_01.models.PublicIPPrefix or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'publicIpPrefixName': self._serialize.url("public_ip_prefix_name", public_ip_prefix_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('PublicIPPrefix', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{publicIpPrefixName}'} + + + def _create_or_update_initial( + self, resource_group_name, public_ip_prefix_name, parameters, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'publicIpPrefixName': self._serialize.url("public_ip_prefix_name", public_ip_prefix_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'PublicIPPrefix') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('PublicIPPrefix', response) + if response.status_code == 201: + deserialized = self._deserialize('PublicIPPrefix', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update( + self, resource_group_name, public_ip_prefix_name, parameters, custom_headers=None, raw=False, polling=True, **operation_config): + """Creates or updates a static or dynamic public IP prefix. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param public_ip_prefix_name: The name of the public IP prefix. + :type public_ip_prefix_name: str + :param parameters: Parameters supplied to the create or update public + IP prefix operation. + :type parameters: + ~azure.mgmt.network.v2018_10_01.models.PublicIPPrefix + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns PublicIPPrefix or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.PublicIPPrefix] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.PublicIPPrefix]] + :raises: :class:`CloudError` + """ + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + public_ip_prefix_name=public_ip_prefix_name, + parameters=parameters, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('PublicIPPrefix', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{publicIpPrefixName}'} + + + def _update_tags_initial( + self, resource_group_name, public_ip_prefix_name, tags=None, custom_headers=None, raw=False, **operation_config): + parameters = models.TagsObject(tags=tags) + + # Construct URL + url = self.update_tags.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'publicIpPrefixName': self._serialize.url("public_ip_prefix_name", public_ip_prefix_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'TagsObject') + + # Construct and send request + request = self._client.patch(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('PublicIPPrefix', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def update_tags( + self, resource_group_name, public_ip_prefix_name, tags=None, custom_headers=None, raw=False, polling=True, **operation_config): + """Updates public IP prefix tags. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param public_ip_prefix_name: The name of the public IP prefix. + :type public_ip_prefix_name: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns PublicIPPrefix or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.PublicIPPrefix] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.PublicIPPrefix]] + :raises: :class:`CloudError` + """ + raw_result = self._update_tags_initial( + resource_group_name=resource_group_name, + public_ip_prefix_name=public_ip_prefix_name, + tags=tags, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('PublicIPPrefix', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + update_tags.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{publicIpPrefixName}'} + + def list_all( + self, custom_headers=None, raw=False, **operation_config): + """Gets all the public IP prefixes in a subscription. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of PublicIPPrefix + :rtype: + ~azure.mgmt.network.v2018_10_01.models.PublicIPPrefixPaged[~azure.mgmt.network.v2018_10_01.models.PublicIPPrefix] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_all.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.PublicIPPrefixPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.PublicIPPrefixPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_all.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Network/publicIPPrefixes'} + + def list( + self, resource_group_name, custom_headers=None, raw=False, **operation_config): + """Gets all public IP prefixes in a resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of PublicIPPrefix + :rtype: + ~azure.mgmt.network.v2018_10_01.models.PublicIPPrefixPaged[~azure.mgmt.network.v2018_10_01.models.PublicIPPrefix] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.PublicIPPrefixPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.PublicIPPrefixPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes'} diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/route_filter_rules_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/route_filter_rules_operations.py new file mode 100644 index 000000000000..531e7aef2ebf --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/route_filter_rules_operations.py @@ -0,0 +1,472 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +from msrest.polling import LROPoller, NoPolling +from msrestazure.polling.arm_polling import ARMPolling + +from .. import models + + +class RouteFilterRulesOperations(object): + """RouteFilterRulesOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client API version. Constant value: "2018-10-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-10-01" + + self.config = config + + + def _delete_initial( + self, resource_group_name, route_filter_name, rule_name, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'routeFilterName': self._serialize.url("route_filter_name", route_filter_name, 'str'), + 'ruleName': self._serialize.url("rule_name", rule_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202, 204]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def delete( + self, resource_group_name, route_filter_name, rule_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Deletes the specified rule from a route filter. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param route_filter_name: The name of the route filter. + :type route_filter_name: str + :param rule_name: The name of the rule. + :type rule_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: :class:`CloudError` + """ + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + route_filter_name=route_filter_name, + rule_name=rule_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeFilters/{routeFilterName}/routeFilterRules/{ruleName}'} + + def get( + self, resource_group_name, route_filter_name, rule_name, custom_headers=None, raw=False, **operation_config): + """Gets the specified rule from a route filter. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param route_filter_name: The name of the route filter. + :type route_filter_name: str + :param rule_name: The name of the rule. + :type rule_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: RouteFilterRule or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.network.v2018_10_01.models.RouteFilterRule or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'routeFilterName': self._serialize.url("route_filter_name", route_filter_name, 'str'), + 'ruleName': self._serialize.url("rule_name", rule_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('RouteFilterRule', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeFilters/{routeFilterName}/routeFilterRules/{ruleName}'} + + + def _create_or_update_initial( + self, resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'routeFilterName': self._serialize.url("route_filter_name", route_filter_name, 'str'), + 'ruleName': self._serialize.url("rule_name", rule_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(route_filter_rule_parameters, 'RouteFilterRule') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('RouteFilterRule', response) + if response.status_code == 201: + deserialized = self._deserialize('RouteFilterRule', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update( + self, resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers=None, raw=False, polling=True, **operation_config): + """Creates or updates a route in the specified route filter. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param route_filter_name: The name of the route filter. + :type route_filter_name: str + :param rule_name: The name of the route filter rule. + :type rule_name: str + :param route_filter_rule_parameters: Parameters supplied to the create + or update route filter rule operation. + :type route_filter_rule_parameters: + ~azure.mgmt.network.v2018_10_01.models.RouteFilterRule + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns RouteFilterRule or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.RouteFilterRule] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.RouteFilterRule]] + :raises: :class:`CloudError` + """ + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + route_filter_name=route_filter_name, + rule_name=rule_name, + route_filter_rule_parameters=route_filter_rule_parameters, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('RouteFilterRule', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeFilters/{routeFilterName}/routeFilterRules/{ruleName}'} + + + def _update_initial( + self, resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.update.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'routeFilterName': self._serialize.url("route_filter_name", route_filter_name, 'str'), + 'ruleName': self._serialize.url("rule_name", rule_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(route_filter_rule_parameters, 'PatchRouteFilterRule') + + # Construct and send request + request = self._client.patch(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('RouteFilterRule', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def update( + self, resource_group_name, route_filter_name, rule_name, route_filter_rule_parameters, custom_headers=None, raw=False, polling=True, **operation_config): + """Updates a route in the specified route filter. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param route_filter_name: The name of the route filter. + :type route_filter_name: str + :param rule_name: The name of the route filter rule. + :type rule_name: str + :param route_filter_rule_parameters: Parameters supplied to the update + route filter rule operation. + :type route_filter_rule_parameters: + ~azure.mgmt.network.v2018_10_01.models.PatchRouteFilterRule + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns RouteFilterRule or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.RouteFilterRule] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.RouteFilterRule]] + :raises: :class:`CloudError` + """ + raw_result = self._update_initial( + resource_group_name=resource_group_name, + route_filter_name=route_filter_name, + rule_name=rule_name, + route_filter_rule_parameters=route_filter_rule_parameters, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('RouteFilterRule', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeFilters/{routeFilterName}/routeFilterRules/{ruleName}'} + + def list_by_route_filter( + self, resource_group_name, route_filter_name, custom_headers=None, raw=False, **operation_config): + """Gets all RouteFilterRules in a route filter. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param route_filter_name: The name of the route filter. + :type route_filter_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of RouteFilterRule + :rtype: + ~azure.mgmt.network.v2018_10_01.models.RouteFilterRulePaged[~azure.mgmt.network.v2018_10_01.models.RouteFilterRule] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_by_route_filter.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'routeFilterName': self._serialize.url("route_filter_name", route_filter_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.RouteFilterRulePaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.RouteFilterRulePaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_by_route_filter.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeFilters/{routeFilterName}/routeFilterRules'} diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/route_filters_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/route_filters_operations.py new file mode 100644 index 000000000000..ebc0583475f6 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/route_filters_operations.py @@ -0,0 +1,522 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +from msrest.polling import LROPoller, NoPolling +from msrestazure.polling.arm_polling import ARMPolling + +from .. import models + + +class RouteFiltersOperations(object): + """RouteFiltersOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client API version. Constant value: "2018-10-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-10-01" + + self.config = config + + + def _delete_initial( + self, resource_group_name, route_filter_name, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'routeFilterName': self._serialize.url("route_filter_name", route_filter_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202, 204]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def delete( + self, resource_group_name, route_filter_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Deletes the specified route filter. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param route_filter_name: The name of the route filter. + :type route_filter_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: :class:`CloudError` + """ + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + route_filter_name=route_filter_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeFilters/{routeFilterName}'} + + def get( + self, resource_group_name, route_filter_name, expand=None, custom_headers=None, raw=False, **operation_config): + """Gets the specified route filter. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param route_filter_name: The name of the route filter. + :type route_filter_name: str + :param expand: Expands referenced express route bgp peering resources. + :type expand: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: RouteFilter or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.network.v2018_10_01.models.RouteFilter or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'routeFilterName': self._serialize.url("route_filter_name", route_filter_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('RouteFilter', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeFilters/{routeFilterName}'} + + + def _create_or_update_initial( + self, resource_group_name, route_filter_name, route_filter_parameters, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'routeFilterName': self._serialize.url("route_filter_name", route_filter_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(route_filter_parameters, 'RouteFilter') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('RouteFilter', response) + if response.status_code == 201: + deserialized = self._deserialize('RouteFilter', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update( + self, resource_group_name, route_filter_name, route_filter_parameters, custom_headers=None, raw=False, polling=True, **operation_config): + """Creates or updates a route filter in a specified resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param route_filter_name: The name of the route filter. + :type route_filter_name: str + :param route_filter_parameters: Parameters supplied to the create or + update route filter operation. + :type route_filter_parameters: + ~azure.mgmt.network.v2018_10_01.models.RouteFilter + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns RouteFilter or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.RouteFilter] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.RouteFilter]] + :raises: :class:`CloudError` + """ + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + route_filter_name=route_filter_name, + route_filter_parameters=route_filter_parameters, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('RouteFilter', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeFilters/{routeFilterName}'} + + + def _update_initial( + self, resource_group_name, route_filter_name, route_filter_parameters, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.update.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'routeFilterName': self._serialize.url("route_filter_name", route_filter_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(route_filter_parameters, 'PatchRouteFilter') + + # Construct and send request + request = self._client.patch(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('RouteFilter', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def update( + self, resource_group_name, route_filter_name, route_filter_parameters, custom_headers=None, raw=False, polling=True, **operation_config): + """Updates a route filter in a specified resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param route_filter_name: The name of the route filter. + :type route_filter_name: str + :param route_filter_parameters: Parameters supplied to the update + route filter operation. + :type route_filter_parameters: + ~azure.mgmt.network.v2018_10_01.models.PatchRouteFilter + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns RouteFilter or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.RouteFilter] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.RouteFilter]] + :raises: :class:`CloudError` + """ + raw_result = self._update_initial( + resource_group_name=resource_group_name, + route_filter_name=route_filter_name, + route_filter_parameters=route_filter_parameters, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('RouteFilter', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeFilters/{routeFilterName}'} + + def list_by_resource_group( + self, resource_group_name, custom_headers=None, raw=False, **operation_config): + """Gets all route filters in a resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of RouteFilter + :rtype: + ~azure.mgmt.network.v2018_10_01.models.RouteFilterPaged[~azure.mgmt.network.v2018_10_01.models.RouteFilter] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_by_resource_group.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.RouteFilterPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.RouteFilterPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeFilters'} + + def list( + self, custom_headers=None, raw=False, **operation_config): + """Gets all route filters in a subscription. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of RouteFilter + :rtype: + ~azure.mgmt.network.v2018_10_01.models.RouteFilterPaged[~azure.mgmt.network.v2018_10_01.models.RouteFilter] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.RouteFilterPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.RouteFilterPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Network/routeFilters'} diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/route_tables_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/route_tables_operations.py new file mode 100644 index 000000000000..7b7c81cb1e30 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/route_tables_operations.py @@ -0,0 +1,521 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +from msrest.polling import LROPoller, NoPolling +from msrestazure.polling.arm_polling import ARMPolling + +from .. import models + + +class RouteTablesOperations(object): + """RouteTablesOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client API version. Constant value: "2018-10-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-10-01" + + self.config = config + + + def _delete_initial( + self, resource_group_name, route_table_name, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'routeTableName': self._serialize.url("route_table_name", route_table_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202, 204]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def delete( + self, resource_group_name, route_table_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Deletes the specified route table. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param route_table_name: The name of the route table. + :type route_table_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: :class:`CloudError` + """ + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + route_table_name=route_table_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/{routeTableName}'} + + def get( + self, resource_group_name, route_table_name, expand=None, custom_headers=None, raw=False, **operation_config): + """Gets the specified route table. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param route_table_name: The name of the route table. + :type route_table_name: str + :param expand: Expands referenced resources. + :type expand: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: RouteTable or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.network.v2018_10_01.models.RouteTable or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'routeTableName': self._serialize.url("route_table_name", route_table_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('RouteTable', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/{routeTableName}'} + + + def _create_or_update_initial( + self, resource_group_name, route_table_name, parameters, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'routeTableName': self._serialize.url("route_table_name", route_table_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'RouteTable') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('RouteTable', response) + if response.status_code == 201: + deserialized = self._deserialize('RouteTable', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update( + self, resource_group_name, route_table_name, parameters, custom_headers=None, raw=False, polling=True, **operation_config): + """Create or updates a route table in a specified resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param route_table_name: The name of the route table. + :type route_table_name: str + :param parameters: Parameters supplied to the create or update route + table operation. + :type parameters: ~azure.mgmt.network.v2018_10_01.models.RouteTable + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns RouteTable or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.RouteTable] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.RouteTable]] + :raises: :class:`CloudError` + """ + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + route_table_name=route_table_name, + parameters=parameters, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('RouteTable', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/{routeTableName}'} + + + def _update_tags_initial( + self, resource_group_name, route_table_name, tags=None, custom_headers=None, raw=False, **operation_config): + parameters = models.TagsObject(tags=tags) + + # Construct URL + url = self.update_tags.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'routeTableName': self._serialize.url("route_table_name", route_table_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'TagsObject') + + # Construct and send request + request = self._client.patch(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('RouteTable', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def update_tags( + self, resource_group_name, route_table_name, tags=None, custom_headers=None, raw=False, polling=True, **operation_config): + """Updates a route table tags. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param route_table_name: The name of the route table. + :type route_table_name: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns RouteTable or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.RouteTable] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.RouteTable]] + :raises: :class:`CloudError` + """ + raw_result = self._update_tags_initial( + resource_group_name=resource_group_name, + route_table_name=route_table_name, + tags=tags, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('RouteTable', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + update_tags.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/{routeTableName}'} + + def list( + self, resource_group_name, custom_headers=None, raw=False, **operation_config): + """Gets all route tables in a resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of RouteTable + :rtype: + ~azure.mgmt.network.v2018_10_01.models.RouteTablePaged[~azure.mgmt.network.v2018_10_01.models.RouteTable] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.RouteTablePaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.RouteTablePaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables'} + + def list_all( + self, custom_headers=None, raw=False, **operation_config): + """Gets all route tables in a subscription. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of RouteTable + :rtype: + ~azure.mgmt.network.v2018_10_01.models.RouteTablePaged[~azure.mgmt.network.v2018_10_01.models.RouteTable] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_all.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.RouteTablePaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.RouteTablePaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_all.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Network/routeTables'} diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/routes_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/routes_operations.py new file mode 100644 index 000000000000..24b75fda5679 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/routes_operations.py @@ -0,0 +1,365 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +from msrest.polling import LROPoller, NoPolling +from msrestazure.polling.arm_polling import ARMPolling + +from .. import models + + +class RoutesOperations(object): + """RoutesOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client API version. Constant value: "2018-10-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-10-01" + + self.config = config + + + def _delete_initial( + self, resource_group_name, route_table_name, route_name, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'routeTableName': self._serialize.url("route_table_name", route_table_name, 'str'), + 'routeName': self._serialize.url("route_name", route_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202, 204]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def delete( + self, resource_group_name, route_table_name, route_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Deletes the specified route from a route table. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param route_table_name: The name of the route table. + :type route_table_name: str + :param route_name: The name of the route. + :type route_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: :class:`CloudError` + """ + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + route_table_name=route_table_name, + route_name=route_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/{routeTableName}/routes/{routeName}'} + + def get( + self, resource_group_name, route_table_name, route_name, custom_headers=None, raw=False, **operation_config): + """Gets the specified route from a route table. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param route_table_name: The name of the route table. + :type route_table_name: str + :param route_name: The name of the route. + :type route_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: Route or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.network.v2018_10_01.models.Route or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'routeTableName': self._serialize.url("route_table_name", route_table_name, 'str'), + 'routeName': self._serialize.url("route_name", route_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('Route', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/{routeTableName}/routes/{routeName}'} + + + def _create_or_update_initial( + self, resource_group_name, route_table_name, route_name, route_parameters, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'routeTableName': self._serialize.url("route_table_name", route_table_name, 'str'), + 'routeName': self._serialize.url("route_name", route_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(route_parameters, 'Route') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('Route', response) + if response.status_code == 201: + deserialized = self._deserialize('Route', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update( + self, resource_group_name, route_table_name, route_name, route_parameters, custom_headers=None, raw=False, polling=True, **operation_config): + """Creates or updates a route in the specified route table. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param route_table_name: The name of the route table. + :type route_table_name: str + :param route_name: The name of the route. + :type route_name: str + :param route_parameters: Parameters supplied to the create or update + route operation. + :type route_parameters: ~azure.mgmt.network.v2018_10_01.models.Route + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns Route or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.Route] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.Route]] + :raises: :class:`CloudError` + """ + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + route_table_name=route_table_name, + route_name=route_name, + route_parameters=route_parameters, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('Route', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/{routeTableName}/routes/{routeName}'} + + def list( + self, resource_group_name, route_table_name, custom_headers=None, raw=False, **operation_config): + """Gets all routes in a route table. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param route_table_name: The name of the route table. + :type route_table_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of Route + :rtype: + ~azure.mgmt.network.v2018_10_01.models.RoutePaged[~azure.mgmt.network.v2018_10_01.models.Route] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'routeTableName': self._serialize.url("route_table_name", route_table_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.RoutePaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.RoutePaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/{routeTableName}/routes'} diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/security_rules_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/security_rules_operations.py new file mode 100644 index 000000000000..fae91fc60e0d --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/security_rules_operations.py @@ -0,0 +1,371 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +from msrest.polling import LROPoller, NoPolling +from msrestazure.polling.arm_polling import ARMPolling + +from .. import models + + +class SecurityRulesOperations(object): + """SecurityRulesOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client API version. Constant value: "2018-10-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-10-01" + + self.config = config + + + def _delete_initial( + self, resource_group_name, network_security_group_name, security_rule_name, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkSecurityGroupName': self._serialize.url("network_security_group_name", network_security_group_name, 'str'), + 'securityRuleName': self._serialize.url("security_rule_name", security_rule_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202, 204]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def delete( + self, resource_group_name, network_security_group_name, security_rule_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Deletes the specified network security rule. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param network_security_group_name: The name of the network security + group. + :type network_security_group_name: str + :param security_rule_name: The name of the security rule. + :type security_rule_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: :class:`CloudError` + """ + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + network_security_group_name=network_security_group_name, + security_rule_name=security_rule_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}/securityRules/{securityRuleName}'} + + def get( + self, resource_group_name, network_security_group_name, security_rule_name, custom_headers=None, raw=False, **operation_config): + """Get the specified network security rule. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param network_security_group_name: The name of the network security + group. + :type network_security_group_name: str + :param security_rule_name: The name of the security rule. + :type security_rule_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: SecurityRule or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.network.v2018_10_01.models.SecurityRule or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkSecurityGroupName': self._serialize.url("network_security_group_name", network_security_group_name, 'str'), + 'securityRuleName': self._serialize.url("security_rule_name", security_rule_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('SecurityRule', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}/securityRules/{securityRuleName}'} + + + def _create_or_update_initial( + self, resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkSecurityGroupName': self._serialize.url("network_security_group_name", network_security_group_name, 'str'), + 'securityRuleName': self._serialize.url("security_rule_name", security_rule_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(security_rule_parameters, 'SecurityRule') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('SecurityRule', response) + if response.status_code == 201: + deserialized = self._deserialize('SecurityRule', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update( + self, resource_group_name, network_security_group_name, security_rule_name, security_rule_parameters, custom_headers=None, raw=False, polling=True, **operation_config): + """Creates or updates a security rule in the specified network security + group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param network_security_group_name: The name of the network security + group. + :type network_security_group_name: str + :param security_rule_name: The name of the security rule. + :type security_rule_name: str + :param security_rule_parameters: Parameters supplied to the create or + update network security rule operation. + :type security_rule_parameters: + ~azure.mgmt.network.v2018_10_01.models.SecurityRule + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns SecurityRule or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.SecurityRule] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.SecurityRule]] + :raises: :class:`CloudError` + """ + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + network_security_group_name=network_security_group_name, + security_rule_name=security_rule_name, + security_rule_parameters=security_rule_parameters, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('SecurityRule', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}/securityRules/{securityRuleName}'} + + def list( + self, resource_group_name, network_security_group_name, custom_headers=None, raw=False, **operation_config): + """Gets all security rules in a network security group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param network_security_group_name: The name of the network security + group. + :type network_security_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of SecurityRule + :rtype: + ~azure.mgmt.network.v2018_10_01.models.SecurityRulePaged[~azure.mgmt.network.v2018_10_01.models.SecurityRule] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'networkSecurityGroupName': self._serialize.url("network_security_group_name", network_security_group_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.SecurityRulePaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.SecurityRulePaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}/securityRules'} diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/service_endpoint_policies_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/service_endpoint_policies_operations.py new file mode 100644 index 000000000000..446bde9dafb8 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/service_endpoint_policies_operations.py @@ -0,0 +1,527 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +from msrest.polling import LROPoller, NoPolling +from msrestazure.polling.arm_polling import ARMPolling + +from .. import models + + +class ServiceEndpointPoliciesOperations(object): + """ServiceEndpointPoliciesOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client API version. Constant value: "2018-10-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-10-01" + + self.config = config + + + def _delete_initial( + self, resource_group_name, service_endpoint_policy_name, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'serviceEndpointPolicyName': self._serialize.url("service_endpoint_policy_name", service_endpoint_policy_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202, 204]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def delete( + self, resource_group_name, service_endpoint_policy_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Deletes the specified service endpoint policy. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param service_endpoint_policy_name: The name of the service endpoint + policy. + :type service_endpoint_policy_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: :class:`CloudError` + """ + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + service_endpoint_policy_name=service_endpoint_policy_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/serviceEndpointPolicies/{serviceEndpointPolicyName}'} + + def get( + self, resource_group_name, service_endpoint_policy_name, expand=None, custom_headers=None, raw=False, **operation_config): + """Gets the specified service Endpoint Policies in a specified resource + group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param service_endpoint_policy_name: The name of the service endpoint + policy. + :type service_endpoint_policy_name: str + :param expand: Expands referenced resources. + :type expand: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: ServiceEndpointPolicy or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.network.v2018_10_01.models.ServiceEndpointPolicy + or ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'serviceEndpointPolicyName': self._serialize.url("service_endpoint_policy_name", service_endpoint_policy_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ServiceEndpointPolicy', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/serviceEndpointPolicies/{serviceEndpointPolicyName}'} + + + def _create_or_update_initial( + self, resource_group_name, service_endpoint_policy_name, parameters, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'serviceEndpointPolicyName': self._serialize.url("service_endpoint_policy_name", service_endpoint_policy_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'ServiceEndpointPolicy') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ServiceEndpointPolicy', response) + if response.status_code == 201: + deserialized = self._deserialize('ServiceEndpointPolicy', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update( + self, resource_group_name, service_endpoint_policy_name, parameters, custom_headers=None, raw=False, polling=True, **operation_config): + """Creates or updates a service Endpoint Policies. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param service_endpoint_policy_name: The name of the service endpoint + policy. + :type service_endpoint_policy_name: str + :param parameters: Parameters supplied to the create or update service + endpoint policy operation. + :type parameters: + ~azure.mgmt.network.v2018_10_01.models.ServiceEndpointPolicy + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns ServiceEndpointPolicy + or ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.ServiceEndpointPolicy] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.ServiceEndpointPolicy]] + :raises: :class:`CloudError` + """ + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + service_endpoint_policy_name=service_endpoint_policy_name, + parameters=parameters, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('ServiceEndpointPolicy', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/serviceEndpointPolicies/{serviceEndpointPolicyName}'} + + + def _update_initial( + self, resource_group_name, service_endpoint_policy_name, tags=None, custom_headers=None, raw=False, **operation_config): + parameters = models.TagsObject(tags=tags) + + # Construct URL + url = self.update.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'serviceEndpointPolicyName': self._serialize.url("service_endpoint_policy_name", service_endpoint_policy_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'TagsObject') + + # Construct and send request + request = self._client.patch(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ServiceEndpointPolicy', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def update( + self, resource_group_name, service_endpoint_policy_name, tags=None, custom_headers=None, raw=False, polling=True, **operation_config): + """Updates service Endpoint Policies. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param service_endpoint_policy_name: The name of the service endpoint + policy. + :type service_endpoint_policy_name: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns ServiceEndpointPolicy + or ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.ServiceEndpointPolicy] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.ServiceEndpointPolicy]] + :raises: :class:`CloudError` + """ + raw_result = self._update_initial( + resource_group_name=resource_group_name, + service_endpoint_policy_name=service_endpoint_policy_name, + tags=tags, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('ServiceEndpointPolicy', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/serviceEndpointPolicies/{serviceEndpointPolicyName}'} + + def list( + self, custom_headers=None, raw=False, **operation_config): + """Gets all the service endpoint policies in a subscription. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of ServiceEndpointPolicy + :rtype: + ~azure.mgmt.network.v2018_10_01.models.ServiceEndpointPolicyPaged[~azure.mgmt.network.v2018_10_01.models.ServiceEndpointPolicy] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.ServiceEndpointPolicyPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.ServiceEndpointPolicyPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Network/ServiceEndpointPolicies'} + + def list_by_resource_group( + self, resource_group_name, custom_headers=None, raw=False, **operation_config): + """Gets all service endpoint Policies in a resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of ServiceEndpointPolicy + :rtype: + ~azure.mgmt.network.v2018_10_01.models.ServiceEndpointPolicyPaged[~azure.mgmt.network.v2018_10_01.models.ServiceEndpointPolicy] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_by_resource_group.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.ServiceEndpointPolicyPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.ServiceEndpointPolicyPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/serviceEndpointPolicies'} diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/service_endpoint_policy_definitions_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/service_endpoint_policy_definitions_operations.py new file mode 100644 index 000000000000..20421f490f4c --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/service_endpoint_policy_definitions_operations.py @@ -0,0 +1,379 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +from msrest.polling import LROPoller, NoPolling +from msrestazure.polling.arm_polling import ARMPolling + +from .. import models + + +class ServiceEndpointPolicyDefinitionsOperations(object): + """ServiceEndpointPolicyDefinitionsOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client API version. Constant value: "2018-10-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-10-01" + + self.config = config + + + def _delete_initial( + self, resource_group_name, service_endpoint_policy_name, service_endpoint_policy_definition_name, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'serviceEndpointPolicyName': self._serialize.url("service_endpoint_policy_name", service_endpoint_policy_name, 'str'), + 'serviceEndpointPolicyDefinitionName': self._serialize.url("service_endpoint_policy_definition_name", service_endpoint_policy_definition_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202, 204]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def delete( + self, resource_group_name, service_endpoint_policy_name, service_endpoint_policy_definition_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Deletes the specified ServiceEndpoint policy definitions. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param service_endpoint_policy_name: The name of the Service Endpoint + Policy. + :type service_endpoint_policy_name: str + :param service_endpoint_policy_definition_name: The name of the + service endpoint policy definition. + :type service_endpoint_policy_definition_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: :class:`CloudError` + """ + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + service_endpoint_policy_name=service_endpoint_policy_name, + service_endpoint_policy_definition_name=service_endpoint_policy_definition_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/serviceEndpointPolicies/{serviceEndpointPolicyName}/serviceEndpointPolicyDefinitions/{serviceEndpointPolicyDefinitionName}'} + + def get( + self, resource_group_name, service_endpoint_policy_name, service_endpoint_policy_definition_name, custom_headers=None, raw=False, **operation_config): + """Get the specified service endpoint policy definitions from service + endpoint policy. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param service_endpoint_policy_name: The name of the service endpoint + policy name. + :type service_endpoint_policy_name: str + :param service_endpoint_policy_definition_name: The name of the + service endpoint policy definition name. + :type service_endpoint_policy_definition_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: ServiceEndpointPolicyDefinition or ClientRawResponse if + raw=true + :rtype: + ~azure.mgmt.network.v2018_10_01.models.ServiceEndpointPolicyDefinition + or ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'serviceEndpointPolicyName': self._serialize.url("service_endpoint_policy_name", service_endpoint_policy_name, 'str'), + 'serviceEndpointPolicyDefinitionName': self._serialize.url("service_endpoint_policy_definition_name", service_endpoint_policy_definition_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ServiceEndpointPolicyDefinition', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/serviceEndpointPolicies/{serviceEndpointPolicyName}/serviceEndpointPolicyDefinitions/{serviceEndpointPolicyDefinitionName}'} + + + def _create_or_update_initial( + self, resource_group_name, service_endpoint_policy_name, service_endpoint_policy_definition_name, service_endpoint_policy_definitions, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'serviceEndpointPolicyName': self._serialize.url("service_endpoint_policy_name", service_endpoint_policy_name, 'str'), + 'serviceEndpointPolicyDefinitionName': self._serialize.url("service_endpoint_policy_definition_name", service_endpoint_policy_definition_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(service_endpoint_policy_definitions, 'ServiceEndpointPolicyDefinition') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ServiceEndpointPolicyDefinition', response) + if response.status_code == 201: + deserialized = self._deserialize('ServiceEndpointPolicyDefinition', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update( + self, resource_group_name, service_endpoint_policy_name, service_endpoint_policy_definition_name, service_endpoint_policy_definitions, custom_headers=None, raw=False, polling=True, **operation_config): + """Creates or updates a service endpoint policy definition in the + specified service endpoint policy. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param service_endpoint_policy_name: The name of the service endpoint + policy. + :type service_endpoint_policy_name: str + :param service_endpoint_policy_definition_name: The name of the + service endpoint policy definition name. + :type service_endpoint_policy_definition_name: str + :param service_endpoint_policy_definitions: Parameters supplied to the + create or update service endpoint policy operation. + :type service_endpoint_policy_definitions: + ~azure.mgmt.network.v2018_10_01.models.ServiceEndpointPolicyDefinition + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns + ServiceEndpointPolicyDefinition or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.ServiceEndpointPolicyDefinition] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.ServiceEndpointPolicyDefinition]] + :raises: :class:`CloudError` + """ + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + service_endpoint_policy_name=service_endpoint_policy_name, + service_endpoint_policy_definition_name=service_endpoint_policy_definition_name, + service_endpoint_policy_definitions=service_endpoint_policy_definitions, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('ServiceEndpointPolicyDefinition', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/serviceEndpointPolicies/{serviceEndpointPolicyName}/serviceEndpointPolicyDefinitions/{serviceEndpointPolicyDefinitionName}'} + + def list_by_resource_group( + self, resource_group_name, service_endpoint_policy_name, custom_headers=None, raw=False, **operation_config): + """Gets all service endpoint policy definitions in a service end point + policy. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param service_endpoint_policy_name: The name of the service endpoint + policy name. + :type service_endpoint_policy_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of ServiceEndpointPolicyDefinition + :rtype: + ~azure.mgmt.network.v2018_10_01.models.ServiceEndpointPolicyDefinitionPaged[~azure.mgmt.network.v2018_10_01.models.ServiceEndpointPolicyDefinition] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_by_resource_group.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'serviceEndpointPolicyName': self._serialize.url("service_endpoint_policy_name", service_endpoint_policy_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.ServiceEndpointPolicyDefinitionPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.ServiceEndpointPolicyDefinitionPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/serviceEndpointPolicies/{serviceEndpointPolicyName}/serviceEndpointPolicyDefinitions'} diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/subnets_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/subnets_operations.py new file mode 100644 index 000000000000..be27ec8f785c --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/subnets_operations.py @@ -0,0 +1,369 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +from msrest.polling import LROPoller, NoPolling +from msrestazure.polling.arm_polling import ARMPolling + +from .. import models + + +class SubnetsOperations(object): + """SubnetsOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client API version. Constant value: "2018-10-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-10-01" + + self.config = config + + + def _delete_initial( + self, resource_group_name, virtual_network_name, subnet_name, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualNetworkName': self._serialize.url("virtual_network_name", virtual_network_name, 'str'), + 'subnetName': self._serialize.url("subnet_name", subnet_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202, 204]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def delete( + self, resource_group_name, virtual_network_name, subnet_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Deletes the specified subnet. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_network_name: The name of the virtual network. + :type virtual_network_name: str + :param subnet_name: The name of the subnet. + :type subnet_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: :class:`CloudError` + """ + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + virtual_network_name=virtual_network_name, + subnet_name=subnet_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}'} + + def get( + self, resource_group_name, virtual_network_name, subnet_name, expand=None, custom_headers=None, raw=False, **operation_config): + """Gets the specified subnet by virtual network and resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_network_name: The name of the virtual network. + :type virtual_network_name: str + :param subnet_name: The name of the subnet. + :type subnet_name: str + :param expand: Expands referenced resources. + :type expand: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: Subnet or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.network.v2018_10_01.models.Subnet or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualNetworkName': self._serialize.url("virtual_network_name", virtual_network_name, 'str'), + 'subnetName': self._serialize.url("subnet_name", subnet_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('Subnet', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}'} + + + def _create_or_update_initial( + self, resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualNetworkName': self._serialize.url("virtual_network_name", virtual_network_name, 'str'), + 'subnetName': self._serialize.url("subnet_name", subnet_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(subnet_parameters, 'Subnet') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('Subnet', response) + if response.status_code == 201: + deserialized = self._deserialize('Subnet', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update( + self, resource_group_name, virtual_network_name, subnet_name, subnet_parameters, custom_headers=None, raw=False, polling=True, **operation_config): + """Creates or updates a subnet in the specified virtual network. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_network_name: The name of the virtual network. + :type virtual_network_name: str + :param subnet_name: The name of the subnet. + :type subnet_name: str + :param subnet_parameters: Parameters supplied to the create or update + subnet operation. + :type subnet_parameters: ~azure.mgmt.network.v2018_10_01.models.Subnet + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns Subnet or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.Subnet] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.Subnet]] + :raises: :class:`CloudError` + """ + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + virtual_network_name=virtual_network_name, + subnet_name=subnet_name, + subnet_parameters=subnet_parameters, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('Subnet', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}'} + + def list( + self, resource_group_name, virtual_network_name, custom_headers=None, raw=False, **operation_config): + """Gets all subnets in a virtual network. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_network_name: The name of the virtual network. + :type virtual_network_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of Subnet + :rtype: + ~azure.mgmt.network.v2018_10_01.models.SubnetPaged[~azure.mgmt.network.v2018_10_01.models.Subnet] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualNetworkName': self._serialize.url("virtual_network_name", virtual_network_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.SubnetPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.SubnetPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets'} diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/usages_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/usages_operations.py new file mode 100644 index 000000000000..c43a31842147 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/usages_operations.py @@ -0,0 +1,105 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError + +from .. import models + + +class UsagesOperations(object): + """UsagesOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client API version. Constant value: "2018-10-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-10-01" + + self.config = config + + def list( + self, location, custom_headers=None, raw=False, **operation_config): + """List network usages for a subscription. + + :param location: The location where resource usage is queried. + :type location: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of Usage + :rtype: + ~azure.mgmt.network.v2018_10_01.models.UsagePaged[~azure.mgmt.network.v2018_10_01.models.Usage] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'location': self._serialize.url("location", location, 'str', pattern=r'^[-\w\._ ]+$'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.UsagePaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.UsagePaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/usages'} diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/virtual_hubs_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/virtual_hubs_operations.py new file mode 100644 index 000000000000..a241d4978183 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/virtual_hubs_operations.py @@ -0,0 +1,514 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrest.polling import LROPoller, NoPolling +from msrestazure.polling.arm_polling import ARMPolling + +from .. import models + + +class VirtualHubsOperations(object): + """VirtualHubsOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client API version. Constant value: "2018-10-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-10-01" + + self.config = config + + def get( + self, resource_group_name, virtual_hub_name, custom_headers=None, raw=False, **operation_config): + """Retrieves the details of a VirtualHub. + + :param resource_group_name: The resource group name of the VirtualHub. + :type resource_group_name: str + :param virtual_hub_name: The name of the VirtualHub. + :type virtual_hub_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: VirtualHub or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.network.v2018_10_01.models.VirtualHub or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorException` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualHubName': self._serialize.url("virtual_hub_name", virtual_hub_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('VirtualHub', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}'} + + + def _create_or_update_initial( + self, resource_group_name, virtual_hub_name, virtual_hub_parameters, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualHubName': self._serialize.url("virtual_hub_name", virtual_hub_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(virtual_hub_parameters, 'VirtualHub') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('VirtualHub', response) + if response.status_code == 201: + deserialized = self._deserialize('VirtualHub', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update( + self, resource_group_name, virtual_hub_name, virtual_hub_parameters, custom_headers=None, raw=False, polling=True, **operation_config): + """Creates a VirtualHub resource if it doesn't exist else updates the + existing VirtualHub. + + :param resource_group_name: The resource group name of the VirtualHub. + :type resource_group_name: str + :param virtual_hub_name: The name of the VirtualHub. + :type virtual_hub_name: str + :param virtual_hub_parameters: Parameters supplied to create or update + VirtualHub. + :type virtual_hub_parameters: + ~azure.mgmt.network.v2018_10_01.models.VirtualHub + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns VirtualHub or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.VirtualHub] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.VirtualHub]] + :raises: + :class:`ErrorException` + """ + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + virtual_hub_name=virtual_hub_name, + virtual_hub_parameters=virtual_hub_parameters, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('VirtualHub', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}'} + + + def _update_tags_initial( + self, resource_group_name, virtual_hub_name, tags=None, custom_headers=None, raw=False, **operation_config): + virtual_hub_parameters = models.TagsObject(tags=tags) + + # Construct URL + url = self.update_tags.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualHubName': self._serialize.url("virtual_hub_name", virtual_hub_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(virtual_hub_parameters, 'TagsObject') + + # Construct and send request + request = self._client.patch(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('VirtualHub', response) + if response.status_code == 201: + deserialized = self._deserialize('VirtualHub', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def update_tags( + self, resource_group_name, virtual_hub_name, tags=None, custom_headers=None, raw=False, polling=True, **operation_config): + """Updates VirtualHub tags. + + :param resource_group_name: The resource group name of the VirtualHub. + :type resource_group_name: str + :param virtual_hub_name: The name of the VirtualHub. + :type virtual_hub_name: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns VirtualHub or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.VirtualHub] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.VirtualHub]] + :raises: + :class:`ErrorException` + """ + raw_result = self._update_tags_initial( + resource_group_name=resource_group_name, + virtual_hub_name=virtual_hub_name, + tags=tags, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('VirtualHub', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + update_tags.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}'} + + + def _delete_initial( + self, resource_group_name, virtual_hub_name, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualHubName': self._serialize.url("virtual_hub_name", virtual_hub_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202, 204]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def delete( + self, resource_group_name, virtual_hub_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Deletes a VirtualHub. + + :param resource_group_name: The resource group name of the VirtualHub. + :type resource_group_name: str + :param virtual_hub_name: The name of the VirtualHub. + :type virtual_hub_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: + :class:`ErrorException` + """ + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + virtual_hub_name=virtual_hub_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}'} + + def list_by_resource_group( + self, resource_group_name, custom_headers=None, raw=False, **operation_config): + """Lists all the VirtualHubs in a resource group. + + :param resource_group_name: The resource group name of the VirtualHub. + :type resource_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of VirtualHub + :rtype: + ~azure.mgmt.network.v2018_10_01.models.VirtualHubPaged[~azure.mgmt.network.v2018_10_01.models.VirtualHub] + :raises: + :class:`ErrorException` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_by_resource_group.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + return response + + # Deserialize response + deserialized = models.VirtualHubPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.VirtualHubPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs'} + + def list( + self, custom_headers=None, raw=False, **operation_config): + """Lists all the VirtualHubs in a subscription. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of VirtualHub + :rtype: + ~azure.mgmt.network.v2018_10_01.models.VirtualHubPaged[~azure.mgmt.network.v2018_10_01.models.VirtualHub] + :raises: + :class:`ErrorException` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + return response + + # Deserialize response + deserialized = models.VirtualHubPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.VirtualHubPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Network/virtualHubs'} diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/virtual_network_gateway_connections_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/virtual_network_gateway_connections_operations.py new file mode 100644 index 000000000000..e127defec7c7 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/virtual_network_gateway_connections_operations.py @@ -0,0 +1,749 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +from msrest.polling import LROPoller, NoPolling +from msrestazure.polling.arm_polling import ARMPolling + +from .. import models + + +class VirtualNetworkGatewayConnectionsOperations(object): + """VirtualNetworkGatewayConnectionsOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client API version. Constant value: "2018-10-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-10-01" + + self.config = config + + + def _create_or_update_initial( + self, resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualNetworkGatewayConnectionName': self._serialize.url("virtual_network_gateway_connection_name", virtual_network_gateway_connection_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'VirtualNetworkGatewayConnection') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('VirtualNetworkGatewayConnection', response) + if response.status_code == 201: + deserialized = self._deserialize('VirtualNetworkGatewayConnection', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update( + self, resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers=None, raw=False, polling=True, **operation_config): + """Creates or updates a virtual network gateway connection in the + specified resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_network_gateway_connection_name: The name of the + virtual network gateway connection. + :type virtual_network_gateway_connection_name: str + :param parameters: Parameters supplied to the create or update virtual + network gateway connection operation. + :type parameters: + ~azure.mgmt.network.v2018_10_01.models.VirtualNetworkGatewayConnection + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns + VirtualNetworkGatewayConnection or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.VirtualNetworkGatewayConnection] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.VirtualNetworkGatewayConnection]] + :raises: :class:`CloudError` + """ + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + virtual_network_gateway_connection_name=virtual_network_gateway_connection_name, + parameters=parameters, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('VirtualNetworkGatewayConnection', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}'} + + def get( + self, resource_group_name, virtual_network_gateway_connection_name, custom_headers=None, raw=False, **operation_config): + """Gets the specified virtual network gateway connection by resource + group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_network_gateway_connection_name: The name of the + virtual network gateway connection. + :type virtual_network_gateway_connection_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: VirtualNetworkGatewayConnection or ClientRawResponse if + raw=true + :rtype: + ~azure.mgmt.network.v2018_10_01.models.VirtualNetworkGatewayConnection + or ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualNetworkGatewayConnectionName': self._serialize.url("virtual_network_gateway_connection_name", virtual_network_gateway_connection_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('VirtualNetworkGatewayConnection', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}'} + + + def _delete_initial( + self, resource_group_name, virtual_network_gateway_connection_name, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualNetworkGatewayConnectionName': self._serialize.url("virtual_network_gateway_connection_name", virtual_network_gateway_connection_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202, 204]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def delete( + self, resource_group_name, virtual_network_gateway_connection_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Deletes the specified virtual network Gateway connection. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_network_gateway_connection_name: The name of the + virtual network gateway connection. + :type virtual_network_gateway_connection_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: :class:`CloudError` + """ + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + virtual_network_gateway_connection_name=virtual_network_gateway_connection_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}'} + + + def _update_tags_initial( + self, resource_group_name, virtual_network_gateway_connection_name, tags=None, custom_headers=None, raw=False, **operation_config): + parameters = models.TagsObject(tags=tags) + + # Construct URL + url = self.update_tags.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualNetworkGatewayConnectionName': self._serialize.url("virtual_network_gateway_connection_name", virtual_network_gateway_connection_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'TagsObject') + + # Construct and send request + request = self._client.patch(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('VirtualNetworkGatewayConnection', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def update_tags( + self, resource_group_name, virtual_network_gateway_connection_name, tags=None, custom_headers=None, raw=False, polling=True, **operation_config): + """Updates a virtual network gateway connection tags. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_network_gateway_connection_name: The name of the + virtual network gateway connection. + :type virtual_network_gateway_connection_name: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns + VirtualNetworkGatewayConnection or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.VirtualNetworkGatewayConnection] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.VirtualNetworkGatewayConnection]] + :raises: :class:`CloudError` + """ + raw_result = self._update_tags_initial( + resource_group_name=resource_group_name, + virtual_network_gateway_connection_name=virtual_network_gateway_connection_name, + tags=tags, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('VirtualNetworkGatewayConnection', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + update_tags.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}'} + + + def _set_shared_key_initial( + self, resource_group_name, virtual_network_gateway_connection_name, value, id=None, custom_headers=None, raw=False, **operation_config): + parameters = models.ConnectionSharedKey(id=id, value=value) + + # Construct URL + url = self.set_shared_key.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualNetworkGatewayConnectionName': self._serialize.url("virtual_network_gateway_connection_name", virtual_network_gateway_connection_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'ConnectionSharedKey') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ConnectionSharedKey', response) + if response.status_code == 201: + deserialized = self._deserialize('ConnectionSharedKey', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def set_shared_key( + self, resource_group_name, virtual_network_gateway_connection_name, value, id=None, custom_headers=None, raw=False, polling=True, **operation_config): + """The Put VirtualNetworkGatewayConnectionSharedKey operation sets the + virtual network gateway connection shared key for passed virtual + network gateway connection in the specified resource group through + Network resource provider. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_network_gateway_connection_name: The virtual network + gateway connection name. + :type virtual_network_gateway_connection_name: str + :param value: The virtual network connection shared key value. + :type value: str + :param id: Resource ID. + :type id: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns ConnectionSharedKey or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.ConnectionSharedKey] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.ConnectionSharedKey]] + :raises: :class:`CloudError` + """ + raw_result = self._set_shared_key_initial( + resource_group_name=resource_group_name, + virtual_network_gateway_connection_name=virtual_network_gateway_connection_name, + value=value, + id=id, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('ConnectionSharedKey', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + set_shared_key.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}/sharedkey'} + + def get_shared_key( + self, resource_group_name, virtual_network_gateway_connection_name, custom_headers=None, raw=False, **operation_config): + """The Get VirtualNetworkGatewayConnectionSharedKey operation retrieves + information about the specified virtual network gateway connection + shared key through Network resource provider. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_network_gateway_connection_name: The virtual network + gateway connection shared key name. + :type virtual_network_gateway_connection_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: ConnectionSharedKey or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.network.v2018_10_01.models.ConnectionSharedKey or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get_shared_key.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualNetworkGatewayConnectionName': self._serialize.url("virtual_network_gateway_connection_name", virtual_network_gateway_connection_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ConnectionSharedKey', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get_shared_key.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}/sharedkey'} + + def list( + self, resource_group_name, custom_headers=None, raw=False, **operation_config): + """The List VirtualNetworkGatewayConnections operation retrieves all the + virtual network gateways connections created. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of VirtualNetworkGatewayConnection + :rtype: + ~azure.mgmt.network.v2018_10_01.models.VirtualNetworkGatewayConnectionPaged[~azure.mgmt.network.v2018_10_01.models.VirtualNetworkGatewayConnection] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.VirtualNetworkGatewayConnectionPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.VirtualNetworkGatewayConnectionPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections'} + + + def _reset_shared_key_initial( + self, resource_group_name, virtual_network_gateway_connection_name, key_length, custom_headers=None, raw=False, **operation_config): + parameters = models.ConnectionResetSharedKey(key_length=key_length) + + # Construct URL + url = self.reset_shared_key.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualNetworkGatewayConnectionName': self._serialize.url("virtual_network_gateway_connection_name", virtual_network_gateway_connection_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'ConnectionResetSharedKey') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ConnectionResetSharedKey', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def reset_shared_key( + self, resource_group_name, virtual_network_gateway_connection_name, key_length, custom_headers=None, raw=False, polling=True, **operation_config): + """The VirtualNetworkGatewayConnectionResetSharedKey operation resets the + virtual network gateway connection shared key for passed virtual + network gateway connection in the specified resource group through + Network resource provider. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_network_gateway_connection_name: The virtual network + gateway connection reset shared key Name. + :type virtual_network_gateway_connection_name: str + :param key_length: The virtual network connection reset shared key + length, should between 1 and 128. + :type key_length: int + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns + ConnectionResetSharedKey or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.ConnectionResetSharedKey] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.ConnectionResetSharedKey]] + :raises: :class:`CloudError` + """ + raw_result = self._reset_shared_key_initial( + resource_group_name=resource_group_name, + virtual_network_gateway_connection_name=virtual_network_gateway_connection_name, + key_length=key_length, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('ConnectionResetSharedKey', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + reset_shared_key.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}/sharedkey/reset'} diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/virtual_network_gateways_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/virtual_network_gateways_operations.py new file mode 100644 index 000000000000..ae5b10d09692 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/virtual_network_gateways_operations.py @@ -0,0 +1,1641 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +from msrest.polling import LROPoller, NoPolling +from msrestazure.polling.arm_polling import ARMPolling + +from .. import models + + +class VirtualNetworkGatewaysOperations(object): + """VirtualNetworkGatewaysOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client API version. Constant value: "2018-10-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-10-01" + + self.config = config + + + def _create_or_update_initial( + self, resource_group_name, virtual_network_gateway_name, parameters, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualNetworkGatewayName': self._serialize.url("virtual_network_gateway_name", virtual_network_gateway_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'VirtualNetworkGateway') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('VirtualNetworkGateway', response) + if response.status_code == 201: + deserialized = self._deserialize('VirtualNetworkGateway', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update( + self, resource_group_name, virtual_network_gateway_name, parameters, custom_headers=None, raw=False, polling=True, **operation_config): + """Creates or updates a virtual network gateway in the specified resource + group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_network_gateway_name: The name of the virtual network + gateway. + :type virtual_network_gateway_name: str + :param parameters: Parameters supplied to create or update virtual + network gateway operation. + :type parameters: + ~azure.mgmt.network.v2018_10_01.models.VirtualNetworkGateway + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns VirtualNetworkGateway + or ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.VirtualNetworkGateway] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.VirtualNetworkGateway]] + :raises: :class:`CloudError` + """ + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + virtual_network_gateway_name=virtual_network_gateway_name, + parameters=parameters, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('VirtualNetworkGateway', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}'} + + def get( + self, resource_group_name, virtual_network_gateway_name, custom_headers=None, raw=False, **operation_config): + """Gets the specified virtual network gateway by resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_network_gateway_name: The name of the virtual network + gateway. + :type virtual_network_gateway_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: VirtualNetworkGateway or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.network.v2018_10_01.models.VirtualNetworkGateway + or ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualNetworkGatewayName': self._serialize.url("virtual_network_gateway_name", virtual_network_gateway_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('VirtualNetworkGateway', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}'} + + + def _delete_initial( + self, resource_group_name, virtual_network_gateway_name, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualNetworkGatewayName': self._serialize.url("virtual_network_gateway_name", virtual_network_gateway_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202, 204]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def delete( + self, resource_group_name, virtual_network_gateway_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Deletes the specified virtual network gateway. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_network_gateway_name: The name of the virtual network + gateway. + :type virtual_network_gateway_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: :class:`CloudError` + """ + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + virtual_network_gateway_name=virtual_network_gateway_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}'} + + + def _update_tags_initial( + self, resource_group_name, virtual_network_gateway_name, tags=None, custom_headers=None, raw=False, **operation_config): + parameters = models.TagsObject(tags=tags) + + # Construct URL + url = self.update_tags.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualNetworkGatewayName': self._serialize.url("virtual_network_gateway_name", virtual_network_gateway_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'TagsObject') + + # Construct and send request + request = self._client.patch(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('VirtualNetworkGateway', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def update_tags( + self, resource_group_name, virtual_network_gateway_name, tags=None, custom_headers=None, raw=False, polling=True, **operation_config): + """Updates a virtual network gateway tags. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_network_gateway_name: The name of the virtual network + gateway. + :type virtual_network_gateway_name: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns VirtualNetworkGateway + or ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.VirtualNetworkGateway] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.VirtualNetworkGateway]] + :raises: :class:`CloudError` + """ + raw_result = self._update_tags_initial( + resource_group_name=resource_group_name, + virtual_network_gateway_name=virtual_network_gateway_name, + tags=tags, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('VirtualNetworkGateway', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + update_tags.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}'} + + def list( + self, resource_group_name, custom_headers=None, raw=False, **operation_config): + """Gets all virtual network gateways by resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of VirtualNetworkGateway + :rtype: + ~azure.mgmt.network.v2018_10_01.models.VirtualNetworkGatewayPaged[~azure.mgmt.network.v2018_10_01.models.VirtualNetworkGateway] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.VirtualNetworkGatewayPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.VirtualNetworkGatewayPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways'} + + def list_connections( + self, resource_group_name, virtual_network_gateway_name, custom_headers=None, raw=False, **operation_config): + """Gets all the connections in a virtual network gateway. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_network_gateway_name: The name of the virtual network + gateway. + :type virtual_network_gateway_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of + VirtualNetworkGatewayConnectionListEntity + :rtype: + ~azure.mgmt.network.v2018_10_01.models.VirtualNetworkGatewayConnectionListEntityPaged[~azure.mgmt.network.v2018_10_01.models.VirtualNetworkGatewayConnectionListEntity] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_connections.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualNetworkGatewayName': self._serialize.url("virtual_network_gateway_name", virtual_network_gateway_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.VirtualNetworkGatewayConnectionListEntityPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.VirtualNetworkGatewayConnectionListEntityPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_connections.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/connections'} + + + def _reset_initial( + self, resource_group_name, virtual_network_gateway_name, gateway_vip=None, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.reset.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualNetworkGatewayName': self._serialize.url("virtual_network_gateway_name", virtual_network_gateway_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + if gateway_vip is not None: + query_parameters['gatewayVip'] = self._serialize.query("gateway_vip", gateway_vip, 'str') + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('VirtualNetworkGateway', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def reset( + self, resource_group_name, virtual_network_gateway_name, gateway_vip=None, custom_headers=None, raw=False, polling=True, **operation_config): + """Resets the primary of the virtual network gateway in the specified + resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_network_gateway_name: The name of the virtual network + gateway. + :type virtual_network_gateway_name: str + :param gateway_vip: Virtual network gateway vip address supplied to + the begin reset of the active-active feature enabled gateway. + :type gateway_vip: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns VirtualNetworkGateway + or ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.VirtualNetworkGateway] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.VirtualNetworkGateway]] + :raises: :class:`CloudError` + """ + raw_result = self._reset_initial( + resource_group_name=resource_group_name, + virtual_network_gateway_name=virtual_network_gateway_name, + gateway_vip=gateway_vip, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('VirtualNetworkGateway', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + reset.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/reset'} + + + def _reset_vpn_client_shared_key_initial( + self, resource_group_name, virtual_network_gateway_name, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.reset_vpn_client_shared_key.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualNetworkGatewayName': self._serialize.url("virtual_network_gateway_name", virtual_network_gateway_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def reset_vpn_client_shared_key( + self, resource_group_name, virtual_network_gateway_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Resets the VPN client shared key of the virtual network gateway in the + specified resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_network_gateway_name: The name of the virtual network + gateway. + :type virtual_network_gateway_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: :class:`CloudError` + """ + raw_result = self._reset_vpn_client_shared_key_initial( + resource_group_name=resource_group_name, + virtual_network_gateway_name=virtual_network_gateway_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + reset_vpn_client_shared_key.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/resetvpnclientsharedkey'} + + + def _generatevpnclientpackage_initial( + self, resource_group_name, virtual_network_gateway_name, parameters, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.generatevpnclientpackage.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualNetworkGatewayName': self._serialize.url("virtual_network_gateway_name", virtual_network_gateway_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'VpnClientParameters') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('str', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def generatevpnclientpackage( + self, resource_group_name, virtual_network_gateway_name, parameters, custom_headers=None, raw=False, polling=True, **operation_config): + """Generates VPN client package for P2S client of the virtual network + gateway in the specified resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_network_gateway_name: The name of the virtual network + gateway. + :type virtual_network_gateway_name: str + :param parameters: Parameters supplied to the generate virtual network + gateway VPN client package operation. + :type parameters: + ~azure.mgmt.network.v2018_10_01.models.VpnClientParameters + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns str or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[str] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[str]] + :raises: :class:`CloudError` + """ + raw_result = self._generatevpnclientpackage_initial( + resource_group_name=resource_group_name, + virtual_network_gateway_name=virtual_network_gateway_name, + parameters=parameters, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('str', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + generatevpnclientpackage.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/generatevpnclientpackage'} + + + def _generate_vpn_profile_initial( + self, resource_group_name, virtual_network_gateway_name, parameters, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.generate_vpn_profile.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualNetworkGatewayName': self._serialize.url("virtual_network_gateway_name", virtual_network_gateway_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'VpnClientParameters') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('str', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def generate_vpn_profile( + self, resource_group_name, virtual_network_gateway_name, parameters, custom_headers=None, raw=False, polling=True, **operation_config): + """Generates VPN profile for P2S client of the virtual network gateway in + the specified resource group. Used for IKEV2 and radius based + authentication. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_network_gateway_name: The name of the virtual network + gateway. + :type virtual_network_gateway_name: str + :param parameters: Parameters supplied to the generate virtual network + gateway VPN client package operation. + :type parameters: + ~azure.mgmt.network.v2018_10_01.models.VpnClientParameters + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns str or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[str] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[str]] + :raises: :class:`CloudError` + """ + raw_result = self._generate_vpn_profile_initial( + resource_group_name=resource_group_name, + virtual_network_gateway_name=virtual_network_gateway_name, + parameters=parameters, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('str', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + generate_vpn_profile.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/generatevpnprofile'} + + + def _get_vpn_profile_package_url_initial( + self, resource_group_name, virtual_network_gateway_name, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.get_vpn_profile_package_url.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualNetworkGatewayName': self._serialize.url("virtual_network_gateway_name", virtual_network_gateway_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('str', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def get_vpn_profile_package_url( + self, resource_group_name, virtual_network_gateway_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Gets pre-generated VPN profile for P2S client of the virtual network + gateway in the specified resource group. The profile needs to be + generated first using generateVpnProfile. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_network_gateway_name: The name of the virtual network + gateway. + :type virtual_network_gateway_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns str or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[str] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[str]] + :raises: :class:`CloudError` + """ + raw_result = self._get_vpn_profile_package_url_initial( + resource_group_name=resource_group_name, + virtual_network_gateway_name=virtual_network_gateway_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('str', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + get_vpn_profile_package_url.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getvpnprofilepackageurl'} + + + def _get_bgp_peer_status_initial( + self, resource_group_name, virtual_network_gateway_name, peer=None, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.get_bgp_peer_status.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualNetworkGatewayName': self._serialize.url("virtual_network_gateway_name", virtual_network_gateway_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + if peer is not None: + query_parameters['peer'] = self._serialize.query("peer", peer, 'str') + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('BgpPeerStatusListResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def get_bgp_peer_status( + self, resource_group_name, virtual_network_gateway_name, peer=None, custom_headers=None, raw=False, polling=True, **operation_config): + """The GetBgpPeerStatus operation retrieves the status of all BGP peers. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_network_gateway_name: The name of the virtual network + gateway. + :type virtual_network_gateway_name: str + :param peer: The IP address of the peer to retrieve the status of. + :type peer: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns BgpPeerStatusListResult + or ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.BgpPeerStatusListResult] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.BgpPeerStatusListResult]] + :raises: :class:`CloudError` + """ + raw_result = self._get_bgp_peer_status_initial( + resource_group_name=resource_group_name, + virtual_network_gateway_name=virtual_network_gateway_name, + peer=peer, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('BgpPeerStatusListResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + get_bgp_peer_status.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getBgpPeerStatus'} + + def supported_vpn_devices( + self, resource_group_name, virtual_network_gateway_name, custom_headers=None, raw=False, **operation_config): + """Gets a xml format representation for supported vpn devices. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_network_gateway_name: The name of the virtual network + gateway. + :type virtual_network_gateway_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: str or ClientRawResponse if raw=true + :rtype: str or ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.supported_vpn_devices.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualNetworkGatewayName': self._serialize.url("virtual_network_gateway_name", virtual_network_gateway_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('str', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + supported_vpn_devices.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/supportedvpndevices'} + + + def _get_learned_routes_initial( + self, resource_group_name, virtual_network_gateway_name, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.get_learned_routes.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualNetworkGatewayName': self._serialize.url("virtual_network_gateway_name", virtual_network_gateway_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('GatewayRouteListResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def get_learned_routes( + self, resource_group_name, virtual_network_gateway_name, custom_headers=None, raw=False, polling=True, **operation_config): + """This operation retrieves a list of routes the virtual network gateway + has learned, including routes learned from BGP peers. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_network_gateway_name: The name of the virtual network + gateway. + :type virtual_network_gateway_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns GatewayRouteListResult + or ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.GatewayRouteListResult] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.GatewayRouteListResult]] + :raises: :class:`CloudError` + """ + raw_result = self._get_learned_routes_initial( + resource_group_name=resource_group_name, + virtual_network_gateway_name=virtual_network_gateway_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('GatewayRouteListResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + get_learned_routes.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getLearnedRoutes'} + + + def _get_advertised_routes_initial( + self, resource_group_name, virtual_network_gateway_name, peer, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.get_advertised_routes.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualNetworkGatewayName': self._serialize.url("virtual_network_gateway_name", virtual_network_gateway_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['peer'] = self._serialize.query("peer", peer, 'str') + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('GatewayRouteListResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def get_advertised_routes( + self, resource_group_name, virtual_network_gateway_name, peer, custom_headers=None, raw=False, polling=True, **operation_config): + """This operation retrieves a list of routes the virtual network gateway + is advertising to the specified peer. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_network_gateway_name: The name of the virtual network + gateway. + :type virtual_network_gateway_name: str + :param peer: The IP address of the peer + :type peer: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns GatewayRouteListResult + or ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.GatewayRouteListResult] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.GatewayRouteListResult]] + :raises: :class:`CloudError` + """ + raw_result = self._get_advertised_routes_initial( + resource_group_name=resource_group_name, + virtual_network_gateway_name=virtual_network_gateway_name, + peer=peer, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('GatewayRouteListResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + get_advertised_routes.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getAdvertisedRoutes'} + + + def _set_vpnclient_ipsec_parameters_initial( + self, resource_group_name, virtual_network_gateway_name, vpnclient_ipsec_params, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.set_vpnclient_ipsec_parameters.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualNetworkGatewayName': self._serialize.url("virtual_network_gateway_name", virtual_network_gateway_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(vpnclient_ipsec_params, 'VpnClientIPsecParameters') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('VpnClientIPsecParameters', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def set_vpnclient_ipsec_parameters( + self, resource_group_name, virtual_network_gateway_name, vpnclient_ipsec_params, custom_headers=None, raw=False, polling=True, **operation_config): + """The Set VpnclientIpsecParameters operation sets the vpnclient ipsec + policy for P2S client of virtual network gateway in the specified + resource group through Network resource provider. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_network_gateway_name: The name of the virtual network + gateway. + :type virtual_network_gateway_name: str + :param vpnclient_ipsec_params: Parameters supplied to the Begin Set + vpnclient ipsec parameters of Virtual Network Gateway P2S client + operation through Network resource provider. + :type vpnclient_ipsec_params: + ~azure.mgmt.network.v2018_10_01.models.VpnClientIPsecParameters + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns + VpnClientIPsecParameters or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.VpnClientIPsecParameters] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.VpnClientIPsecParameters]] + :raises: :class:`CloudError` + """ + raw_result = self._set_vpnclient_ipsec_parameters_initial( + resource_group_name=resource_group_name, + virtual_network_gateway_name=virtual_network_gateway_name, + vpnclient_ipsec_params=vpnclient_ipsec_params, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('VpnClientIPsecParameters', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + set_vpnclient_ipsec_parameters.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/setvpnclientipsecparameters'} + + + def _get_vpnclient_ipsec_parameters_initial( + self, resource_group_name, virtual_network_gateway_name, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.get_vpnclient_ipsec_parameters.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualNetworkGatewayName': self._serialize.url("virtual_network_gateway_name", virtual_network_gateway_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('VpnClientIPsecParameters', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def get_vpnclient_ipsec_parameters( + self, resource_group_name, virtual_network_gateway_name, custom_headers=None, raw=False, polling=True, **operation_config): + """The Get VpnclientIpsecParameters operation retrieves information about + the vpnclient ipsec policy for P2S client of virtual network gateway in + the specified resource group through Network resource provider. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_network_gateway_name: The virtual network gateway name. + :type virtual_network_gateway_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns + VpnClientIPsecParameters or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.VpnClientIPsecParameters] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.VpnClientIPsecParameters]] + :raises: :class:`CloudError` + """ + raw_result = self._get_vpnclient_ipsec_parameters_initial( + resource_group_name=resource_group_name, + virtual_network_gateway_name=virtual_network_gateway_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('VpnClientIPsecParameters', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + get_vpnclient_ipsec_parameters.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getvpnclientipsecparameters'} + + def vpn_device_configuration_script( + self, resource_group_name, virtual_network_gateway_connection_name, parameters, custom_headers=None, raw=False, **operation_config): + """Gets a xml format representation for vpn device configuration script. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_network_gateway_connection_name: The name of the + virtual network gateway connection for which the configuration script + is generated. + :type virtual_network_gateway_connection_name: str + :param parameters: Parameters supplied to the generate vpn device + script operation. + :type parameters: + ~azure.mgmt.network.v2018_10_01.models.VpnDeviceScriptParameters + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: str or ClientRawResponse if raw=true + :rtype: str or ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.vpn_device_configuration_script.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualNetworkGatewayConnectionName': self._serialize.url("virtual_network_gateway_connection_name", virtual_network_gateway_connection_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'VpnDeviceScriptParameters') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('str', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + vpn_device_configuration_script.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}/vpndeviceconfigurationscript'} diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/virtual_network_peerings_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/virtual_network_peerings_operations.py new file mode 100644 index 000000000000..d166509d1e74 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/virtual_network_peerings_operations.py @@ -0,0 +1,368 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +from msrest.polling import LROPoller, NoPolling +from msrestazure.polling.arm_polling import ARMPolling + +from .. import models + + +class VirtualNetworkPeeringsOperations(object): + """VirtualNetworkPeeringsOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client API version. Constant value: "2018-10-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-10-01" + + self.config = config + + + def _delete_initial( + self, resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualNetworkName': self._serialize.url("virtual_network_name", virtual_network_name, 'str'), + 'virtualNetworkPeeringName': self._serialize.url("virtual_network_peering_name", virtual_network_peering_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202, 204]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def delete( + self, resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Deletes the specified virtual network peering. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_network_name: The name of the virtual network. + :type virtual_network_name: str + :param virtual_network_peering_name: The name of the virtual network + peering. + :type virtual_network_peering_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: :class:`CloudError` + """ + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + virtual_network_name=virtual_network_name, + virtual_network_peering_name=virtual_network_peering_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/virtualNetworkPeerings/{virtualNetworkPeeringName}'} + + def get( + self, resource_group_name, virtual_network_name, virtual_network_peering_name, custom_headers=None, raw=False, **operation_config): + """Gets the specified virtual network peering. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_network_name: The name of the virtual network. + :type virtual_network_name: str + :param virtual_network_peering_name: The name of the virtual network + peering. + :type virtual_network_peering_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: VirtualNetworkPeering or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.network.v2018_10_01.models.VirtualNetworkPeering + or ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualNetworkName': self._serialize.url("virtual_network_name", virtual_network_name, 'str'), + 'virtualNetworkPeeringName': self._serialize.url("virtual_network_peering_name", virtual_network_peering_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('VirtualNetworkPeering', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/virtualNetworkPeerings/{virtualNetworkPeeringName}'} + + + def _create_or_update_initial( + self, resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualNetworkName': self._serialize.url("virtual_network_name", virtual_network_name, 'str'), + 'virtualNetworkPeeringName': self._serialize.url("virtual_network_peering_name", virtual_network_peering_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(virtual_network_peering_parameters, 'VirtualNetworkPeering') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('VirtualNetworkPeering', response) + if response.status_code == 201: + deserialized = self._deserialize('VirtualNetworkPeering', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update( + self, resource_group_name, virtual_network_name, virtual_network_peering_name, virtual_network_peering_parameters, custom_headers=None, raw=False, polling=True, **operation_config): + """Creates or updates a peering in the specified virtual network. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_network_name: The name of the virtual network. + :type virtual_network_name: str + :param virtual_network_peering_name: The name of the peering. + :type virtual_network_peering_name: str + :param virtual_network_peering_parameters: Parameters supplied to the + create or update virtual network peering operation. + :type virtual_network_peering_parameters: + ~azure.mgmt.network.v2018_10_01.models.VirtualNetworkPeering + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns VirtualNetworkPeering + or ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.VirtualNetworkPeering] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.VirtualNetworkPeering]] + :raises: :class:`CloudError` + """ + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + virtual_network_name=virtual_network_name, + virtual_network_peering_name=virtual_network_peering_name, + virtual_network_peering_parameters=virtual_network_peering_parameters, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('VirtualNetworkPeering', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/virtualNetworkPeerings/{virtualNetworkPeeringName}'} + + def list( + self, resource_group_name, virtual_network_name, custom_headers=None, raw=False, **operation_config): + """Gets all virtual network peerings in a virtual network. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_network_name: The name of the virtual network. + :type virtual_network_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of VirtualNetworkPeering + :rtype: + ~azure.mgmt.network.v2018_10_01.models.VirtualNetworkPeeringPaged[~azure.mgmt.network.v2018_10_01.models.VirtualNetworkPeering] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualNetworkName': self._serialize.url("virtual_network_name", virtual_network_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.VirtualNetworkPeeringPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.VirtualNetworkPeeringPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/virtualNetworkPeerings'} diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/virtual_network_taps_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/virtual_network_taps_operations.py new file mode 100644 index 000000000000..697ae825596e --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/virtual_network_taps_operations.py @@ -0,0 +1,518 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +from msrest.polling import LROPoller, NoPolling +from msrestazure.polling.arm_polling import ARMPolling + +from .. import models + + +class VirtualNetworkTapsOperations(object): + """VirtualNetworkTapsOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client API version. Constant value: "2018-10-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-10-01" + + self.config = config + + + def _delete_initial( + self, resource_group_name, tap_name, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'tapName': self._serialize.url("tap_name", tap_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202, 204]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def delete( + self, resource_group_name, tap_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Deletes the specified virtual network tap. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param tap_name: The name of the virtual network tap. + :type tap_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: :class:`CloudError` + """ + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + tap_name=tap_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkTaps/{tapName}'} + + def get( + self, resource_group_name, tap_name, custom_headers=None, raw=False, **operation_config): + """Gets information about the specified virtual network tap. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param tap_name: The name of virtual network tap. + :type tap_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: VirtualNetworkTap or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.network.v2018_10_01.models.VirtualNetworkTap or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'tapName': self._serialize.url("tap_name", tap_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('VirtualNetworkTap', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkTaps/{tapName}'} + + + def _create_or_update_initial( + self, resource_group_name, tap_name, parameters, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'tapName': self._serialize.url("tap_name", tap_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'VirtualNetworkTap') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('VirtualNetworkTap', response) + if response.status_code == 201: + deserialized = self._deserialize('VirtualNetworkTap', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update( + self, resource_group_name, tap_name, parameters, custom_headers=None, raw=False, polling=True, **operation_config): + """Creates or updates a Virtual Network Tap. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param tap_name: The name of the virtual network tap. + :type tap_name: str + :param parameters: Parameters supplied to the create or update virtual + network tap operation. + :type parameters: + ~azure.mgmt.network.v2018_10_01.models.VirtualNetworkTap + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns VirtualNetworkTap or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.VirtualNetworkTap] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.VirtualNetworkTap]] + :raises: :class:`CloudError` + """ + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + tap_name=tap_name, + parameters=parameters, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('VirtualNetworkTap', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkTaps/{tapName}'} + + + def _update_tags_initial( + self, resource_group_name, tap_name, tags=None, custom_headers=None, raw=False, **operation_config): + tap_parameters = models.TagsObject(tags=tags) + + # Construct URL + url = self.update_tags.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'tapName': self._serialize.url("tap_name", tap_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(tap_parameters, 'TagsObject') + + # Construct and send request + request = self._client.patch(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('VirtualNetworkTap', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def update_tags( + self, resource_group_name, tap_name, tags=None, custom_headers=None, raw=False, polling=True, **operation_config): + """Updates an VirtualNetworkTap tags. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param tap_name: The name of the tap. + :type tap_name: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns VirtualNetworkTap or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.VirtualNetworkTap] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.VirtualNetworkTap]] + :raises: :class:`CloudError` + """ + raw_result = self._update_tags_initial( + resource_group_name=resource_group_name, + tap_name=tap_name, + tags=tags, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('VirtualNetworkTap', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + update_tags.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkTaps/{tapName}'} + + def list_all( + self, custom_headers=None, raw=False, **operation_config): + """Gets all the VirtualNetworkTaps in a subscription. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of VirtualNetworkTap + :rtype: + ~azure.mgmt.network.v2018_10_01.models.VirtualNetworkTapPaged[~azure.mgmt.network.v2018_10_01.models.VirtualNetworkTap] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_all.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.VirtualNetworkTapPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.VirtualNetworkTapPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_all.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Network/virtualNetworkTaps'} + + def list_by_resource_group( + self, resource_group_name, custom_headers=None, raw=False, **operation_config): + """Gets all the VirtualNetworkTaps in a subscription. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of VirtualNetworkTap + :rtype: + ~azure.mgmt.network.v2018_10_01.models.VirtualNetworkTapPaged[~azure.mgmt.network.v2018_10_01.models.VirtualNetworkTap] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_by_resource_group.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.VirtualNetworkTapPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.VirtualNetworkTapPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkTaps'} diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/virtual_networks_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/virtual_networks_operations.py new file mode 100644 index 000000000000..9d1a9d853f16 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/virtual_networks_operations.py @@ -0,0 +1,658 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +from msrest.polling import LROPoller, NoPolling +from msrestazure.polling.arm_polling import ARMPolling + +from .. import models + + +class VirtualNetworksOperations(object): + """VirtualNetworksOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client API version. Constant value: "2018-10-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-10-01" + + self.config = config + + + def _delete_initial( + self, resource_group_name, virtual_network_name, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualNetworkName': self._serialize.url("virtual_network_name", virtual_network_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202, 204]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def delete( + self, resource_group_name, virtual_network_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Deletes the specified virtual network. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_network_name: The name of the virtual network. + :type virtual_network_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: :class:`CloudError` + """ + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + virtual_network_name=virtual_network_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}'} + + def get( + self, resource_group_name, virtual_network_name, expand=None, custom_headers=None, raw=False, **operation_config): + """Gets the specified virtual network by resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_network_name: The name of the virtual network. + :type virtual_network_name: str + :param expand: Expands referenced resources. + :type expand: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: VirtualNetwork or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.network.v2018_10_01.models.VirtualNetwork or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualNetworkName': self._serialize.url("virtual_network_name", virtual_network_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('VirtualNetwork', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}'} + + + def _create_or_update_initial( + self, resource_group_name, virtual_network_name, parameters, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualNetworkName': self._serialize.url("virtual_network_name", virtual_network_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'VirtualNetwork') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('VirtualNetwork', response) + if response.status_code == 201: + deserialized = self._deserialize('VirtualNetwork', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update( + self, resource_group_name, virtual_network_name, parameters, custom_headers=None, raw=False, polling=True, **operation_config): + """Creates or updates a virtual network in the specified resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_network_name: The name of the virtual network. + :type virtual_network_name: str + :param parameters: Parameters supplied to the create or update virtual + network operation + :type parameters: + ~azure.mgmt.network.v2018_10_01.models.VirtualNetwork + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns VirtualNetwork or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.VirtualNetwork] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.VirtualNetwork]] + :raises: :class:`CloudError` + """ + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + virtual_network_name=virtual_network_name, + parameters=parameters, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('VirtualNetwork', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}'} + + + def _update_tags_initial( + self, resource_group_name, virtual_network_name, tags=None, custom_headers=None, raw=False, **operation_config): + parameters = models.TagsObject(tags=tags) + + # Construct URL + url = self.update_tags.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualNetworkName': self._serialize.url("virtual_network_name", virtual_network_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'TagsObject') + + # Construct and send request + request = self._client.patch(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('VirtualNetwork', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def update_tags( + self, resource_group_name, virtual_network_name, tags=None, custom_headers=None, raw=False, polling=True, **operation_config): + """Updates a virtual network tags. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_network_name: The name of the virtual network. + :type virtual_network_name: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns VirtualNetwork or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.VirtualNetwork] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.VirtualNetwork]] + :raises: :class:`CloudError` + """ + raw_result = self._update_tags_initial( + resource_group_name=resource_group_name, + virtual_network_name=virtual_network_name, + tags=tags, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('VirtualNetwork', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + update_tags.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}'} + + def list_all( + self, custom_headers=None, raw=False, **operation_config): + """Gets all virtual networks in a subscription. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of VirtualNetwork + :rtype: + ~azure.mgmt.network.v2018_10_01.models.VirtualNetworkPaged[~azure.mgmt.network.v2018_10_01.models.VirtualNetwork] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_all.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.VirtualNetworkPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.VirtualNetworkPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_all.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Network/virtualNetworks'} + + def list( + self, resource_group_name, custom_headers=None, raw=False, **operation_config): + """Gets all virtual networks in a resource group. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of VirtualNetwork + :rtype: + ~azure.mgmt.network.v2018_10_01.models.VirtualNetworkPaged[~azure.mgmt.network.v2018_10_01.models.VirtualNetwork] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.VirtualNetworkPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.VirtualNetworkPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks'} + + def check_ip_address_availability( + self, resource_group_name, virtual_network_name, ip_address, custom_headers=None, raw=False, **operation_config): + """Checks whether a private IP address is available for use. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_network_name: The name of the virtual network. + :type virtual_network_name: str + :param ip_address: The private IP address to be verified. + :type ip_address: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: IPAddressAvailabilityResult or ClientRawResponse if raw=true + :rtype: + ~azure.mgmt.network.v2018_10_01.models.IPAddressAvailabilityResult or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.check_ip_address_availability.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualNetworkName': self._serialize.url("virtual_network_name", virtual_network_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['ipAddress'] = self._serialize.query("ip_address", ip_address, 'str') + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('IPAddressAvailabilityResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + check_ip_address_availability.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/CheckIPAddressAvailability'} + + def list_usage( + self, resource_group_name, virtual_network_name, custom_headers=None, raw=False, **operation_config): + """Lists usage stats. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param virtual_network_name: The name of the virtual network. + :type virtual_network_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of VirtualNetworkUsage + :rtype: + ~azure.mgmt.network.v2018_10_01.models.VirtualNetworkUsagePaged[~azure.mgmt.network.v2018_10_01.models.VirtualNetworkUsage] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_usage.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualNetworkName': self._serialize.url("virtual_network_name", virtual_network_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.VirtualNetworkUsagePaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.VirtualNetworkUsagePaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_usage.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/usages'} diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/virtual_wans_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/virtual_wans_operations.py new file mode 100644 index 000000000000..ddbc34cca175 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/virtual_wans_operations.py @@ -0,0 +1,515 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrest.polling import LROPoller, NoPolling +from msrestazure.polling.arm_polling import ARMPolling + +from .. import models + + +class VirtualWansOperations(object): + """VirtualWansOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client API version. Constant value: "2018-10-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-10-01" + + self.config = config + + def get( + self, resource_group_name, virtual_wan_name, custom_headers=None, raw=False, **operation_config): + """Retrieves the details of a VirtualWAN. + + :param resource_group_name: The resource group name of the VirtualWan. + :type resource_group_name: str + :param virtual_wan_name: The name of the VirtualWAN being retrieved. + :type virtual_wan_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: VirtualWAN or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.network.v2018_10_01.models.VirtualWAN or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorException` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'VirtualWANName': self._serialize.url("virtual_wan_name", virtual_wan_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('VirtualWAN', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{VirtualWANName}'} + + + def _create_or_update_initial( + self, resource_group_name, virtual_wan_name, wan_parameters, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'VirtualWANName': self._serialize.url("virtual_wan_name", virtual_wan_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(wan_parameters, 'VirtualWAN') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('VirtualWAN', response) + if response.status_code == 201: + deserialized = self._deserialize('VirtualWAN', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update( + self, resource_group_name, virtual_wan_name, wan_parameters, custom_headers=None, raw=False, polling=True, **operation_config): + """Creates a VirtualWAN resource if it doesn't exist else updates the + existing VirtualWAN. + + :param resource_group_name: The resource group name of the VirtualWan. + :type resource_group_name: str + :param virtual_wan_name: The name of the VirtualWAN being created or + updated. + :type virtual_wan_name: str + :param wan_parameters: Parameters supplied to create or update + VirtualWAN. + :type wan_parameters: + ~azure.mgmt.network.v2018_10_01.models.VirtualWAN + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns VirtualWAN or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.VirtualWAN] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.VirtualWAN]] + :raises: + :class:`ErrorException` + """ + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + virtual_wan_name=virtual_wan_name, + wan_parameters=wan_parameters, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('VirtualWAN', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{VirtualWANName}'} + + + def _update_tags_initial( + self, resource_group_name, virtual_wan_name, tags=None, custom_headers=None, raw=False, **operation_config): + wan_parameters = models.TagsObject(tags=tags) + + # Construct URL + url = self.update_tags.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'VirtualWANName': self._serialize.url("virtual_wan_name", virtual_wan_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(wan_parameters, 'TagsObject') + + # Construct and send request + request = self._client.patch(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('VirtualWAN', response) + if response.status_code == 201: + deserialized = self._deserialize('VirtualWAN', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def update_tags( + self, resource_group_name, virtual_wan_name, tags=None, custom_headers=None, raw=False, polling=True, **operation_config): + """Updates a VirtualWAN tags. + + :param resource_group_name: The resource group name of the VirtualWan. + :type resource_group_name: str + :param virtual_wan_name: The name of the VirtualWAN being updated. + :type virtual_wan_name: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns VirtualWAN or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.VirtualWAN] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.VirtualWAN]] + :raises: + :class:`ErrorException` + """ + raw_result = self._update_tags_initial( + resource_group_name=resource_group_name, + virtual_wan_name=virtual_wan_name, + tags=tags, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('VirtualWAN', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + update_tags.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{VirtualWANName}'} + + + def _delete_initial( + self, resource_group_name, virtual_wan_name, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'VirtualWANName': self._serialize.url("virtual_wan_name", virtual_wan_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202, 204]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def delete( + self, resource_group_name, virtual_wan_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Deletes a VirtualWAN. + + :param resource_group_name: The resource group name of the VirtualWan. + :type resource_group_name: str + :param virtual_wan_name: The name of the VirtualWAN being deleted. + :type virtual_wan_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: + :class:`ErrorException` + """ + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + virtual_wan_name=virtual_wan_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{VirtualWANName}'} + + def list_by_resource_group( + self, resource_group_name, custom_headers=None, raw=False, **operation_config): + """Lists all the VirtualWANs in a resource group. + + :param resource_group_name: The resource group name of the VirtualWan. + :type resource_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of VirtualWAN + :rtype: + ~azure.mgmt.network.v2018_10_01.models.VirtualWANPaged[~azure.mgmt.network.v2018_10_01.models.VirtualWAN] + :raises: + :class:`ErrorException` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_by_resource_group.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + return response + + # Deserialize response + deserialized = models.VirtualWANPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.VirtualWANPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans'} + + def list( + self, custom_headers=None, raw=False, **operation_config): + """Lists all the VirtualWANs in a subscription. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of VirtualWAN + :rtype: + ~azure.mgmt.network.v2018_10_01.models.VirtualWANPaged[~azure.mgmt.network.v2018_10_01.models.VirtualWAN] + :raises: + :class:`ErrorException` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + return response + + # Deserialize response + deserialized = models.VirtualWANPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.VirtualWANPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Network/virtualWans'} diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/vpn_connections_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/vpn_connections_operations.py new file mode 100644 index 000000000000..0b5af7a35df5 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/vpn_connections_operations.py @@ -0,0 +1,362 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrest.polling import LROPoller, NoPolling +from msrestazure.polling.arm_polling import ARMPolling + +from .. import models + + +class VpnConnectionsOperations(object): + """VpnConnectionsOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client API version. Constant value: "2018-10-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-10-01" + + self.config = config + + def get( + self, resource_group_name, gateway_name, connection_name, custom_headers=None, raw=False, **operation_config): + """Retrieves the details of a vpn connection. + + :param resource_group_name: The resource group name of the VpnGateway. + :type resource_group_name: str + :param gateway_name: The name of the gateway. + :type gateway_name: str + :param connection_name: The name of the vpn connection. + :type connection_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: VpnConnection or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.network.v2018_10_01.models.VpnConnection or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorException` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'gatewayName': self._serialize.url("gateway_name", gateway_name, 'str'), + 'connectionName': self._serialize.url("connection_name", connection_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('VpnConnection', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/vpnConnections/{connectionName}'} + + + def _create_or_update_initial( + self, resource_group_name, gateway_name, connection_name, vpn_connection_parameters, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'gatewayName': self._serialize.url("gateway_name", gateway_name, 'str'), + 'connectionName': self._serialize.url("connection_name", connection_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(vpn_connection_parameters, 'VpnConnection') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('VpnConnection', response) + if response.status_code == 201: + deserialized = self._deserialize('VpnConnection', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update( + self, resource_group_name, gateway_name, connection_name, vpn_connection_parameters, custom_headers=None, raw=False, polling=True, **operation_config): + """Creates a vpn connection to a scalable vpn gateway if it doesn't exist + else updates the existing connection. + + :param resource_group_name: The resource group name of the VpnGateway. + :type resource_group_name: str + :param gateway_name: The name of the gateway. + :type gateway_name: str + :param connection_name: The name of the connection. + :type connection_name: str + :param vpn_connection_parameters: Parameters supplied to create or + Update a VPN Connection. + :type vpn_connection_parameters: + ~azure.mgmt.network.v2018_10_01.models.VpnConnection + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns VpnConnection or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.VpnConnection] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.VpnConnection]] + :raises: + :class:`ErrorException` + """ + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + gateway_name=gateway_name, + connection_name=connection_name, + vpn_connection_parameters=vpn_connection_parameters, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('VpnConnection', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/vpnConnections/{connectionName}'} + + + def _delete_initial( + self, resource_group_name, gateway_name, connection_name, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'gatewayName': self._serialize.url("gateway_name", gateway_name, 'str'), + 'connectionName': self._serialize.url("connection_name", connection_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202, 204]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def delete( + self, resource_group_name, gateway_name, connection_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Deletes a vpn connection. + + :param resource_group_name: The resource group name of the VpnGateway. + :type resource_group_name: str + :param gateway_name: The name of the gateway. + :type gateway_name: str + :param connection_name: The name of the connection. + :type connection_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: + :class:`ErrorException` + """ + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + gateway_name=gateway_name, + connection_name=connection_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/vpnConnections/{connectionName}'} + + def list_by_vpn_gateway( + self, resource_group_name, gateway_name, custom_headers=None, raw=False, **operation_config): + """Retrieves all vpn connections for a particular virtual wan vpn gateway. + + :param resource_group_name: The resource group name of the VpnGateway. + :type resource_group_name: str + :param gateway_name: The name of the gateway. + :type gateway_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of VpnConnection + :rtype: + ~azure.mgmt.network.v2018_10_01.models.VpnConnectionPaged[~azure.mgmt.network.v2018_10_01.models.VpnConnection] + :raises: + :class:`ErrorException` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_by_vpn_gateway.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'gatewayName': self._serialize.url("gateway_name", gateway_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + return response + + # Deserialize response + deserialized = models.VpnConnectionPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.VpnConnectionPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_by_vpn_gateway.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/vpnConnections'} diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/vpn_gateways_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/vpn_gateways_operations.py new file mode 100644 index 000000000000..ce90f63b1a7e --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/vpn_gateways_operations.py @@ -0,0 +1,514 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrest.polling import LROPoller, NoPolling +from msrestazure.polling.arm_polling import ARMPolling + +from .. import models + + +class VpnGatewaysOperations(object): + """VpnGatewaysOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client API version. Constant value: "2018-10-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-10-01" + + self.config = config + + def get( + self, resource_group_name, gateway_name, custom_headers=None, raw=False, **operation_config): + """Retrieves the details of a virtual wan vpn gateway. + + :param resource_group_name: The resource group name of the VpnGateway. + :type resource_group_name: str + :param gateway_name: The name of the gateway. + :type gateway_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: VpnGateway or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.network.v2018_10_01.models.VpnGateway or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorException` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'gatewayName': self._serialize.url("gateway_name", gateway_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('VpnGateway', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}'} + + + def _create_or_update_initial( + self, resource_group_name, gateway_name, vpn_gateway_parameters, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'gatewayName': self._serialize.url("gateway_name", gateway_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(vpn_gateway_parameters, 'VpnGateway') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('VpnGateway', response) + if response.status_code == 201: + deserialized = self._deserialize('VpnGateway', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update( + self, resource_group_name, gateway_name, vpn_gateway_parameters, custom_headers=None, raw=False, polling=True, **operation_config): + """Creates a virtual wan vpn gateway if it doesn't exist else updates the + existing gateway. + + :param resource_group_name: The resource group name of the VpnGateway. + :type resource_group_name: str + :param gateway_name: The name of the gateway. + :type gateway_name: str + :param vpn_gateway_parameters: Parameters supplied to create or Update + a virtual wan vpn gateway. + :type vpn_gateway_parameters: + ~azure.mgmt.network.v2018_10_01.models.VpnGateway + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns VpnGateway or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.VpnGateway] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.VpnGateway]] + :raises: + :class:`ErrorException` + """ + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + gateway_name=gateway_name, + vpn_gateway_parameters=vpn_gateway_parameters, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('VpnGateway', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}'} + + + def _update_tags_initial( + self, resource_group_name, gateway_name, tags=None, custom_headers=None, raw=False, **operation_config): + vpn_gateway_parameters = models.TagsObject(tags=tags) + + # Construct URL + url = self.update_tags.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'gatewayName': self._serialize.url("gateway_name", gateway_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(vpn_gateway_parameters, 'TagsObject') + + # Construct and send request + request = self._client.patch(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('VpnGateway', response) + if response.status_code == 201: + deserialized = self._deserialize('VpnGateway', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def update_tags( + self, resource_group_name, gateway_name, tags=None, custom_headers=None, raw=False, polling=True, **operation_config): + """Updates virtual wan vpn gateway tags. + + :param resource_group_name: The resource group name of the VpnGateway. + :type resource_group_name: str + :param gateway_name: The name of the gateway. + :type gateway_name: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns VpnGateway or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.VpnGateway] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.VpnGateway]] + :raises: + :class:`ErrorException` + """ + raw_result = self._update_tags_initial( + resource_group_name=resource_group_name, + gateway_name=gateway_name, + tags=tags, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('VpnGateway', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + update_tags.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}'} + + + def _delete_initial( + self, resource_group_name, gateway_name, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'gatewayName': self._serialize.url("gateway_name", gateway_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202, 204]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def delete( + self, resource_group_name, gateway_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Deletes a virtual wan vpn gateway. + + :param resource_group_name: The resource group name of the VpnGateway. + :type resource_group_name: str + :param gateway_name: The name of the gateway. + :type gateway_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: + :class:`ErrorException` + """ + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + gateway_name=gateway_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}'} + + def list_by_resource_group( + self, resource_group_name, custom_headers=None, raw=False, **operation_config): + """Lists all the VpnGateways in a resource group. + + :param resource_group_name: The resource group name of the VpnGateway. + :type resource_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of VpnGateway + :rtype: + ~azure.mgmt.network.v2018_10_01.models.VpnGatewayPaged[~azure.mgmt.network.v2018_10_01.models.VpnGateway] + :raises: + :class:`ErrorException` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_by_resource_group.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + return response + + # Deserialize response + deserialized = models.VpnGatewayPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.VpnGatewayPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways'} + + def list( + self, custom_headers=None, raw=False, **operation_config): + """Lists all the VpnGateways in a subscription. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of VpnGateway + :rtype: + ~azure.mgmt.network.v2018_10_01.models.VpnGatewayPaged[~azure.mgmt.network.v2018_10_01.models.VpnGateway] + :raises: + :class:`ErrorException` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + return response + + # Deserialize response + deserialized = models.VpnGatewayPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.VpnGatewayPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Network/vpnGateways'} diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/vpn_sites_configuration_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/vpn_sites_configuration_operations.py new file mode 100644 index 000000000000..92041538a1b5 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/vpn_sites_configuration_operations.py @@ -0,0 +1,133 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrest.polling import LROPoller, NoPolling +from msrestazure.polling.arm_polling import ARMPolling + +from .. import models + + +class VpnSitesConfigurationOperations(object): + """VpnSitesConfigurationOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client API version. Constant value: "2018-10-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-10-01" + + self.config = config + + + def _download_initial( + self, resource_group_name, virtual_wan_name, vpn_sites=None, output_blob_sas_url=None, custom_headers=None, raw=False, **operation_config): + request = models.GetVpnSitesConfigurationRequest(vpn_sites=vpn_sites, output_blob_sas_url=output_blob_sas_url) + + # Construct URL + url = self.download.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'virtualWANName': self._serialize.url("virtual_wan_name", virtual_wan_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(request, 'GetVpnSitesConfigurationRequest') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def download( + self, resource_group_name, virtual_wan_name, vpn_sites=None, output_blob_sas_url=None, custom_headers=None, raw=False, polling=True, **operation_config): + """Gives the sas-url to download the configurations for vpn-sites in a + resource group. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param virtual_wan_name: The name of the VirtualWAN for which + configuration of all vpn-sites is needed. + :type virtual_wan_name: str + :param vpn_sites: List of resource-ids of the vpn-sites for which + config is to be downloaded. + :type vpn_sites: list[str] + :param output_blob_sas_url: The sas-url to download the configurations + for vpn-sites + :type output_blob_sas_url: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: + :class:`ErrorException` + """ + raw_result = self._download_initial( + resource_group_name=resource_group_name, + virtual_wan_name=virtual_wan_name, + vpn_sites=vpn_sites, + output_blob_sas_url=output_blob_sas_url, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + download.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{virtualWANName}/vpnConfiguration'} diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/vpn_sites_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/vpn_sites_operations.py new file mode 100644 index 000000000000..85a69dbd78c6 --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/operations/vpn_sites_operations.py @@ -0,0 +1,515 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrest.polling import LROPoller, NoPolling +from msrestazure.polling.arm_polling import ARMPolling + +from .. import models + + +class VpnSitesOperations(object): + """VpnSitesOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client API version. Constant value: "2018-10-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-10-01" + + self.config = config + + def get( + self, resource_group_name, vpn_site_name, custom_headers=None, raw=False, **operation_config): + """Retrieves the details of a VPNsite. + + :param resource_group_name: The resource group name of the VpnSite. + :type resource_group_name: str + :param vpn_site_name: The name of the VpnSite being retrieved. + :type vpn_site_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: VpnSite or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.network.v2018_10_01.models.VpnSite or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorException` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vpnSiteName': self._serialize.url("vpn_site_name", vpn_site_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('VpnSite', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnSites/{vpnSiteName}'} + + + def _create_or_update_initial( + self, resource_group_name, vpn_site_name, vpn_site_parameters, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vpnSiteName': self._serialize.url("vpn_site_name", vpn_site_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(vpn_site_parameters, 'VpnSite') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('VpnSite', response) + if response.status_code == 201: + deserialized = self._deserialize('VpnSite', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update( + self, resource_group_name, vpn_site_name, vpn_site_parameters, custom_headers=None, raw=False, polling=True, **operation_config): + """Creates a VpnSite resource if it doesn't exist else updates the + existing VpnSite. + + :param resource_group_name: The resource group name of the VpnSite. + :type resource_group_name: str + :param vpn_site_name: The name of the VpnSite being created or + updated. + :type vpn_site_name: str + :param vpn_site_parameters: Parameters supplied to create or update + VpnSite. + :type vpn_site_parameters: + ~azure.mgmt.network.v2018_10_01.models.VpnSite + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns VpnSite or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.VpnSite] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.VpnSite]] + :raises: + :class:`ErrorException` + """ + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + vpn_site_name=vpn_site_name, + vpn_site_parameters=vpn_site_parameters, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('VpnSite', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnSites/{vpnSiteName}'} + + + def _update_tags_initial( + self, resource_group_name, vpn_site_name, tags=None, custom_headers=None, raw=False, **operation_config): + vpn_site_parameters = models.TagsObject(tags=tags) + + # Construct URL + url = self.update_tags.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vpnSiteName': self._serialize.url("vpn_site_name", vpn_site_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(vpn_site_parameters, 'TagsObject') + + # Construct and send request + request = self._client.patch(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('VpnSite', response) + if response.status_code == 201: + deserialized = self._deserialize('VpnSite', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def update_tags( + self, resource_group_name, vpn_site_name, tags=None, custom_headers=None, raw=False, polling=True, **operation_config): + """Updates VpnSite tags. + + :param resource_group_name: The resource group name of the VpnSite. + :type resource_group_name: str + :param vpn_site_name: The name of the VpnSite being updated. + :type vpn_site_name: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns VpnSite or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2018_10_01.models.VpnSite] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2018_10_01.models.VpnSite]] + :raises: + :class:`ErrorException` + """ + raw_result = self._update_tags_initial( + resource_group_name=resource_group_name, + vpn_site_name=vpn_site_name, + tags=tags, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('VpnSite', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + update_tags.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnSites/{vpnSiteName}'} + + + def _delete_initial( + self, resource_group_name, vpn_site_name, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'vpnSiteName': self._serialize.url("vpn_site_name", vpn_site_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202, 204]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def delete( + self, resource_group_name, vpn_site_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Deletes a VpnSite. + + :param resource_group_name: The resource group name of the VpnSite. + :type resource_group_name: str + :param vpn_site_name: The name of the VpnSite being deleted. + :type vpn_site_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: + :class:`ErrorException` + """ + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + vpn_site_name=vpn_site_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnSites/{vpnSiteName}'} + + def list_by_resource_group( + self, resource_group_name, custom_headers=None, raw=False, **operation_config): + """Lists all the vpnSites in a resource group. + + :param resource_group_name: The resource group name of the VpnSite. + :type resource_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of VpnSite + :rtype: + ~azure.mgmt.network.v2018_10_01.models.VpnSitePaged[~azure.mgmt.network.v2018_10_01.models.VpnSite] + :raises: + :class:`ErrorException` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_by_resource_group.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + return response + + # Deserialize response + deserialized = models.VpnSitePaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.VpnSitePaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnSites'} + + def list( + self, custom_headers=None, raw=False, **operation_config): + """Lists all the VpnSites in a subscription. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of VpnSite + :rtype: + ~azure.mgmt.network.v2018_10_01.models.VpnSitePaged[~azure.mgmt.network.v2018_10_01.models.VpnSite] + :raises: + :class:`ErrorException` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + return response + + # Deserialize response + deserialized = models.VpnSitePaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.VpnSitePaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.Network/vpnSites'} diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_10_01/version.py b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/version.py new file mode 100644 index 000000000000..53a203f32aaf --- /dev/null +++ b/azure-mgmt-network/azure/mgmt/network/v2018_10_01/version.py @@ -0,0 +1,13 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +VERSION = "" + diff --git a/azure-mgmt-network/azure/mgmt/network/version.py b/azure-mgmt-network/azure/mgmt/network/version.py index a89dff0f0f99..fe4dd3b273fb 100644 --- a/azure-mgmt-network/azure/mgmt/network/version.py +++ b/azure-mgmt-network/azure/mgmt/network/version.py @@ -5,4 +5,4 @@ # license information. # -------------------------------------------------------------------------- -VERSION = "2.3.0" +VERSION = "2.4.0" diff --git a/azure-mgmt-network/tests/recordings/test_mgmt_network.test_dns_availability.yaml b/azure-mgmt-network/tests/recordings/test_mgmt_network.test_dns_availability.yaml index 0c4e2a1e2447..16ea5721a287 100644 --- a/azure-mgmt-network/tests/recordings/test_mgmt_network.test_dns_availability.yaml +++ b/azure-mgmt-network/tests/recordings/test_mgmt_network.test_dns_availability.yaml @@ -5,8 +5,8 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 azure-mgmt-network/ Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + azure-mgmt-network/ Azure-SDK-For-Python] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/CheckDnsNameAvailability?domainNameLabel=pydomain&api-version=2018-08-01 @@ -16,7 +16,7 @@ interactions: cache-control: [no-cache] content-length: ['25'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:26:05 GMT'] + date: ['Tue, 27 Nov 2018 20:15:05 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] diff --git a/azure-mgmt-network/tests/recordings/test_mgmt_network.test_express_route_circuit.yaml b/azure-mgmt-network/tests/recordings/test_mgmt_network.test_express_route_circuit.yaml index e105d65d681f..36b13206f293 100644 --- a/azure-mgmt-network/tests/recordings/test_mgmt_network.test_express_route_circuit.yaml +++ b/azure-mgmt-network/tests/recordings/test_mgmt_network.test_express_route_circuit.yaml @@ -14,7 +14,7 @@ interactions: msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275?api-version=2018-10-01 response: body: {string: "{\r\n \"name\": \"pyexpressroute9edf1275\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275\"\ ,\r\n \"etag\": \"W/\\\"e45e8601-d726-44e8-9f37-f8d05f38500b\\\"\",\r\n \ @@ -30,7 +30,7 @@ interactions: ,\r\n \"tier\": \"Standard\",\r\n \"family\": \"MeteredData\"\r\n }\r\ \n}"} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/8654ca36-0995-46b9-a618-d34e5cafa714?api-version=2018-08-01'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/8654ca36-0995-46b9-a618-d34e5cafa714?api-version=2018-10-01'] cache-control: [no-cache] content-length: ['1012'] content-type: [application/json; charset=utf-8] @@ -52,7 +52,7 @@ interactions: msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/8654ca36-0995-46b9-a618-d34e5cafa714?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/8654ca36-0995-46b9-a618-d34e5cafa714?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: @@ -78,7 +78,7 @@ interactions: msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/8654ca36-0995-46b9-a618-d34e5cafa714?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/8654ca36-0995-46b9-a618-d34e5cafa714?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: @@ -104,7 +104,7 @@ interactions: msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/8654ca36-0995-46b9-a618-d34e5cafa714?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/8654ca36-0995-46b9-a618-d34e5cafa714?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: @@ -130,7 +130,7 @@ interactions: msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/8654ca36-0995-46b9-a618-d34e5cafa714?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/8654ca36-0995-46b9-a618-d34e5cafa714?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} headers: @@ -156,7 +156,7 @@ interactions: msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275?api-version=2018-10-01 response: body: {string: "{\r\n \"name\": \"pyexpressroute9edf1275\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275\"\ ,\r\n \"etag\": \"W/\\\"1176d85a-23a9-4ec0-8157-e66d45408679\\\"\",\r\n \ @@ -194,7 +194,7 @@ interactions: msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275?api-version=2018-10-01 response: body: {string: "{\r\n \"name\": \"pyexpressroute9edf1275\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275\"\ ,\r\n \"etag\": \"W/\\\"1176d85a-23a9-4ec0-8157-e66d45408679\\\"\",\r\n \ @@ -232,7 +232,7 @@ interactions: msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits?api-version=2018-10-01 response: body: {string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"pyexpressroute9edf1275\"\ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275\"\ @@ -272,7 +272,7 @@ interactions: msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRouteCircuits?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRouteCircuits?api-version=2018-10-01 response: body: {string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"pyexpressroute9edf1275\"\ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275\"\ @@ -312,7 +312,7 @@ interactions: msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275/stats?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275/stats?api-version=2018-10-01 response: body: {string: "{\r\n \"primaryBytesIn\": 0,\r\n \"primaryBytesOut\": 0,\r\n\ \ \"secondaryBytesIn\": 0,\r\n \"secondaryBytesOut\": 0\r\n}"} @@ -342,7 +342,7 @@ interactions: msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275/peerings/AzurePublicPeering?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275/peerings/AzurePublicPeering?api-version=2018-10-01 response: body: {string: "{\r\n \"name\": \"AzurePublicPeering\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275/peerings/AzurePublicPeering\"\ ,\r\n \"etag\": \"W/\\\"bcba0098-3521-41f7-83f3-b7967647936e\\\"\",\r\n \ @@ -352,7 +352,7 @@ interactions: secondaryPeerAddressPrefix\": \"192.168.2.0/30\",\r\n \"state\": \"Disabled\"\ ,\r\n \"vlanId\": 200,\r\n \"lastModifiedBy\": \"\"\r\n }\r\n}"} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/ae94f24d-c8ef-49b3-8904-d514e533a0a5?api-version=2018-08-01'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/ae94f24d-c8ef-49b3-8904-d514e533a0a5?api-version=2018-10-01'] cache-control: [no-cache] content-length: ['647'] content-type: [application/json; charset=utf-8] @@ -374,7 +374,7 @@ interactions: msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/ae94f24d-c8ef-49b3-8904-d514e533a0a5?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/ae94f24d-c8ef-49b3-8904-d514e533a0a5?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: @@ -400,7 +400,7 @@ interactions: msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/ae94f24d-c8ef-49b3-8904-d514e533a0a5?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/ae94f24d-c8ef-49b3-8904-d514e533a0a5?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: @@ -426,7 +426,7 @@ interactions: msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/ae94f24d-c8ef-49b3-8904-d514e533a0a5?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/ae94f24d-c8ef-49b3-8904-d514e533a0a5?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: @@ -452,7 +452,7 @@ interactions: msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/ae94f24d-c8ef-49b3-8904-d514e533a0a5?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/ae94f24d-c8ef-49b3-8904-d514e533a0a5?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} headers: @@ -478,7 +478,7 @@ interactions: msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275/peerings/AzurePublicPeering?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275/peerings/AzurePublicPeering?api-version=2018-10-01 response: body: {string: "{\r\n \"name\": \"AzurePublicPeering\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275/peerings/AzurePublicPeering\"\ ,\r\n \"etag\": \"W/\\\"a1d88954-a07c-4229-b9bb-06a57aed803d\\\"\",\r\n \ @@ -512,7 +512,7 @@ interactions: msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275/peerings/AzurePublicPeering?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275/peerings/AzurePublicPeering?api-version=2018-10-01 response: body: {string: "{\r\n \"name\": \"AzurePublicPeering\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275/peerings/AzurePublicPeering\"\ ,\r\n \"etag\": \"W/\\\"a1d88954-a07c-4229-b9bb-06a57aed803d\\\"\",\r\n \ @@ -546,7 +546,7 @@ interactions: msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275/peerings?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275/peerings?api-version=2018-10-01 response: body: {string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"AzurePublicPeering\"\ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275/peerings/AzurePublicPeering\"\ @@ -583,7 +583,7 @@ interactions: msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275/peerings/AzurePublicPeering/stats?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275/peerings/AzurePublicPeering/stats?api-version=2018-10-01 response: body: {string: "{\r\n \"primaryBytesIn\": 0,\r\n \"primaryBytesOut\": 0,\r\n\ \ \"secondaryBytesIn\": 0,\r\n \"secondaryBytesOut\": 0\r\n}"} @@ -611,7 +611,7 @@ interactions: msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275/authorizations/pyauth9edf1275?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275/authorizations/pyauth9edf1275?api-version=2018-10-01 response: body: {string: "{\r\n \"name\": \"pyauth9edf1275\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275/authorizations/pyauth9edf1275\"\ ,\r\n \"etag\": \"W/\\\"4d1b174e-fdf9-4278-ba2c-348d65396d5d\\\"\",\r\n \ @@ -619,7 +619,7 @@ interactions: authorizationKey\": \"0b6299d1-471b-4a53-ae3a-4eeb523afe1d\",\r\n \"authorizationUseStatus\"\ : \"Available\"\r\n }\r\n}"} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/a6995436-4e09-46aa-ae7b-cddc6cc19116?api-version=2018-08-01'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/a6995436-4e09-46aa-ae7b-cddc6cc19116?api-version=2018-10-01'] cache-control: [no-cache] content-length: ['494'] content-type: [application/json; charset=utf-8] @@ -641,7 +641,7 @@ interactions: msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/a6995436-4e09-46aa-ae7b-cddc6cc19116?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/a6995436-4e09-46aa-ae7b-cddc6cc19116?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} headers: @@ -667,7 +667,7 @@ interactions: msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275/authorizations/pyauth9edf1275?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275/authorizations/pyauth9edf1275?api-version=2018-10-01 response: body: {string: "{\r\n \"name\": \"pyauth9edf1275\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275/authorizations/pyauth9edf1275\"\ ,\r\n \"etag\": \"W/\\\"e0eb9954-486c-4b4d-a8d5-e778ad032634\\\"\",\r\n \ @@ -697,7 +697,7 @@ interactions: msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275/authorizations/pyauth9edf1275?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275/authorizations/pyauth9edf1275?api-version=2018-10-01 response: body: {string: "{\r\n \"name\": \"pyauth9edf1275\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275/authorizations/pyauth9edf1275\"\ ,\r\n \"etag\": \"W/\\\"e0eb9954-486c-4b4d-a8d5-e778ad032634\\\"\",\r\n \ @@ -727,7 +727,7 @@ interactions: msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275/authorizations?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275/authorizations?api-version=2018-10-01 response: body: {string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"pyauth9edf1275\"\ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275/authorizations/pyauth9edf1275\"\ @@ -760,16 +760,16 @@ interactions: msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275/authorizations/pyauth9edf1275?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275/authorizations/pyauth9edf1275?api-version=2018-10-01 response: body: {string: ''} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/d6c026c3-a5d4-4048-b8b4-bc33320a024f?api-version=2018-08-01'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/d6c026c3-a5d4-4048-b8b4-bc33320a024f?api-version=2018-10-01'] cache-control: [no-cache] content-length: ['0'] date: ['Fri, 15 Sep 2017 23:22:30 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/d6c026c3-a5d4-4048-b8b4-bc33320a024f?api-version=2018-08-01'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/d6c026c3-a5d4-4048-b8b4-bc33320a024f?api-version=2018-10-01'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -786,7 +786,7 @@ interactions: msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/d6c026c3-a5d4-4048-b8b4-bc33320a024f?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/d6c026c3-a5d4-4048-b8b4-bc33320a024f?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: @@ -812,7 +812,7 @@ interactions: msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/d6c026c3-a5d4-4048-b8b4-bc33320a024f?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/d6c026c3-a5d4-4048-b8b4-bc33320a024f?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} headers: @@ -839,16 +839,16 @@ interactions: msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275/peerings/AzurePublicPeering?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275/peerings/AzurePublicPeering?api-version=2018-10-01 response: body: {string: ''} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/734817e0-55ca-4c38-81eb-3a1cb76b07c3?api-version=2018-08-01'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/734817e0-55ca-4c38-81eb-3a1cb76b07c3?api-version=2018-10-01'] cache-control: [no-cache] content-length: ['0'] date: ['Fri, 15 Sep 2017 23:22:52 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/734817e0-55ca-4c38-81eb-3a1cb76b07c3?api-version=2018-08-01'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/734817e0-55ca-4c38-81eb-3a1cb76b07c3?api-version=2018-10-01'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -865,7 +865,7 @@ interactions: msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/734817e0-55ca-4c38-81eb-3a1cb76b07c3?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/734817e0-55ca-4c38-81eb-3a1cb76b07c3?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: @@ -891,7 +891,7 @@ interactions: msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/734817e0-55ca-4c38-81eb-3a1cb76b07c3?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/734817e0-55ca-4c38-81eb-3a1cb76b07c3?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: @@ -917,7 +917,7 @@ interactions: msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/734817e0-55ca-4c38-81eb-3a1cb76b07c3?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/734817e0-55ca-4c38-81eb-3a1cb76b07c3?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: @@ -943,7 +943,7 @@ interactions: msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/734817e0-55ca-4c38-81eb-3a1cb76b07c3?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/734817e0-55ca-4c38-81eb-3a1cb76b07c3?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} headers: @@ -970,16 +970,16 @@ interactions: msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_express_route_circuit9edf1275/providers/Microsoft.Network/expressRouteCircuits/pyexpressroute9edf1275?api-version=2018-10-01 response: body: {string: ''} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/c1a50917-5e2c-4512-b9ee-b90c331142ec?api-version=2018-08-01'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/c1a50917-5e2c-4512-b9ee-b90c331142ec?api-version=2018-10-01'] cache-control: [no-cache] content-length: ['0'] date: ['Fri, 15 Sep 2017 23:23:34 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/c1a50917-5e2c-4512-b9ee-b90c331142ec?api-version=2018-08-01'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/c1a50917-5e2c-4512-b9ee-b90c331142ec?api-version=2018-10-01'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -996,7 +996,7 @@ interactions: msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/c1a50917-5e2c-4512-b9ee-b90c331142ec?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/c1a50917-5e2c-4512-b9ee-b90c331142ec?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: @@ -1022,7 +1022,7 @@ interactions: msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/c1a50917-5e2c-4512-b9ee-b90c331142ec?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/c1a50917-5e2c-4512-b9ee-b90c331142ec?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: @@ -1048,7 +1048,7 @@ interactions: msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/c1a50917-5e2c-4512-b9ee-b90c331142ec?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/c1a50917-5e2c-4512-b9ee-b90c331142ec?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: @@ -1074,7 +1074,7 @@ interactions: msrest_azure/0.4.11 networkmanagementclient/1.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/c1a50917-5e2c-4512-b9ee-b90c331142ec?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/c1a50917-5e2c-4512-b9ee-b90c331142ec?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} headers: diff --git a/azure-mgmt-network/tests/recordings/test_mgmt_network.test_express_route_service_providers.yaml b/azure-mgmt-network/tests/recordings/test_mgmt_network.test_express_route_service_providers.yaml index 9efa1307ccfd..22b993c5d863 100644 --- a/azure-mgmt-network/tests/recordings/test_mgmt_network.test_express_route_service_providers.yaml +++ b/azure-mgmt-network/tests/recordings/test_mgmt_network.test_express_route_service_providers.yaml @@ -5,11 +5,11 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRouteServiceProviders?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/expressRouteServiceProviders?api-version=2018-10-01 response: body: {string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"ARM Test Provider\"\ ,\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\"\ @@ -81,6 +81,24 @@ interactions: \ \"offerName\": \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n\ \ },\r\n {\r\n \"offerName\": \"10Gbps\",\r\n\ \ \"valueInMbps\": 10000\r\n }\r\n ]\r\n }\r\ + \n },\r\n {\r\n \"name\": \"Cologix Test\",\r\n \"id\": \"\ + /subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\"\ + ,\r\n \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\ + \n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"peeringLocations\": [\r\n \"Denver Test\"\r\n \ + \ ],\r\n \"bandwidthsOffered\": [\r\n {\r\n \ + \ \"offerName\": \"50Mbps\",\r\n \"valueInMbps\": 50\r\n \ + \ },\r\n {\r\n \"offerName\": \"100Mbps\",\r\n \ + \ \"valueInMbps\": 100\r\n },\r\n {\r\n \ + \ \"offerName\": \"200Mbps\",\r\n \"valueInMbps\": 200\r\n \ + \ },\r\n {\r\n \"offerName\": \"500Mbps\",\r\n\ + \ \"valueInMbps\": 500\r\n },\r\n {\r\n \ + \ \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": 1000\r\n\ + \ },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n\ + \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \ + \ \"offerName\": \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n\ + \ },\r\n {\r\n \"offerName\": \"10Gbps\",\r\n\ + \ \"valueInMbps\": 10000\r\n }\r\n ]\r\n }\r\ \n },\r\n {\r\n \"name\": \"Console Test\",\r\n \"id\": \"\ /subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\"\ ,\r\n \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\ @@ -208,7 +226,24 @@ interactions: \ \"valueInMbps\": 5000\r\n },\r\n {\r\n \ \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\ \n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\"\ - : \"NTT Test\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\"\ + : \"Megaport Test\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\"\ + ,\r\n \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\ + \n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"peeringLocations\": [\r\n \"Denver Test\"\r\n \ + \ ],\r\n \"bandwidthsOffered\": [\r\n {\r\n \ + \ \"offerName\": \"50Mbps\",\r\n \"valueInMbps\": 50\r\n \ + \ },\r\n {\r\n \"offerName\": \"100Mbps\",\r\n \ + \ \"valueInMbps\": 100\r\n },\r\n {\r\n \ + \ \"offerName\": \"200Mbps\",\r\n \"valueInMbps\": 200\r\n \ + \ },\r\n {\r\n \"offerName\": \"500Mbps\",\r\n\ + \ \"valueInMbps\": 500\r\n },\r\n {\r\n \ + \ \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": 1000\r\n\ + \ },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n\ + \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \ + \ \"offerName\": \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n\ + \ },\r\n {\r\n \"offerName\": \"10Gbps\",\r\n\ + \ \"valueInMbps\": 10000\r\n }\r\n ]\r\n }\r\ + \n },\r\n {\r\n \"name\": \"NTT Test\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\"\ ,\r\n \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\ \n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ ,\r\n \"peeringLocations\": [\r\n \"Area51\"\r\n ],\r\ @@ -225,7 +260,24 @@ interactions: \ \"valueInMbps\": 5000\r\n },\r\n {\r\n \ \ \"offerName\": \"10Gbps\",\r\n \"valueInMbps\": 10000\r\ \n }\r\n ]\r\n }\r\n },\r\n {\r\n \"name\"\ - : \"PCCW Test\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\"\ + : \"Packet Test\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\"\ + ,\r\n \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\ + \n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ + ,\r\n \"peeringLocations\": [\r\n \"Denver Test\"\r\n \ + \ ],\r\n \"bandwidthsOffered\": [\r\n {\r\n \ + \ \"offerName\": \"50Mbps\",\r\n \"valueInMbps\": 50\r\n \ + \ },\r\n {\r\n \"offerName\": \"100Mbps\",\r\n \ + \ \"valueInMbps\": 100\r\n },\r\n {\r\n \ + \ \"offerName\": \"200Mbps\",\r\n \"valueInMbps\": 200\r\n \ + \ },\r\n {\r\n \"offerName\": \"500Mbps\",\r\n\ + \ \"valueInMbps\": 500\r\n },\r\n {\r\n \ + \ \"offerName\": \"1Gbps\",\r\n \"valueInMbps\": 1000\r\n\ + \ },\r\n {\r\n \"offerName\": \"2Gbps\",\r\n\ + \ \"valueInMbps\": 2000\r\n },\r\n {\r\n \ + \ \"offerName\": \"5Gbps\",\r\n \"valueInMbps\": 5000\r\n\ + \ },\r\n {\r\n \"offerName\": \"10Gbps\",\r\n\ + \ \"valueInMbps\": 10000\r\n }\r\n ]\r\n }\r\ + \n },\r\n {\r\n \"name\": \"PCCW Test\",\r\n \"id\": \"/subscriptions//resourceGroups//providers/Microsoft.Network/expressRouteServiceProviders/\"\ ,\r\n \"type\": \"Microsoft.Network/expressRouteServiceProviders\",\r\ \n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ ,\r\n \"peeringLocations\": [\r\n \"Area51\"\r\n ],\r\ @@ -315,9 +367,9 @@ interactions: \n }\r\n ]\r\n}"} headers: cache-control: [no-cache] - content-length: ['20273'] + content-length: ['23771'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:26:26 GMT'] + date: ['Tue, 27 Nov 2018 20:15:29 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] diff --git a/azure-mgmt-network/tests/recordings/test_mgmt_network.test_load_balancers.yaml b/azure-mgmt-network/tests/recordings/test_mgmt_network.test_load_balancers.yaml index 4db76430d8f1..e4cdf0a9da00 100644 --- a/azure-mgmt-network/tests/recordings/test_mgmt_network.test_load_balancers.yaml +++ b/azure-mgmt-network/tests/recordings/test_mgmt_network.test_load_balancers.yaml @@ -8,26 +8,26 @@ interactions: Connection: [keep-alive] Content-Length: ['103'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/publicIPAddresses/pyipname239e0f35?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/publicIPAddresses/pyipname239e0f35?api-version=2018-10-01 response: body: {string: "{\r\n \"name\": \"pyipname239e0f35\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/publicIPAddresses/pyipname239e0f35\"\ - ,\r\n \"etag\": \"W/\\\"62197b1d-c524-40ce-af7a-12b785c37375\\\"\",\r\n \ + ,\r\n \"etag\": \"W/\\\"017b5202-04f6-4cbf-a63e-b8dd6ae6571e\\\"\",\r\n \ \ \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\"\ - : \"Updating\",\r\n \"resourceGuid\": \"59392ae5-6a10-4bb1-bef8-f0edd70cc100\"\ + : \"Updating\",\r\n \"resourceGuid\": \"d3b03ea6-b58d-4f06-a5ce-c647b2f42521\"\ ,\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n \"publicIPAllocationMethod\"\ : \"Static\",\r\n \"idleTimeoutInMinutes\": 4,\r\n \"ipTags\": []\r\n\ \ },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n \"sku\"\ : {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Regional\"\r\n }\r\n}"} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e092b5f9-5c12-460b-be04-fa51e0e78540?api-version=2018-08-01'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/361d1dd0-3b0e-45f0-819a-fa59b23cc85f?api-version=2018-10-01'] cache-control: [no-cache] content-length: ['674'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:26:30 GMT'] + date: ['Tue, 27 Nov 2018 20:15:33 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -41,17 +41,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e092b5f9-5c12-460b-be04-fa51e0e78540?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/361d1dd0-3b0e-45f0-819a-fa59b23cc85f?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} headers: cache-control: [no-cache] content-length: ['29'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:26:34 GMT'] + date: ['Tue, 27 Nov 2018 20:15:35 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -66,26 +66,26 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/publicIPAddresses/pyipname239e0f35?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/publicIPAddresses/pyipname239e0f35?api-version=2018-10-01 response: body: {string: "{\r\n \"name\": \"pyipname239e0f35\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/publicIPAddresses/pyipname239e0f35\"\ - ,\r\n \"etag\": \"W/\\\"85d4d43f-4844-449e-b864-3b8f43846ca7\\\"\",\r\n \ + ,\r\n \"etag\": \"W/\\\"77238b2e-f4ee-46e3-b0b6-46a5b345d2b2\\\"\",\r\n \ \ \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\"\ - : \"Succeeded\",\r\n \"resourceGuid\": \"59392ae5-6a10-4bb1-bef8-f0edd70cc100\"\ - ,\r\n \"ipAddress\": \"40.78.43.113\",\r\n \"publicIPAddressVersion\"\ + : \"Succeeded\",\r\n \"resourceGuid\": \"d3b03ea6-b58d-4f06-a5ce-c647b2f42521\"\ + ,\r\n \"ipAddress\": \"137.135.19.98\",\r\n \"publicIPAddressVersion\"\ : \"IPv4\",\r\n \"publicIPAllocationMethod\": \"Static\",\r\n \"idleTimeoutInMinutes\"\ : 4,\r\n \"ipTags\": []\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\"\ ,\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Regional\"\ \r\n }\r\n}"} headers: cache-control: [no-cache] - content-length: ['709'] + content-length: ['710'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:26:35 GMT'] - etag: [W/"85d4d43f-4844-449e-b864-3b8f43846ca7"] + date: ['Tue, 27 Nov 2018 20:15:36 GMT'] + etag: [W/"77238b2e-f4ee-46e3-b0b6-46a5b345d2b2"] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -118,20 +118,20 @@ interactions: Connection: [keep-alive] Content-Length: ['2374'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35?api-version=2018-10-01 response: body: {string: "{\r\n \"name\": \"pylbname239e0f35\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35\"\ - ,\r\n \"etag\": \"W/\\\"9c9a91ab-bc64-4b93-abfb-e59bb0c74fff\\\"\",\r\n \ + ,\r\n \"etag\": \"W/\\\"6912f41d-d6e4-417d-9da0-c8cd59945071\\\"\",\r\n \ \ \"type\": \"Microsoft.Network/loadBalancers\",\r\n \"location\": \"westus\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n\ - \ \"resourceGuid\": \"1e5801cb-a086-4894-8e2c-34f886392887\",\r\n \"\ + \ \"resourceGuid\": \"5b03515f-6f36-4cb4-82b1-90396e2bc98e\",\r\n \"\ frontendIPConfigurations\": [\r\n {\r\n \"name\": \"pyfipname239e0f35\"\ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/frontendIPConfigurations/pyfipname239e0f35\"\ - ,\r\n \"etag\": \"W/\\\"9c9a91ab-bc64-4b93-abfb-e59bb0c74fff\\\"\"\ + ,\r\n \"etag\": \"W/\\\"6912f41d-d6e4-417d-9da0-c8cd59945071\\\"\"\ ,\r\n \"type\": \"Microsoft.Network/loadBalancers/frontendIPConfigurations\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ ,\r\n \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"\ @@ -144,14 +144,14 @@ interactions: \r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \ \ \"backendAddressPools\": [\r\n {\r\n \"name\": \"pyapname239e0f35\"\ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/backendAddressPools/pyapname239e0f35\"\ - ,\r\n \"etag\": \"W/\\\"9c9a91ab-bc64-4b93-abfb-e59bb0c74fff\\\"\"\ + ,\r\n \"etag\": \"W/\\\"6912f41d-d6e4-417d-9da0-c8cd59945071\\\"\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ ,\r\n \"loadBalancingRules\": [\r\n {\r\n \ \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/loadBalancingRules/azure-sample-lb-rule\"\ \r\n }\r\n ]\r\n },\r\n \"type\": \"Microsoft.Network/loadBalancers/backendAddressPools\"\ \r\n }\r\n ],\r\n \"loadBalancingRules\": [\r\n {\r\n \ \ \"name\": \"azure-sample-lb-rule\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/loadBalancingRules/azure-sample-lb-rule\"\ - ,\r\n \"etag\": \"W/\\\"9c9a91ab-bc64-4b93-abfb-e59bb0c74fff\\\"\"\ + ,\r\n \"etag\": \"W/\\\"6912f41d-d6e4-417d-9da0-c8cd59945071\\\"\"\ ,\r\n \"type\": \"Microsoft.Network/loadBalancers/loadBalancingRules\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ ,\r\n \"frontendIPConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/frontendIPConfigurations/pyfipname239e0f35\"\ @@ -165,7 +165,7 @@ interactions: \r\n }\r\n }\r\n }\r\n ],\r\n \"probes\": [\r\n\ \ {\r\n \"name\": \"pyprobename239e0f35\",\r\n \"id\":\ \ \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/probes/pyprobename239e0f35\"\ - ,\r\n \"etag\": \"W/\\\"9c9a91ab-bc64-4b93-abfb-e59bb0c74fff\\\"\"\ + ,\r\n \"etag\": \"W/\\\"6912f41d-d6e4-417d-9da0-c8cd59945071\\\"\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ ,\r\n \"protocol\": \"Http\",\r\n \"port\": 80,\r\n \ \ \"requestPath\": \"healthprobe.aspx\",\r\n \"intervalInSeconds\"\ @@ -174,7 +174,7 @@ interactions: \r\n }\r\n ]\r\n },\r\n \"type\": \"Microsoft.Network/loadBalancers/probes\"\ \r\n }\r\n ],\r\n \"inboundNatRules\": [\r\n {\r\n \ \ \"name\": \"azure-sample-netrule1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/inboundNatRules/azure-sample-netrule1\"\ - ,\r\n \"etag\": \"W/\\\"9c9a91ab-bc64-4b93-abfb-e59bb0c74fff\\\"\"\ + ,\r\n \"etag\": \"W/\\\"6912f41d-d6e4-417d-9da0-c8cd59945071\\\"\"\ ,\r\n \"type\": \"Microsoft.Network/loadBalancers/inboundNatRules\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ ,\r\n \"frontendIPConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/frontendIPConfigurations/pyfipname239e0f35\"\ @@ -184,7 +184,7 @@ interactions: : false,\r\n \"enableTcpReset\": false\r\n }\r\n },\r\ \n {\r\n \"name\": \"azure-sample-netrule2\",\r\n \"id\"\ : \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/inboundNatRules/azure-sample-netrule2\"\ - ,\r\n \"etag\": \"W/\\\"9c9a91ab-bc64-4b93-abfb-e59bb0c74fff\\\"\"\ + ,\r\n \"etag\": \"W/\\\"6912f41d-d6e4-417d-9da0-c8cd59945071\\\"\"\ ,\r\n \"type\": \"Microsoft.Network/loadBalancers/inboundNatRules\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ ,\r\n \"frontendIPConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/frontendIPConfigurations/pyfipname239e0f35\"\ @@ -196,11 +196,11 @@ interactions: \ },\r\n \"sku\": {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Regional\"\ \r\n }\r\n}"} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/7240a848-b54a-452f-8919-16eb85b65bf0?api-version=2018-08-01'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/bdff174e-ade0-4e12-abd1-ce650fbeb518?api-version=2018-10-01'] cache-control: [no-cache] content-length: ['7945'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:26:36 GMT'] + date: ['Tue, 27 Nov 2018 20:15:37 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -214,17 +214,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/7240a848-b54a-452f-8919-16eb85b65bf0?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/bdff174e-ade0-4e12-abd1-ce650fbeb518?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} headers: cache-control: [no-cache] content-length: ['29'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:27:07 GMT'] + date: ['Tue, 27 Nov 2018 20:16:08 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -239,19 +239,19 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35?api-version=2018-10-01 response: body: {string: "{\r\n \"name\": \"pylbname239e0f35\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35\"\ - ,\r\n \"etag\": \"W/\\\"9c9a91ab-bc64-4b93-abfb-e59bb0c74fff\\\"\",\r\n \ + ,\r\n \"etag\": \"W/\\\"6912f41d-d6e4-417d-9da0-c8cd59945071\\\"\",\r\n \ \ \"type\": \"Microsoft.Network/loadBalancers\",\r\n \"location\": \"westus\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n\ - \ \"resourceGuid\": \"1e5801cb-a086-4894-8e2c-34f886392887\",\r\n \"\ + \ \"resourceGuid\": \"5b03515f-6f36-4cb4-82b1-90396e2bc98e\",\r\n \"\ frontendIPConfigurations\": [\r\n {\r\n \"name\": \"pyfipname239e0f35\"\ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/frontendIPConfigurations/pyfipname239e0f35\"\ - ,\r\n \"etag\": \"W/\\\"9c9a91ab-bc64-4b93-abfb-e59bb0c74fff\\\"\"\ + ,\r\n \"etag\": \"W/\\\"6912f41d-d6e4-417d-9da0-c8cd59945071\\\"\"\ ,\r\n \"type\": \"Microsoft.Network/loadBalancers/frontendIPConfigurations\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ ,\r\n \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"\ @@ -264,14 +264,14 @@ interactions: \r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \ \ \"backendAddressPools\": [\r\n {\r\n \"name\": \"pyapname239e0f35\"\ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/backendAddressPools/pyapname239e0f35\"\ - ,\r\n \"etag\": \"W/\\\"9c9a91ab-bc64-4b93-abfb-e59bb0c74fff\\\"\"\ + ,\r\n \"etag\": \"W/\\\"6912f41d-d6e4-417d-9da0-c8cd59945071\\\"\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ ,\r\n \"loadBalancingRules\": [\r\n {\r\n \ \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/loadBalancingRules/azure-sample-lb-rule\"\ \r\n }\r\n ]\r\n },\r\n \"type\": \"Microsoft.Network/loadBalancers/backendAddressPools\"\ \r\n }\r\n ],\r\n \"loadBalancingRules\": [\r\n {\r\n \ \ \"name\": \"azure-sample-lb-rule\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/loadBalancingRules/azure-sample-lb-rule\"\ - ,\r\n \"etag\": \"W/\\\"9c9a91ab-bc64-4b93-abfb-e59bb0c74fff\\\"\"\ + ,\r\n \"etag\": \"W/\\\"6912f41d-d6e4-417d-9da0-c8cd59945071\\\"\"\ ,\r\n \"type\": \"Microsoft.Network/loadBalancers/loadBalancingRules\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ ,\r\n \"frontendIPConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/frontendIPConfigurations/pyfipname239e0f35\"\ @@ -285,7 +285,7 @@ interactions: \r\n }\r\n }\r\n }\r\n ],\r\n \"probes\": [\r\n\ \ {\r\n \"name\": \"pyprobename239e0f35\",\r\n \"id\":\ \ \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/probes/pyprobename239e0f35\"\ - ,\r\n \"etag\": \"W/\\\"9c9a91ab-bc64-4b93-abfb-e59bb0c74fff\\\"\"\ + ,\r\n \"etag\": \"W/\\\"6912f41d-d6e4-417d-9da0-c8cd59945071\\\"\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ ,\r\n \"protocol\": \"Http\",\r\n \"port\": 80,\r\n \ \ \"requestPath\": \"healthprobe.aspx\",\r\n \"intervalInSeconds\"\ @@ -294,7 +294,7 @@ interactions: \r\n }\r\n ]\r\n },\r\n \"type\": \"Microsoft.Network/loadBalancers/probes\"\ \r\n }\r\n ],\r\n \"inboundNatRules\": [\r\n {\r\n \ \ \"name\": \"azure-sample-netrule1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/inboundNatRules/azure-sample-netrule1\"\ - ,\r\n \"etag\": \"W/\\\"9c9a91ab-bc64-4b93-abfb-e59bb0c74fff\\\"\"\ + ,\r\n \"etag\": \"W/\\\"6912f41d-d6e4-417d-9da0-c8cd59945071\\\"\"\ ,\r\n \"type\": \"Microsoft.Network/loadBalancers/inboundNatRules\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ ,\r\n \"frontendIPConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/frontendIPConfigurations/pyfipname239e0f35\"\ @@ -304,7 +304,7 @@ interactions: : false,\r\n \"enableTcpReset\": false\r\n }\r\n },\r\ \n {\r\n \"name\": \"azure-sample-netrule2\",\r\n \"id\"\ : \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/inboundNatRules/azure-sample-netrule2\"\ - ,\r\n \"etag\": \"W/\\\"9c9a91ab-bc64-4b93-abfb-e59bb0c74fff\\\"\"\ + ,\r\n \"etag\": \"W/\\\"6912f41d-d6e4-417d-9da0-c8cd59945071\\\"\"\ ,\r\n \"type\": \"Microsoft.Network/loadBalancers/inboundNatRules\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ ,\r\n \"frontendIPConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/frontendIPConfigurations/pyfipname239e0f35\"\ @@ -319,8 +319,8 @@ interactions: cache-control: [no-cache] content-length: ['7945'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:27:08 GMT'] - etag: [W/"9c9a91ab-bc64-4b93-abfb-e59bb0c74fff"] + date: ['Tue, 27 Nov 2018 20:16:08 GMT'] + etag: [W/"6912f41d-d6e4-417d-9da0-c8cd59945071"] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -335,20 +335,20 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35?api-version=2018-10-01 response: body: {string: "{\r\n \"name\": \"pylbname239e0f35\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35\"\ - ,\r\n \"etag\": \"W/\\\"9c9a91ab-bc64-4b93-abfb-e59bb0c74fff\\\"\",\r\n \ + ,\r\n \"etag\": \"W/\\\"6912f41d-d6e4-417d-9da0-c8cd59945071\\\"\",\r\n \ \ \"type\": \"Microsoft.Network/loadBalancers\",\r\n \"location\": \"westus\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n\ - \ \"resourceGuid\": \"1e5801cb-a086-4894-8e2c-34f886392887\",\r\n \"\ + \ \"resourceGuid\": \"5b03515f-6f36-4cb4-82b1-90396e2bc98e\",\r\n \"\ frontendIPConfigurations\": [\r\n {\r\n \"name\": \"pyfipname239e0f35\"\ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/frontendIPConfigurations/pyfipname239e0f35\"\ - ,\r\n \"etag\": \"W/\\\"9c9a91ab-bc64-4b93-abfb-e59bb0c74fff\\\"\"\ + ,\r\n \"etag\": \"W/\\\"6912f41d-d6e4-417d-9da0-c8cd59945071\\\"\"\ ,\r\n \"type\": \"Microsoft.Network/loadBalancers/frontendIPConfigurations\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ ,\r\n \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"\ @@ -361,14 +361,14 @@ interactions: \r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \ \ \"backendAddressPools\": [\r\n {\r\n \"name\": \"pyapname239e0f35\"\ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/backendAddressPools/pyapname239e0f35\"\ - ,\r\n \"etag\": \"W/\\\"9c9a91ab-bc64-4b93-abfb-e59bb0c74fff\\\"\"\ + ,\r\n \"etag\": \"W/\\\"6912f41d-d6e4-417d-9da0-c8cd59945071\\\"\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ ,\r\n \"loadBalancingRules\": [\r\n {\r\n \ \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/loadBalancingRules/azure-sample-lb-rule\"\ \r\n }\r\n ]\r\n },\r\n \"type\": \"Microsoft.Network/loadBalancers/backendAddressPools\"\ \r\n }\r\n ],\r\n \"loadBalancingRules\": [\r\n {\r\n \ \ \"name\": \"azure-sample-lb-rule\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/loadBalancingRules/azure-sample-lb-rule\"\ - ,\r\n \"etag\": \"W/\\\"9c9a91ab-bc64-4b93-abfb-e59bb0c74fff\\\"\"\ + ,\r\n \"etag\": \"W/\\\"6912f41d-d6e4-417d-9da0-c8cd59945071\\\"\"\ ,\r\n \"type\": \"Microsoft.Network/loadBalancers/loadBalancingRules\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ ,\r\n \"frontendIPConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/frontendIPConfigurations/pyfipname239e0f35\"\ @@ -382,7 +382,7 @@ interactions: \r\n }\r\n }\r\n }\r\n ],\r\n \"probes\": [\r\n\ \ {\r\n \"name\": \"pyprobename239e0f35\",\r\n \"id\":\ \ \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/probes/pyprobename239e0f35\"\ - ,\r\n \"etag\": \"W/\\\"9c9a91ab-bc64-4b93-abfb-e59bb0c74fff\\\"\"\ + ,\r\n \"etag\": \"W/\\\"6912f41d-d6e4-417d-9da0-c8cd59945071\\\"\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ ,\r\n \"protocol\": \"Http\",\r\n \"port\": 80,\r\n \ \ \"requestPath\": \"healthprobe.aspx\",\r\n \"intervalInSeconds\"\ @@ -391,7 +391,7 @@ interactions: \r\n }\r\n ]\r\n },\r\n \"type\": \"Microsoft.Network/loadBalancers/probes\"\ \r\n }\r\n ],\r\n \"inboundNatRules\": [\r\n {\r\n \ \ \"name\": \"azure-sample-netrule1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/inboundNatRules/azure-sample-netrule1\"\ - ,\r\n \"etag\": \"W/\\\"9c9a91ab-bc64-4b93-abfb-e59bb0c74fff\\\"\"\ + ,\r\n \"etag\": \"W/\\\"6912f41d-d6e4-417d-9da0-c8cd59945071\\\"\"\ ,\r\n \"type\": \"Microsoft.Network/loadBalancers/inboundNatRules\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ ,\r\n \"frontendIPConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/frontendIPConfigurations/pyfipname239e0f35\"\ @@ -401,7 +401,7 @@ interactions: : false,\r\n \"enableTcpReset\": false\r\n }\r\n },\r\ \n {\r\n \"name\": \"azure-sample-netrule2\",\r\n \"id\"\ : \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/inboundNatRules/azure-sample-netrule2\"\ - ,\r\n \"etag\": \"W/\\\"9c9a91ab-bc64-4b93-abfb-e59bb0c74fff\\\"\"\ + ,\r\n \"etag\": \"W/\\\"6912f41d-d6e4-417d-9da0-c8cd59945071\\\"\"\ ,\r\n \"type\": \"Microsoft.Network/loadBalancers/inboundNatRules\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ ,\r\n \"frontendIPConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/frontendIPConfigurations/pyfipname239e0f35\"\ @@ -416,8 +416,8 @@ interactions: cache-control: [no-cache] content-length: ['7945'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:27:08 GMT'] - etag: [W/"9c9a91ab-bc64-4b93-abfb-e59bb0c74fff"] + date: ['Tue, 27 Nov 2018 20:16:09 GMT'] + etag: [W/"6912f41d-d6e4-417d-9da0-c8cd59945071"] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -432,21 +432,21 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/loadBalancers?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/loadBalancers?api-version=2018-10-01 response: body: {string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"pylbname239e0f35\"\ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35\"\ - ,\r\n \"etag\": \"W/\\\"9c9a91ab-bc64-4b93-abfb-e59bb0c74fff\\\"\",\r\ + ,\r\n \"etag\": \"W/\\\"6912f41d-d6e4-417d-9da0-c8cd59945071\\\"\",\r\ \n \"type\": \"Microsoft.Network/loadBalancers\",\r\n \"location\"\ : \"westus\",\r\n \"properties\": {\r\n \"provisioningState\"\ - : \"Succeeded\",\r\n \"resourceGuid\": \"1e5801cb-a086-4894-8e2c-34f886392887\"\ + : \"Succeeded\",\r\n \"resourceGuid\": \"5b03515f-6f36-4cb4-82b1-90396e2bc98e\"\ ,\r\n \"frontendIPConfigurations\": [\r\n {\r\n \ \ \"name\": \"pyfipname239e0f35\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/frontendIPConfigurations/pyfipname239e0f35\"\ - ,\r\n \"etag\": \"W/\\\"9c9a91ab-bc64-4b93-abfb-e59bb0c74fff\\\"\ + ,\r\n \"etag\": \"W/\\\"6912f41d-d6e4-417d-9da0-c8cd59945071\\\"\ \",\r\n \"type\": \"Microsoft.Network/loadBalancers/frontendIPConfigurations\"\ ,\r\n \"properties\": {\r\n \"provisioningState\"\ : \"Succeeded\",\r\n \"privateIPAllocationMethod\": \"Dynamic\"\ @@ -460,7 +460,7 @@ interactions: \r\n }\r\n ]\r\n }\r\n }\r\ \n ],\r\n \"backendAddressPools\": [\r\n {\r\n \ \ \"name\": \"pyapname239e0f35\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/backendAddressPools/pyapname239e0f35\"\ - ,\r\n \"etag\": \"W/\\\"9c9a91ab-bc64-4b93-abfb-e59bb0c74fff\\\"\ + ,\r\n \"etag\": \"W/\\\"6912f41d-d6e4-417d-9da0-c8cd59945071\\\"\ \",\r\n \"properties\": {\r\n \"provisioningState\"\ : \"Succeeded\",\r\n \"loadBalancingRules\": [\r\n \ \ {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/loadBalancingRules/azure-sample-lb-rule\"\ @@ -469,7 +469,7 @@ interactions: \ }\r\n ],\r\n \"loadBalancingRules\": [\r\n \ \ {\r\n \"name\": \"azure-sample-lb-rule\",\r\n \"\ id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/loadBalancingRules/azure-sample-lb-rule\"\ - ,\r\n \"etag\": \"W/\\\"9c9a91ab-bc64-4b93-abfb-e59bb0c74fff\\\"\ + ,\r\n \"etag\": \"W/\\\"6912f41d-d6e4-417d-9da0-c8cd59945071\\\"\ \",\r\n \"type\": \"Microsoft.Network/loadBalancers/loadBalancingRules\"\ ,\r\n \"properties\": {\r\n \"provisioningState\"\ : \"Succeeded\",\r\n \"frontendIPConfiguration\": {\r\n \ @@ -486,7 +486,7 @@ interactions: \r\n }\r\n }\r\n }\r\n ],\r\n \ \ \"probes\": [\r\n {\r\n \"name\": \"pyprobename239e0f35\"\ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/probes/pyprobename239e0f35\"\ - ,\r\n \"etag\": \"W/\\\"9c9a91ab-bc64-4b93-abfb-e59bb0c74fff\\\"\ + ,\r\n \"etag\": \"W/\\\"6912f41d-d6e4-417d-9da0-c8cd59945071\\\"\ \",\r\n \"properties\": {\r\n \"provisioningState\"\ : \"Succeeded\",\r\n \"protocol\": \"Http\",\r\n \ \ \"port\": 80,\r\n \"requestPath\": \"healthprobe.aspx\",\r\ @@ -497,7 +497,7 @@ interactions: \ \"type\": \"Microsoft.Network/loadBalancers/probes\"\r\n }\r\n\ \ ],\r\n \"inboundNatRules\": [\r\n {\r\n \ \ \"name\": \"azure-sample-netrule1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/inboundNatRules/azure-sample-netrule1\"\ - ,\r\n \"etag\": \"W/\\\"9c9a91ab-bc64-4b93-abfb-e59bb0c74fff\\\"\ + ,\r\n \"etag\": \"W/\\\"6912f41d-d6e4-417d-9da0-c8cd59945071\\\"\ \",\r\n \"type\": \"Microsoft.Network/loadBalancers/inboundNatRules\"\ ,\r\n \"properties\": {\r\n \"provisioningState\"\ : \"Succeeded\",\r\n \"frontendIPConfiguration\": {\r\n \ @@ -509,7 +509,7 @@ interactions: \n \"enableTcpReset\": false\r\n }\r\n },\r\ \n {\r\n \"name\": \"azure-sample-netrule2\",\r\n \ \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/inboundNatRules/azure-sample-netrule2\"\ - ,\r\n \"etag\": \"W/\\\"9c9a91ab-bc64-4b93-abfb-e59bb0c74fff\\\"\ + ,\r\n \"etag\": \"W/\\\"6912f41d-d6e4-417d-9da0-c8cd59945071\\\"\ \",\r\n \"type\": \"Microsoft.Network/loadBalancers/inboundNatRules\"\ ,\r\n \"properties\": {\r\n \"provisioningState\"\ : \"Succeeded\",\r\n \"frontendIPConfiguration\": {\r\n \ @@ -526,7 +526,7 @@ interactions: cache-control: [no-cache] content-length: ['8570'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:27:09 GMT'] + date: ['Tue, 27 Nov 2018 20:16:09 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -541,21 +541,21 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers?api-version=2018-10-01 response: body: {string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"pylbname239e0f35\"\ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35\"\ - ,\r\n \"etag\": \"W/\\\"9c9a91ab-bc64-4b93-abfb-e59bb0c74fff\\\"\",\r\ + ,\r\n \"etag\": \"W/\\\"6912f41d-d6e4-417d-9da0-c8cd59945071\\\"\",\r\ \n \"type\": \"Microsoft.Network/loadBalancers\",\r\n \"location\"\ : \"westus\",\r\n \"properties\": {\r\n \"provisioningState\"\ - : \"Succeeded\",\r\n \"resourceGuid\": \"1e5801cb-a086-4894-8e2c-34f886392887\"\ + : \"Succeeded\",\r\n \"resourceGuid\": \"5b03515f-6f36-4cb4-82b1-90396e2bc98e\"\ ,\r\n \"frontendIPConfigurations\": [\r\n {\r\n \ \ \"name\": \"pyfipname239e0f35\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/frontendIPConfigurations/pyfipname239e0f35\"\ - ,\r\n \"etag\": \"W/\\\"9c9a91ab-bc64-4b93-abfb-e59bb0c74fff\\\"\ + ,\r\n \"etag\": \"W/\\\"6912f41d-d6e4-417d-9da0-c8cd59945071\\\"\ \",\r\n \"type\": \"Microsoft.Network/loadBalancers/frontendIPConfigurations\"\ ,\r\n \"properties\": {\r\n \"provisioningState\"\ : \"Succeeded\",\r\n \"privateIPAllocationMethod\": \"Dynamic\"\ @@ -569,7 +569,7 @@ interactions: \r\n }\r\n ]\r\n }\r\n }\r\ \n ],\r\n \"backendAddressPools\": [\r\n {\r\n \ \ \"name\": \"pyapname239e0f35\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/backendAddressPools/pyapname239e0f35\"\ - ,\r\n \"etag\": \"W/\\\"9c9a91ab-bc64-4b93-abfb-e59bb0c74fff\\\"\ + ,\r\n \"etag\": \"W/\\\"6912f41d-d6e4-417d-9da0-c8cd59945071\\\"\ \",\r\n \"properties\": {\r\n \"provisioningState\"\ : \"Succeeded\",\r\n \"loadBalancingRules\": [\r\n \ \ {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/loadBalancingRules/azure-sample-lb-rule\"\ @@ -578,7 +578,7 @@ interactions: \ }\r\n ],\r\n \"loadBalancingRules\": [\r\n \ \ {\r\n \"name\": \"azure-sample-lb-rule\",\r\n \"\ id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/loadBalancingRules/azure-sample-lb-rule\"\ - ,\r\n \"etag\": \"W/\\\"9c9a91ab-bc64-4b93-abfb-e59bb0c74fff\\\"\ + ,\r\n \"etag\": \"W/\\\"6912f41d-d6e4-417d-9da0-c8cd59945071\\\"\ \",\r\n \"type\": \"Microsoft.Network/loadBalancers/loadBalancingRules\"\ ,\r\n \"properties\": {\r\n \"provisioningState\"\ : \"Succeeded\",\r\n \"frontendIPConfiguration\": {\r\n \ @@ -595,7 +595,7 @@ interactions: \r\n }\r\n }\r\n }\r\n ],\r\n \ \ \"probes\": [\r\n {\r\n \"name\": \"pyprobename239e0f35\"\ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/probes/pyprobename239e0f35\"\ - ,\r\n \"etag\": \"W/\\\"9c9a91ab-bc64-4b93-abfb-e59bb0c74fff\\\"\ + ,\r\n \"etag\": \"W/\\\"6912f41d-d6e4-417d-9da0-c8cd59945071\\\"\ \",\r\n \"properties\": {\r\n \"provisioningState\"\ : \"Succeeded\",\r\n \"protocol\": \"Http\",\r\n \ \ \"port\": 80,\r\n \"requestPath\": \"healthprobe.aspx\",\r\ @@ -606,7 +606,7 @@ interactions: \ \"type\": \"Microsoft.Network/loadBalancers/probes\"\r\n }\r\n\ \ ],\r\n \"inboundNatRules\": [\r\n {\r\n \ \ \"name\": \"azure-sample-netrule1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/inboundNatRules/azure-sample-netrule1\"\ - ,\r\n \"etag\": \"W/\\\"9c9a91ab-bc64-4b93-abfb-e59bb0c74fff\\\"\ + ,\r\n \"etag\": \"W/\\\"6912f41d-d6e4-417d-9da0-c8cd59945071\\\"\ \",\r\n \"type\": \"Microsoft.Network/loadBalancers/inboundNatRules\"\ ,\r\n \"properties\": {\r\n \"provisioningState\"\ : \"Succeeded\",\r\n \"frontendIPConfiguration\": {\r\n \ @@ -618,7 +618,7 @@ interactions: \n \"enableTcpReset\": false\r\n }\r\n },\r\ \n {\r\n \"name\": \"azure-sample-netrule2\",\r\n \ \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35/inboundNatRules/azure-sample-netrule2\"\ - ,\r\n \"etag\": \"W/\\\"9c9a91ab-bc64-4b93-abfb-e59bb0c74fff\\\"\ + ,\r\n \"etag\": \"W/\\\"6912f41d-d6e4-417d-9da0-c8cd59945071\\\"\ \",\r\n \"type\": \"Microsoft.Network/loadBalancers/inboundNatRules\"\ ,\r\n \"properties\": {\r\n \"provisioningState\"\ : \"Succeeded\",\r\n \"frontendIPConfiguration\": {\r\n \ @@ -635,7 +635,7 @@ interactions: cache-control: [no-cache] content-length: ['8570'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:27:09 GMT'] + date: ['Tue, 27 Nov 2018 20:16:10 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -651,25 +651,25 @@ interactions: Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_load_balancers239e0f35/providers/Microsoft.Network/loadBalancers/pylbname239e0f35?api-version=2018-10-01 response: body: {string: ''} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/dbc507ba-5104-4dfe-a203-051856c55974?api-version=2018-08-01'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/57e7d1c6-d92d-48f9-9d61-765e14851a81?api-version=2018-10-01'] cache-control: [no-cache] content-length: ['0'] - date: ['Tue, 11 Sep 2018 17:27:10 GMT'] + date: ['Tue, 27 Nov 2018 20:16:11 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/dbc507ba-5104-4dfe-a203-051856c55974?api-version=2018-08-01'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/57e7d1c6-d92d-48f9-9d61-765e14851a81?api-version=2018-10-01'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-deletes: ['14997'] + x-ms-ratelimit-remaining-subscription-deletes: ['14999'] status: {code: 202, message: Accepted} - request: body: null @@ -677,17 +677,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/dbc507ba-5104-4dfe-a203-051856c55974?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/57e7d1c6-d92d-48f9-9d61-765e14851a81?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} headers: cache-control: [no-cache] content-length: ['29'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:27:21 GMT'] + date: ['Tue, 27 Nov 2018 20:16:22 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] diff --git a/azure-mgmt-network/tests/recordings/test_mgmt_network.test_network_interface_card.yaml b/azure-mgmt-network/tests/recordings/test_mgmt_network.test_network_interface_card.yaml index d367901db14c..2b91d41d35df 100644 --- a/azure-mgmt-network/tests/recordings/test_mgmt_network.test_network_interface_card.yaml +++ b/azure-mgmt-network/tests/recordings/test_mgmt_network.test_network_interface_card.yaml @@ -8,27 +8,27 @@ interactions: Connection: [keep-alive] Content-Length: ['92'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/virtualNetworks/pyvnetb046129e?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/virtualNetworks/pyvnetb046129e?api-version=2018-10-01 response: body: {string: "{\r\n \"name\": \"pyvnetb046129e\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/virtualNetworks/pyvnetb046129e\"\ - ,\r\n \"etag\": \"W/\\\"4da99de8-e729-442e-8c06-48432b8cff76\\\"\",\r\n \ + ,\r\n \"etag\": \"W/\\\"79537f82-f342-4df8-a7d2-9dad77c02e49\\\"\",\r\n \ \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \ - \ \"resourceGuid\": \"39077ec9-1d7a-41f8-840c-cca938ab517e\",\r\n \"\ + \ \"resourceGuid\": \"cee0c4fe-2d71-423f-b881-fc7a7ebb525a\",\r\n \"\ addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\ \r\n ]\r\n },\r\n \"subnets\": [],\r\n \"virtualNetworkPeerings\"\ : [],\r\n \"enableDdosProtection\": false,\r\n \"enableVmProtection\"\ : false\r\n }\r\n}"} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/122c0073-c644-4bd9-8287-d8edf09eac68?api-version=2018-08-01'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/397a310a-6963-45bd-b34e-334d69f9e1f7?api-version=2018-10-01'] cache-control: [no-cache] content-length: ['693'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:27:27 GMT'] + date: ['Tue, 27 Nov 2018 20:16:27 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -42,17 +42,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/122c0073-c644-4bd9-8287-d8edf09eac68?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/397a310a-6963-45bd-b34e-334d69f9e1f7?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:27:30 GMT'] + date: ['Tue, 27 Nov 2018 20:16:30 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -67,17 +67,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/122c0073-c644-4bd9-8287-d8edf09eac68?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/397a310a-6963-45bd-b34e-334d69f9e1f7?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} headers: cache-control: [no-cache] content-length: ['29'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:27:41 GMT'] + date: ['Tue, 27 Nov 2018 20:16:41 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -92,16 +92,16 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/virtualNetworks/pyvnetb046129e?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/virtualNetworks/pyvnetb046129e?api-version=2018-10-01 response: body: {string: "{\r\n \"name\": \"pyvnetb046129e\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/virtualNetworks/pyvnetb046129e\"\ - ,\r\n \"etag\": \"W/\\\"13ab479e-46a9-4854-80be-c7601a3b10d9\\\"\",\r\n \ + ,\r\n \"etag\": \"W/\\\"4f64e026-4054-4ad0-8d7b-713c55bcf740\\\"\",\r\n \ \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n\ - \ \"resourceGuid\": \"39077ec9-1d7a-41f8-840c-cca938ab517e\",\r\n \"\ + \ \"resourceGuid\": \"cee0c4fe-2d71-423f-b881-fc7a7ebb525a\",\r\n \"\ addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\ \r\n ]\r\n },\r\n \"subnets\": [],\r\n \"virtualNetworkPeerings\"\ : [],\r\n \"enableDdosProtection\": false,\r\n \"enableVmProtection\"\ @@ -110,8 +110,8 @@ interactions: cache-control: [no-cache] content-length: ['694'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:27:42 GMT'] - etag: [W/"13ab479e-46a9-4854-80be-c7601a3b10d9"] + date: ['Tue, 27 Nov 2018 20:16:42 GMT'] + etag: [W/"4f64e026-4054-4ad0-8d7b-713c55bcf740"] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -128,29 +128,29 @@ interactions: Connection: [keep-alive] Content-Length: ['48'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/virtualNetworks/pyvnetb046129e/subnets/pysubnetb046129e?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/virtualNetworks/pyvnetb046129e/subnets/pysubnetb046129e?api-version=2018-10-01 response: body: {string: "{\r\n \"name\": \"pysubnetb046129e\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/virtualNetworks/pyvnetb046129e/subnets/pysubnetb046129e\"\ - ,\r\n \"etag\": \"W/\\\"d21fe7f1-48be-4ede-be6c-04108f870322\\\"\",\r\n \ + ,\r\n \"etag\": \"W/\\\"15f1241f-abd0-4dc6-a60a-e4532f855f33\\\"\",\r\n \ \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"\ addressPrefix\": \"10.0.0.0/24\",\r\n \"delegations\": []\r\n },\r\n \ \ \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n}"} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/0503eefb-111c-4264-aff6-fb811a9d36d5?api-version=2018-08-01'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/0c8fb6cd-6eb8-47ef-a963-adeff9398122?api-version=2018-10-01'] cache-control: [no-cache] content-length: ['487'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:27:43 GMT'] + date: ['Tue, 27 Nov 2018 20:16:43 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 201, message: Created} - request: body: null @@ -158,17 +158,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/0503eefb-111c-4264-aff6-fb811a9d36d5?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/0c8fb6cd-6eb8-47ef-a963-adeff9398122?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} headers: cache-control: [no-cache] content-length: ['29'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:27:46 GMT'] + date: ['Tue, 27 Nov 2018 20:16:47 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -183,13 +183,13 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/virtualNetworks/pyvnetb046129e/subnets/pysubnetb046129e?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/virtualNetworks/pyvnetb046129e/subnets/pysubnetb046129e?api-version=2018-10-01 response: body: {string: "{\r\n \"name\": \"pysubnetb046129e\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/virtualNetworks/pyvnetb046129e/subnets/pysubnetb046129e\"\ - ,\r\n \"etag\": \"W/\\\"6ab69d74-ffaf-4012-9974-6e708d7787a0\\\"\",\r\n \ + ,\r\n \"etag\": \"W/\\\"1c40b754-031f-4e53-8ddb-0aeba019d0e4\\\"\",\r\n \ \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"\ addressPrefix\": \"10.0.0.0/24\",\r\n \"delegations\": []\r\n },\r\n \ \ \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n}"} @@ -197,8 +197,8 @@ interactions: cache-control: [no-cache] content-length: ['488'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:27:47 GMT'] - etag: [W/"6ab69d74-ffaf-4012-9974-6e708d7787a0"] + date: ['Tue, 27 Nov 2018 20:16:47 GMT'] + etag: [W/"1c40b754-031f-4e53-8ddb-0aeba019d0e4"] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -217,43 +217,42 @@ interactions: Connection: [keep-alive] Content-Length: ['326'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/networkInterfaces/pynicb046129e?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/networkInterfaces/pynicb046129e?api-version=2018-10-01 response: body: {string: "{\r\n \"name\": \"pynicb046129e\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/networkInterfaces/pynicb046129e\"\ - ,\r\n \"etag\": \"W/\\\"905824d5-6e6d-4183-8a59-211f95c53ec6\\\"\",\r\n \ + ,\r\n \"etag\": \"W/\\\"3691cf8d-ea5c-4269-b788-ba8db8d74058\\\"\",\r\n \ \ \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\"\ - : \"Succeeded\",\r\n \"resourceGuid\": \"1cab88d3-cfe4-4018-adb0-5e3ec5ea0ba3\"\ + : \"Succeeded\",\r\n \"resourceGuid\": \"70015b4a-351b-454f-bd76-7563378dd23b\"\ ,\r\n \"ipConfigurations\": [\r\n {\r\n \"name\": \"MyIpConfig\"\ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/networkInterfaces/pynicb046129e/ipConfigurations/MyIpConfig\"\ - ,\r\n \"etag\": \"W/\\\"905824d5-6e6d-4183-8a59-211f95c53ec6\\\"\"\ + ,\r\n \"etag\": \"W/\\\"3691cf8d-ea5c-4269-b788-ba8db8d74058\\\"\"\ ,\r\n \"type\": \"Microsoft.Network/networkInterfaces/ipConfigurations\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ ,\r\n \"privateIPAddress\": \"10.0.0.4\",\r\n \"privateIPAllocationMethod\"\ : \"Dynamic\",\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/virtualNetworks/pyvnetb046129e/subnets/pysubnetb046129e\"\ \r\n },\r\n \"primary\": true,\r\n \"privateIPAddressVersion\"\ - : \"IPv4\",\r\n \"isInUseWithService\": false\r\n }\r\n \ - \ }\r\n ],\r\n \"dnsSettings\": {\r\n \"dnsServers\": [],\r\n\ - \ \"appliedDnsServers\": [],\r\n \"internalDomainNameSuffix\": \"\ - zf5aool0dx2edbamzsutrk0rpg.dx.internal.cloudapp.net\"\r\n },\r\n \"\ - enableAcceleratedNetworking\": false,\r\n \"enableIPForwarding\": false,\r\ - \n \"hostedWorkloads\": [],\r\n \"tapConfigurations\": []\r\n },\r\n\ - \ \"type\": \"Microsoft.Network/networkInterfaces\"\r\n}"} + : \"IPv4\"\r\n }\r\n }\r\n ],\r\n \"dnsSettings\": {\r\n\ + \ \"dnsServers\": [],\r\n \"appliedDnsServers\": [],\r\n \"\ + internalDomainNameSuffix\": \"51cobttrfu5ufoeb5r3h3o0slc.dx.internal.cloudapp.net\"\ + \r\n },\r\n \"enableAcceleratedNetworking\": false,\r\n \"enableIPForwarding\"\ + : false,\r\n \"hostedWorkloads\": [],\r\n \"tapConfigurations\": []\r\ + \n },\r\n \"type\": \"Microsoft.Network/networkInterfaces\"\r\n}"} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/dc6a1363-575f-4921-a7bb-a3c2a0e1105d?api-version=2018-08-01'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/741486ea-f851-499b-995b-2e8d789f7f4e?api-version=2018-10-01'] cache-control: [no-cache] - content-length: ['1789'] + content-length: ['1749'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:27:48 GMT'] + date: ['Tue, 27 Nov 2018 20:16:48 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 201, message: Created} - request: body: null @@ -261,17 +260,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/dc6a1363-575f-4921-a7bb-a3c2a0e1105d?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/741486ea-f851-499b-995b-2e8d789f7f4e?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} headers: cache-control: [no-cache] content-length: ['29'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:28:20 GMT'] + date: ['Tue, 27 Nov 2018 20:17:20 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -286,36 +285,35 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/networkInterfaces/pynicb046129e?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/networkInterfaces/pynicb046129e?api-version=2018-10-01 response: body: {string: "{\r\n \"name\": \"pynicb046129e\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/networkInterfaces/pynicb046129e\"\ - ,\r\n \"etag\": \"W/\\\"905824d5-6e6d-4183-8a59-211f95c53ec6\\\"\",\r\n \ + ,\r\n \"etag\": \"W/\\\"3691cf8d-ea5c-4269-b788-ba8db8d74058\\\"\",\r\n \ \ \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\"\ - : \"Succeeded\",\r\n \"resourceGuid\": \"1cab88d3-cfe4-4018-adb0-5e3ec5ea0ba3\"\ + : \"Succeeded\",\r\n \"resourceGuid\": \"70015b4a-351b-454f-bd76-7563378dd23b\"\ ,\r\n \"ipConfigurations\": [\r\n {\r\n \"name\": \"MyIpConfig\"\ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/networkInterfaces/pynicb046129e/ipConfigurations/MyIpConfig\"\ - ,\r\n \"etag\": \"W/\\\"905824d5-6e6d-4183-8a59-211f95c53ec6\\\"\"\ + ,\r\n \"etag\": \"W/\\\"3691cf8d-ea5c-4269-b788-ba8db8d74058\\\"\"\ ,\r\n \"type\": \"Microsoft.Network/networkInterfaces/ipConfigurations\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ ,\r\n \"privateIPAddress\": \"10.0.0.4\",\r\n \"privateIPAllocationMethod\"\ : \"Dynamic\",\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/virtualNetworks/pyvnetb046129e/subnets/pysubnetb046129e\"\ \r\n },\r\n \"primary\": true,\r\n \"privateIPAddressVersion\"\ - : \"IPv4\",\r\n \"isInUseWithService\": false\r\n }\r\n \ - \ }\r\n ],\r\n \"dnsSettings\": {\r\n \"dnsServers\": [],\r\n\ - \ \"appliedDnsServers\": [],\r\n \"internalDomainNameSuffix\": \"\ - zf5aool0dx2edbamzsutrk0rpg.dx.internal.cloudapp.net\"\r\n },\r\n \"\ - enableAcceleratedNetworking\": false,\r\n \"enableIPForwarding\": false,\r\ - \n \"hostedWorkloads\": [],\r\n \"tapConfigurations\": []\r\n },\r\n\ - \ \"type\": \"Microsoft.Network/networkInterfaces\"\r\n}"} + : \"IPv4\"\r\n }\r\n }\r\n ],\r\n \"dnsSettings\": {\r\n\ + \ \"dnsServers\": [],\r\n \"appliedDnsServers\": [],\r\n \"\ + internalDomainNameSuffix\": \"51cobttrfu5ufoeb5r3h3o0slc.dx.internal.cloudapp.net\"\ + \r\n },\r\n \"enableAcceleratedNetworking\": false,\r\n \"enableIPForwarding\"\ + : false,\r\n \"hostedWorkloads\": [],\r\n \"tapConfigurations\": []\r\ + \n },\r\n \"type\": \"Microsoft.Network/networkInterfaces\"\r\n}"} headers: cache-control: [no-cache] - content-length: ['1789'] + content-length: ['1749'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:28:19 GMT'] - etag: [W/"905824d5-6e6d-4183-8a59-211f95c53ec6"] + date: ['Tue, 27 Nov 2018 20:17:20 GMT'] + etag: [W/"3691cf8d-ea5c-4269-b788-ba8db8d74058"] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -330,37 +328,36 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/networkInterfaces/pynicb046129e?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/networkInterfaces/pynicb046129e?api-version=2018-10-01 response: body: {string: "{\r\n \"name\": \"pynicb046129e\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/networkInterfaces/pynicb046129e\"\ - ,\r\n \"etag\": \"W/\\\"905824d5-6e6d-4183-8a59-211f95c53ec6\\\"\",\r\n \ + ,\r\n \"etag\": \"W/\\\"3691cf8d-ea5c-4269-b788-ba8db8d74058\\\"\",\r\n \ \ \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\"\ - : \"Succeeded\",\r\n \"resourceGuid\": \"1cab88d3-cfe4-4018-adb0-5e3ec5ea0ba3\"\ + : \"Succeeded\",\r\n \"resourceGuid\": \"70015b4a-351b-454f-bd76-7563378dd23b\"\ ,\r\n \"ipConfigurations\": [\r\n {\r\n \"name\": \"MyIpConfig\"\ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/networkInterfaces/pynicb046129e/ipConfigurations/MyIpConfig\"\ - ,\r\n \"etag\": \"W/\\\"905824d5-6e6d-4183-8a59-211f95c53ec6\\\"\"\ + ,\r\n \"etag\": \"W/\\\"3691cf8d-ea5c-4269-b788-ba8db8d74058\\\"\"\ ,\r\n \"type\": \"Microsoft.Network/networkInterfaces/ipConfigurations\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ ,\r\n \"privateIPAddress\": \"10.0.0.4\",\r\n \"privateIPAllocationMethod\"\ : \"Dynamic\",\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/virtualNetworks/pyvnetb046129e/subnets/pysubnetb046129e\"\ \r\n },\r\n \"primary\": true,\r\n \"privateIPAddressVersion\"\ - : \"IPv4\",\r\n \"isInUseWithService\": false\r\n }\r\n \ - \ }\r\n ],\r\n \"dnsSettings\": {\r\n \"dnsServers\": [],\r\n\ - \ \"appliedDnsServers\": [],\r\n \"internalDomainNameSuffix\": \"\ - zf5aool0dx2edbamzsutrk0rpg.dx.internal.cloudapp.net\"\r\n },\r\n \"\ - enableAcceleratedNetworking\": false,\r\n \"enableIPForwarding\": false,\r\ - \n \"hostedWorkloads\": [],\r\n \"tapConfigurations\": []\r\n },\r\n\ - \ \"type\": \"Microsoft.Network/networkInterfaces\"\r\n}"} + : \"IPv4\"\r\n }\r\n }\r\n ],\r\n \"dnsSettings\": {\r\n\ + \ \"dnsServers\": [],\r\n \"appliedDnsServers\": [],\r\n \"\ + internalDomainNameSuffix\": \"51cobttrfu5ufoeb5r3h3o0slc.dx.internal.cloudapp.net\"\ + \r\n },\r\n \"enableAcceleratedNetworking\": false,\r\n \"enableIPForwarding\"\ + : false,\r\n \"hostedWorkloads\": [],\r\n \"tapConfigurations\": []\r\ + \n },\r\n \"type\": \"Microsoft.Network/networkInterfaces\"\r\n}"} headers: cache-control: [no-cache] - content-length: ['1789'] + content-length: ['1749'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:28:20 GMT'] - etag: [W/"905824d5-6e6d-4183-8a59-211f95c53ec6"] + date: ['Tue, 27 Nov 2018 20:17:21 GMT'] + etag: [W/"3691cf8d-ea5c-4269-b788-ba8db8d74058"] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -375,39 +372,39 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/networkInterfaces?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/networkInterfaces?api-version=2018-10-01 response: body: {string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"pynicb046129e\"\ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/networkInterfaces/pynicb046129e\"\ - ,\r\n \"etag\": \"W/\\\"905824d5-6e6d-4183-8a59-211f95c53ec6\\\"\",\r\ + ,\r\n \"etag\": \"W/\\\"3691cf8d-ea5c-4269-b788-ba8db8d74058\\\"\",\r\ \n \"location\": \"westus\",\r\n \"properties\": {\r\n \"\ - provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"1cab88d3-cfe4-4018-adb0-5e3ec5ea0ba3\"\ + provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": \"70015b4a-351b-454f-bd76-7563378dd23b\"\ ,\r\n \"ipConfigurations\": [\r\n {\r\n \"name\"\ : \"MyIpConfig\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/networkInterfaces/pynicb046129e/ipConfigurations/MyIpConfig\"\ - ,\r\n \"etag\": \"W/\\\"905824d5-6e6d-4183-8a59-211f95c53ec6\\\"\ + ,\r\n \"etag\": \"W/\\\"3691cf8d-ea5c-4269-b788-ba8db8d74058\\\"\ \",\r\n \"type\": \"Microsoft.Network/networkInterfaces/ipConfigurations\"\ ,\r\n \"properties\": {\r\n \"provisioningState\"\ : \"Succeeded\",\r\n \"privateIPAddress\": \"10.0.0.4\",\r\n\ \ \"privateIPAllocationMethod\": \"Dynamic\",\r\n \ \ \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/virtualNetworks/pyvnetb046129e/subnets/pysubnetb046129e\"\ \r\n },\r\n \"primary\": true,\r\n \ - \ \"privateIPAddressVersion\": \"IPv4\",\r\n \"isInUseWithService\"\ - : false\r\n }\r\n }\r\n ],\r\n \"dnsSettings\"\ - : {\r\n \"dnsServers\": [],\r\n \"appliedDnsServers\": [],\r\ - \n \"internalDomainNameSuffix\": \"zf5aool0dx2edbamzsutrk0rpg.dx.internal.cloudapp.net\"\ - \r\n },\r\n \"enableAcceleratedNetworking\": false,\r\n \ - \ \"enableIPForwarding\": false,\r\n \"hostedWorkloads\": [],\r\n\ - \ \"tapConfigurations\": []\r\n },\r\n \"type\": \"Microsoft.Network/networkInterfaces\"\ + \ \"privateIPAddressVersion\": \"IPv4\"\r\n }\r\n }\r\n\ + \ ],\r\n \"dnsSettings\": {\r\n \"dnsServers\": [],\r\ + \n \"appliedDnsServers\": [],\r\n \"internalDomainNameSuffix\"\ + : \"51cobttrfu5ufoeb5r3h3o0slc.dx.internal.cloudapp.net\"\r\n },\r\n\ + \ \"enableAcceleratedNetworking\": false,\r\n \"enableIPForwarding\"\ + : false,\r\n \"hostedWorkloads\": [],\r\n \"tapConfigurations\"\ + : []\r\n },\r\n \"type\": \"Microsoft.Network/networkInterfaces\"\ \r\n }\r\n ]\r\n}"} headers: cache-control: [no-cache] - content-length: ['1970'] + content-length: ['1926'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:28:21 GMT'] + date: ['Tue, 27 Nov 2018 20:17:21 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -422,25 +419,25 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/networkInterfaces?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/networkInterfaces?api-version=2018-10-01 response: - body: {string: '{"value":[{"name":"TestVM2VMNic","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ovaTestGroup/providers/Microsoft.Network/networkInterfaces/TestVM2VMNic","etag":"W/\"843863dd-0b9c-44b4-a5fa-5ad5ab8d2511\"","location":"westus","tags":{},"properties":{"provisioningState":"Succeeded","resourceGuid":"f6aa49d8-7592-4638-a869-02684b983487","ipConfigurations":[{"name":"ipconfigTestVM2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ovaTestGroup/providers/Microsoft.Network/networkInterfaces/TestVM2VMNic/ipConfigurations/ipconfigTestVM2","etag":"W/\"843863dd-0b9c-44b4-a5fa-5ad5ab8d2511\"","type":"Microsoft.Network/networkInterfaces/ipConfigurations","properties":{"provisioningState":"Succeeded","privateIPAddress":"10.0.0.5","privateIPAllocationMethod":"Dynamic","publicIPAddress":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ovaTestGroup/providers/Microsoft.Network/publicIPAddresses/TestVM2PublicIP"},"subnet":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ovaTestGroup/providers/Microsoft.Network/virtualNetworks/TestVMVNET/subnets/TestVMSubnet"},"primary":true,"privateIPAddressVersion":"IPv4","isInUseWithService":false}}],"dnsSettings":{"dnsServers":[],"appliedDnsServers":[],"internalDomainNameSuffix":"dcwi5f314qeefi1bbv2apblesa.dx.internal.cloudapp.net"},"macAddress":"00-0D-3A-3B-53-D9","enableAcceleratedNetworking":false,"enableIPForwarding":false,"networkSecurityGroup":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ovaTestGroup/providers/Microsoft.Network/networkSecurityGroups/TestVM2NSG"},"primary":true,"virtualMachine":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ovaTestGroup/providers/Microsoft.Compute/virtualMachines/TestVM2"},"hostedWorkloads":[],"tapConfigurations":[]},"type":"Microsoft.Network/networkInterfaces"},{"name":"TestVMVMNic","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ovaTestGroup/providers/Microsoft.Network/networkInterfaces/TestVMVMNic","etag":"W/\"d8299bdd-91c5-4e59-b4e3-8b3af7b0f40d\"","location":"westus","tags":{},"properties":{"provisioningState":"Succeeded","resourceGuid":"bf806790-4555-437d-aafe-e9c96cf257ef","ipConfigurations":[{"name":"ipconfigTestVM","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ovaTestGroup/providers/Microsoft.Network/networkInterfaces/TestVMVMNic/ipConfigurations/ipconfigTestVM","etag":"W/\"d8299bdd-91c5-4e59-b4e3-8b3af7b0f40d\"","type":"Microsoft.Network/networkInterfaces/ipConfigurations","properties":{"provisioningState":"Succeeded","privateIPAddress":"10.0.0.4","privateIPAllocationMethod":"Dynamic","publicIPAddress":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ovaTestGroup/providers/Microsoft.Network/publicIPAddresses/TestVMPublicIP"},"subnet":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ovaTestGroup/providers/Microsoft.Network/virtualNetworks/TestVMVNET/subnets/TestVMSubnet"},"primary":true,"privateIPAddressVersion":"IPv4","isInUseWithService":false}}],"dnsSettings":{"dnsServers":[],"appliedDnsServers":[],"internalDomainNameSuffix":"dcwi5f314qeefi1bbv2apblesa.dx.internal.cloudapp.net"},"macAddress":"00-0D-3A-38-1F-D2","enableAcceleratedNetworking":false,"enableIPForwarding":false,"networkSecurityGroup":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ovaTestGroup/providers/Microsoft.Network/networkSecurityGroups/TestVMNSG"},"primary":true,"virtualMachine":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ovaTestGroup/providers/Microsoft.Compute/virtualMachines/TestVM"},"hostedWorkloads":[],"tapConfigurations":[]},"type":"Microsoft.Network/networkInterfaces"},{"name":"pynicb046129e","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/networkInterfaces/pynicb046129e","etag":"W/\"905824d5-6e6d-4183-8a59-211f95c53ec6\"","location":"westus","properties":{"provisioningState":"Succeeded","resourceGuid":"1cab88d3-cfe4-4018-adb0-5e3ec5ea0ba3","ipConfigurations":[{"name":"MyIpConfig","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/networkInterfaces/pynicb046129e/ipConfigurations/MyIpConfig","etag":"W/\"905824d5-6e6d-4183-8a59-211f95c53ec6\"","type":"Microsoft.Network/networkInterfaces/ipConfigurations","properties":{"provisioningState":"Succeeded","privateIPAddress":"10.0.0.4","privateIPAllocationMethod":"Dynamic","subnet":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/virtualNetworks/pyvnetb046129e/subnets/pysubnetb046129e"},"primary":true,"privateIPAddressVersion":"IPv4","isInUseWithService":false}}],"dnsSettings":{"dnsServers":[],"appliedDnsServers":[],"internalDomainNameSuffix":"zf5aool0dx2edbamzsutrk0rpg.dx.internal.cloudapp.net"},"enableAcceleratedNetworking":false,"enableIPForwarding":false,"hostedWorkloads":[],"tapConfigurations":[]},"type":"Microsoft.Network/networkInterfaces"},{"name":"wilxvm1VMNic","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/wilxtest/providers/Microsoft.Network/networkInterfaces/wilxvm1VMNic","etag":"W/\"0882f58e-630a-4a0b-bb78-c88b274de0ad\"","location":"westus","tags":{},"properties":{"provisioningState":"Succeeded","resourceGuid":"5f70d3bb-243a-4fe2-b4fd-52ec0664ec58","ipConfigurations":[{"name":"ipconfigwilxvm1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/wilxtest/providers/Microsoft.Network/networkInterfaces/wilxvm1VMNic/ipConfigurations/ipconfigwilxvm1","etag":"W/\"0882f58e-630a-4a0b-bb78-c88b274de0ad\"","type":"Microsoft.Network/networkInterfaces/ipConfigurations","properties":{"provisioningState":"Succeeded","privateIPAddress":"10.0.0.4","privateIPAllocationMethod":"Dynamic","publicIPAddress":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/wilxtest/providers/Microsoft.Network/publicIPAddresses/wilxvm1PublicIP"},"subnet":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/wilxtest/providers/Microsoft.Network/virtualNetworks/wilxvm1VNET/subnets/wilxvm1Subnet"},"primary":true,"privateIPAddressVersion":"IPv4","isInUseWithService":false}}],"dnsSettings":{"dnsServers":[],"appliedDnsServers":[],"internalDomainNameSuffix":"shwdf3n5115unhji4lqxpktoch.dx.internal.cloudapp.net"},"macAddress":"00-0D-3A-58-F1-B1","enableAcceleratedNetworking":false,"enableIPForwarding":false,"networkSecurityGroup":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/wilxtest/providers/Microsoft.Network/networkSecurityGroups/wilxvm1NSG"},"primary":true,"virtualMachine":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/wilxtest/providers/Microsoft.Compute/virtualMachines/wilxvm1"},"hostedWorkloads":[],"tapConfigurations":[]},"type":"Microsoft.Network/networkInterfaces"},{"name":"abunt4752","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/networkInterfaces/abunt4752","etag":"W/\"adc7d560-e622-4f50-bf5f-a029a437c5ae\"","location":"eastus","properties":{"provisioningState":"Succeeded","resourceGuid":"0ff8654c-3074-4f9f-b325-6385441c38c5","ipConfigurations":[{"name":"ipconfig1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/networkInterfaces/abunt4752/ipConfigurations/ipconfig1","etag":"W/\"adc7d560-e622-4f50-bf5f-a029a437c5ae\"","type":"Microsoft.Network/networkInterfaces/ipConfigurations","properties":{"provisioningState":"Succeeded","privateIPAddress":"10.4.0.4","privateIPAllocationMethod":"Dynamic","publicIPAddress":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/publicIPAddresses/abunt4-ip"},"subnet":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/virtualNetworks/abuntu3/subnets/default"},"primary":true,"privateIPAddressVersion":"IPv4","isInUseWithService":false}}],"dnsSettings":{"dnsServers":[],"appliedDnsServers":[]},"macAddress":"00-0D-3A-4E-B9-BB","enableAcceleratedNetworking":true,"enableIPForwarding":false,"networkSecurityGroup":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/networkSecurityGroups/abunt4-nsg"},"hostedWorkloads":[],"tapConfigurations":[]},"type":"Microsoft.Network/networkInterfaces"},{"name":"abuntu1428","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/networkInterfaces/abuntu1428","etag":"W/\"6d827f43-0bf1-4fd1-aa11-653c6f3be097\"","location":"eastus","properties":{"provisioningState":"Succeeded","resourceGuid":"716a38a6-ceb8-4ad7-9b1f-5438434af985","ipConfigurations":[{"name":"ipconfig1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/networkInterfaces/abuntu1428/ipConfigurations/ipconfig1","etag":"W/\"6d827f43-0bf1-4fd1-aa11-653c6f3be097\"","type":"Microsoft.Network/networkInterfaces/ipConfigurations","properties":{"provisioningState":"Succeeded","privateIPAddress":"10.2.0.5","privateIPAllocationMethod":"Dynamic","publicIPAddress":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/publicIPAddresses/abuntu1-ip"},"subnet":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/virtualNetworks/abunt3/subnets/default"},"primary":true,"privateIPAddressVersion":"IPv4","isInUseWithService":false}}],"dnsSettings":{"dnsServers":[],"appliedDnsServers":[],"internalDomainNameSuffix":"pvqtqejfdjjefccgdjzlqgveva.bx.internal.cloudapp.net"},"macAddress":"00-0D-3A-4F-53-66","enableAcceleratedNetworking":true,"enableIPForwarding":false,"networkSecurityGroup":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/networkSecurityGroups/abuntu1-nsg"},"primary":true,"virtualMachine":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Compute/virtualMachines/abuntu1"},"hostedWorkloads":[],"tapConfigurations":[]},"type":"Microsoft.Network/networkInterfaces"},{"name":"abuntu259","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/networkInterfaces/abuntu259","etag":"W/\"8fe0ef11-e58c-44d6-ae9d-e2e7502bc2e7\"","location":"eastus","properties":{"provisioningState":"Succeeded","resourceGuid":"6cadbeb0-01dd-41f4-ac68-74fe9deac6e8","ipConfigurations":[{"name":"ipconfig1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/networkInterfaces/abuntu259/ipConfigurations/ipconfig1","etag":"W/\"8fe0ef11-e58c-44d6-ae9d-e2e7502bc2e7\"","type":"Microsoft.Network/networkInterfaces/ipConfigurations","properties":{"provisioningState":"Succeeded","privateIPAddress":"10.3.0.4","privateIPAllocationMethod":"Dynamic","publicIPAddress":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/publicIPAddresses/abuntu-ip"},"subnet":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/virtualNetworks/abuntu-vnet/subnets/default"},"primary":true,"privateIPAddressVersion":"IPv4","isInUseWithService":false}}],"dnsSettings":{"dnsServers":[],"appliedDnsServers":[]},"macAddress":"00-0D-3A-4E-C4-69","enableAcceleratedNetworking":true,"enableIPForwarding":false,"networkSecurityGroup":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/networkSecurityGroups/abuntu"},"hostedWorkloads":[],"tapConfigurations":[]},"type":"Microsoft.Network/networkInterfaces"},{"name":"abuntu2743","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/networkInterfaces/abuntu2743","etag":"W/\"07c003cc-a698-4f00-b767-aafdd1cda0f3\"","location":"eastus","properties":{"provisioningState":"Succeeded","resourceGuid":"89420481-6943-4502-888b-62bc46f0bef0","ipConfigurations":[{"name":"ipconfig1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/networkInterfaces/abuntu2743/ipConfigurations/ipconfig1","etag":"W/\"07c003cc-a698-4f00-b767-aafdd1cda0f3\"","type":"Microsoft.Network/networkInterfaces/ipConfigurations","properties":{"provisioningState":"Succeeded","privateIPAddress":"10.2.0.6","privateIPAllocationMethod":"Dynamic","publicIPAddress":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/publicIPAddresses/abuntu2ip781"},"subnet":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/virtualNetworks/abunt3/subnets/default"},"primary":true,"privateIPAddressVersion":"IPv4","isInUseWithService":false}}],"dnsSettings":{"dnsServers":[],"appliedDnsServers":[],"internalDomainNameSuffix":"pvqtqejfdjjefccgdjzlqgveva.bx.internal.cloudapp.net"},"macAddress":"00-0D-3A-4D-4D-0F","enableAcceleratedNetworking":true,"enableIPForwarding":false,"networkSecurityGroup":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/networkSecurityGroups/abuntu2-nsg"},"primary":true,"virtualMachine":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Compute/virtualMachines/abuntu2"},"hostedWorkloads":[],"tapConfigurations":[]},"type":"Microsoft.Network/networkInterfaces"},{"name":"abuntu2817","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/networkInterfaces/abuntu2817","etag":"W/\"ad924d5b-9898-4390-91d1-b35fe7c3af94\"","location":"eastus","properties":{"provisioningState":"Succeeded","resourceGuid":"6b98f584-1069-4334-b011-2620bb9f13c2","ipConfigurations":[{"name":"ipconfig1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/networkInterfaces/abuntu2817/ipConfigurations/ipconfig1","etag":"W/\"ad924d5b-9898-4390-91d1-b35fe7c3af94\"","type":"Microsoft.Network/networkInterfaces/ipConfigurations","properties":{"provisioningState":"Succeeded","privateIPAddress":"10.5.0.4","privateIPAllocationMethod":"Dynamic","publicIPAddress":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/publicIPAddresses/abuntu2-ip"},"subnet":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/virtualNetworks/abuntu2/subnets/default"},"primary":true,"privateIPAddressVersion":"IPv4","isInUseWithService":false}}],"dnsSettings":{"dnsServers":[],"appliedDnsServers":[]},"macAddress":"00-0D-3A-1A-A4-AD","enableAcceleratedNetworking":true,"enableIPForwarding":false,"networkSecurityGroup":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/networkSecurityGroups/abuntu2-nsg"},"hostedWorkloads":[],"tapConfigurations":[]},"type":"Microsoft.Network/networkInterfaces"},{"name":"abuntu3634","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/networkInterfaces/abuntu3634","etag":"W/\"b170cb6b-8763-43b8-bf28-00176f932e44\"","location":"eastus","properties":{"provisioningState":"Succeeded","resourceGuid":"1090ceba-180d-4324-a022-15875d542b2f","ipConfigurations":[{"name":"ipconfig1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/networkInterfaces/abuntu3634/ipConfigurations/ipconfig1","etag":"W/\"b170cb6b-8763-43b8-bf28-00176f932e44\"","type":"Microsoft.Network/networkInterfaces/ipConfigurations","properties":{"provisioningState":"Succeeded","privateIPAddress":"10.2.0.4","privateIPAllocationMethod":"Dynamic","publicIPAddress":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/publicIPAddresses/abuntu3-ip"},"subnet":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/virtualNetworks/abunt3/subnets/default"},"primary":true,"privateIPAddressVersion":"IPv4","isInUseWithService":false}}],"dnsSettings":{"dnsServers":[],"appliedDnsServers":[]},"macAddress":"00-0D-3A-4D-D6-33","enableAcceleratedNetworking":true,"enableIPForwarding":false,"networkSecurityGroup":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/networkSecurityGroups/abuntu3-nsg"},"hostedWorkloads":[],"tapConfigurations":[]},"type":"Microsoft.Network/networkInterfaces"},{"name":"TestVMVMNic","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ovaZones/providers/Microsoft.Network/networkInterfaces/TestVMVMNic","etag":"W/\"e1968bfe-36a6-49a3-a9d5-2bbc96b709c7\"","location":"eastus2","tags":{},"properties":{"provisioningState":"Succeeded","resourceGuid":"354e15f4-9648-4de8-add3-0a0719378992","ipConfigurations":[{"name":"ipconfigTestVM","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ovaZones/providers/Microsoft.Network/networkInterfaces/TestVMVMNic/ipConfigurations/ipconfigTestVM","etag":"W/\"e1968bfe-36a6-49a3-a9d5-2bbc96b709c7\"","type":"Microsoft.Network/networkInterfaces/ipConfigurations","properties":{"provisioningState":"Succeeded","privateIPAddress":"10.0.0.4","privateIPAllocationMethod":"Dynamic","publicIPAddress":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ovaZones/providers/Microsoft.Network/publicIPAddresses/TestVMPublicIP"},"subnet":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ovaZones/providers/Microsoft.Network/virtualNetworks/TestVMVNET/subnets/TestVMSubnet"},"primary":true,"privateIPAddressVersion":"IPv4","isInUseWithService":false}}],"dnsSettings":{"dnsServers":[],"appliedDnsServers":[],"internalDomainNameSuffix":"2lgisbtujqhupknrag4liacwub.cx.internal.cloudapp.net"},"macAddress":"00-0D-3A-01-87-D7","enableAcceleratedNetworking":false,"enableIPForwarding":false,"networkSecurityGroup":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ovaZones/providers/Microsoft.Network/networkSecurityGroups/TestVMNSG"},"primary":true,"virtualMachine":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ovaZones/providers/Microsoft.Compute/virtualMachines/TestVM"},"hostedWorkloads":[],"tapConfigurations":[]},"type":"Microsoft.Network/networkInterfaces"},{"name":"lmazuel-testcapture427","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/lmazuel-testcapture/providers/Microsoft.Network/networkInterfaces/lmazuel-testcapture427","etag":"W/\"53003083-c398-46fa-a616-3df40521ce00\"","location":"westus2","properties":{"provisioningState":"Succeeded","resourceGuid":"15eb6eb5-bd81-4e32-b1fd-9fc9e4b1faea","ipConfigurations":[{"name":"ipconfig1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/lmazuel-testcapture/providers/Microsoft.Network/networkInterfaces/lmazuel-testcapture427/ipConfigurations/ipconfig1","etag":"W/\"53003083-c398-46fa-a616-3df40521ce00\"","type":"Microsoft.Network/networkInterfaces/ipConfigurations","properties":{"provisioningState":"Succeeded","privateIPAddress":"10.1.0.4","privateIPAllocationMethod":"Dynamic","publicIPAddress":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/lmazuel-testcapture/providers/Microsoft.Network/publicIPAddresses/lmazuel-testcapture-ip"},"subnet":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/lmazuel-testcapture/providers/Microsoft.Network/virtualNetworks/lmazuel-testcapture-vnet/subnets/default"},"primary":true,"privateIPAddressVersion":"IPv4","isInUseWithService":false}}],"dnsSettings":{"dnsServers":[],"appliedDnsServers":[]},"enableAcceleratedNetworking":false,"enableIPForwarding":false,"networkSecurityGroup":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/lmazuel-testcapture/providers/Microsoft.Network/networkSecurityGroups/lmazuel-testcapture-nsg"},"primary":true,"virtualMachine":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/lmazuel-testcapture/providers/Microsoft.Compute/virtualMachines/lmazuel-testcapture"},"hostedWorkloads":[],"tapConfigurations":[]},"type":"Microsoft.Network/networkInterfaces"}]}'} + body: {string: '{"value":[{"name":"test-vm-vnetVMNic","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/networkInterfaces/test-vm-vnetVMNic","etag":"W/\"3f9d1c13-4526-49e4-b0bb-9fa2e5c699c6\"","location":"westus","tags":{},"properties":{"provisioningState":"Succeeded","resourceGuid":"bb273912-f5c5-4b5b-bf88-d082c2460f3e","ipConfigurations":[{"name":"ipconfigtest-vm-vnet","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/networkInterfaces/test-vm-vnetVMNic/ipConfigurations/ipconfigtest-vm-vnet","etag":"W/\"3f9d1c13-4526-49e4-b0bb-9fa2e5c699c6\"","type":"Microsoft.Network/networkInterfaces/ipConfigurations","properties":{"provisioningState":"Succeeded","privateIPAddress":"10.0.0.4","privateIPAllocationMethod":"Dynamic","publicIPAddress":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/publicIPAddresses/test-vm-vnetPublicIP"},"subnet":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/virtualNetworks/tosin-vnet/subnets/my-subnet"},"primary":true,"privateIPAddressVersion":"IPv4"}}],"dnsSettings":{"dnsServers":[],"appliedDnsServers":[],"internalDomainNameSuffix":"wjfdvvoupxlulnvqxtmyjj0mhh.dx.internal.cloudapp.net"},"macAddress":"00-0D-3A-3A-E6-7A","enableAcceleratedNetworking":false,"enableIPForwarding":false,"networkSecurityGroup":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/networkSecurityGroups/test-vm-vnetNSG"},"primary":true,"virtualMachine":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Compute/virtualMachines/test-vm-vnet"},"hostedWorkloads":[],"tapConfigurations":[]},"type":"Microsoft.Network/networkInterfaces"},{"name":"tosin-vm-generalizedVMNic","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/networkInterfaces/tosin-vm-generalizedVMNic","etag":"W/\"a69da219-4f46-4d9e-a2c4-e8b97f5ca060\"","location":"westus","tags":{},"properties":{"provisioningState":"Succeeded","resourceGuid":"8ea3561f-6ab7-4d40-bdf1-f876d37faa44","ipConfigurations":[{"name":"ipconfigtosin-vm-generalized","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/networkInterfaces/tosin-vm-generalizedVMNic/ipConfigurations/ipconfigtosin-vm-generalized","etag":"W/\"a69da219-4f46-4d9e-a2c4-e8b97f5ca060\"","type":"Microsoft.Network/networkInterfaces/ipConfigurations","properties":{"provisioningState":"Succeeded","privateIPAddress":"10.0.0.5","privateIPAllocationMethod":"Dynamic","publicIPAddress":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/publicIPAddresses/tosin-vm-generalizedPublicIP"},"subnet":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/virtualNetworks/tosin-vmVNET/subnets/tosin-vmSubnet"},"primary":true,"privateIPAddressVersion":"IPv4"}}],"dnsSettings":{"dnsServers":[],"appliedDnsServers":[]},"macAddress":"00-0D-3A-59-96-E1","enableAcceleratedNetworking":false,"enableIPForwarding":false,"networkSecurityGroup":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/networkSecurityGroups/tosin-vm-generalizedNSG"},"primary":true,"virtualMachine":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Compute/virtualMachines/tosin-vm-generalized"},"hostedWorkloads":[],"tapConfigurations":[]},"type":"Microsoft.Network/networkInterfaces"},{"name":"tosin-vmVMNic","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/networkInterfaces/tosin-vmVMNic","etag":"W/\"be444824-196f-485d-b8e7-d33d77dd43db\"","location":"westus","tags":{},"properties":{"provisioningState":"Succeeded","resourceGuid":"0372e688-d055-4f09-8fbf-10fbdb56430a","ipConfigurations":[{"name":"ipconfigtosin-vm","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/networkInterfaces/tosin-vmVMNic/ipConfigurations/ipconfigtosin-vm","etag":"W/\"be444824-196f-485d-b8e7-d33d77dd43db\"","type":"Microsoft.Network/networkInterfaces/ipConfigurations","properties":{"provisioningState":"Succeeded","privateIPAddress":"10.0.0.4","privateIPAllocationMethod":"Dynamic","publicIPAddress":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/publicIPAddresses/tosin-vmPublicIP"},"subnet":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/virtualNetworks/tosin-vmVNET/subnets/tosin-vmSubnet"},"primary":true,"privateIPAddressVersion":"IPv4"}}],"dnsSettings":{"dnsServers":[],"appliedDnsServers":[],"internalDomainNameSuffix":"k5bz12gki0yejkk1tx3ibewc0a.dx.internal.cloudapp.net"},"macAddress":"00-0D-3A-36-C5-D1","enableAcceleratedNetworking":false,"enableIPForwarding":false,"networkSecurityGroup":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/networkSecurityGroups/tosin-vmNSG"},"primary":true,"virtualMachine":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Compute/virtualMachines/tosin-vm"},"hostedWorkloads":[],"tapConfigurations":[]},"type":"Microsoft.Network/networkInterfaces"},{"name":"pynicb046129e","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/networkInterfaces/pynicb046129e","etag":"W/\"3691cf8d-ea5c-4269-b788-ba8db8d74058\"","location":"westus","properties":{"provisioningState":"Succeeded","resourceGuid":"70015b4a-351b-454f-bd76-7563378dd23b","ipConfigurations":[{"name":"MyIpConfig","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/networkInterfaces/pynicb046129e/ipConfigurations/MyIpConfig","etag":"W/\"3691cf8d-ea5c-4269-b788-ba8db8d74058\"","type":"Microsoft.Network/networkInterfaces/ipConfigurations","properties":{"provisioningState":"Succeeded","privateIPAddress":"10.0.0.4","privateIPAllocationMethod":"Dynamic","subnet":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/virtualNetworks/pyvnetb046129e/subnets/pysubnetb046129e"},"primary":true,"privateIPAddressVersion":"IPv4"}}],"dnsSettings":{"dnsServers":[],"appliedDnsServers":[],"internalDomainNameSuffix":"51cobttrfu5ufoeb5r3h3o0slc.dx.internal.cloudapp.net"},"enableAcceleratedNetworking":false,"enableIPForwarding":false,"hostedWorkloads":[],"tapConfigurations":[]},"type":"Microsoft.Network/networkInterfaces"},{"name":"abunt4752","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/networkInterfaces/abunt4752","etag":"W/\"adc7d560-e622-4f50-bf5f-a029a437c5ae\"","location":"eastus","properties":{"provisioningState":"Succeeded","resourceGuid":"0ff8654c-3074-4f9f-b325-6385441c38c5","ipConfigurations":[{"name":"ipconfig1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/networkInterfaces/abunt4752/ipConfigurations/ipconfig1","etag":"W/\"adc7d560-e622-4f50-bf5f-a029a437c5ae\"","type":"Microsoft.Network/networkInterfaces/ipConfigurations","properties":{"provisioningState":"Succeeded","privateIPAddress":"10.4.0.4","privateIPAllocationMethod":"Dynamic","publicIPAddress":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/publicIPAddresses/abunt4-ip"},"subnet":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/virtualNetworks/abuntu3/subnets/default"},"primary":true,"privateIPAddressVersion":"IPv4"}}],"dnsSettings":{"dnsServers":[],"appliedDnsServers":[]},"macAddress":"00-0D-3A-4E-B9-BB","enableAcceleratedNetworking":true,"enableIPForwarding":false,"networkSecurityGroup":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/networkSecurityGroups/abunt4-nsg"},"hostedWorkloads":[],"tapConfigurations":[]},"type":"Microsoft.Network/networkInterfaces"},{"name":"abuntu1428","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/networkInterfaces/abuntu1428","etag":"W/\"6d827f43-0bf1-4fd1-aa11-653c6f3be097\"","location":"eastus","properties":{"provisioningState":"Succeeded","resourceGuid":"716a38a6-ceb8-4ad7-9b1f-5438434af985","ipConfigurations":[{"name":"ipconfig1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/networkInterfaces/abuntu1428/ipConfigurations/ipconfig1","etag":"W/\"6d827f43-0bf1-4fd1-aa11-653c6f3be097\"","type":"Microsoft.Network/networkInterfaces/ipConfigurations","properties":{"provisioningState":"Succeeded","privateIPAddress":"10.2.0.5","privateIPAllocationMethod":"Dynamic","publicIPAddress":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/publicIPAddresses/abuntu1-ip"},"subnet":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/virtualNetworks/abunt3/subnets/default"},"primary":true,"privateIPAddressVersion":"IPv4"}}],"dnsSettings":{"dnsServers":[],"appliedDnsServers":[],"internalDomainNameSuffix":"pvqtqejfdjjefccgdjzlqgveva.bx.internal.cloudapp.net"},"macAddress":"00-0D-3A-4F-53-66","enableAcceleratedNetworking":true,"enableIPForwarding":false,"networkSecurityGroup":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/networkSecurityGroups/abuntu1-nsg"},"primary":true,"virtualMachine":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Compute/virtualMachines/abuntu1"},"hostedWorkloads":[],"tapConfigurations":[]},"type":"Microsoft.Network/networkInterfaces"},{"name":"abuntu259","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/networkInterfaces/abuntu259","etag":"W/\"8fe0ef11-e58c-44d6-ae9d-e2e7502bc2e7\"","location":"eastus","properties":{"provisioningState":"Succeeded","resourceGuid":"6cadbeb0-01dd-41f4-ac68-74fe9deac6e8","ipConfigurations":[{"name":"ipconfig1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/networkInterfaces/abuntu259/ipConfigurations/ipconfig1","etag":"W/\"8fe0ef11-e58c-44d6-ae9d-e2e7502bc2e7\"","type":"Microsoft.Network/networkInterfaces/ipConfigurations","properties":{"provisioningState":"Succeeded","privateIPAddress":"10.3.0.4","privateIPAllocationMethod":"Dynamic","publicIPAddress":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/publicIPAddresses/abuntu-ip"},"subnet":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/virtualNetworks/abuntu-vnet/subnets/default"},"primary":true,"privateIPAddressVersion":"IPv4"}}],"dnsSettings":{"dnsServers":[],"appliedDnsServers":[]},"macAddress":"00-0D-3A-4E-C4-69","enableAcceleratedNetworking":true,"enableIPForwarding":false,"networkSecurityGroup":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/networkSecurityGroups/abuntu"},"hostedWorkloads":[],"tapConfigurations":[]},"type":"Microsoft.Network/networkInterfaces"},{"name":"abuntu2743","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/networkInterfaces/abuntu2743","etag":"W/\"07c003cc-a698-4f00-b767-aafdd1cda0f3\"","location":"eastus","properties":{"provisioningState":"Succeeded","resourceGuid":"89420481-6943-4502-888b-62bc46f0bef0","ipConfigurations":[{"name":"ipconfig1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/networkInterfaces/abuntu2743/ipConfigurations/ipconfig1","etag":"W/\"07c003cc-a698-4f00-b767-aafdd1cda0f3\"","type":"Microsoft.Network/networkInterfaces/ipConfigurations","properties":{"provisioningState":"Succeeded","privateIPAddress":"10.2.0.6","privateIPAllocationMethod":"Dynamic","publicIPAddress":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/publicIPAddresses/abuntu2ip781"},"subnet":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/virtualNetworks/abunt3/subnets/default"},"primary":true,"privateIPAddressVersion":"IPv4"}}],"dnsSettings":{"dnsServers":[],"appliedDnsServers":[],"internalDomainNameSuffix":"pvqtqejfdjjefccgdjzlqgveva.bx.internal.cloudapp.net"},"macAddress":"00-0D-3A-4D-4D-0F","enableAcceleratedNetworking":true,"enableIPForwarding":false,"networkSecurityGroup":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/networkSecurityGroups/abuntu2-nsg"},"primary":true,"virtualMachine":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Compute/virtualMachines/abuntu2"},"hostedWorkloads":[],"tapConfigurations":[]},"type":"Microsoft.Network/networkInterfaces"},{"name":"abuntu2817","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/networkInterfaces/abuntu2817","etag":"W/\"ad924d5b-9898-4390-91d1-b35fe7c3af94\"","location":"eastus","properties":{"provisioningState":"Succeeded","resourceGuid":"6b98f584-1069-4334-b011-2620bb9f13c2","ipConfigurations":[{"name":"ipconfig1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/networkInterfaces/abuntu2817/ipConfigurations/ipconfig1","etag":"W/\"ad924d5b-9898-4390-91d1-b35fe7c3af94\"","type":"Microsoft.Network/networkInterfaces/ipConfigurations","properties":{"provisioningState":"Succeeded","privateIPAddress":"10.5.0.4","privateIPAllocationMethod":"Dynamic","publicIPAddress":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/publicIPAddresses/abuntu2-ip"},"subnet":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/virtualNetworks/abuntu2/subnets/default"},"primary":true,"privateIPAddressVersion":"IPv4"}}],"dnsSettings":{"dnsServers":[],"appliedDnsServers":[]},"macAddress":"00-0D-3A-1A-A4-AD","enableAcceleratedNetworking":true,"enableIPForwarding":false,"networkSecurityGroup":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/networkSecurityGroups/abuntu2-nsg"},"hostedWorkloads":[],"tapConfigurations":[]},"type":"Microsoft.Network/networkInterfaces"},{"name":"abuntu3634","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/networkInterfaces/abuntu3634","etag":"W/\"b170cb6b-8763-43b8-bf28-00176f932e44\"","location":"eastus","properties":{"provisioningState":"Succeeded","resourceGuid":"1090ceba-180d-4324-a022-15875d542b2f","ipConfigurations":[{"name":"ipconfig1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/networkInterfaces/abuntu3634/ipConfigurations/ipconfig1","etag":"W/\"b170cb6b-8763-43b8-bf28-00176f932e44\"","type":"Microsoft.Network/networkInterfaces/ipConfigurations","properties":{"provisioningState":"Succeeded","privateIPAddress":"10.2.0.4","privateIPAllocationMethod":"Dynamic","publicIPAddress":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/publicIPAddresses/abuntu3-ip"},"subnet":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/virtualNetworks/abunt3/subnets/default"},"primary":true,"privateIPAddressVersion":"IPv4"}}],"dnsSettings":{"dnsServers":[],"appliedDnsServers":[]},"macAddress":"00-0D-3A-4D-D6-33","enableAcceleratedNetworking":true,"enableIPForwarding":false,"networkSecurityGroup":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/networkSecurityGroups/abuntu3-nsg"},"hostedWorkloads":[],"tapConfigurations":[]},"type":"Microsoft.Network/networkInterfaces"},{"name":"lmazuel-testcapture427","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/lmazuel-testcapture/providers/Microsoft.Network/networkInterfaces/lmazuel-testcapture427","etag":"W/\"53003083-c398-46fa-a616-3df40521ce00\"","location":"westus2","properties":{"provisioningState":"Succeeded","resourceGuid":"15eb6eb5-bd81-4e32-b1fd-9fc9e4b1faea","ipConfigurations":[{"name":"ipconfig1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/lmazuel-testcapture/providers/Microsoft.Network/networkInterfaces/lmazuel-testcapture427/ipConfigurations/ipconfig1","etag":"W/\"53003083-c398-46fa-a616-3df40521ce00\"","type":"Microsoft.Network/networkInterfaces/ipConfigurations","properties":{"provisioningState":"Succeeded","privateIPAddress":"10.1.0.4","privateIPAllocationMethod":"Dynamic","publicIPAddress":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/lmazuel-testcapture/providers/Microsoft.Network/publicIPAddresses/lmazuel-testcapture-ip"},"subnet":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/lmazuel-testcapture/providers/Microsoft.Network/virtualNetworks/lmazuel-testcapture-vnet/subnets/default"},"primary":true,"privateIPAddressVersion":"IPv4"}}],"dnsSettings":{"dnsServers":[],"appliedDnsServers":[]},"enableAcceleratedNetworking":false,"enableIPForwarding":false,"networkSecurityGroup":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/lmazuel-testcapture/providers/Microsoft.Network/networkSecurityGroups/lmazuel-testcapture-nsg"},"primary":true,"virtualMachine":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/lmazuel-testcapture/providers/Microsoft.Compute/virtualMachines/lmazuel-testcapture"},"hostedWorkloads":[],"tapConfigurations":[]},"type":"Microsoft.Network/networkInterfaces"}]}'} headers: cache-control: [no-cache] - content-length: ['20693'] + content-length: ['18567'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:28:21 GMT'] + date: ['Tue, 27 Nov 2018 20:17:22 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] vary: [Accept-Encoding] x-content-type-options: [nosniff] - x-ms-original-request-ids: [d51f69aa-47f1-41ef-847d-c204af18bf29, cbe085f4-683b-4c14-beeb-0bc1c43a0c24, - 42d803a8-567a-4790-993b-711071efb3d4, 8eb58fb0-22ef-4626-9907-b84d6a889580] + x-ms-original-request-ids: [ea9fdd19-7c1a-4da2-8093-ef2eddf8e71e, 58a3f10d-eda6-4a0d-9827-87576f2517ca, + 4e19f05e-4c42-4056-ae7c-dcd6d294c8c4] status: {code: 200, message: OK} - request: body: null @@ -449,25 +446,25 @@ interactions: Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/networkInterfaces/pynicb046129e?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_interface_cardb046129e/providers/Microsoft.Network/networkInterfaces/pynicb046129e?api-version=2018-10-01 response: body: {string: ''} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/d0eba4e0-5f23-4aee-9237-53f37cb11309?api-version=2018-08-01'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/c55eb453-a3cf-486e-9513-ed041edad655?api-version=2018-10-01'] cache-control: [no-cache] content-length: ['0'] - date: ['Tue, 11 Sep 2018 17:28:22 GMT'] + date: ['Tue, 27 Nov 2018 20:17:23 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/d0eba4e0-5f23-4aee-9237-53f37cb11309?api-version=2018-08-01'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/c55eb453-a3cf-486e-9513-ed041edad655?api-version=2018-10-01'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-deletes: ['14996'] + x-ms-ratelimit-remaining-subscription-deletes: ['14999'] status: {code: 202, message: Accepted} - request: body: null @@ -475,17 +472,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/d0eba4e0-5f23-4aee-9237-53f37cb11309?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/c55eb453-a3cf-486e-9513-ed041edad655?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} headers: cache-control: [no-cache] content-length: ['29'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:28:33 GMT'] + date: ['Tue, 27 Nov 2018 20:17:34 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] diff --git a/azure-mgmt-network/tests/recordings/test_mgmt_network.test_network_security_groups.yaml b/azure-mgmt-network/tests/recordings/test_mgmt_network.test_network_security_groups.yaml index 880f244f4661..6d3e89f37f53 100644 --- a/azure-mgmt-network/tests/recordings/test_mgmt_network.test_network_security_groups.yaml +++ b/azure-mgmt-network/tests/recordings/test_mgmt_network.test_network_security_groups.yaml @@ -10,20 +10,20 @@ interactions: Connection: [keep-alive] Content-Length: ['348'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b?api-version=2018-10-01 response: body: {string: "{\r\n \"name\": \"pysecgroupc575136b\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b\"\ - ,\r\n \"etag\": \"W/\\\"f58f7955-135e-43a3-acda-092495bc88ad\\\"\",\r\n \ + ,\r\n \"etag\": \"W/\\\"53504ee7-4bab-476b-bb45-19666381bc79\\\"\",\r\n \ \ \"type\": \"Microsoft.Network/networkSecurityGroups\",\r\n \"location\"\ : \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\ - ,\r\n \"resourceGuid\": \"91f30cf8-1143-4469-bf12-33d7870cb432\",\r\n \ + ,\r\n \"resourceGuid\": \"cba5dcf4-45be-4ec9-9af0-c97385b52468\",\r\n \ \ \"securityRules\": [\r\n {\r\n \"name\": \"pysecgrouprulec575136b\"\ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/securityRules/pysecgrouprulec575136b\"\ - ,\r\n \"etag\": \"W/\\\"f58f7955-135e-43a3-acda-092495bc88ad\\\"\"\ + ,\r\n \"etag\": \"W/\\\"53504ee7-4bab-476b-bb45-19666381bc79\\\"\"\ ,\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/securityRules\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\ ,\r\n \"description\": \"Test security rule\",\r\n \"protocol\"\ @@ -36,7 +36,7 @@ interactions: : []\r\n }\r\n }\r\n ],\r\n \"defaultSecurityRules\": [\r\ \n {\r\n \"name\": \"AllowVnetInBound\",\r\n \"id\": \"\ /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/AllowVnetInBound\"\ - ,\r\n \"etag\": \"W/\\\"f58f7955-135e-43a3-acda-092495bc88ad\\\"\"\ + ,\r\n \"etag\": \"W/\\\"53504ee7-4bab-476b-bb45-19666381bc79\\\"\"\ ,\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\ ,\r\n \"description\": \"Allow inbound traffic from all VMs in VNET\"\ @@ -49,7 +49,7 @@ interactions: : [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n \ \ },\r\n {\r\n \"name\": \"AllowAzureLoadBalancerInBound\",\r\ \n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/AllowAzureLoadBalancerInBound\"\ - ,\r\n \"etag\": \"W/\\\"f58f7955-135e-43a3-acda-092495bc88ad\\\"\"\ + ,\r\n \"etag\": \"W/\\\"53504ee7-4bab-476b-bb45-19666381bc79\\\"\"\ ,\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\ ,\r\n \"description\": \"Allow inbound traffic from azure load balancer\"\ @@ -62,7 +62,7 @@ interactions: : [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n \ \ },\r\n {\r\n \"name\": \"DenyAllInBound\",\r\n \"id\"\ : \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/DenyAllInBound\"\ - ,\r\n \"etag\": \"W/\\\"f58f7955-135e-43a3-acda-092495bc88ad\\\"\"\ + ,\r\n \"etag\": \"W/\\\"53504ee7-4bab-476b-bb45-19666381bc79\\\"\"\ ,\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\ ,\r\n \"description\": \"Deny all inbound traffic\",\r\n \ @@ -74,7 +74,7 @@ interactions: : [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\"\ : []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowVnetOutBound\"\ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/AllowVnetOutBound\"\ - ,\r\n \"etag\": \"W/\\\"f58f7955-135e-43a3-acda-092495bc88ad\\\"\"\ + ,\r\n \"etag\": \"W/\\\"53504ee7-4bab-476b-bb45-19666381bc79\\\"\"\ ,\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\ ,\r\n \"description\": \"Allow outbound traffic from all VMs to all\ @@ -87,7 +87,7 @@ interactions: : [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n \ \ },\r\n {\r\n \"name\": \"AllowInternetOutBound\",\r\n \ \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/AllowInternetOutBound\"\ - ,\r\n \"etag\": \"W/\\\"f58f7955-135e-43a3-acda-092495bc88ad\\\"\"\ + ,\r\n \"etag\": \"W/\\\"53504ee7-4bab-476b-bb45-19666381bc79\\\"\"\ ,\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\ ,\r\n \"description\": \"Allow outbound traffic from all VMs to Internet\"\ @@ -100,7 +100,7 @@ interactions: : [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n \ \ },\r\n {\r\n \"name\": \"DenyAllOutBound\",\r\n \"\ id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/DenyAllOutBound\"\ - ,\r\n \"etag\": \"W/\\\"f58f7955-135e-43a3-acda-092495bc88ad\\\"\"\ + ,\r\n \"etag\": \"W/\\\"53504ee7-4bab-476b-bb45-19666381bc79\\\"\"\ ,\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\ ,\r\n \"description\": \"Deny all outbound traffic\",\r\n \ @@ -112,11 +112,11 @@ interactions: : [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\"\ : []\r\n }\r\n }\r\n ]\r\n }\r\n}"} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e96c7320-86e6-4b58-a7c8-3c2b11e787f6?api-version=2018-08-01'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/bf6b3335-26e6-465a-a17d-3988284eccd6?api-version=2018-10-01'] cache-control: [no-cache] content-length: ['7917'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:28:39 GMT'] + date: ['Tue, 27 Nov 2018 20:17:39 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -130,17 +130,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e96c7320-86e6-4b58-a7c8-3c2b11e787f6?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/bf6b3335-26e6-465a-a17d-3988284eccd6?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} headers: cache-control: [no-cache] content-length: ['29'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:28:49 GMT'] + date: ['Tue, 27 Nov 2018 20:17:50 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -155,19 +155,19 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b?api-version=2018-10-01 response: body: {string: "{\r\n \"name\": \"pysecgroupc575136b\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b\"\ - ,\r\n \"etag\": \"W/\\\"aa0fe286-bc49-4952-9e1f-02314ec233f9\\\"\",\r\n \ + ,\r\n \"etag\": \"W/\\\"e49886cb-8a31-436a-a5b5-0fa6e9feade7\\\"\",\r\n \ \ \"type\": \"Microsoft.Network/networkSecurityGroups\",\r\n \"location\"\ : \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ - ,\r\n \"resourceGuid\": \"91f30cf8-1143-4469-bf12-33d7870cb432\",\r\n \ + ,\r\n \"resourceGuid\": \"cba5dcf4-45be-4ec9-9af0-c97385b52468\",\r\n \ \ \"securityRules\": [\r\n {\r\n \"name\": \"pysecgrouprulec575136b\"\ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/securityRules/pysecgrouprulec575136b\"\ - ,\r\n \"etag\": \"W/\\\"aa0fe286-bc49-4952-9e1f-02314ec233f9\\\"\"\ + ,\r\n \"etag\": \"W/\\\"e49886cb-8a31-436a-a5b5-0fa6e9feade7\\\"\"\ ,\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/securityRules\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ ,\r\n \"description\": \"Test security rule\",\r\n \"protocol\"\ @@ -180,7 +180,7 @@ interactions: : []\r\n }\r\n }\r\n ],\r\n \"defaultSecurityRules\": [\r\ \n {\r\n \"name\": \"AllowVnetInBound\",\r\n \"id\": \"\ /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/AllowVnetInBound\"\ - ,\r\n \"etag\": \"W/\\\"aa0fe286-bc49-4952-9e1f-02314ec233f9\\\"\"\ + ,\r\n \"etag\": \"W/\\\"e49886cb-8a31-436a-a5b5-0fa6e9feade7\\\"\"\ ,\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ ,\r\n \"description\": \"Allow inbound traffic from all VMs in VNET\"\ @@ -193,7 +193,7 @@ interactions: : [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n \ \ },\r\n {\r\n \"name\": \"AllowAzureLoadBalancerInBound\",\r\ \n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/AllowAzureLoadBalancerInBound\"\ - ,\r\n \"etag\": \"W/\\\"aa0fe286-bc49-4952-9e1f-02314ec233f9\\\"\"\ + ,\r\n \"etag\": \"W/\\\"e49886cb-8a31-436a-a5b5-0fa6e9feade7\\\"\"\ ,\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ ,\r\n \"description\": \"Allow inbound traffic from azure load balancer\"\ @@ -206,7 +206,7 @@ interactions: : [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n \ \ },\r\n {\r\n \"name\": \"DenyAllInBound\",\r\n \"id\"\ : \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/DenyAllInBound\"\ - ,\r\n \"etag\": \"W/\\\"aa0fe286-bc49-4952-9e1f-02314ec233f9\\\"\"\ + ,\r\n \"etag\": \"W/\\\"e49886cb-8a31-436a-a5b5-0fa6e9feade7\\\"\"\ ,\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ ,\r\n \"description\": \"Deny all inbound traffic\",\r\n \ @@ -218,7 +218,7 @@ interactions: : [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\"\ : []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowVnetOutBound\"\ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/AllowVnetOutBound\"\ - ,\r\n \"etag\": \"W/\\\"aa0fe286-bc49-4952-9e1f-02314ec233f9\\\"\"\ + ,\r\n \"etag\": \"W/\\\"e49886cb-8a31-436a-a5b5-0fa6e9feade7\\\"\"\ ,\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ ,\r\n \"description\": \"Allow outbound traffic from all VMs to all\ @@ -231,7 +231,7 @@ interactions: : [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n \ \ },\r\n {\r\n \"name\": \"AllowInternetOutBound\",\r\n \ \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/AllowInternetOutBound\"\ - ,\r\n \"etag\": \"W/\\\"aa0fe286-bc49-4952-9e1f-02314ec233f9\\\"\"\ + ,\r\n \"etag\": \"W/\\\"e49886cb-8a31-436a-a5b5-0fa6e9feade7\\\"\"\ ,\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ ,\r\n \"description\": \"Allow outbound traffic from all VMs to Internet\"\ @@ -244,7 +244,7 @@ interactions: : [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n \ \ },\r\n {\r\n \"name\": \"DenyAllOutBound\",\r\n \"\ id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/DenyAllOutBound\"\ - ,\r\n \"etag\": \"W/\\\"aa0fe286-bc49-4952-9e1f-02314ec233f9\\\"\"\ + ,\r\n \"etag\": \"W/\\\"e49886cb-8a31-436a-a5b5-0fa6e9feade7\\\"\"\ ,\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ ,\r\n \"description\": \"Deny all outbound traffic\",\r\n \ @@ -259,8 +259,8 @@ interactions: cache-control: [no-cache] content-length: ['7925'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:28:50 GMT'] - etag: [W/"aa0fe286-bc49-4952-9e1f-02314ec233f9"] + date: ['Tue, 27 Nov 2018 20:17:50 GMT'] + etag: [W/"e49886cb-8a31-436a-a5b5-0fa6e9feade7"] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -275,20 +275,20 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b?api-version=2018-10-01 response: body: {string: "{\r\n \"name\": \"pysecgroupc575136b\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b\"\ - ,\r\n \"etag\": \"W/\\\"aa0fe286-bc49-4952-9e1f-02314ec233f9\\\"\",\r\n \ + ,\r\n \"etag\": \"W/\\\"e49886cb-8a31-436a-a5b5-0fa6e9feade7\\\"\",\r\n \ \ \"type\": \"Microsoft.Network/networkSecurityGroups\",\r\n \"location\"\ : \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ - ,\r\n \"resourceGuid\": \"91f30cf8-1143-4469-bf12-33d7870cb432\",\r\n \ + ,\r\n \"resourceGuid\": \"cba5dcf4-45be-4ec9-9af0-c97385b52468\",\r\n \ \ \"securityRules\": [\r\n {\r\n \"name\": \"pysecgrouprulec575136b\"\ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/securityRules/pysecgrouprulec575136b\"\ - ,\r\n \"etag\": \"W/\\\"aa0fe286-bc49-4952-9e1f-02314ec233f9\\\"\"\ + ,\r\n \"etag\": \"W/\\\"e49886cb-8a31-436a-a5b5-0fa6e9feade7\\\"\"\ ,\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/securityRules\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ ,\r\n \"description\": \"Test security rule\",\r\n \"protocol\"\ @@ -301,7 +301,7 @@ interactions: : []\r\n }\r\n }\r\n ],\r\n \"defaultSecurityRules\": [\r\ \n {\r\n \"name\": \"AllowVnetInBound\",\r\n \"id\": \"\ /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/AllowVnetInBound\"\ - ,\r\n \"etag\": \"W/\\\"aa0fe286-bc49-4952-9e1f-02314ec233f9\\\"\"\ + ,\r\n \"etag\": \"W/\\\"e49886cb-8a31-436a-a5b5-0fa6e9feade7\\\"\"\ ,\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ ,\r\n \"description\": \"Allow inbound traffic from all VMs in VNET\"\ @@ -314,7 +314,7 @@ interactions: : [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n \ \ },\r\n {\r\n \"name\": \"AllowAzureLoadBalancerInBound\",\r\ \n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/AllowAzureLoadBalancerInBound\"\ - ,\r\n \"etag\": \"W/\\\"aa0fe286-bc49-4952-9e1f-02314ec233f9\\\"\"\ + ,\r\n \"etag\": \"W/\\\"e49886cb-8a31-436a-a5b5-0fa6e9feade7\\\"\"\ ,\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ ,\r\n \"description\": \"Allow inbound traffic from azure load balancer\"\ @@ -327,7 +327,7 @@ interactions: : [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n \ \ },\r\n {\r\n \"name\": \"DenyAllInBound\",\r\n \"id\"\ : \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/DenyAllInBound\"\ - ,\r\n \"etag\": \"W/\\\"aa0fe286-bc49-4952-9e1f-02314ec233f9\\\"\"\ + ,\r\n \"etag\": \"W/\\\"e49886cb-8a31-436a-a5b5-0fa6e9feade7\\\"\"\ ,\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ ,\r\n \"description\": \"Deny all inbound traffic\",\r\n \ @@ -339,7 +339,7 @@ interactions: : [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\"\ : []\r\n }\r\n },\r\n {\r\n \"name\": \"AllowVnetOutBound\"\ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/AllowVnetOutBound\"\ - ,\r\n \"etag\": \"W/\\\"aa0fe286-bc49-4952-9e1f-02314ec233f9\\\"\"\ + ,\r\n \"etag\": \"W/\\\"e49886cb-8a31-436a-a5b5-0fa6e9feade7\\\"\"\ ,\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ ,\r\n \"description\": \"Allow outbound traffic from all VMs to all\ @@ -352,7 +352,7 @@ interactions: : [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n \ \ },\r\n {\r\n \"name\": \"AllowInternetOutBound\",\r\n \ \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/AllowInternetOutBound\"\ - ,\r\n \"etag\": \"W/\\\"aa0fe286-bc49-4952-9e1f-02314ec233f9\\\"\"\ + ,\r\n \"etag\": \"W/\\\"e49886cb-8a31-436a-a5b5-0fa6e9feade7\\\"\"\ ,\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ ,\r\n \"description\": \"Allow outbound traffic from all VMs to Internet\"\ @@ -365,7 +365,7 @@ interactions: : [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n \ \ },\r\n {\r\n \"name\": \"DenyAllOutBound\",\r\n \"\ id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/DenyAllOutBound\"\ - ,\r\n \"etag\": \"W/\\\"aa0fe286-bc49-4952-9e1f-02314ec233f9\\\"\"\ + ,\r\n \"etag\": \"W/\\\"e49886cb-8a31-436a-a5b5-0fa6e9feade7\\\"\"\ ,\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ ,\r\n \"description\": \"Deny all outbound traffic\",\r\n \ @@ -380,8 +380,8 @@ interactions: cache-control: [no-cache] content-length: ['7925'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:28:51 GMT'] - etag: [W/"aa0fe286-bc49-4952-9e1f-02314ec233f9"] + date: ['Tue, 27 Nov 2018 20:17:51 GMT'] + etag: [W/"e49886cb-8a31-436a-a5b5-0fa6e9feade7"] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -396,21 +396,21 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups?api-version=2018-10-01 response: body: {string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"pysecgroupc575136b\"\ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b\"\ - ,\r\n \"etag\": \"W/\\\"aa0fe286-bc49-4952-9e1f-02314ec233f9\\\"\",\r\ + ,\r\n \"etag\": \"W/\\\"e49886cb-8a31-436a-a5b5-0fa6e9feade7\\\"\",\r\ \n \"type\": \"Microsoft.Network/networkSecurityGroups\",\r\n \"\ location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\"\ - : \"Succeeded\",\r\n \"resourceGuid\": \"91f30cf8-1143-4469-bf12-33d7870cb432\"\ + : \"Succeeded\",\r\n \"resourceGuid\": \"cba5dcf4-45be-4ec9-9af0-c97385b52468\"\ ,\r\n \"securityRules\": [\r\n {\r\n \"name\":\ \ \"pysecgrouprulec575136b\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/securityRules/pysecgrouprulec575136b\"\ - ,\r\n \"etag\": \"W/\\\"aa0fe286-bc49-4952-9e1f-02314ec233f9\\\"\ + ,\r\n \"etag\": \"W/\\\"e49886cb-8a31-436a-a5b5-0fa6e9feade7\\\"\ \",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/securityRules\"\ ,\r\n \"properties\": {\r\n \"provisioningState\"\ : \"Succeeded\",\r\n \"description\": \"Test security rule\"\ @@ -424,7 +424,7 @@ interactions: : []\r\n }\r\n }\r\n ],\r\n \"defaultSecurityRules\"\ : [\r\n {\r\n \"name\": \"AllowVnetInBound\",\r\n \ \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/AllowVnetInBound\"\ - ,\r\n \"etag\": \"W/\\\"aa0fe286-bc49-4952-9e1f-02314ec233f9\\\"\ + ,\r\n \"etag\": \"W/\\\"e49886cb-8a31-436a-a5b5-0fa6e9feade7\\\"\ \",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\"\ ,\r\n \"properties\": {\r\n \"provisioningState\"\ : \"Succeeded\",\r\n \"description\": \"Allow inbound traffic\ @@ -438,7 +438,7 @@ interactions: sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\"\ : []\r\n }\r\n },\r\n {\r\n \"name\"\ : \"AllowAzureLoadBalancerInBound\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/AllowAzureLoadBalancerInBound\"\ - ,\r\n \"etag\": \"W/\\\"aa0fe286-bc49-4952-9e1f-02314ec233f9\\\"\ + ,\r\n \"etag\": \"W/\\\"e49886cb-8a31-436a-a5b5-0fa6e9feade7\\\"\ \",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\"\ ,\r\n \"properties\": {\r\n \"provisioningState\"\ : \"Succeeded\",\r\n \"description\": \"Allow inbound traffic\ @@ -452,7 +452,7 @@ interactions: : [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\ \n },\r\n {\r\n \"name\": \"DenyAllInBound\"\ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/DenyAllInBound\"\ - ,\r\n \"etag\": \"W/\\\"aa0fe286-bc49-4952-9e1f-02314ec233f9\\\"\ + ,\r\n \"etag\": \"W/\\\"e49886cb-8a31-436a-a5b5-0fa6e9feade7\\\"\ \",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\"\ ,\r\n \"properties\": {\r\n \"provisioningState\"\ : \"Succeeded\",\r\n \"description\": \"Deny all inbound traffic\"\ @@ -465,7 +465,7 @@ interactions: \ \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\"\ : []\r\n }\r\n },\r\n {\r\n \"name\"\ : \"AllowVnetOutBound\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/AllowVnetOutBound\"\ - ,\r\n \"etag\": \"W/\\\"aa0fe286-bc49-4952-9e1f-02314ec233f9\\\"\ + ,\r\n \"etag\": \"W/\\\"e49886cb-8a31-436a-a5b5-0fa6e9feade7\\\"\ \",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\"\ ,\r\n \"properties\": {\r\n \"provisioningState\"\ : \"Succeeded\",\r\n \"description\": \"Allow outbound traffic\ @@ -479,7 +479,7 @@ interactions: sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\"\ : []\r\n }\r\n },\r\n {\r\n \"name\"\ : \"AllowInternetOutBound\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/AllowInternetOutBound\"\ - ,\r\n \"etag\": \"W/\\\"aa0fe286-bc49-4952-9e1f-02314ec233f9\\\"\ + ,\r\n \"etag\": \"W/\\\"e49886cb-8a31-436a-a5b5-0fa6e9feade7\\\"\ \",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\"\ ,\r\n \"properties\": {\r\n \"provisioningState\"\ : \"Succeeded\",\r\n \"description\": \"Allow outbound traffic\ @@ -493,7 +493,7 @@ interactions: : [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\ \n },\r\n {\r\n \"name\": \"DenyAllOutBound\"\ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/DenyAllOutBound\"\ - ,\r\n \"etag\": \"W/\\\"aa0fe286-bc49-4952-9e1f-02314ec233f9\\\"\ + ,\r\n \"etag\": \"W/\\\"e49886cb-8a31-436a-a5b5-0fa6e9feade7\\\"\ \",\r\n \"type\": \"Microsoft.Network/networkSecurityGroups/defaultSecurityRules\"\ ,\r\n \"properties\": {\r\n \"provisioningState\"\ : \"Succeeded\",\r\n \"description\": \"Deny all outbound traffic\"\ @@ -510,7 +510,7 @@ interactions: cache-control: [no-cache] content-length: ['8626'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:28:51 GMT'] + date: ['Tue, 27 Nov 2018 20:17:52 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -525,50 +525,62 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/networkSecurityGroups?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/networkSecurityGroups?api-version=2018-10-01 response: - body: {string: '{"value":[{"name":"rg-cleanupservice-nsg6","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg6","etag":"W/\"6e155d5d-f5b9-486c-8639-dfd234bf4a36\"","type":"Microsoft.Network/networkSecurityGroups","location":"westus","properties":{"provisioningState":"Succeeded","resourceGuid":"d953f609-fffc-42e1-9026-12f14da4c99e","securityRules":[{"name":"Cleanuptool-Allow-4001","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg6/securityRules/Cleanuptool-Allow-4001","etag":"W/\"6e155d5d-f5b9-486c-8639-dfd234bf4a36\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Allow","priority":4001,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-100","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg6/securityRules/Cleanuptool-Allow-100","etag":"W/\"6e155d5d-f5b9-486c-8639-dfd234bf4a36\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationAddressPrefix":"*","access":"Allow","priority":100,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":["3389","5985","5986","22","2222","1433","445","23","135"],"sourceAddressPrefixes":["167.220.148.0/23","131.107.147.0/24","131.107.159.0/24","131.107.160.0/24","131.107.174.0/24","167.220.24.0/24","167.220.26.0/24","167.220.238.0/27","167.220.238.128/27","167.220.238.192/27","167.220.238.64/27","167.220.232.0/23","167.220.255.0/25","167.220.242.0/27","167.220.242.128/27","167.220.242.192/27","167.220.242.64/27","94.245.87.0/24","167.220.196.0/23","194.69.104.0/25","191.234.97.0/26","167.220.0.0/23","167.220.2.0/24","207.68.190.32/27","13.106.78.32/27","10.254.32.0/20","10.97.136.0/22","13.106.174.32/27","13.106.4.96/27"],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-101","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg6/securityRules/Cleanuptool-Allow-101","etag":"W/\"6e155d5d-f5b9-486c-8639-dfd234bf4a36\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"*","access":"Allow","priority":101,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":["3389","5985","5986","22","2222","1433","445","23","135"],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-102","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg6/securityRules/Cleanuptool-Allow-102","etag":"W/\"6e155d5d-f5b9-486c-8639-dfd234bf4a36\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","sourceAddressPrefix":"AzureLoadBalancer","destinationAddressPrefix":"*","access":"Allow","priority":102,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":["3389","5985","5986","22","2222","1433","445","23","135"],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Deny-103","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg6/securityRules/Cleanuptool-Deny-103","etag":"W/\"6e155d5d-f5b9-486c-8639-dfd234bf4a36\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":103,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":["3389","5985","5986","22","2222","1433","445","23","135"],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}}],"defaultSecurityRules":[{"name":"AllowVnetInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg6/defaultSecurityRules/AllowVnetInBound","etag":"W/\"6e155d5d-f5b9-486c-8639-dfd234bf4a36\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow - inbound traffic from all VMs in VNET","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"VirtualNetwork","access":"Allow","priority":65000,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowAzureLoadBalancerInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg6/defaultSecurityRules/AllowAzureLoadBalancerInBound","etag":"W/\"6e155d5d-f5b9-486c-8639-dfd234bf4a36\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow - inbound traffic from azure load balancer","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"AzureLoadBalancer","destinationAddressPrefix":"*","access":"Allow","priority":65001,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"DenyAllInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg6/defaultSecurityRules/DenyAllInBound","etag":"W/\"6e155d5d-f5b9-486c-8639-dfd234bf4a36\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Deny - all inbound traffic","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":65500,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowVnetOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg6/defaultSecurityRules/AllowVnetOutBound","etag":"W/\"6e155d5d-f5b9-486c-8639-dfd234bf4a36\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow - outbound traffic from all VMs to all VMs in VNET","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"VirtualNetwork","access":"Allow","priority":65000,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowInternetOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg6/defaultSecurityRules/AllowInternetOutBound","etag":"W/\"6e155d5d-f5b9-486c-8639-dfd234bf4a36\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow - outbound traffic from all VMs to Internet","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"Internet","access":"Allow","priority":65001,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"DenyAllOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg6/defaultSecurityRules/DenyAllOutBound","etag":"W/\"6e155d5d-f5b9-486c-8639-dfd234bf4a36\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Deny - all outbound traffic","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":65500,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}}],"subnets":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/wilxtest/providers/Microsoft.Network/virtualNetworks/wilxvm1VNET/subnets/wilxvm1Subnet"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ovaTestGroup/providers/Microsoft.Network/virtualNetworks/TestVMVNET/subnets/TestVMSubnet"}]}},{"name":"rg-cleanupservice-nsg7","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups","location":"westus","properties":{"provisioningState":"Succeeded","resourceGuid":"97e4f6b2-3277-4206-b07c-6ed937cccdca","securityRules":[{"name":"Cleanuptool-Allow-4000","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-Allow-4000","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Allow","priority":4000,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Deny-3999","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-Deny-3999","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":3999,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Deny-3998","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-Deny-3998","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":3998,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Deny-3997","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-Deny-3997","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":3997,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Deny-3996","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-Deny-3996","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":3996,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Deny-3995","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-Deny-3995","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":3995,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Deny-3994","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-Deny-3994","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":3994,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-3993","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-Allow-3993","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Allow","priority":3993,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-3992","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-Allow-3992","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"*","access":"Allow","priority":3992,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-3991","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-Allow-3991","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Allow","priority":3991,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-3990","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-Allow-3990","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"*","access":"Allow","priority":3990,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-3989","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-Allow-3989","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Allow","priority":3989,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-3988","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-Allow-3988","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"*","access":"Allow","priority":3988,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-3987","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-Allow-3987","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Allow","priority":3987,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-3986","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-Allow-3986","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"*","access":"Allow","priority":3986,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-3985","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-Allow-3985","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Allow","priority":3985,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-3984","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-Allow-3984","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"*","access":"Allow","priority":3984,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-3983","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-Allow-3983","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Allow","priority":3983,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-3982","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-Allow-3982","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"*","access":"Allow","priority":3982,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-505bd4d1-a663-445c-8b76-e74117a55d6c","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-3389-Corpnet-505bd4d1-a663-445c-8b76-e74117a55d6c","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"167.220.148.0/23","destinationAddressPrefix":"*","access":"Allow","priority":110,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-726e7246-0e80-4c4b-9764-6fbd40bea83a","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-3389-Corpnet-726e7246-0e80-4c4b-9764-6fbd40bea83a","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"131.107.147.0/24","destinationAddressPrefix":"*","access":"Allow","priority":111,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-7079cb7e-4c38-4505-a82b-a1baf0c945a2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-3389-Corpnet-7079cb7e-4c38-4505-a82b-a1baf0c945a2","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"131.107.159.0/24","destinationAddressPrefix":"*","access":"Allow","priority":112,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-a7b111e1-b0b4-4fda-81e2-fbb8a448d584","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-3389-Corpnet-a7b111e1-b0b4-4fda-81e2-fbb8a448d584","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"131.107.160.0/24","destinationAddressPrefix":"*","access":"Allow","priority":113,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-8bc3ab11-04f1-4bfc-aebc-a9491f5f4321","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-3389-Corpnet-8bc3ab11-04f1-4bfc-aebc-a9491f5f4321","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"131.107.174.0/24","destinationAddressPrefix":"*","access":"Allow","priority":114,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-5ba6edab-7bcf-4162-a252-1f3eb19af809","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-3389-Corpnet-5ba6edab-7bcf-4162-a252-1f3eb19af809","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"167.220.24.0/24","destinationAddressPrefix":"*","access":"Allow","priority":115,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-f2062bd7-1224-4b8d-9782-42ebb9401352","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-3389-Corpnet-f2062bd7-1224-4b8d-9782-42ebb9401352","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"167.220.26.0/24","destinationAddressPrefix":"*","access":"Allow","priority":116,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-1a3d640e-60df-4a69-86c2-3ea2700951a6","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-3389-Corpnet-1a3d640e-60df-4a69-86c2-3ea2700951a6","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"167.220.238.0/27","destinationAddressPrefix":"*","access":"Allow","priority":117,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-037ba98d-340d-4b65-866e-9f86526f631e","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-3389-Corpnet-037ba98d-340d-4b65-866e-9f86526f631e","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"167.220.238.128/27","destinationAddressPrefix":"*","access":"Allow","priority":118,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-d737cb43-1e0b-454c-8753-ea0c3ced9e0a","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-3389-Corpnet-d737cb43-1e0b-454c-8753-ea0c3ced9e0a","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"167.220.238.192/27","destinationAddressPrefix":"*","access":"Allow","priority":119,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-a3703281-9467-4d8a-9da0-4b517a5630e2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-3389-Corpnet-a3703281-9467-4d8a-9da0-4b517a5630e2","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"167.220.238.64/27","destinationAddressPrefix":"*","access":"Allow","priority":120,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-f8dfd928-7c42-4ab5-9f2b-32598708eb0d","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-3389-Corpnet-f8dfd928-7c42-4ab5-9f2b-32598708eb0d","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"167.220.232.0/23","destinationAddressPrefix":"*","access":"Allow","priority":121,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-9cf4d919-f3f0-4a79-a4e4-05e75eadd747","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-3389-Corpnet-9cf4d919-f3f0-4a79-a4e4-05e75eadd747","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"167.220.255.0/25","destinationAddressPrefix":"*","access":"Allow","priority":122,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-29b41117-7026-4f27-b5a3-af513b03ec3c","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-3389-Corpnet-29b41117-7026-4f27-b5a3-af513b03ec3c","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"167.220.242.0/27","destinationAddressPrefix":"*","access":"Allow","priority":123,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-5b83a9c9-3fbe-4e5a-9dc6-bde52b86120e","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-3389-Corpnet-5b83a9c9-3fbe-4e5a-9dc6-bde52b86120e","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"167.220.242.128/27","destinationAddressPrefix":"*","access":"Allow","priority":124,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-90fb96aa-1c19-4abe-8b27-c378c30b83f0","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-3389-Corpnet-90fb96aa-1c19-4abe-8b27-c378c30b83f0","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"167.220.242.192/27","destinationAddressPrefix":"*","access":"Allow","priority":125,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-af569d8b-16d7-4c17-aea3-461a726abcdd","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-3389-Corpnet-af569d8b-16d7-4c17-aea3-461a726abcdd","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"167.220.242.64/27","destinationAddressPrefix":"*","access":"Allow","priority":126,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-e5086447-40ee-4563-93a9-78f16f0fc196","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-3389-Corpnet-e5086447-40ee-4563-93a9-78f16f0fc196","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"94.245.87.0/24","destinationAddressPrefix":"*","access":"Allow","priority":127,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-15ca0b88-955c-4771-8b92-101fa3842545","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-3389-Corpnet-15ca0b88-955c-4771-8b92-101fa3842545","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"167.220.196.0/23","destinationAddressPrefix":"*","access":"Allow","priority":128,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-562e1357-a829-482a-a590-22fe49d0d788","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-3389-Corpnet-562e1357-a829-482a-a590-22fe49d0d788","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"194.69.104.0/25","destinationAddressPrefix":"*","access":"Allow","priority":129,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-4236a542-61c1-4ed1-ab3d-450b6e6bdb07","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-3389-Corpnet-4236a542-61c1-4ed1-ab3d-450b6e6bdb07","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"191.234.97.0/26","destinationAddressPrefix":"*","access":"Allow","priority":130,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-5bef9075-9bc0-46a0-9b63-2e3a310b6969","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-3389-Corpnet-5bef9075-9bc0-46a0-9b63-2e3a310b6969","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"167.220.0.0/23","destinationAddressPrefix":"*","access":"Allow","priority":131,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-baf93a20-f58d-447f-bdd1-e86bb97a03dd","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-3389-Corpnet-baf93a20-f58d-447f-bdd1-e86bb97a03dd","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"167.220.2.0/24","destinationAddressPrefix":"*","access":"Allow","priority":132,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-7222ac1c-7ef1-49cd-b502-5ea4e005c6ca","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-3389-Corpnet-7222ac1c-7ef1-49cd-b502-5ea4e005c6ca","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"207.68.190.32/27","destinationAddressPrefix":"*","access":"Allow","priority":133,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-56368776-1db2-484c-b0ce-0663e226a10d","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-3389-Corpnet-56368776-1db2-484c-b0ce-0663e226a10d","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"13.106.78.32/27","destinationAddressPrefix":"*","access":"Allow","priority":134,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-8855b901-7598-4ba8-b9ac-06023e31c5e8","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-3389-Corpnet-8855b901-7598-4ba8-b9ac-06023e31c5e8","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"10.254.32.0/20","destinationAddressPrefix":"*","access":"Allow","priority":135,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-56cfced6-510a-4791-bc43-2f295c9905fe","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-3389-Corpnet-56cfced6-510a-4791-bc43-2f295c9905fe","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"10.97.136.0/22","destinationAddressPrefix":"*","access":"Allow","priority":136,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-a866ce1f-98d4-48b0-b534-e0c969d36ca4","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-3389-Corpnet-a866ce1f-98d4-48b0-b534-e0c969d36ca4","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"13.106.174.32/27","destinationAddressPrefix":"*","access":"Allow","priority":137,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-219fc871-ce03-4b71-b47c-c942578400a1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-3389-Corpnet-219fc871-ce03-4b71-b47c-c942578400a1","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"13.106.4.96/27","destinationAddressPrefix":"*","access":"Allow","priority":138,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-c44cb037-e0db-46ef-a404-19861dbf672c","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-5985-5986-Corpnet-c44cb037-e0db-46ef-a404-19861dbf672c","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"167.220.148.0/23","destinationAddressPrefix":"*","access":"Allow","priority":139,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-163468c7-0223-488b-96bf-e5e50587bff3","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-5985-5986-Corpnet-163468c7-0223-488b-96bf-e5e50587bff3","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"131.107.147.0/24","destinationAddressPrefix":"*","access":"Allow","priority":140,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-860c94ff-af0b-4d64-b2e5-6ec6c037dc1f","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-5985-5986-Corpnet-860c94ff-af0b-4d64-b2e5-6ec6c037dc1f","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"131.107.159.0/24","destinationAddressPrefix":"*","access":"Allow","priority":141,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-9dc5640d-88c0-4de8-9e5b-a1bbd969fb09","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-5985-5986-Corpnet-9dc5640d-88c0-4de8-9e5b-a1bbd969fb09","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"131.107.160.0/24","destinationAddressPrefix":"*","access":"Allow","priority":142,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-dc717633-35a1-4710-a86b-678331c4faad","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-5985-5986-Corpnet-dc717633-35a1-4710-a86b-678331c4faad","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"131.107.174.0/24","destinationAddressPrefix":"*","access":"Allow","priority":143,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-3c2ab6b5-2c04-4867-bbaa-f86f96639ed6","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-5985-5986-Corpnet-3c2ab6b5-2c04-4867-bbaa-f86f96639ed6","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"167.220.24.0/24","destinationAddressPrefix":"*","access":"Allow","priority":144,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-61e87691-a023-4d60-8bb9-78c73a981259","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-5985-5986-Corpnet-61e87691-a023-4d60-8bb9-78c73a981259","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"167.220.26.0/24","destinationAddressPrefix":"*","access":"Allow","priority":145,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-8bc4c7b4-d029-4fc8-8d9d-cdd8df2e0811","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-5985-5986-Corpnet-8bc4c7b4-d029-4fc8-8d9d-cdd8df2e0811","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"167.220.238.0/27","destinationAddressPrefix":"*","access":"Allow","priority":146,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-5e0084ca-87d0-44a6-b69f-69ac9eba9a86","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-5985-5986-Corpnet-5e0084ca-87d0-44a6-b69f-69ac9eba9a86","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"167.220.238.128/27","destinationAddressPrefix":"*","access":"Allow","priority":147,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-1ecab654-9904-44ce-9607-01c7a8ea0e70","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-5985-5986-Corpnet-1ecab654-9904-44ce-9607-01c7a8ea0e70","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"167.220.238.192/27","destinationAddressPrefix":"*","access":"Allow","priority":148,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-9bb72507-f572-451f-a28e-dccce41e6938","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-5985-5986-Corpnet-9bb72507-f572-451f-a28e-dccce41e6938","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"167.220.238.64/27","destinationAddressPrefix":"*","access":"Allow","priority":149,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-384accc9-382a-4c77-b178-27c6d1e1c82a","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-5985-5986-Corpnet-384accc9-382a-4c77-b178-27c6d1e1c82a","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"167.220.232.0/23","destinationAddressPrefix":"*","access":"Allow","priority":150,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-f085d03c-e1c0-4f4e-9e7b-0d38452350fe","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-5985-5986-Corpnet-f085d03c-e1c0-4f4e-9e7b-0d38452350fe","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"167.220.255.0/25","destinationAddressPrefix":"*","access":"Allow","priority":151,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-b5b24b7c-4282-4edd-95cb-b769b784702c","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-5985-5986-Corpnet-b5b24b7c-4282-4edd-95cb-b769b784702c","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"167.220.242.0/27","destinationAddressPrefix":"*","access":"Allow","priority":152,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-90809972-334c-4cb8-b828-23248798eff0","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-5985-5986-Corpnet-90809972-334c-4cb8-b828-23248798eff0","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"167.220.242.128/27","destinationAddressPrefix":"*","access":"Allow","priority":153,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-f2b3751e-af36-4a84-be38-cd8997335f74","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-5985-5986-Corpnet-f2b3751e-af36-4a84-be38-cd8997335f74","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"167.220.242.192/27","destinationAddressPrefix":"*","access":"Allow","priority":154,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-ded8d270-20d7-468c-93df-10904ba46e65","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-5985-5986-Corpnet-ded8d270-20d7-468c-93df-10904ba46e65","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"167.220.242.64/27","destinationAddressPrefix":"*","access":"Allow","priority":155,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-6006b684-adf7-4875-a212-1ecc6355dc0a","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-5985-5986-Corpnet-6006b684-adf7-4875-a212-1ecc6355dc0a","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"94.245.87.0/24","destinationAddressPrefix":"*","access":"Allow","priority":156,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-0a8688ba-a2cf-486e-8e09-5866636b4204","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-5985-5986-Corpnet-0a8688ba-a2cf-486e-8e09-5866636b4204","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"167.220.196.0/23","destinationAddressPrefix":"*","access":"Allow","priority":157,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-f972104a-f86b-4147-bc8a-d062ca0a16e8","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-5985-5986-Corpnet-f972104a-f86b-4147-bc8a-d062ca0a16e8","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"194.69.104.0/25","destinationAddressPrefix":"*","access":"Allow","priority":158,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-9476f4ab-639a-4e27-9f99-2d67b2cc45ca","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-5985-5986-Corpnet-9476f4ab-639a-4e27-9f99-2d67b2cc45ca","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"191.234.97.0/26","destinationAddressPrefix":"*","access":"Allow","priority":159,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-b6733c5b-6a66-4328-b121-b685d92244de","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-5985-5986-Corpnet-b6733c5b-6a66-4328-b121-b685d92244de","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"167.220.0.0/23","destinationAddressPrefix":"*","access":"Allow","priority":160,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-3008e666-2ec5-4ecd-abe9-3eab31f99739","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-5985-5986-Corpnet-3008e666-2ec5-4ecd-abe9-3eab31f99739","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"167.220.2.0/24","destinationAddressPrefix":"*","access":"Allow","priority":161,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-096199ff-a1e2-4f4e-a743-523d375e0b98","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-5985-5986-Corpnet-096199ff-a1e2-4f4e-a743-523d375e0b98","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"207.68.190.32/27","destinationAddressPrefix":"*","access":"Allow","priority":162,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-66c1ea8d-4253-4982-94e1-3e71181aa202","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-5985-5986-Corpnet-66c1ea8d-4253-4982-94e1-3e71181aa202","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"13.106.78.32/27","destinationAddressPrefix":"*","access":"Allow","priority":163,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-ba58c562-af7a-41ec-a063-8f6a721a2d8d","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-5985-5986-Corpnet-ba58c562-af7a-41ec-a063-8f6a721a2d8d","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"10.254.32.0/20","destinationAddressPrefix":"*","access":"Allow","priority":164,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-eec594b2-f63c-4b34-96b3-acc6c0afa187","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-5985-5986-Corpnet-eec594b2-f63c-4b34-96b3-acc6c0afa187","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"10.97.136.0/22","destinationAddressPrefix":"*","access":"Allow","priority":165,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-34f163c3-8d4c-4ad7-8945-f3a56450b315","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-5985-5986-Corpnet-34f163c3-8d4c-4ad7-8945-f3a56450b315","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"13.106.174.32/27","destinationAddressPrefix":"*","access":"Allow","priority":166,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-7f50b376-02e8-4c7d-8a33-15ee98dfa27e","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-5985-5986-Corpnet-7f50b376-02e8-4c7d-8a33-15ee98dfa27e","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"13.106.4.96/27","destinationAddressPrefix":"*","access":"Allow","priority":167,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-aa27ea1e-5ef2-412f-a962-d03810a93a3e","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-22-23-Corpnet-aa27ea1e-5ef2-412f-a962-d03810a93a3e","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"167.220.148.0/23","destinationAddressPrefix":"*","access":"Allow","priority":168,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-9ab530df-8e0e-4ce9-8a49-0ee55652069a","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-22-23-Corpnet-9ab530df-8e0e-4ce9-8a49-0ee55652069a","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"131.107.147.0/24","destinationAddressPrefix":"*","access":"Allow","priority":169,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-f1952a92-7b1f-43b8-9ea9-fafc9c6d705e","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-22-23-Corpnet-f1952a92-7b1f-43b8-9ea9-fafc9c6d705e","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"131.107.159.0/24","destinationAddressPrefix":"*","access":"Allow","priority":170,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-1dc7d396-a2c6-42a2-99d9-16032e384181","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-22-23-Corpnet-1dc7d396-a2c6-42a2-99d9-16032e384181","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"131.107.160.0/24","destinationAddressPrefix":"*","access":"Allow","priority":171,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-ffb8849f-9845-4d1d-b207-b61c04499989","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-22-23-Corpnet-ffb8849f-9845-4d1d-b207-b61c04499989","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"131.107.174.0/24","destinationAddressPrefix":"*","access":"Allow","priority":172,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-3694f99f-9966-4a55-82df-e6fee1b54f90","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-22-23-Corpnet-3694f99f-9966-4a55-82df-e6fee1b54f90","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"167.220.24.0/24","destinationAddressPrefix":"*","access":"Allow","priority":173,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-70e59ccc-c6af-4e68-93a5-727ab9eef504","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-22-23-Corpnet-70e59ccc-c6af-4e68-93a5-727ab9eef504","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"167.220.26.0/24","destinationAddressPrefix":"*","access":"Allow","priority":174,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-feb7878b-b147-4ca4-a25f-c079c2e7b88a","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-22-23-Corpnet-feb7878b-b147-4ca4-a25f-c079c2e7b88a","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"167.220.238.0/27","destinationAddressPrefix":"*","access":"Allow","priority":175,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-7147375d-cc15-4af0-a277-7694003553cc","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-22-23-Corpnet-7147375d-cc15-4af0-a277-7694003553cc","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"167.220.238.128/27","destinationAddressPrefix":"*","access":"Allow","priority":176,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-0839021a-c1cd-45d2-b9ed-53a1b6257e2f","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-22-23-Corpnet-0839021a-c1cd-45d2-b9ed-53a1b6257e2f","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"167.220.238.192/27","destinationAddressPrefix":"*","access":"Allow","priority":177,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-59b33f13-eac2-4487-bf56-1883b953f01c","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-22-23-Corpnet-59b33f13-eac2-4487-bf56-1883b953f01c","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"167.220.238.64/27","destinationAddressPrefix":"*","access":"Allow","priority":178,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-b438962b-7c66-4687-bdf9-1e0932454391","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-22-23-Corpnet-b438962b-7c66-4687-bdf9-1e0932454391","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"167.220.232.0/23","destinationAddressPrefix":"*","access":"Allow","priority":179,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-a0a050f5-e363-4119-92f0-72ea984cb480","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-22-23-Corpnet-a0a050f5-e363-4119-92f0-72ea984cb480","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"167.220.255.0/25","destinationAddressPrefix":"*","access":"Allow","priority":180,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-9be43096-bb0f-49ee-9071-9fbf1e89fb35","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-22-23-Corpnet-9be43096-bb0f-49ee-9071-9fbf1e89fb35","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"167.220.242.0/27","destinationAddressPrefix":"*","access":"Allow","priority":181,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-858ae6c3-b562-4d0c-bae9-b0b3f1f55dfe","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-22-23-Corpnet-858ae6c3-b562-4d0c-bae9-b0b3f1f55dfe","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"167.220.242.128/27","destinationAddressPrefix":"*","access":"Allow","priority":182,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-6825ae76-b2b3-4085-b262-1718714071ed","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-22-23-Corpnet-6825ae76-b2b3-4085-b262-1718714071ed","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"167.220.242.192/27","destinationAddressPrefix":"*","access":"Allow","priority":183,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-4442797d-fbed-4796-a1ea-b6aa635a4ad4","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-22-23-Corpnet-4442797d-fbed-4796-a1ea-b6aa635a4ad4","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"167.220.242.64/27","destinationAddressPrefix":"*","access":"Allow","priority":184,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-54be0d5b-21ce-4770-9034-ca99ff3bf77d","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-22-23-Corpnet-54be0d5b-21ce-4770-9034-ca99ff3bf77d","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"94.245.87.0/24","destinationAddressPrefix":"*","access":"Allow","priority":185,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-e0911f0f-f96e-4c58-b305-2a1bec2c3a61","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-22-23-Corpnet-e0911f0f-f96e-4c58-b305-2a1bec2c3a61","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"167.220.196.0/23","destinationAddressPrefix":"*","access":"Allow","priority":186,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-b19fcb5d-49ff-495c-b79a-373e8e76cfe6","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-22-23-Corpnet-b19fcb5d-49ff-495c-b79a-373e8e76cfe6","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"194.69.104.0/25","destinationAddressPrefix":"*","access":"Allow","priority":187,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-54483918-60e7-4988-b1b6-24b889c8ab68","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-22-23-Corpnet-54483918-60e7-4988-b1b6-24b889c8ab68","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"191.234.97.0/26","destinationAddressPrefix":"*","access":"Allow","priority":188,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-d79d29f3-fdbc-41ba-8ad3-b46b00f66225","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-22-23-Corpnet-d79d29f3-fdbc-41ba-8ad3-b46b00f66225","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"167.220.0.0/23","destinationAddressPrefix":"*","access":"Allow","priority":189,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-b0ea2727-70d7-4802-9ec5-af82ddb4a8cb","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-22-23-Corpnet-b0ea2727-70d7-4802-9ec5-af82ddb4a8cb","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"167.220.2.0/24","destinationAddressPrefix":"*","access":"Allow","priority":190,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-66f8e7c4-75bb-45b3-a2e3-afb3dd897d30","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-22-23-Corpnet-66f8e7c4-75bb-45b3-a2e3-afb3dd897d30","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"207.68.190.32/27","destinationAddressPrefix":"*","access":"Allow","priority":191,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-e61d9da2-08a8-452a-899a-24c59f2f2ef0","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-22-23-Corpnet-e61d9da2-08a8-452a-899a-24c59f2f2ef0","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"13.106.78.32/27","destinationAddressPrefix":"*","access":"Allow","priority":192,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-956fed35-1b4c-4af6-8622-484e434b5446","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-22-23-Corpnet-956fed35-1b4c-4af6-8622-484e434b5446","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"10.254.32.0/20","destinationAddressPrefix":"*","access":"Allow","priority":193,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-8f66bad6-4fdc-4590-90b4-59e88c1dc0ba","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-22-23-Corpnet-8f66bad6-4fdc-4590-90b4-59e88c1dc0ba","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"10.97.136.0/22","destinationAddressPrefix":"*","access":"Allow","priority":194,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-61671826-247d-457d-9103-63c9b20a6c39","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-22-23-Corpnet-61671826-247d-457d-9103-63c9b20a6c39","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"13.106.174.32/27","destinationAddressPrefix":"*","access":"Allow","priority":195,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-0c44283c-14d2-4e1b-9ec0-840c7aad3abe","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-22-23-Corpnet-0c44283c-14d2-4e1b-9ec0-840c7aad3abe","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"13.106.4.96/27","destinationAddressPrefix":"*","access":"Allow","priority":196,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-6622952a-6212-41e4-b49c-f389f11c6c16","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-1433-Corpnet-6622952a-6212-41e4-b49c-f389f11c6c16","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"167.220.148.0/23","destinationAddressPrefix":"*","access":"Allow","priority":197,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-15b7533a-0419-4bc6-b232-403793f1b6de","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-1433-Corpnet-15b7533a-0419-4bc6-b232-403793f1b6de","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"131.107.147.0/24","destinationAddressPrefix":"*","access":"Allow","priority":198,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-da08eba0-4ef0-4817-9b1d-94cf3a934f0c","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-1433-Corpnet-da08eba0-4ef0-4817-9b1d-94cf3a934f0c","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"131.107.159.0/24","destinationAddressPrefix":"*","access":"Allow","priority":199,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-2fdeccd1-2bae-4ac6-b5b7-7b937cfa1851","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-1433-Corpnet-2fdeccd1-2bae-4ac6-b5b7-7b937cfa1851","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"131.107.160.0/24","destinationAddressPrefix":"*","access":"Allow","priority":200,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-b1b813ac-b38b-4964-9ac3-6f584108775d","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-1433-Corpnet-b1b813ac-b38b-4964-9ac3-6f584108775d","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"131.107.174.0/24","destinationAddressPrefix":"*","access":"Allow","priority":201,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-76a90ef6-36d0-466c-a12e-e8716e8cb794","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-1433-Corpnet-76a90ef6-36d0-466c-a12e-e8716e8cb794","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"167.220.24.0/24","destinationAddressPrefix":"*","access":"Allow","priority":202,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-7e1fcb97-8bbf-458a-a74b-a36b774b30c5","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-1433-Corpnet-7e1fcb97-8bbf-458a-a74b-a36b774b30c5","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"167.220.26.0/24","destinationAddressPrefix":"*","access":"Allow","priority":203,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-27e4b2fa-3c35-417d-a1c3-08c383b12766","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-1433-Corpnet-27e4b2fa-3c35-417d-a1c3-08c383b12766","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"167.220.238.0/27","destinationAddressPrefix":"*","access":"Allow","priority":204,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-e70b420c-e082-4f68-843e-3ed3ead0433d","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-1433-Corpnet-e70b420c-e082-4f68-843e-3ed3ead0433d","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"167.220.238.128/27","destinationAddressPrefix":"*","access":"Allow","priority":205,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-ac1e71d9-d137-4335-9e40-13186553369d","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-1433-Corpnet-ac1e71d9-d137-4335-9e40-13186553369d","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"167.220.238.192/27","destinationAddressPrefix":"*","access":"Allow","priority":206,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-45457c6d-83ce-4848-9045-7bed91e18dd9","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-1433-Corpnet-45457c6d-83ce-4848-9045-7bed91e18dd9","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"167.220.238.64/27","destinationAddressPrefix":"*","access":"Allow","priority":207,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-defa16e6-f3fb-4d0c-92c4-2c5194d5db39","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-1433-Corpnet-defa16e6-f3fb-4d0c-92c4-2c5194d5db39","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"167.220.232.0/23","destinationAddressPrefix":"*","access":"Allow","priority":208,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-b74675d2-bfd2-42d7-afe3-e8041000ab4f","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-1433-Corpnet-b74675d2-bfd2-42d7-afe3-e8041000ab4f","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"167.220.255.0/25","destinationAddressPrefix":"*","access":"Allow","priority":209,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-c24652b7-b08b-43fd-9068-5948b2ba290a","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-1433-Corpnet-c24652b7-b08b-43fd-9068-5948b2ba290a","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"167.220.242.0/27","destinationAddressPrefix":"*","access":"Allow","priority":210,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-d5ad01aa-95a5-4efa-a568-341cbf39f2d8","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-1433-Corpnet-d5ad01aa-95a5-4efa-a568-341cbf39f2d8","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"167.220.242.128/27","destinationAddressPrefix":"*","access":"Allow","priority":211,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-d3256b5f-dddf-4f2a-817d-3f28d44d5a28","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-1433-Corpnet-d3256b5f-dddf-4f2a-817d-3f28d44d5a28","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"167.220.242.192/27","destinationAddressPrefix":"*","access":"Allow","priority":212,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-25b2be63-0697-49fe-be84-00aa4fb0b570","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-1433-Corpnet-25b2be63-0697-49fe-be84-00aa4fb0b570","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"167.220.242.64/27","destinationAddressPrefix":"*","access":"Allow","priority":213,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-034dccb9-47e3-493e-9582-7ca164175bea","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-1433-Corpnet-034dccb9-47e3-493e-9582-7ca164175bea","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"94.245.87.0/24","destinationAddressPrefix":"*","access":"Allow","priority":214,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-9419d301-98b1-4c57-b7b9-9af6ac0fc099","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-1433-Corpnet-9419d301-98b1-4c57-b7b9-9af6ac0fc099","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"167.220.196.0/23","destinationAddressPrefix":"*","access":"Allow","priority":215,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-052012fe-0ebc-4e5a-8300-add82936e2ea","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-1433-Corpnet-052012fe-0ebc-4e5a-8300-add82936e2ea","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"194.69.104.0/25","destinationAddressPrefix":"*","access":"Allow","priority":216,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-3e557358-ee76-475c-899e-90ead9742fa6","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-1433-Corpnet-3e557358-ee76-475c-899e-90ead9742fa6","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"191.234.97.0/26","destinationAddressPrefix":"*","access":"Allow","priority":217,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-30f8d497-2a00-4e5d-b78e-b5cae56e614d","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-1433-Corpnet-30f8d497-2a00-4e5d-b78e-b5cae56e614d","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"167.220.0.0/23","destinationAddressPrefix":"*","access":"Allow","priority":218,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-ec4bb0ad-ff1d-4089-a4ab-d48c2a23c6ec","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-1433-Corpnet-ec4bb0ad-ff1d-4089-a4ab-d48c2a23c6ec","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"167.220.2.0/24","destinationAddressPrefix":"*","access":"Allow","priority":219,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-4cf1d73b-d863-4910-8d62-9b6f74d2cf8d","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-1433-Corpnet-4cf1d73b-d863-4910-8d62-9b6f74d2cf8d","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"207.68.190.32/27","destinationAddressPrefix":"*","access":"Allow","priority":220,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-391d1b12-bbd0-419b-8fe9-847266d10cc7","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-1433-Corpnet-391d1b12-bbd0-419b-8fe9-847266d10cc7","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"13.106.78.32/27","destinationAddressPrefix":"*","access":"Allow","priority":221,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-6f732f61-d133-4cf6-a51c-acb079f47e95","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-1433-Corpnet-6f732f61-d133-4cf6-a51c-acb079f47e95","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"10.254.32.0/20","destinationAddressPrefix":"*","access":"Allow","priority":222,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-7b581da6-3cc6-48ad-81e7-bfe9e5c1821d","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-1433-Corpnet-7b581da6-3cc6-48ad-81e7-bfe9e5c1821d","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"10.97.136.0/22","destinationAddressPrefix":"*","access":"Allow","priority":223,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-c5bb2602-7f80-418c-979a-48aba83dc759","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-1433-Corpnet-c5bb2602-7f80-418c-979a-48aba83dc759","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"13.106.174.32/27","destinationAddressPrefix":"*","access":"Allow","priority":224,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-dae78364-e11d-4b12-a307-bde559c4f3ff","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-1433-Corpnet-dae78364-e11d-4b12-a307-bde559c4f3ff","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"13.106.4.96/27","destinationAddressPrefix":"*","access":"Allow","priority":225,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-07db793a-2809-49cd-809c-cbac1d78d920","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-445-Corpnet-07db793a-2809-49cd-809c-cbac1d78d920","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"167.220.148.0/23","destinationAddressPrefix":"*","access":"Allow","priority":226,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-7623d8bb-157e-44d1-a8cf-bef272097dc0","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-445-Corpnet-7623d8bb-157e-44d1-a8cf-bef272097dc0","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"131.107.147.0/24","destinationAddressPrefix":"*","access":"Allow","priority":227,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-1f1cb34e-44d0-4997-a85c-8549c56347b1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-445-Corpnet-1f1cb34e-44d0-4997-a85c-8549c56347b1","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"131.107.159.0/24","destinationAddressPrefix":"*","access":"Allow","priority":228,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-5eadff45-0135-41b0-af23-87517d12922a","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-445-Corpnet-5eadff45-0135-41b0-af23-87517d12922a","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"131.107.160.0/24","destinationAddressPrefix":"*","access":"Allow","priority":229,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-82712c0c-5e2e-4947-a134-7843d86d1cba","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-445-Corpnet-82712c0c-5e2e-4947-a134-7843d86d1cba","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"131.107.174.0/24","destinationAddressPrefix":"*","access":"Allow","priority":230,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-7ea06896-846a-416d-a818-16df1fc03f1a","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-445-Corpnet-7ea06896-846a-416d-a818-16df1fc03f1a","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"167.220.24.0/24","destinationAddressPrefix":"*","access":"Allow","priority":231,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-e4d54614-b7ca-4017-b083-aa47df57dc99","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-445-Corpnet-e4d54614-b7ca-4017-b083-aa47df57dc99","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"167.220.26.0/24","destinationAddressPrefix":"*","access":"Allow","priority":232,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-193ef0d5-6126-4459-925c-afccf5ecf136","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-445-Corpnet-193ef0d5-6126-4459-925c-afccf5ecf136","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"167.220.238.0/27","destinationAddressPrefix":"*","access":"Allow","priority":233,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-70afac30-e977-4272-b622-258dbef83403","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-445-Corpnet-70afac30-e977-4272-b622-258dbef83403","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"167.220.238.128/27","destinationAddressPrefix":"*","access":"Allow","priority":234,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-7d33425c-4de5-4829-a5b7-fbd512b646ed","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-445-Corpnet-7d33425c-4de5-4829-a5b7-fbd512b646ed","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"167.220.238.192/27","destinationAddressPrefix":"*","access":"Allow","priority":235,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-b83e868f-a1f9-4f16-a3d1-4510ff4933ef","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-445-Corpnet-b83e868f-a1f9-4f16-a3d1-4510ff4933ef","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"167.220.238.64/27","destinationAddressPrefix":"*","access":"Allow","priority":236,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-bb2c34a7-87d6-496d-8c67-af4b51af9699","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-445-Corpnet-bb2c34a7-87d6-496d-8c67-af4b51af9699","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"167.220.232.0/23","destinationAddressPrefix":"*","access":"Allow","priority":237,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-c48ba153-50cb-4bc0-bd67-185cf32fc23e","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-445-Corpnet-c48ba153-50cb-4bc0-bd67-185cf32fc23e","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"167.220.255.0/25","destinationAddressPrefix":"*","access":"Allow","priority":238,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-5e38f0b8-590f-4039-a811-947aade47138","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-445-Corpnet-5e38f0b8-590f-4039-a811-947aade47138","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"167.220.242.0/27","destinationAddressPrefix":"*","access":"Allow","priority":239,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-341ce1fc-a547-4588-bf55-8d48932eb267","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-445-Corpnet-341ce1fc-a547-4588-bf55-8d48932eb267","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"167.220.242.128/27","destinationAddressPrefix":"*","access":"Allow","priority":240,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-6cbb0e73-2036-4957-a865-b9ee92bcd325","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-445-Corpnet-6cbb0e73-2036-4957-a865-b9ee92bcd325","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"167.220.242.192/27","destinationAddressPrefix":"*","access":"Allow","priority":241,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-c364cc3b-f847-447d-9a73-75b558d60a7b","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-445-Corpnet-c364cc3b-f847-447d-9a73-75b558d60a7b","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"167.220.242.64/27","destinationAddressPrefix":"*","access":"Allow","priority":242,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-2a7ec1c6-169a-4a63-a682-7c4decc6f2ac","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-445-Corpnet-2a7ec1c6-169a-4a63-a682-7c4decc6f2ac","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"94.245.87.0/24","destinationAddressPrefix":"*","access":"Allow","priority":243,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-904db094-78a1-4ccb-a51f-9dd907230a60","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-445-Corpnet-904db094-78a1-4ccb-a51f-9dd907230a60","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"167.220.196.0/23","destinationAddressPrefix":"*","access":"Allow","priority":244,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-024b95b2-79be-43d8-b664-817046ae6c7f","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-445-Corpnet-024b95b2-79be-43d8-b664-817046ae6c7f","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"194.69.104.0/25","destinationAddressPrefix":"*","access":"Allow","priority":245,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-400bf30e-5d73-4330-af77-c235063b8efd","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-445-Corpnet-400bf30e-5d73-4330-af77-c235063b8efd","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"191.234.97.0/26","destinationAddressPrefix":"*","access":"Allow","priority":246,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-fcd7ec2e-65cf-4012-aac2-0d9634797fd6","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-445-Corpnet-fcd7ec2e-65cf-4012-aac2-0d9634797fd6","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"167.220.0.0/23","destinationAddressPrefix":"*","access":"Allow","priority":247,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-8dc889b3-0da2-49e1-9f00-75c3d70ad576","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-445-Corpnet-8dc889b3-0da2-49e1-9f00-75c3d70ad576","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"167.220.2.0/24","destinationAddressPrefix":"*","access":"Allow","priority":248,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-d25c668f-544f-4355-9630-44aa2e9f0663","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-445-Corpnet-d25c668f-544f-4355-9630-44aa2e9f0663","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"207.68.190.32/27","destinationAddressPrefix":"*","access":"Allow","priority":249,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-eec264eb-c7d7-4c09-8485-0adb3aa1c495","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-445-Corpnet-eec264eb-c7d7-4c09-8485-0adb3aa1c495","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"13.106.78.32/27","destinationAddressPrefix":"*","access":"Allow","priority":250,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-60f3ef75-4201-433f-8e17-68fadce7bbbc","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-445-Corpnet-60f3ef75-4201-433f-8e17-68fadce7bbbc","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"10.254.32.0/20","destinationAddressPrefix":"*","access":"Allow","priority":251,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-4ccdb5db-3e0a-4086-8e33-03f287bd9316","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-445-Corpnet-4ccdb5db-3e0a-4086-8e33-03f287bd9316","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"10.97.136.0/22","destinationAddressPrefix":"*","access":"Allow","priority":252,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-3172aa4f-ae77-47c7-aef4-16af83447063","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-445-Corpnet-3172aa4f-ae77-47c7-aef4-16af83447063","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"13.106.174.32/27","destinationAddressPrefix":"*","access":"Allow","priority":253,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-9580d464-ee74-4442-a8b7-cb55a01d7d91","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-445-Corpnet-9580d464-ee74-4442-a8b7-cb55a01d7d91","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"13.106.4.96/27","destinationAddressPrefix":"*","access":"Allow","priority":254,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-85930d1b-1c7f-45a3-89e3-5f24f83b2f29","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-135-Corpnet-85930d1b-1c7f-45a3-89e3-5f24f83b2f29","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"167.220.148.0/23","destinationAddressPrefix":"*","access":"Allow","priority":255,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-223645ce-a90d-40bf-af2d-fb26dfa64a80","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-135-Corpnet-223645ce-a90d-40bf-af2d-fb26dfa64a80","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"131.107.147.0/24","destinationAddressPrefix":"*","access":"Allow","priority":256,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-645b1f89-7545-4bbf-a728-d6d5d7272695","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-135-Corpnet-645b1f89-7545-4bbf-a728-d6d5d7272695","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"131.107.159.0/24","destinationAddressPrefix":"*","access":"Allow","priority":257,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-3ce11fea-2481-489f-a214-6bf8ec54d3b6","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-135-Corpnet-3ce11fea-2481-489f-a214-6bf8ec54d3b6","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"131.107.160.0/24","destinationAddressPrefix":"*","access":"Allow","priority":258,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-a618327d-716b-4970-b5f1-af24298b1ca1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-135-Corpnet-a618327d-716b-4970-b5f1-af24298b1ca1","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"131.107.174.0/24","destinationAddressPrefix":"*","access":"Allow","priority":259,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-beaf39b6-57fb-483f-9b24-10f2ee61f66a","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-135-Corpnet-beaf39b6-57fb-483f-9b24-10f2ee61f66a","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"167.220.24.0/24","destinationAddressPrefix":"*","access":"Allow","priority":260,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-9bd493dc-5522-4191-a755-a6c479ad4da6","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-135-Corpnet-9bd493dc-5522-4191-a755-a6c479ad4da6","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"167.220.26.0/24","destinationAddressPrefix":"*","access":"Allow","priority":261,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-7d9770c5-8900-4004-9307-249f110df402","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-135-Corpnet-7d9770c5-8900-4004-9307-249f110df402","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"167.220.238.0/27","destinationAddressPrefix":"*","access":"Allow","priority":262,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-f1f2899e-71fa-43ae-aa60-d7a5a4eb9e56","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-135-Corpnet-f1f2899e-71fa-43ae-aa60-d7a5a4eb9e56","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"167.220.238.128/27","destinationAddressPrefix":"*","access":"Allow","priority":263,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-4ca12ca7-7b79-4b4e-94da-ae6f9bc61094","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-135-Corpnet-4ca12ca7-7b79-4b4e-94da-ae6f9bc61094","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"167.220.238.192/27","destinationAddressPrefix":"*","access":"Allow","priority":264,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-df2c52ef-56c3-4cc5-8ae9-20878e42eda9","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-135-Corpnet-df2c52ef-56c3-4cc5-8ae9-20878e42eda9","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"167.220.238.64/27","destinationAddressPrefix":"*","access":"Allow","priority":265,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-e2834af2-d5cd-43cd-9de6-38f045256c6a","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-135-Corpnet-e2834af2-d5cd-43cd-9de6-38f045256c6a","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"167.220.232.0/23","destinationAddressPrefix":"*","access":"Allow","priority":266,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-5638d247-381f-4273-92f4-0dd025df9cb3","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-135-Corpnet-5638d247-381f-4273-92f4-0dd025df9cb3","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"167.220.255.0/25","destinationAddressPrefix":"*","access":"Allow","priority":267,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-3ac13732-885b-4480-b72c-2f67c5c67190","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-135-Corpnet-3ac13732-885b-4480-b72c-2f67c5c67190","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"167.220.242.0/27","destinationAddressPrefix":"*","access":"Allow","priority":268,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-1e4d2168-767b-4fef-9ba2-cd469b211b54","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-135-Corpnet-1e4d2168-767b-4fef-9ba2-cd469b211b54","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"167.220.242.128/27","destinationAddressPrefix":"*","access":"Allow","priority":269,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-ba429225-8e34-4007-af59-bf3fbd353338","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-135-Corpnet-ba429225-8e34-4007-af59-bf3fbd353338","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"167.220.242.192/27","destinationAddressPrefix":"*","access":"Allow","priority":270,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-0c58aab3-1091-4c70-a607-dcdbeb3036c4","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-135-Corpnet-0c58aab3-1091-4c70-a607-dcdbeb3036c4","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"167.220.242.64/27","destinationAddressPrefix":"*","access":"Allow","priority":271,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-edba92da-0019-4cb8-b16d-b64fee3d6c6a","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-135-Corpnet-edba92da-0019-4cb8-b16d-b64fee3d6c6a","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"94.245.87.0/24","destinationAddressPrefix":"*","access":"Allow","priority":272,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-ff8c44f1-fcc9-4eb3-825d-104092e4aee0","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-135-Corpnet-ff8c44f1-fcc9-4eb3-825d-104092e4aee0","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"167.220.196.0/23","destinationAddressPrefix":"*","access":"Allow","priority":273,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-fe873b17-bc27-49ba-8e3a-825f7b909acf","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-135-Corpnet-fe873b17-bc27-49ba-8e3a-825f7b909acf","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"194.69.104.0/25","destinationAddressPrefix":"*","access":"Allow","priority":274,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-ee4eef88-e47e-4e1f-b39e-877ad0efc9cb","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-135-Corpnet-ee4eef88-e47e-4e1f-b39e-877ad0efc9cb","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"191.234.97.0/26","destinationAddressPrefix":"*","access":"Allow","priority":275,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-214b00c4-56d5-41bf-a22e-c821a5eee3f4","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-135-Corpnet-214b00c4-56d5-41bf-a22e-c821a5eee3f4","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"167.220.0.0/23","destinationAddressPrefix":"*","access":"Allow","priority":276,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-f2821a71-20c3-43da-b532-c32ce4c0ae86","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-135-Corpnet-f2821a71-20c3-43da-b532-c32ce4c0ae86","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"167.220.2.0/24","destinationAddressPrefix":"*","access":"Allow","priority":277,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-bf5e2027-bbbe-4b14-928d-5fb2cf37cd73","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-135-Corpnet-bf5e2027-bbbe-4b14-928d-5fb2cf37cd73","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"207.68.190.32/27","destinationAddressPrefix":"*","access":"Allow","priority":278,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-f9436aa5-e1c6-484b-ab41-3e0d8c95fa83","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-135-Corpnet-f9436aa5-e1c6-484b-ab41-3e0d8c95fa83","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"13.106.78.32/27","destinationAddressPrefix":"*","access":"Allow","priority":279,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-69a96234-889d-468b-bce1-203e6bba6207","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-135-Corpnet-69a96234-889d-468b-bce1-203e6bba6207","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"10.254.32.0/20","destinationAddressPrefix":"*","access":"Allow","priority":280,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-dbb72e89-6c5a-404f-b834-a4fb49be1d01","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-135-Corpnet-dbb72e89-6c5a-404f-b834-a4fb49be1d01","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"10.97.136.0/22","destinationAddressPrefix":"*","access":"Allow","priority":281,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-9669ca53-8990-4941-b2c7-36acc2c51b70","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-135-Corpnet-9669ca53-8990-4941-b2c7-36acc2c51b70","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"13.106.174.32/27","destinationAddressPrefix":"*","access":"Allow","priority":282,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-3a3cc71a-2d52-4a2e-8d06-68530717bc02","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-135-Corpnet-3a3cc71a-2d52-4a2e-8d06-68530717bc02","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"13.106.4.96/27","destinationAddressPrefix":"*","access":"Allow","priority":283,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}}],"defaultSecurityRules":[{"name":"AllowVnetInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/defaultSecurityRules/AllowVnetInBound","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow + body: {string: '{"value":[{"name":"rg-cleanupservice-nsg6","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg6","etag":"W/\"2d4efdff-78ce-4b6c-92c0-1b9301ddcd05\"","type":"Microsoft.Network/networkSecurityGroups","location":"westus","properties":{"provisioningState":"Succeeded","resourceGuid":"d953f609-fffc-42e1-9026-12f14da4c99e","securityRules":[{"name":"Cleanuptool-Allow-4001","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg6/securityRules/Cleanuptool-Allow-4001","etag":"W/\"2d4efdff-78ce-4b6c-92c0-1b9301ddcd05\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Allow","priority":4001,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-100","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg6/securityRules/Cleanuptool-Allow-100","etag":"W/\"2d4efdff-78ce-4b6c-92c0-1b9301ddcd05\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationAddressPrefix":"*","access":"Allow","priority":100,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":["3389","5985","5986","22","2222","1433","445","23","135"],"sourceAddressPrefixes":["167.220.148.0/23","131.107.147.0/24","131.107.159.0/24","131.107.160.0/24","131.107.174.0/24","167.220.24.0/24","167.220.26.0/24","167.220.238.0/27","167.220.238.128/27","167.220.238.192/27","167.220.238.64/27","167.220.232.0/23","167.220.255.0/25","167.220.242.0/27","167.220.242.128/27","167.220.242.192/27","167.220.242.64/27","94.245.87.0/24","167.220.196.0/23","194.69.104.0/25","191.234.97.0/26","167.220.0.0/23","167.220.2.0/24","207.68.190.32/27","13.106.78.32/27","10.254.32.0/20","10.97.136.0/22","13.106.174.32/27","13.106.4.96/27"],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-101","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg6/securityRules/Cleanuptool-Allow-101","etag":"W/\"2d4efdff-78ce-4b6c-92c0-1b9301ddcd05\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"*","access":"Allow","priority":101,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":["3389","5985","5986","22","2222","1433","445","23","135"],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-102","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg6/securityRules/Cleanuptool-Allow-102","etag":"W/\"2d4efdff-78ce-4b6c-92c0-1b9301ddcd05\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","sourceAddressPrefix":"AzureLoadBalancer","destinationAddressPrefix":"*","access":"Allow","priority":102,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":["3389","5985","5986","22","2222","1433","445","23","135"],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Deny-103","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg6/securityRules/Cleanuptool-Deny-103","etag":"W/\"2d4efdff-78ce-4b6c-92c0-1b9301ddcd05\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":103,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":["3389","5985","5986","22","2222","1433","445","23","135"],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}}],"defaultSecurityRules":[{"name":"AllowVnetInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg6/defaultSecurityRules/AllowVnetInBound","etag":"W/\"2d4efdff-78ce-4b6c-92c0-1b9301ddcd05\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow + inbound traffic from all VMs in VNET","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"VirtualNetwork","access":"Allow","priority":65000,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowAzureLoadBalancerInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg6/defaultSecurityRules/AllowAzureLoadBalancerInBound","etag":"W/\"2d4efdff-78ce-4b6c-92c0-1b9301ddcd05\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow + inbound traffic from azure load balancer","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"AzureLoadBalancer","destinationAddressPrefix":"*","access":"Allow","priority":65001,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"DenyAllInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg6/defaultSecurityRules/DenyAllInBound","etag":"W/\"2d4efdff-78ce-4b6c-92c0-1b9301ddcd05\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Deny + all inbound traffic","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":65500,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowVnetOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg6/defaultSecurityRules/AllowVnetOutBound","etag":"W/\"2d4efdff-78ce-4b6c-92c0-1b9301ddcd05\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow + outbound traffic from all VMs to all VMs in VNET","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"VirtualNetwork","access":"Allow","priority":65000,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowInternetOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg6/defaultSecurityRules/AllowInternetOutBound","etag":"W/\"2d4efdff-78ce-4b6c-92c0-1b9301ddcd05\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow + outbound traffic from all VMs to Internet","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"Internet","access":"Allow","priority":65001,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"DenyAllOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg6/defaultSecurityRules/DenyAllOutBound","etag":"W/\"2d4efdff-78ce-4b6c-92c0-1b9301ddcd05\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Deny + all outbound traffic","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":65500,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}}],"subnets":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/virtualNetworks/tosin-vmVNET/subnets/tosin-vmSubnet"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/virtualNetworks/tosin-vnet/subnets/my-subnet"}]}},{"name":"rg-cleanupservice-nsg7","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups","location":"westus","properties":{"provisioningState":"Succeeded","resourceGuid":"97e4f6b2-3277-4206-b07c-6ed937cccdca","securityRules":[{"name":"Cleanuptool-Allow-4000","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-Allow-4000","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Allow","priority":4000,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Deny-3999","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-Deny-3999","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":3999,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Deny-3998","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-Deny-3998","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":3998,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Deny-3997","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-Deny-3997","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":3997,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Deny-3996","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-Deny-3996","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":3996,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Deny-3995","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-Deny-3995","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":3995,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Deny-3994","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-Deny-3994","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":3994,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-3993","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-Allow-3993","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Allow","priority":3993,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-3992","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-Allow-3992","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"*","access":"Allow","priority":3992,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-3991","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-Allow-3991","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Allow","priority":3991,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-3990","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-Allow-3990","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"*","access":"Allow","priority":3990,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-3989","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-Allow-3989","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Allow","priority":3989,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-3988","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-Allow-3988","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"*","access":"Allow","priority":3988,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-3987","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-Allow-3987","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Allow","priority":3987,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-3986","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-Allow-3986","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"*","access":"Allow","priority":3986,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-3985","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-Allow-3985","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Allow","priority":3985,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-3984","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-Allow-3984","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"*","access":"Allow","priority":3984,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-3983","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-Allow-3983","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Allow","priority":3983,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-3982","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-Allow-3982","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"*","access":"Allow","priority":3982,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-505bd4d1-a663-445c-8b76-e74117a55d6c","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-3389-Corpnet-505bd4d1-a663-445c-8b76-e74117a55d6c","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"167.220.148.0/23","destinationAddressPrefix":"*","access":"Allow","priority":110,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-726e7246-0e80-4c4b-9764-6fbd40bea83a","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-3389-Corpnet-726e7246-0e80-4c4b-9764-6fbd40bea83a","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"131.107.147.0/24","destinationAddressPrefix":"*","access":"Allow","priority":111,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-7079cb7e-4c38-4505-a82b-a1baf0c945a2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-3389-Corpnet-7079cb7e-4c38-4505-a82b-a1baf0c945a2","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"131.107.159.0/24","destinationAddressPrefix":"*","access":"Allow","priority":112,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-a7b111e1-b0b4-4fda-81e2-fbb8a448d584","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-3389-Corpnet-a7b111e1-b0b4-4fda-81e2-fbb8a448d584","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"131.107.160.0/24","destinationAddressPrefix":"*","access":"Allow","priority":113,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-8bc3ab11-04f1-4bfc-aebc-a9491f5f4321","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-3389-Corpnet-8bc3ab11-04f1-4bfc-aebc-a9491f5f4321","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"131.107.174.0/24","destinationAddressPrefix":"*","access":"Allow","priority":114,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-5ba6edab-7bcf-4162-a252-1f3eb19af809","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-3389-Corpnet-5ba6edab-7bcf-4162-a252-1f3eb19af809","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"167.220.24.0/24","destinationAddressPrefix":"*","access":"Allow","priority":115,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-f2062bd7-1224-4b8d-9782-42ebb9401352","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-3389-Corpnet-f2062bd7-1224-4b8d-9782-42ebb9401352","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"167.220.26.0/24","destinationAddressPrefix":"*","access":"Allow","priority":116,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-1a3d640e-60df-4a69-86c2-3ea2700951a6","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-3389-Corpnet-1a3d640e-60df-4a69-86c2-3ea2700951a6","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"167.220.238.0/27","destinationAddressPrefix":"*","access":"Allow","priority":117,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-037ba98d-340d-4b65-866e-9f86526f631e","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-3389-Corpnet-037ba98d-340d-4b65-866e-9f86526f631e","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"167.220.238.128/27","destinationAddressPrefix":"*","access":"Allow","priority":118,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-d737cb43-1e0b-454c-8753-ea0c3ced9e0a","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-3389-Corpnet-d737cb43-1e0b-454c-8753-ea0c3ced9e0a","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"167.220.238.192/27","destinationAddressPrefix":"*","access":"Allow","priority":119,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-a3703281-9467-4d8a-9da0-4b517a5630e2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-3389-Corpnet-a3703281-9467-4d8a-9da0-4b517a5630e2","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"167.220.238.64/27","destinationAddressPrefix":"*","access":"Allow","priority":120,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-f8dfd928-7c42-4ab5-9f2b-32598708eb0d","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-3389-Corpnet-f8dfd928-7c42-4ab5-9f2b-32598708eb0d","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"167.220.232.0/23","destinationAddressPrefix":"*","access":"Allow","priority":121,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-9cf4d919-f3f0-4a79-a4e4-05e75eadd747","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-3389-Corpnet-9cf4d919-f3f0-4a79-a4e4-05e75eadd747","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"167.220.255.0/25","destinationAddressPrefix":"*","access":"Allow","priority":122,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-29b41117-7026-4f27-b5a3-af513b03ec3c","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-3389-Corpnet-29b41117-7026-4f27-b5a3-af513b03ec3c","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"167.220.242.0/27","destinationAddressPrefix":"*","access":"Allow","priority":123,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-5b83a9c9-3fbe-4e5a-9dc6-bde52b86120e","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-3389-Corpnet-5b83a9c9-3fbe-4e5a-9dc6-bde52b86120e","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"167.220.242.128/27","destinationAddressPrefix":"*","access":"Allow","priority":124,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-90fb96aa-1c19-4abe-8b27-c378c30b83f0","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-3389-Corpnet-90fb96aa-1c19-4abe-8b27-c378c30b83f0","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"167.220.242.192/27","destinationAddressPrefix":"*","access":"Allow","priority":125,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-af569d8b-16d7-4c17-aea3-461a726abcdd","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-3389-Corpnet-af569d8b-16d7-4c17-aea3-461a726abcdd","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"167.220.242.64/27","destinationAddressPrefix":"*","access":"Allow","priority":126,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-e5086447-40ee-4563-93a9-78f16f0fc196","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-3389-Corpnet-e5086447-40ee-4563-93a9-78f16f0fc196","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"94.245.87.0/24","destinationAddressPrefix":"*","access":"Allow","priority":127,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-15ca0b88-955c-4771-8b92-101fa3842545","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-3389-Corpnet-15ca0b88-955c-4771-8b92-101fa3842545","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"167.220.196.0/23","destinationAddressPrefix":"*","access":"Allow","priority":128,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-562e1357-a829-482a-a590-22fe49d0d788","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-3389-Corpnet-562e1357-a829-482a-a590-22fe49d0d788","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"194.69.104.0/25","destinationAddressPrefix":"*","access":"Allow","priority":129,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-4236a542-61c1-4ed1-ab3d-450b6e6bdb07","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-3389-Corpnet-4236a542-61c1-4ed1-ab3d-450b6e6bdb07","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"191.234.97.0/26","destinationAddressPrefix":"*","access":"Allow","priority":130,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-5bef9075-9bc0-46a0-9b63-2e3a310b6969","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-3389-Corpnet-5bef9075-9bc0-46a0-9b63-2e3a310b6969","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"167.220.0.0/23","destinationAddressPrefix":"*","access":"Allow","priority":131,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-baf93a20-f58d-447f-bdd1-e86bb97a03dd","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-3389-Corpnet-baf93a20-f58d-447f-bdd1-e86bb97a03dd","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"167.220.2.0/24","destinationAddressPrefix":"*","access":"Allow","priority":132,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-7222ac1c-7ef1-49cd-b502-5ea4e005c6ca","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-3389-Corpnet-7222ac1c-7ef1-49cd-b502-5ea4e005c6ca","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"207.68.190.32/27","destinationAddressPrefix":"*","access":"Allow","priority":133,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-56368776-1db2-484c-b0ce-0663e226a10d","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-3389-Corpnet-56368776-1db2-484c-b0ce-0663e226a10d","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"13.106.78.32/27","destinationAddressPrefix":"*","access":"Allow","priority":134,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-8855b901-7598-4ba8-b9ac-06023e31c5e8","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-3389-Corpnet-8855b901-7598-4ba8-b9ac-06023e31c5e8","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"10.254.32.0/20","destinationAddressPrefix":"*","access":"Allow","priority":135,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-56cfced6-510a-4791-bc43-2f295c9905fe","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-3389-Corpnet-56cfced6-510a-4791-bc43-2f295c9905fe","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"10.97.136.0/22","destinationAddressPrefix":"*","access":"Allow","priority":136,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-a866ce1f-98d4-48b0-b534-e0c969d36ca4","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-3389-Corpnet-a866ce1f-98d4-48b0-b534-e0c969d36ca4","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"13.106.174.32/27","destinationAddressPrefix":"*","access":"Allow","priority":137,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-219fc871-ce03-4b71-b47c-c942578400a1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-3389-Corpnet-219fc871-ce03-4b71-b47c-c942578400a1","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"13.106.4.96/27","destinationAddressPrefix":"*","access":"Allow","priority":138,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-c44cb037-e0db-46ef-a404-19861dbf672c","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-5985-5986-Corpnet-c44cb037-e0db-46ef-a404-19861dbf672c","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"167.220.148.0/23","destinationAddressPrefix":"*","access":"Allow","priority":139,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-163468c7-0223-488b-96bf-e5e50587bff3","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-5985-5986-Corpnet-163468c7-0223-488b-96bf-e5e50587bff3","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"131.107.147.0/24","destinationAddressPrefix":"*","access":"Allow","priority":140,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-860c94ff-af0b-4d64-b2e5-6ec6c037dc1f","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-5985-5986-Corpnet-860c94ff-af0b-4d64-b2e5-6ec6c037dc1f","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"131.107.159.0/24","destinationAddressPrefix":"*","access":"Allow","priority":141,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-9dc5640d-88c0-4de8-9e5b-a1bbd969fb09","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-5985-5986-Corpnet-9dc5640d-88c0-4de8-9e5b-a1bbd969fb09","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"131.107.160.0/24","destinationAddressPrefix":"*","access":"Allow","priority":142,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-dc717633-35a1-4710-a86b-678331c4faad","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-5985-5986-Corpnet-dc717633-35a1-4710-a86b-678331c4faad","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"131.107.174.0/24","destinationAddressPrefix":"*","access":"Allow","priority":143,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-3c2ab6b5-2c04-4867-bbaa-f86f96639ed6","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-5985-5986-Corpnet-3c2ab6b5-2c04-4867-bbaa-f86f96639ed6","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"167.220.24.0/24","destinationAddressPrefix":"*","access":"Allow","priority":144,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-61e87691-a023-4d60-8bb9-78c73a981259","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-5985-5986-Corpnet-61e87691-a023-4d60-8bb9-78c73a981259","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"167.220.26.0/24","destinationAddressPrefix":"*","access":"Allow","priority":145,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-8bc4c7b4-d029-4fc8-8d9d-cdd8df2e0811","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-5985-5986-Corpnet-8bc4c7b4-d029-4fc8-8d9d-cdd8df2e0811","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"167.220.238.0/27","destinationAddressPrefix":"*","access":"Allow","priority":146,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-5e0084ca-87d0-44a6-b69f-69ac9eba9a86","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-5985-5986-Corpnet-5e0084ca-87d0-44a6-b69f-69ac9eba9a86","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"167.220.238.128/27","destinationAddressPrefix":"*","access":"Allow","priority":147,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-1ecab654-9904-44ce-9607-01c7a8ea0e70","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-5985-5986-Corpnet-1ecab654-9904-44ce-9607-01c7a8ea0e70","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"167.220.238.192/27","destinationAddressPrefix":"*","access":"Allow","priority":148,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-9bb72507-f572-451f-a28e-dccce41e6938","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-5985-5986-Corpnet-9bb72507-f572-451f-a28e-dccce41e6938","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"167.220.238.64/27","destinationAddressPrefix":"*","access":"Allow","priority":149,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-384accc9-382a-4c77-b178-27c6d1e1c82a","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-5985-5986-Corpnet-384accc9-382a-4c77-b178-27c6d1e1c82a","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"167.220.232.0/23","destinationAddressPrefix":"*","access":"Allow","priority":150,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-f085d03c-e1c0-4f4e-9e7b-0d38452350fe","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-5985-5986-Corpnet-f085d03c-e1c0-4f4e-9e7b-0d38452350fe","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"167.220.255.0/25","destinationAddressPrefix":"*","access":"Allow","priority":151,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-b5b24b7c-4282-4edd-95cb-b769b784702c","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-5985-5986-Corpnet-b5b24b7c-4282-4edd-95cb-b769b784702c","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"167.220.242.0/27","destinationAddressPrefix":"*","access":"Allow","priority":152,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-90809972-334c-4cb8-b828-23248798eff0","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-5985-5986-Corpnet-90809972-334c-4cb8-b828-23248798eff0","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"167.220.242.128/27","destinationAddressPrefix":"*","access":"Allow","priority":153,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-f2b3751e-af36-4a84-be38-cd8997335f74","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-5985-5986-Corpnet-f2b3751e-af36-4a84-be38-cd8997335f74","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"167.220.242.192/27","destinationAddressPrefix":"*","access":"Allow","priority":154,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-ded8d270-20d7-468c-93df-10904ba46e65","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-5985-5986-Corpnet-ded8d270-20d7-468c-93df-10904ba46e65","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"167.220.242.64/27","destinationAddressPrefix":"*","access":"Allow","priority":155,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-6006b684-adf7-4875-a212-1ecc6355dc0a","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-5985-5986-Corpnet-6006b684-adf7-4875-a212-1ecc6355dc0a","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"94.245.87.0/24","destinationAddressPrefix":"*","access":"Allow","priority":156,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-0a8688ba-a2cf-486e-8e09-5866636b4204","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-5985-5986-Corpnet-0a8688ba-a2cf-486e-8e09-5866636b4204","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"167.220.196.0/23","destinationAddressPrefix":"*","access":"Allow","priority":157,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-f972104a-f86b-4147-bc8a-d062ca0a16e8","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-5985-5986-Corpnet-f972104a-f86b-4147-bc8a-d062ca0a16e8","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"194.69.104.0/25","destinationAddressPrefix":"*","access":"Allow","priority":158,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-9476f4ab-639a-4e27-9f99-2d67b2cc45ca","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-5985-5986-Corpnet-9476f4ab-639a-4e27-9f99-2d67b2cc45ca","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"191.234.97.0/26","destinationAddressPrefix":"*","access":"Allow","priority":159,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-b6733c5b-6a66-4328-b121-b685d92244de","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-5985-5986-Corpnet-b6733c5b-6a66-4328-b121-b685d92244de","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"167.220.0.0/23","destinationAddressPrefix":"*","access":"Allow","priority":160,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-3008e666-2ec5-4ecd-abe9-3eab31f99739","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-5985-5986-Corpnet-3008e666-2ec5-4ecd-abe9-3eab31f99739","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"167.220.2.0/24","destinationAddressPrefix":"*","access":"Allow","priority":161,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-096199ff-a1e2-4f4e-a743-523d375e0b98","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-5985-5986-Corpnet-096199ff-a1e2-4f4e-a743-523d375e0b98","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"207.68.190.32/27","destinationAddressPrefix":"*","access":"Allow","priority":162,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-66c1ea8d-4253-4982-94e1-3e71181aa202","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-5985-5986-Corpnet-66c1ea8d-4253-4982-94e1-3e71181aa202","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"13.106.78.32/27","destinationAddressPrefix":"*","access":"Allow","priority":163,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-ba58c562-af7a-41ec-a063-8f6a721a2d8d","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-5985-5986-Corpnet-ba58c562-af7a-41ec-a063-8f6a721a2d8d","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"10.254.32.0/20","destinationAddressPrefix":"*","access":"Allow","priority":164,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-eec594b2-f63c-4b34-96b3-acc6c0afa187","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-5985-5986-Corpnet-eec594b2-f63c-4b34-96b3-acc6c0afa187","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"10.97.136.0/22","destinationAddressPrefix":"*","access":"Allow","priority":165,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-34f163c3-8d4c-4ad7-8945-f3a56450b315","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-5985-5986-Corpnet-34f163c3-8d4c-4ad7-8945-f3a56450b315","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"13.106.174.32/27","destinationAddressPrefix":"*","access":"Allow","priority":166,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-7f50b376-02e8-4c7d-8a33-15ee98dfa27e","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-5985-5986-Corpnet-7f50b376-02e8-4c7d-8a33-15ee98dfa27e","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"13.106.4.96/27","destinationAddressPrefix":"*","access":"Allow","priority":167,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-aa27ea1e-5ef2-412f-a962-d03810a93a3e","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-22-23-Corpnet-aa27ea1e-5ef2-412f-a962-d03810a93a3e","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"167.220.148.0/23","destinationAddressPrefix":"*","access":"Allow","priority":168,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-9ab530df-8e0e-4ce9-8a49-0ee55652069a","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-22-23-Corpnet-9ab530df-8e0e-4ce9-8a49-0ee55652069a","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"131.107.147.0/24","destinationAddressPrefix":"*","access":"Allow","priority":169,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-f1952a92-7b1f-43b8-9ea9-fafc9c6d705e","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-22-23-Corpnet-f1952a92-7b1f-43b8-9ea9-fafc9c6d705e","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"131.107.159.0/24","destinationAddressPrefix":"*","access":"Allow","priority":170,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-1dc7d396-a2c6-42a2-99d9-16032e384181","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-22-23-Corpnet-1dc7d396-a2c6-42a2-99d9-16032e384181","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"131.107.160.0/24","destinationAddressPrefix":"*","access":"Allow","priority":171,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-ffb8849f-9845-4d1d-b207-b61c04499989","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-22-23-Corpnet-ffb8849f-9845-4d1d-b207-b61c04499989","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"131.107.174.0/24","destinationAddressPrefix":"*","access":"Allow","priority":172,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-3694f99f-9966-4a55-82df-e6fee1b54f90","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-22-23-Corpnet-3694f99f-9966-4a55-82df-e6fee1b54f90","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"167.220.24.0/24","destinationAddressPrefix":"*","access":"Allow","priority":173,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-70e59ccc-c6af-4e68-93a5-727ab9eef504","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-22-23-Corpnet-70e59ccc-c6af-4e68-93a5-727ab9eef504","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"167.220.26.0/24","destinationAddressPrefix":"*","access":"Allow","priority":174,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-feb7878b-b147-4ca4-a25f-c079c2e7b88a","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-22-23-Corpnet-feb7878b-b147-4ca4-a25f-c079c2e7b88a","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"167.220.238.0/27","destinationAddressPrefix":"*","access":"Allow","priority":175,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-7147375d-cc15-4af0-a277-7694003553cc","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-22-23-Corpnet-7147375d-cc15-4af0-a277-7694003553cc","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"167.220.238.128/27","destinationAddressPrefix":"*","access":"Allow","priority":176,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-0839021a-c1cd-45d2-b9ed-53a1b6257e2f","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-22-23-Corpnet-0839021a-c1cd-45d2-b9ed-53a1b6257e2f","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"167.220.238.192/27","destinationAddressPrefix":"*","access":"Allow","priority":177,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-59b33f13-eac2-4487-bf56-1883b953f01c","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-22-23-Corpnet-59b33f13-eac2-4487-bf56-1883b953f01c","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"167.220.238.64/27","destinationAddressPrefix":"*","access":"Allow","priority":178,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-b438962b-7c66-4687-bdf9-1e0932454391","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-22-23-Corpnet-b438962b-7c66-4687-bdf9-1e0932454391","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"167.220.232.0/23","destinationAddressPrefix":"*","access":"Allow","priority":179,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-a0a050f5-e363-4119-92f0-72ea984cb480","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-22-23-Corpnet-a0a050f5-e363-4119-92f0-72ea984cb480","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"167.220.255.0/25","destinationAddressPrefix":"*","access":"Allow","priority":180,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-9be43096-bb0f-49ee-9071-9fbf1e89fb35","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-22-23-Corpnet-9be43096-bb0f-49ee-9071-9fbf1e89fb35","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"167.220.242.0/27","destinationAddressPrefix":"*","access":"Allow","priority":181,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-858ae6c3-b562-4d0c-bae9-b0b3f1f55dfe","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-22-23-Corpnet-858ae6c3-b562-4d0c-bae9-b0b3f1f55dfe","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"167.220.242.128/27","destinationAddressPrefix":"*","access":"Allow","priority":182,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-6825ae76-b2b3-4085-b262-1718714071ed","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-22-23-Corpnet-6825ae76-b2b3-4085-b262-1718714071ed","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"167.220.242.192/27","destinationAddressPrefix":"*","access":"Allow","priority":183,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-4442797d-fbed-4796-a1ea-b6aa635a4ad4","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-22-23-Corpnet-4442797d-fbed-4796-a1ea-b6aa635a4ad4","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"167.220.242.64/27","destinationAddressPrefix":"*","access":"Allow","priority":184,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-54be0d5b-21ce-4770-9034-ca99ff3bf77d","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-22-23-Corpnet-54be0d5b-21ce-4770-9034-ca99ff3bf77d","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"94.245.87.0/24","destinationAddressPrefix":"*","access":"Allow","priority":185,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-e0911f0f-f96e-4c58-b305-2a1bec2c3a61","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-22-23-Corpnet-e0911f0f-f96e-4c58-b305-2a1bec2c3a61","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"167.220.196.0/23","destinationAddressPrefix":"*","access":"Allow","priority":186,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-b19fcb5d-49ff-495c-b79a-373e8e76cfe6","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-22-23-Corpnet-b19fcb5d-49ff-495c-b79a-373e8e76cfe6","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"194.69.104.0/25","destinationAddressPrefix":"*","access":"Allow","priority":187,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-54483918-60e7-4988-b1b6-24b889c8ab68","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-22-23-Corpnet-54483918-60e7-4988-b1b6-24b889c8ab68","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"191.234.97.0/26","destinationAddressPrefix":"*","access":"Allow","priority":188,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-d79d29f3-fdbc-41ba-8ad3-b46b00f66225","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-22-23-Corpnet-d79d29f3-fdbc-41ba-8ad3-b46b00f66225","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"167.220.0.0/23","destinationAddressPrefix":"*","access":"Allow","priority":189,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-b0ea2727-70d7-4802-9ec5-af82ddb4a8cb","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-22-23-Corpnet-b0ea2727-70d7-4802-9ec5-af82ddb4a8cb","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"167.220.2.0/24","destinationAddressPrefix":"*","access":"Allow","priority":190,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-66f8e7c4-75bb-45b3-a2e3-afb3dd897d30","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-22-23-Corpnet-66f8e7c4-75bb-45b3-a2e3-afb3dd897d30","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"207.68.190.32/27","destinationAddressPrefix":"*","access":"Allow","priority":191,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-e61d9da2-08a8-452a-899a-24c59f2f2ef0","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-22-23-Corpnet-e61d9da2-08a8-452a-899a-24c59f2f2ef0","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"13.106.78.32/27","destinationAddressPrefix":"*","access":"Allow","priority":192,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-956fed35-1b4c-4af6-8622-484e434b5446","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-22-23-Corpnet-956fed35-1b4c-4af6-8622-484e434b5446","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"10.254.32.0/20","destinationAddressPrefix":"*","access":"Allow","priority":193,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-8f66bad6-4fdc-4590-90b4-59e88c1dc0ba","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-22-23-Corpnet-8f66bad6-4fdc-4590-90b4-59e88c1dc0ba","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"10.97.136.0/22","destinationAddressPrefix":"*","access":"Allow","priority":194,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-61671826-247d-457d-9103-63c9b20a6c39","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-22-23-Corpnet-61671826-247d-457d-9103-63c9b20a6c39","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"13.106.174.32/27","destinationAddressPrefix":"*","access":"Allow","priority":195,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-0c44283c-14d2-4e1b-9ec0-840c7aad3abe","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-22-23-Corpnet-0c44283c-14d2-4e1b-9ec0-840c7aad3abe","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"13.106.4.96/27","destinationAddressPrefix":"*","access":"Allow","priority":196,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-6622952a-6212-41e4-b49c-f389f11c6c16","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-1433-Corpnet-6622952a-6212-41e4-b49c-f389f11c6c16","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"167.220.148.0/23","destinationAddressPrefix":"*","access":"Allow","priority":197,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-15b7533a-0419-4bc6-b232-403793f1b6de","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-1433-Corpnet-15b7533a-0419-4bc6-b232-403793f1b6de","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"131.107.147.0/24","destinationAddressPrefix":"*","access":"Allow","priority":198,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-da08eba0-4ef0-4817-9b1d-94cf3a934f0c","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-1433-Corpnet-da08eba0-4ef0-4817-9b1d-94cf3a934f0c","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"131.107.159.0/24","destinationAddressPrefix":"*","access":"Allow","priority":199,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-2fdeccd1-2bae-4ac6-b5b7-7b937cfa1851","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-1433-Corpnet-2fdeccd1-2bae-4ac6-b5b7-7b937cfa1851","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"131.107.160.0/24","destinationAddressPrefix":"*","access":"Allow","priority":200,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-b1b813ac-b38b-4964-9ac3-6f584108775d","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-1433-Corpnet-b1b813ac-b38b-4964-9ac3-6f584108775d","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"131.107.174.0/24","destinationAddressPrefix":"*","access":"Allow","priority":201,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-76a90ef6-36d0-466c-a12e-e8716e8cb794","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-1433-Corpnet-76a90ef6-36d0-466c-a12e-e8716e8cb794","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"167.220.24.0/24","destinationAddressPrefix":"*","access":"Allow","priority":202,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-7e1fcb97-8bbf-458a-a74b-a36b774b30c5","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-1433-Corpnet-7e1fcb97-8bbf-458a-a74b-a36b774b30c5","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"167.220.26.0/24","destinationAddressPrefix":"*","access":"Allow","priority":203,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-27e4b2fa-3c35-417d-a1c3-08c383b12766","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-1433-Corpnet-27e4b2fa-3c35-417d-a1c3-08c383b12766","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"167.220.238.0/27","destinationAddressPrefix":"*","access":"Allow","priority":204,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-e70b420c-e082-4f68-843e-3ed3ead0433d","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-1433-Corpnet-e70b420c-e082-4f68-843e-3ed3ead0433d","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"167.220.238.128/27","destinationAddressPrefix":"*","access":"Allow","priority":205,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-ac1e71d9-d137-4335-9e40-13186553369d","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-1433-Corpnet-ac1e71d9-d137-4335-9e40-13186553369d","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"167.220.238.192/27","destinationAddressPrefix":"*","access":"Allow","priority":206,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-45457c6d-83ce-4848-9045-7bed91e18dd9","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-1433-Corpnet-45457c6d-83ce-4848-9045-7bed91e18dd9","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"167.220.238.64/27","destinationAddressPrefix":"*","access":"Allow","priority":207,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-defa16e6-f3fb-4d0c-92c4-2c5194d5db39","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-1433-Corpnet-defa16e6-f3fb-4d0c-92c4-2c5194d5db39","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"167.220.232.0/23","destinationAddressPrefix":"*","access":"Allow","priority":208,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-b74675d2-bfd2-42d7-afe3-e8041000ab4f","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-1433-Corpnet-b74675d2-bfd2-42d7-afe3-e8041000ab4f","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"167.220.255.0/25","destinationAddressPrefix":"*","access":"Allow","priority":209,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-c24652b7-b08b-43fd-9068-5948b2ba290a","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-1433-Corpnet-c24652b7-b08b-43fd-9068-5948b2ba290a","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"167.220.242.0/27","destinationAddressPrefix":"*","access":"Allow","priority":210,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-d5ad01aa-95a5-4efa-a568-341cbf39f2d8","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-1433-Corpnet-d5ad01aa-95a5-4efa-a568-341cbf39f2d8","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"167.220.242.128/27","destinationAddressPrefix":"*","access":"Allow","priority":211,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-d3256b5f-dddf-4f2a-817d-3f28d44d5a28","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-1433-Corpnet-d3256b5f-dddf-4f2a-817d-3f28d44d5a28","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"167.220.242.192/27","destinationAddressPrefix":"*","access":"Allow","priority":212,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-25b2be63-0697-49fe-be84-00aa4fb0b570","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-1433-Corpnet-25b2be63-0697-49fe-be84-00aa4fb0b570","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"167.220.242.64/27","destinationAddressPrefix":"*","access":"Allow","priority":213,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-034dccb9-47e3-493e-9582-7ca164175bea","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-1433-Corpnet-034dccb9-47e3-493e-9582-7ca164175bea","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"94.245.87.0/24","destinationAddressPrefix":"*","access":"Allow","priority":214,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-9419d301-98b1-4c57-b7b9-9af6ac0fc099","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-1433-Corpnet-9419d301-98b1-4c57-b7b9-9af6ac0fc099","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"167.220.196.0/23","destinationAddressPrefix":"*","access":"Allow","priority":215,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-052012fe-0ebc-4e5a-8300-add82936e2ea","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-1433-Corpnet-052012fe-0ebc-4e5a-8300-add82936e2ea","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"194.69.104.0/25","destinationAddressPrefix":"*","access":"Allow","priority":216,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-3e557358-ee76-475c-899e-90ead9742fa6","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-1433-Corpnet-3e557358-ee76-475c-899e-90ead9742fa6","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"191.234.97.0/26","destinationAddressPrefix":"*","access":"Allow","priority":217,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-30f8d497-2a00-4e5d-b78e-b5cae56e614d","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-1433-Corpnet-30f8d497-2a00-4e5d-b78e-b5cae56e614d","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"167.220.0.0/23","destinationAddressPrefix":"*","access":"Allow","priority":218,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-ec4bb0ad-ff1d-4089-a4ab-d48c2a23c6ec","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-1433-Corpnet-ec4bb0ad-ff1d-4089-a4ab-d48c2a23c6ec","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"167.220.2.0/24","destinationAddressPrefix":"*","access":"Allow","priority":219,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-4cf1d73b-d863-4910-8d62-9b6f74d2cf8d","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-1433-Corpnet-4cf1d73b-d863-4910-8d62-9b6f74d2cf8d","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"207.68.190.32/27","destinationAddressPrefix":"*","access":"Allow","priority":220,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-391d1b12-bbd0-419b-8fe9-847266d10cc7","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-1433-Corpnet-391d1b12-bbd0-419b-8fe9-847266d10cc7","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"13.106.78.32/27","destinationAddressPrefix":"*","access":"Allow","priority":221,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-6f732f61-d133-4cf6-a51c-acb079f47e95","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-1433-Corpnet-6f732f61-d133-4cf6-a51c-acb079f47e95","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"10.254.32.0/20","destinationAddressPrefix":"*","access":"Allow","priority":222,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-7b581da6-3cc6-48ad-81e7-bfe9e5c1821d","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-1433-Corpnet-7b581da6-3cc6-48ad-81e7-bfe9e5c1821d","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"10.97.136.0/22","destinationAddressPrefix":"*","access":"Allow","priority":223,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-c5bb2602-7f80-418c-979a-48aba83dc759","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-1433-Corpnet-c5bb2602-7f80-418c-979a-48aba83dc759","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"13.106.174.32/27","destinationAddressPrefix":"*","access":"Allow","priority":224,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-dae78364-e11d-4b12-a307-bde559c4f3ff","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-1433-Corpnet-dae78364-e11d-4b12-a307-bde559c4f3ff","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"13.106.4.96/27","destinationAddressPrefix":"*","access":"Allow","priority":225,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-07db793a-2809-49cd-809c-cbac1d78d920","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-445-Corpnet-07db793a-2809-49cd-809c-cbac1d78d920","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"167.220.148.0/23","destinationAddressPrefix":"*","access":"Allow","priority":226,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-7623d8bb-157e-44d1-a8cf-bef272097dc0","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-445-Corpnet-7623d8bb-157e-44d1-a8cf-bef272097dc0","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"131.107.147.0/24","destinationAddressPrefix":"*","access":"Allow","priority":227,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-1f1cb34e-44d0-4997-a85c-8549c56347b1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-445-Corpnet-1f1cb34e-44d0-4997-a85c-8549c56347b1","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"131.107.159.0/24","destinationAddressPrefix":"*","access":"Allow","priority":228,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-5eadff45-0135-41b0-af23-87517d12922a","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-445-Corpnet-5eadff45-0135-41b0-af23-87517d12922a","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"131.107.160.0/24","destinationAddressPrefix":"*","access":"Allow","priority":229,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-82712c0c-5e2e-4947-a134-7843d86d1cba","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-445-Corpnet-82712c0c-5e2e-4947-a134-7843d86d1cba","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"131.107.174.0/24","destinationAddressPrefix":"*","access":"Allow","priority":230,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-7ea06896-846a-416d-a818-16df1fc03f1a","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-445-Corpnet-7ea06896-846a-416d-a818-16df1fc03f1a","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"167.220.24.0/24","destinationAddressPrefix":"*","access":"Allow","priority":231,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-e4d54614-b7ca-4017-b083-aa47df57dc99","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-445-Corpnet-e4d54614-b7ca-4017-b083-aa47df57dc99","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"167.220.26.0/24","destinationAddressPrefix":"*","access":"Allow","priority":232,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-193ef0d5-6126-4459-925c-afccf5ecf136","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-445-Corpnet-193ef0d5-6126-4459-925c-afccf5ecf136","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"167.220.238.0/27","destinationAddressPrefix":"*","access":"Allow","priority":233,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-70afac30-e977-4272-b622-258dbef83403","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-445-Corpnet-70afac30-e977-4272-b622-258dbef83403","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"167.220.238.128/27","destinationAddressPrefix":"*","access":"Allow","priority":234,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-7d33425c-4de5-4829-a5b7-fbd512b646ed","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-445-Corpnet-7d33425c-4de5-4829-a5b7-fbd512b646ed","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"167.220.238.192/27","destinationAddressPrefix":"*","access":"Allow","priority":235,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-b83e868f-a1f9-4f16-a3d1-4510ff4933ef","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-445-Corpnet-b83e868f-a1f9-4f16-a3d1-4510ff4933ef","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"167.220.238.64/27","destinationAddressPrefix":"*","access":"Allow","priority":236,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-bb2c34a7-87d6-496d-8c67-af4b51af9699","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-445-Corpnet-bb2c34a7-87d6-496d-8c67-af4b51af9699","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"167.220.232.0/23","destinationAddressPrefix":"*","access":"Allow","priority":237,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-c48ba153-50cb-4bc0-bd67-185cf32fc23e","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-445-Corpnet-c48ba153-50cb-4bc0-bd67-185cf32fc23e","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"167.220.255.0/25","destinationAddressPrefix":"*","access":"Allow","priority":238,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-5e38f0b8-590f-4039-a811-947aade47138","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-445-Corpnet-5e38f0b8-590f-4039-a811-947aade47138","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"167.220.242.0/27","destinationAddressPrefix":"*","access":"Allow","priority":239,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-341ce1fc-a547-4588-bf55-8d48932eb267","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-445-Corpnet-341ce1fc-a547-4588-bf55-8d48932eb267","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"167.220.242.128/27","destinationAddressPrefix":"*","access":"Allow","priority":240,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-6cbb0e73-2036-4957-a865-b9ee92bcd325","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-445-Corpnet-6cbb0e73-2036-4957-a865-b9ee92bcd325","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"167.220.242.192/27","destinationAddressPrefix":"*","access":"Allow","priority":241,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-c364cc3b-f847-447d-9a73-75b558d60a7b","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-445-Corpnet-c364cc3b-f847-447d-9a73-75b558d60a7b","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"167.220.242.64/27","destinationAddressPrefix":"*","access":"Allow","priority":242,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-2a7ec1c6-169a-4a63-a682-7c4decc6f2ac","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-445-Corpnet-2a7ec1c6-169a-4a63-a682-7c4decc6f2ac","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"94.245.87.0/24","destinationAddressPrefix":"*","access":"Allow","priority":243,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-904db094-78a1-4ccb-a51f-9dd907230a60","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-445-Corpnet-904db094-78a1-4ccb-a51f-9dd907230a60","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"167.220.196.0/23","destinationAddressPrefix":"*","access":"Allow","priority":244,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-024b95b2-79be-43d8-b664-817046ae6c7f","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-445-Corpnet-024b95b2-79be-43d8-b664-817046ae6c7f","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"194.69.104.0/25","destinationAddressPrefix":"*","access":"Allow","priority":245,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-400bf30e-5d73-4330-af77-c235063b8efd","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-445-Corpnet-400bf30e-5d73-4330-af77-c235063b8efd","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"191.234.97.0/26","destinationAddressPrefix":"*","access":"Allow","priority":246,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-fcd7ec2e-65cf-4012-aac2-0d9634797fd6","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-445-Corpnet-fcd7ec2e-65cf-4012-aac2-0d9634797fd6","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"167.220.0.0/23","destinationAddressPrefix":"*","access":"Allow","priority":247,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-8dc889b3-0da2-49e1-9f00-75c3d70ad576","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-445-Corpnet-8dc889b3-0da2-49e1-9f00-75c3d70ad576","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"167.220.2.0/24","destinationAddressPrefix":"*","access":"Allow","priority":248,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-d25c668f-544f-4355-9630-44aa2e9f0663","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-445-Corpnet-d25c668f-544f-4355-9630-44aa2e9f0663","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"207.68.190.32/27","destinationAddressPrefix":"*","access":"Allow","priority":249,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-eec264eb-c7d7-4c09-8485-0adb3aa1c495","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-445-Corpnet-eec264eb-c7d7-4c09-8485-0adb3aa1c495","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"13.106.78.32/27","destinationAddressPrefix":"*","access":"Allow","priority":250,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-60f3ef75-4201-433f-8e17-68fadce7bbbc","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-445-Corpnet-60f3ef75-4201-433f-8e17-68fadce7bbbc","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"10.254.32.0/20","destinationAddressPrefix":"*","access":"Allow","priority":251,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-4ccdb5db-3e0a-4086-8e33-03f287bd9316","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-445-Corpnet-4ccdb5db-3e0a-4086-8e33-03f287bd9316","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"10.97.136.0/22","destinationAddressPrefix":"*","access":"Allow","priority":252,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-3172aa4f-ae77-47c7-aef4-16af83447063","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-445-Corpnet-3172aa4f-ae77-47c7-aef4-16af83447063","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"13.106.174.32/27","destinationAddressPrefix":"*","access":"Allow","priority":253,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-9580d464-ee74-4442-a8b7-cb55a01d7d91","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-445-Corpnet-9580d464-ee74-4442-a8b7-cb55a01d7d91","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"13.106.4.96/27","destinationAddressPrefix":"*","access":"Allow","priority":254,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-85930d1b-1c7f-45a3-89e3-5f24f83b2f29","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-135-Corpnet-85930d1b-1c7f-45a3-89e3-5f24f83b2f29","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"167.220.148.0/23","destinationAddressPrefix":"*","access":"Allow","priority":255,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-223645ce-a90d-40bf-af2d-fb26dfa64a80","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-135-Corpnet-223645ce-a90d-40bf-af2d-fb26dfa64a80","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"131.107.147.0/24","destinationAddressPrefix":"*","access":"Allow","priority":256,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-645b1f89-7545-4bbf-a728-d6d5d7272695","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-135-Corpnet-645b1f89-7545-4bbf-a728-d6d5d7272695","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"131.107.159.0/24","destinationAddressPrefix":"*","access":"Allow","priority":257,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-3ce11fea-2481-489f-a214-6bf8ec54d3b6","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-135-Corpnet-3ce11fea-2481-489f-a214-6bf8ec54d3b6","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"131.107.160.0/24","destinationAddressPrefix":"*","access":"Allow","priority":258,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-a618327d-716b-4970-b5f1-af24298b1ca1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-135-Corpnet-a618327d-716b-4970-b5f1-af24298b1ca1","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"131.107.174.0/24","destinationAddressPrefix":"*","access":"Allow","priority":259,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-beaf39b6-57fb-483f-9b24-10f2ee61f66a","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-135-Corpnet-beaf39b6-57fb-483f-9b24-10f2ee61f66a","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"167.220.24.0/24","destinationAddressPrefix":"*","access":"Allow","priority":260,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-9bd493dc-5522-4191-a755-a6c479ad4da6","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-135-Corpnet-9bd493dc-5522-4191-a755-a6c479ad4da6","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"167.220.26.0/24","destinationAddressPrefix":"*","access":"Allow","priority":261,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-7d9770c5-8900-4004-9307-249f110df402","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-135-Corpnet-7d9770c5-8900-4004-9307-249f110df402","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"167.220.238.0/27","destinationAddressPrefix":"*","access":"Allow","priority":262,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-f1f2899e-71fa-43ae-aa60-d7a5a4eb9e56","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-135-Corpnet-f1f2899e-71fa-43ae-aa60-d7a5a4eb9e56","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"167.220.238.128/27","destinationAddressPrefix":"*","access":"Allow","priority":263,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-4ca12ca7-7b79-4b4e-94da-ae6f9bc61094","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-135-Corpnet-4ca12ca7-7b79-4b4e-94da-ae6f9bc61094","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"167.220.238.192/27","destinationAddressPrefix":"*","access":"Allow","priority":264,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-df2c52ef-56c3-4cc5-8ae9-20878e42eda9","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-135-Corpnet-df2c52ef-56c3-4cc5-8ae9-20878e42eda9","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"167.220.238.64/27","destinationAddressPrefix":"*","access":"Allow","priority":265,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-e2834af2-d5cd-43cd-9de6-38f045256c6a","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-135-Corpnet-e2834af2-d5cd-43cd-9de6-38f045256c6a","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"167.220.232.0/23","destinationAddressPrefix":"*","access":"Allow","priority":266,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-5638d247-381f-4273-92f4-0dd025df9cb3","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-135-Corpnet-5638d247-381f-4273-92f4-0dd025df9cb3","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"167.220.255.0/25","destinationAddressPrefix":"*","access":"Allow","priority":267,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-3ac13732-885b-4480-b72c-2f67c5c67190","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-135-Corpnet-3ac13732-885b-4480-b72c-2f67c5c67190","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"167.220.242.0/27","destinationAddressPrefix":"*","access":"Allow","priority":268,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-1e4d2168-767b-4fef-9ba2-cd469b211b54","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-135-Corpnet-1e4d2168-767b-4fef-9ba2-cd469b211b54","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"167.220.242.128/27","destinationAddressPrefix":"*","access":"Allow","priority":269,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-ba429225-8e34-4007-af59-bf3fbd353338","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-135-Corpnet-ba429225-8e34-4007-af59-bf3fbd353338","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"167.220.242.192/27","destinationAddressPrefix":"*","access":"Allow","priority":270,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-0c58aab3-1091-4c70-a607-dcdbeb3036c4","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-135-Corpnet-0c58aab3-1091-4c70-a607-dcdbeb3036c4","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"167.220.242.64/27","destinationAddressPrefix":"*","access":"Allow","priority":271,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-edba92da-0019-4cb8-b16d-b64fee3d6c6a","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-135-Corpnet-edba92da-0019-4cb8-b16d-b64fee3d6c6a","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"94.245.87.0/24","destinationAddressPrefix":"*","access":"Allow","priority":272,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-ff8c44f1-fcc9-4eb3-825d-104092e4aee0","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-135-Corpnet-ff8c44f1-fcc9-4eb3-825d-104092e4aee0","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"167.220.196.0/23","destinationAddressPrefix":"*","access":"Allow","priority":273,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-fe873b17-bc27-49ba-8e3a-825f7b909acf","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-135-Corpnet-fe873b17-bc27-49ba-8e3a-825f7b909acf","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"194.69.104.0/25","destinationAddressPrefix":"*","access":"Allow","priority":274,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-ee4eef88-e47e-4e1f-b39e-877ad0efc9cb","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-135-Corpnet-ee4eef88-e47e-4e1f-b39e-877ad0efc9cb","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"191.234.97.0/26","destinationAddressPrefix":"*","access":"Allow","priority":275,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-214b00c4-56d5-41bf-a22e-c821a5eee3f4","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-135-Corpnet-214b00c4-56d5-41bf-a22e-c821a5eee3f4","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"167.220.0.0/23","destinationAddressPrefix":"*","access":"Allow","priority":276,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-f2821a71-20c3-43da-b532-c32ce4c0ae86","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-135-Corpnet-f2821a71-20c3-43da-b532-c32ce4c0ae86","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"167.220.2.0/24","destinationAddressPrefix":"*","access":"Allow","priority":277,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-bf5e2027-bbbe-4b14-928d-5fb2cf37cd73","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-135-Corpnet-bf5e2027-bbbe-4b14-928d-5fb2cf37cd73","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"207.68.190.32/27","destinationAddressPrefix":"*","access":"Allow","priority":278,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-f9436aa5-e1c6-484b-ab41-3e0d8c95fa83","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-135-Corpnet-f9436aa5-e1c6-484b-ab41-3e0d8c95fa83","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"13.106.78.32/27","destinationAddressPrefix":"*","access":"Allow","priority":279,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-69a96234-889d-468b-bce1-203e6bba6207","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-135-Corpnet-69a96234-889d-468b-bce1-203e6bba6207","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"10.254.32.0/20","destinationAddressPrefix":"*","access":"Allow","priority":280,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-dbb72e89-6c5a-404f-b834-a4fb49be1d01","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-135-Corpnet-dbb72e89-6c5a-404f-b834-a4fb49be1d01","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"10.97.136.0/22","destinationAddressPrefix":"*","access":"Allow","priority":281,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-9669ca53-8990-4941-b2c7-36acc2c51b70","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-135-Corpnet-9669ca53-8990-4941-b2c7-36acc2c51b70","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"13.106.174.32/27","destinationAddressPrefix":"*","access":"Allow","priority":282,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-3a3cc71a-2d52-4a2e-8d06-68530717bc02","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/securityRules/Cleanuptool-135-Corpnet-3a3cc71a-2d52-4a2e-8d06-68530717bc02","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"13.106.4.96/27","destinationAddressPrefix":"*","access":"Allow","priority":283,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}}],"defaultSecurityRules":[{"name":"AllowVnetInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/defaultSecurityRules/AllowVnetInBound","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow inbound traffic from all VMs in VNET","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"VirtualNetwork","access":"Allow","priority":65000,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowAzureLoadBalancerInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/defaultSecurityRules/AllowAzureLoadBalancerInBound","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow inbound traffic from azure load balancer","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"AzureLoadBalancer","destinationAddressPrefix":"*","access":"Allow","priority":65001,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"DenyAllInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/defaultSecurityRules/DenyAllInBound","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Deny all inbound traffic","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":65500,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowVnetOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/defaultSecurityRules/AllowVnetOutBound","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow outbound traffic from all VMs to all VMs in VNET","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"VirtualNetwork","access":"Allow","priority":65000,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowInternetOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/defaultSecurityRules/AllowInternetOutBound","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow outbound traffic from all VMs to Internet","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"Internet","access":"Allow","priority":65001,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"DenyAllOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg7/defaultSecurityRules/DenyAllOutBound","etag":"W/\"2eea4f0c-7e6a-4ab4-96f1-a7ae867bf034\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Deny - all outbound traffic","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":65500,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}}]}},{"name":"TestVM2NSG","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ovaTestGroup/providers/Microsoft.Network/networkSecurityGroups/TestVM2NSG","etag":"W/\"6e7e041b-4882-4085-a4fd-df61af1143df\"","type":"Microsoft.Network/networkSecurityGroups","location":"westus","tags":{},"properties":{"provisioningState":"Succeeded","resourceGuid":"0e78dca5-9996-4311-9f14-6be7a09e2a21","securityRules":[{"name":"default-allow-ssh","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ovaTestGroup/providers/Microsoft.Network/networkSecurityGroups/TestVM2NSG/securityRules/default-allow-ssh","etag":"W/\"6e7e041b-4882-4085-a4fd-df61af1143df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Allow","priority":1000,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}}],"defaultSecurityRules":[{"name":"AllowVnetInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ovaTestGroup/providers/Microsoft.Network/networkSecurityGroups/TestVM2NSG/defaultSecurityRules/AllowVnetInBound","etag":"W/\"6e7e041b-4882-4085-a4fd-df61af1143df\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow - inbound traffic from all VMs in VNET","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"VirtualNetwork","access":"Allow","priority":65000,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowAzureLoadBalancerInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ovaTestGroup/providers/Microsoft.Network/networkSecurityGroups/TestVM2NSG/defaultSecurityRules/AllowAzureLoadBalancerInBound","etag":"W/\"6e7e041b-4882-4085-a4fd-df61af1143df\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow - inbound traffic from azure load balancer","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"AzureLoadBalancer","destinationAddressPrefix":"*","access":"Allow","priority":65001,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"DenyAllInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ovaTestGroup/providers/Microsoft.Network/networkSecurityGroups/TestVM2NSG/defaultSecurityRules/DenyAllInBound","etag":"W/\"6e7e041b-4882-4085-a4fd-df61af1143df\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Deny - all inbound traffic","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":65500,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowVnetOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ovaTestGroup/providers/Microsoft.Network/networkSecurityGroups/TestVM2NSG/defaultSecurityRules/AllowVnetOutBound","etag":"W/\"6e7e041b-4882-4085-a4fd-df61af1143df\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow - outbound traffic from all VMs to all VMs in VNET","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"VirtualNetwork","access":"Allow","priority":65000,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowInternetOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ovaTestGroup/providers/Microsoft.Network/networkSecurityGroups/TestVM2NSG/defaultSecurityRules/AllowInternetOutBound","etag":"W/\"6e7e041b-4882-4085-a4fd-df61af1143df\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow - outbound traffic from all VMs to Internet","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"Internet","access":"Allow","priority":65001,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"DenyAllOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ovaTestGroup/providers/Microsoft.Network/networkSecurityGroups/TestVM2NSG/defaultSecurityRules/DenyAllOutBound","etag":"W/\"6e7e041b-4882-4085-a4fd-df61af1143df\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Deny - all outbound traffic","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":65500,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}}],"networkInterfaces":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ovaTestGroup/providers/Microsoft.Network/networkInterfaces/TestVM2VMNic"}]}},{"name":"TestVMNSG","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ovaTestGroup/providers/Microsoft.Network/networkSecurityGroups/TestVMNSG","etag":"W/\"aaa81a79-e4e1-4561-9528-d86fd729d0f3\"","type":"Microsoft.Network/networkSecurityGroups","location":"westus","tags":{},"properties":{"provisioningState":"Succeeded","resourceGuid":"7f09f716-e11d-48b8-b4f9-f8eab6478607","securityRules":[{"name":"default-allow-ssh","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ovaTestGroup/providers/Microsoft.Network/networkSecurityGroups/TestVMNSG/securityRules/default-allow-ssh","etag":"W/\"aaa81a79-e4e1-4561-9528-d86fd729d0f3\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Allow","priority":1000,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}}],"defaultSecurityRules":[{"name":"AllowVnetInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ovaTestGroup/providers/Microsoft.Network/networkSecurityGroups/TestVMNSG/defaultSecurityRules/AllowVnetInBound","etag":"W/\"aaa81a79-e4e1-4561-9528-d86fd729d0f3\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow - inbound traffic from all VMs in VNET","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"VirtualNetwork","access":"Allow","priority":65000,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowAzureLoadBalancerInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ovaTestGroup/providers/Microsoft.Network/networkSecurityGroups/TestVMNSG/defaultSecurityRules/AllowAzureLoadBalancerInBound","etag":"W/\"aaa81a79-e4e1-4561-9528-d86fd729d0f3\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow - inbound traffic from azure load balancer","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"AzureLoadBalancer","destinationAddressPrefix":"*","access":"Allow","priority":65001,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"DenyAllInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ovaTestGroup/providers/Microsoft.Network/networkSecurityGroups/TestVMNSG/defaultSecurityRules/DenyAllInBound","etag":"W/\"aaa81a79-e4e1-4561-9528-d86fd729d0f3\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Deny - all inbound traffic","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":65500,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowVnetOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ovaTestGroup/providers/Microsoft.Network/networkSecurityGroups/TestVMNSG/defaultSecurityRules/AllowVnetOutBound","etag":"W/\"aaa81a79-e4e1-4561-9528-d86fd729d0f3\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow - outbound traffic from all VMs to all VMs in VNET","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"VirtualNetwork","access":"Allow","priority":65000,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowInternetOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ovaTestGroup/providers/Microsoft.Network/networkSecurityGroups/TestVMNSG/defaultSecurityRules/AllowInternetOutBound","etag":"W/\"aaa81a79-e4e1-4561-9528-d86fd729d0f3\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow - outbound traffic from all VMs to Internet","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"Internet","access":"Allow","priority":65001,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"DenyAllOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ovaTestGroup/providers/Microsoft.Network/networkSecurityGroups/TestVMNSG/defaultSecurityRules/DenyAllOutBound","etag":"W/\"aaa81a79-e4e1-4561-9528-d86fd729d0f3\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Deny - all outbound traffic","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":65500,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}}],"networkInterfaces":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ovaTestGroup/providers/Microsoft.Network/networkInterfaces/TestVMVMNic"}]}},{"name":"pysecgroupc575136b","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b","etag":"W/\"aa0fe286-bc49-4952-9e1f-02314ec233f9\"","type":"Microsoft.Network/networkSecurityGroups","location":"westus","properties":{"provisioningState":"Succeeded","resourceGuid":"91f30cf8-1143-4469-bf12-33d7870cb432","securityRules":[{"name":"pysecgrouprulec575136b","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/securityRules/pysecgrouprulec575136b","etag":"W/\"aa0fe286-bc49-4952-9e1f-02314ec233f9\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","description":"Test - security rule","protocol":"Tcp","sourcePortRange":"655","destinationPortRange":"123-3500","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Allow","priority":500,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}}],"defaultSecurityRules":[{"name":"AllowVnetInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/AllowVnetInBound","etag":"W/\"aa0fe286-bc49-4952-9e1f-02314ec233f9\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow - inbound traffic from all VMs in VNET","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"VirtualNetwork","access":"Allow","priority":65000,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowAzureLoadBalancerInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/AllowAzureLoadBalancerInBound","etag":"W/\"aa0fe286-bc49-4952-9e1f-02314ec233f9\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow - inbound traffic from azure load balancer","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"AzureLoadBalancer","destinationAddressPrefix":"*","access":"Allow","priority":65001,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"DenyAllInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/DenyAllInBound","etag":"W/\"aa0fe286-bc49-4952-9e1f-02314ec233f9\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Deny - all inbound traffic","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":65500,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowVnetOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/AllowVnetOutBound","etag":"W/\"aa0fe286-bc49-4952-9e1f-02314ec233f9\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow - outbound traffic from all VMs to all VMs in VNET","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"VirtualNetwork","access":"Allow","priority":65000,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowInternetOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/AllowInternetOutBound","etag":"W/\"aa0fe286-bc49-4952-9e1f-02314ec233f9\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow - outbound traffic from all VMs to Internet","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"Internet","access":"Allow","priority":65001,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"DenyAllOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/DenyAllOutBound","etag":"W/\"aa0fe286-bc49-4952-9e1f-02314ec233f9\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Deny - all outbound traffic","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":65500,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}}]}},{"name":"wilxvm1NSG","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/wilxtest/providers/Microsoft.Network/networkSecurityGroups/wilxvm1NSG","etag":"W/\"6361bd0a-d04f-4fc5-a2e7-42c53975ee7b\"","type":"Microsoft.Network/networkSecurityGroups","location":"westus","tags":{},"properties":{"provisioningState":"Succeeded","resourceGuid":"71059020-7d6d-4c97-816c-019fe1d2d224","securityRules":[{"name":"default-allow-ssh","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/wilxtest/providers/Microsoft.Network/networkSecurityGroups/wilxvm1NSG/securityRules/default-allow-ssh","etag":"W/\"6361bd0a-d04f-4fc5-a2e7-42c53975ee7b\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Allow","priority":1000,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-Corpnet-d5c72432-9ede-42a1-9195-d7590849c73c","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/wilxtest/providers/Microsoft.Network/networkSecurityGroups/wilxvm1NSG/securityRules/Cleanuptool-22-Corpnet-d5c72432-9ede-42a1-9195-d7590849c73c","etag":"W/\"6361bd0a-d04f-4fc5-a2e7-42c53975ee7b\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22","sourceAddressPrefix":"167.220.148.0/23","destinationAddressPrefix":"*","access":"Allow","priority":110,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-Corpnet-4af551ee-c77e-4778-b565-81c77aef3fa3","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/wilxtest/providers/Microsoft.Network/networkSecurityGroups/wilxvm1NSG/securityRules/Cleanuptool-22-Corpnet-4af551ee-c77e-4778-b565-81c77aef3fa3","etag":"W/\"6361bd0a-d04f-4fc5-a2e7-42c53975ee7b\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22","sourceAddressPrefix":"131.107.147.0/24","destinationAddressPrefix":"*","access":"Allow","priority":111,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-Corpnet-07211417-ead7-4ea6-abea-5047d02b076f","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/wilxtest/providers/Microsoft.Network/networkSecurityGroups/wilxvm1NSG/securityRules/Cleanuptool-22-Corpnet-07211417-ead7-4ea6-abea-5047d02b076f","etag":"W/\"6361bd0a-d04f-4fc5-a2e7-42c53975ee7b\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22","sourceAddressPrefix":"131.107.159.0/24","destinationAddressPrefix":"*","access":"Allow","priority":112,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-Corpnet-6944eaa5-13c3-4204-b888-de52b54e4a15","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/wilxtest/providers/Microsoft.Network/networkSecurityGroups/wilxvm1NSG/securityRules/Cleanuptool-22-Corpnet-6944eaa5-13c3-4204-b888-de52b54e4a15","etag":"W/\"6361bd0a-d04f-4fc5-a2e7-42c53975ee7b\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22","sourceAddressPrefix":"131.107.160.0/24","destinationAddressPrefix":"*","access":"Allow","priority":113,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-Corpnet-266aabcf-2383-4e02-933f-f0530625cfcd","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/wilxtest/providers/Microsoft.Network/networkSecurityGroups/wilxvm1NSG/securityRules/Cleanuptool-22-Corpnet-266aabcf-2383-4e02-933f-f0530625cfcd","etag":"W/\"6361bd0a-d04f-4fc5-a2e7-42c53975ee7b\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22","sourceAddressPrefix":"131.107.174.0/24","destinationAddressPrefix":"*","access":"Allow","priority":114,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-Corpnet-a0379755-d0af-4e36-b09d-aeaf7648a067","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/wilxtest/providers/Microsoft.Network/networkSecurityGroups/wilxvm1NSG/securityRules/Cleanuptool-22-Corpnet-a0379755-d0af-4e36-b09d-aeaf7648a067","etag":"W/\"6361bd0a-d04f-4fc5-a2e7-42c53975ee7b\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22","sourceAddressPrefix":"167.220.24.0/24","destinationAddressPrefix":"*","access":"Allow","priority":115,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-Corpnet-85368e2c-418f-4cdd-b747-1f008c93da8a","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/wilxtest/providers/Microsoft.Network/networkSecurityGroups/wilxvm1NSG/securityRules/Cleanuptool-22-Corpnet-85368e2c-418f-4cdd-b747-1f008c93da8a","etag":"W/\"6361bd0a-d04f-4fc5-a2e7-42c53975ee7b\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22","sourceAddressPrefix":"167.220.26.0/24","destinationAddressPrefix":"*","access":"Allow","priority":116,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-Corpnet-359f8ec5-314a-4573-ac7c-6e28765ee554","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/wilxtest/providers/Microsoft.Network/networkSecurityGroups/wilxvm1NSG/securityRules/Cleanuptool-22-Corpnet-359f8ec5-314a-4573-ac7c-6e28765ee554","etag":"W/\"6361bd0a-d04f-4fc5-a2e7-42c53975ee7b\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22","sourceAddressPrefix":"167.220.238.0/27","destinationAddressPrefix":"*","access":"Allow","priority":117,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-Corpnet-364605cf-c0fd-41fe-879e-a2e18dbf606e","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/wilxtest/providers/Microsoft.Network/networkSecurityGroups/wilxvm1NSG/securityRules/Cleanuptool-22-Corpnet-364605cf-c0fd-41fe-879e-a2e18dbf606e","etag":"W/\"6361bd0a-d04f-4fc5-a2e7-42c53975ee7b\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22","sourceAddressPrefix":"167.220.238.128/27","destinationAddressPrefix":"*","access":"Allow","priority":118,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-Corpnet-1b687a08-1a5e-4777-91fd-9015e6c3d043","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/wilxtest/providers/Microsoft.Network/networkSecurityGroups/wilxvm1NSG/securityRules/Cleanuptool-22-Corpnet-1b687a08-1a5e-4777-91fd-9015e6c3d043","etag":"W/\"6361bd0a-d04f-4fc5-a2e7-42c53975ee7b\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22","sourceAddressPrefix":"167.220.238.192/27","destinationAddressPrefix":"*","access":"Allow","priority":119,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-Corpnet-db4b6694-6bb0-4cc1-aa12-dfc33f710dc4","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/wilxtest/providers/Microsoft.Network/networkSecurityGroups/wilxvm1NSG/securityRules/Cleanuptool-22-Corpnet-db4b6694-6bb0-4cc1-aa12-dfc33f710dc4","etag":"W/\"6361bd0a-d04f-4fc5-a2e7-42c53975ee7b\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22","sourceAddressPrefix":"167.220.238.64/27","destinationAddressPrefix":"*","access":"Allow","priority":120,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-Corpnet-ff475b04-2a55-46ed-b3ce-fe9d3bf3b74f","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/wilxtest/providers/Microsoft.Network/networkSecurityGroups/wilxvm1NSG/securityRules/Cleanuptool-22-Corpnet-ff475b04-2a55-46ed-b3ce-fe9d3bf3b74f","etag":"W/\"6361bd0a-d04f-4fc5-a2e7-42c53975ee7b\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22","sourceAddressPrefix":"167.220.232.0/23","destinationAddressPrefix":"*","access":"Allow","priority":121,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-Corpnet-26793f86-9137-4ed8-aafe-0a5e10ddb886","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/wilxtest/providers/Microsoft.Network/networkSecurityGroups/wilxvm1NSG/securityRules/Cleanuptool-22-Corpnet-26793f86-9137-4ed8-aafe-0a5e10ddb886","etag":"W/\"6361bd0a-d04f-4fc5-a2e7-42c53975ee7b\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22","sourceAddressPrefix":"167.220.255.0/25","destinationAddressPrefix":"*","access":"Allow","priority":122,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-Corpnet-bbabe42f-4b18-4025-bb1c-5c41e2d36116","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/wilxtest/providers/Microsoft.Network/networkSecurityGroups/wilxvm1NSG/securityRules/Cleanuptool-22-Corpnet-bbabe42f-4b18-4025-bb1c-5c41e2d36116","etag":"W/\"6361bd0a-d04f-4fc5-a2e7-42c53975ee7b\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22","sourceAddressPrefix":"167.220.242.0/27","destinationAddressPrefix":"*","access":"Allow","priority":123,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-Corpnet-2f008199-2521-447e-a5a3-eb6784cb3c74","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/wilxtest/providers/Microsoft.Network/networkSecurityGroups/wilxvm1NSG/securityRules/Cleanuptool-22-Corpnet-2f008199-2521-447e-a5a3-eb6784cb3c74","etag":"W/\"6361bd0a-d04f-4fc5-a2e7-42c53975ee7b\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22","sourceAddressPrefix":"167.220.242.128/27","destinationAddressPrefix":"*","access":"Allow","priority":124,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-Corpnet-5f1013a6-48f4-4aae-9b32-d8bbf725a45d","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/wilxtest/providers/Microsoft.Network/networkSecurityGroups/wilxvm1NSG/securityRules/Cleanuptool-22-Corpnet-5f1013a6-48f4-4aae-9b32-d8bbf725a45d","etag":"W/\"6361bd0a-d04f-4fc5-a2e7-42c53975ee7b\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22","sourceAddressPrefix":"167.220.242.192/27","destinationAddressPrefix":"*","access":"Allow","priority":125,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-Corpnet-f1802911-c603-42d0-a35a-2630f40eb5cb","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/wilxtest/providers/Microsoft.Network/networkSecurityGroups/wilxvm1NSG/securityRules/Cleanuptool-22-Corpnet-f1802911-c603-42d0-a35a-2630f40eb5cb","etag":"W/\"6361bd0a-d04f-4fc5-a2e7-42c53975ee7b\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22","sourceAddressPrefix":"167.220.242.64/27","destinationAddressPrefix":"*","access":"Allow","priority":126,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-Corpnet-593e79fb-45a9-49f0-a44e-e5f79b51b339","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/wilxtest/providers/Microsoft.Network/networkSecurityGroups/wilxvm1NSG/securityRules/Cleanuptool-22-Corpnet-593e79fb-45a9-49f0-a44e-e5f79b51b339","etag":"W/\"6361bd0a-d04f-4fc5-a2e7-42c53975ee7b\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22","sourceAddressPrefix":"94.245.87.0/24","destinationAddressPrefix":"*","access":"Allow","priority":127,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-Corpnet-f9000f47-7da3-4db5-9e76-790315bce2fe","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/wilxtest/providers/Microsoft.Network/networkSecurityGroups/wilxvm1NSG/securityRules/Cleanuptool-22-Corpnet-f9000f47-7da3-4db5-9e76-790315bce2fe","etag":"W/\"6361bd0a-d04f-4fc5-a2e7-42c53975ee7b\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22","sourceAddressPrefix":"167.220.196.0/23","destinationAddressPrefix":"*","access":"Allow","priority":128,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-Corpnet-1e29c860-a833-4a91-8ee2-7987a646c797","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/wilxtest/providers/Microsoft.Network/networkSecurityGroups/wilxvm1NSG/securityRules/Cleanuptool-22-Corpnet-1e29c860-a833-4a91-8ee2-7987a646c797","etag":"W/\"6361bd0a-d04f-4fc5-a2e7-42c53975ee7b\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22","sourceAddressPrefix":"194.69.104.0/25","destinationAddressPrefix":"*","access":"Allow","priority":129,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-Corpnet-40f277e7-ad6a-4d00-a5c1-8ab383eb9474","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/wilxtest/providers/Microsoft.Network/networkSecurityGroups/wilxvm1NSG/securityRules/Cleanuptool-22-Corpnet-40f277e7-ad6a-4d00-a5c1-8ab383eb9474","etag":"W/\"6361bd0a-d04f-4fc5-a2e7-42c53975ee7b\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22","sourceAddressPrefix":"191.234.97.0/26","destinationAddressPrefix":"*","access":"Allow","priority":130,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-Corpnet-82345f21-1f14-4a2f-9b7a-5421d6fadd90","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/wilxtest/providers/Microsoft.Network/networkSecurityGroups/wilxvm1NSG/securityRules/Cleanuptool-22-Corpnet-82345f21-1f14-4a2f-9b7a-5421d6fadd90","etag":"W/\"6361bd0a-d04f-4fc5-a2e7-42c53975ee7b\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22","sourceAddressPrefix":"167.220.0.0/23","destinationAddressPrefix":"*","access":"Allow","priority":131,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-Corpnet-fe91ec23-2b53-4a31-8738-86a7bf1d9739","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/wilxtest/providers/Microsoft.Network/networkSecurityGroups/wilxvm1NSG/securityRules/Cleanuptool-22-Corpnet-fe91ec23-2b53-4a31-8738-86a7bf1d9739","etag":"W/\"6361bd0a-d04f-4fc5-a2e7-42c53975ee7b\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22","sourceAddressPrefix":"167.220.2.0/24","destinationAddressPrefix":"*","access":"Allow","priority":132,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-Corpnet-bbebc444-5dee-4720-b71e-9aa0583a38d5","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/wilxtest/providers/Microsoft.Network/networkSecurityGroups/wilxvm1NSG/securityRules/Cleanuptool-22-Corpnet-bbebc444-5dee-4720-b71e-9aa0583a38d5","etag":"W/\"6361bd0a-d04f-4fc5-a2e7-42c53975ee7b\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22","sourceAddressPrefix":"207.68.190.32/27","destinationAddressPrefix":"*","access":"Allow","priority":133,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-Corpnet-66206164-a588-4887-a394-4c6c2069a143","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/wilxtest/providers/Microsoft.Network/networkSecurityGroups/wilxvm1NSG/securityRules/Cleanuptool-22-Corpnet-66206164-a588-4887-a394-4c6c2069a143","etag":"W/\"6361bd0a-d04f-4fc5-a2e7-42c53975ee7b\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22","sourceAddressPrefix":"13.106.78.32/27","destinationAddressPrefix":"*","access":"Allow","priority":134,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-Corpnet-d9f12e44-4bd8-4ebb-9b75-1a3a635ede2b","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/wilxtest/providers/Microsoft.Network/networkSecurityGroups/wilxvm1NSG/securityRules/Cleanuptool-22-Corpnet-d9f12e44-4bd8-4ebb-9b75-1a3a635ede2b","etag":"W/\"6361bd0a-d04f-4fc5-a2e7-42c53975ee7b\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22","sourceAddressPrefix":"10.254.32.0/20","destinationAddressPrefix":"*","access":"Allow","priority":135,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-Corpnet-ff9d2fe3-6b11-4c91-b8b4-5262590db683","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/wilxtest/providers/Microsoft.Network/networkSecurityGroups/wilxvm1NSG/securityRules/Cleanuptool-22-Corpnet-ff9d2fe3-6b11-4c91-b8b4-5262590db683","etag":"W/\"6361bd0a-d04f-4fc5-a2e7-42c53975ee7b\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22","sourceAddressPrefix":"10.97.136.0/22","destinationAddressPrefix":"*","access":"Allow","priority":136,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-Corpnet-cbd36734-c217-42e1-b58f-3750e2d7702b","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/wilxtest/providers/Microsoft.Network/networkSecurityGroups/wilxvm1NSG/securityRules/Cleanuptool-22-Corpnet-cbd36734-c217-42e1-b58f-3750e2d7702b","etag":"W/\"6361bd0a-d04f-4fc5-a2e7-42c53975ee7b\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22","sourceAddressPrefix":"13.106.174.32/27","destinationAddressPrefix":"*","access":"Allow","priority":137,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-Corpnet-9872ce6e-0671-4f9d-a0ff-4cc70430006b","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/wilxtest/providers/Microsoft.Network/networkSecurityGroups/wilxvm1NSG/securityRules/Cleanuptool-22-Corpnet-9872ce6e-0671-4f9d-a0ff-4cc70430006b","etag":"W/\"6361bd0a-d04f-4fc5-a2e7-42c53975ee7b\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22","sourceAddressPrefix":"13.106.4.96/27","destinationAddressPrefix":"*","access":"Allow","priority":138,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}}],"defaultSecurityRules":[{"name":"AllowVnetInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/wilxtest/providers/Microsoft.Network/networkSecurityGroups/wilxvm1NSG/defaultSecurityRules/AllowVnetInBound","etag":"W/\"6361bd0a-d04f-4fc5-a2e7-42c53975ee7b\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow - inbound traffic from all VMs in VNET","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"VirtualNetwork","access":"Allow","priority":65000,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowAzureLoadBalancerInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/wilxtest/providers/Microsoft.Network/networkSecurityGroups/wilxvm1NSG/defaultSecurityRules/AllowAzureLoadBalancerInBound","etag":"W/\"6361bd0a-d04f-4fc5-a2e7-42c53975ee7b\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow - inbound traffic from azure load balancer","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"AzureLoadBalancer","destinationAddressPrefix":"*","access":"Allow","priority":65001,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"DenyAllInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/wilxtest/providers/Microsoft.Network/networkSecurityGroups/wilxvm1NSG/defaultSecurityRules/DenyAllInBound","etag":"W/\"6361bd0a-d04f-4fc5-a2e7-42c53975ee7b\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Deny - all inbound traffic","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":65500,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowVnetOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/wilxtest/providers/Microsoft.Network/networkSecurityGroups/wilxvm1NSG/defaultSecurityRules/AllowVnetOutBound","etag":"W/\"6361bd0a-d04f-4fc5-a2e7-42c53975ee7b\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow - outbound traffic from all VMs to all VMs in VNET","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"VirtualNetwork","access":"Allow","priority":65000,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowInternetOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/wilxtest/providers/Microsoft.Network/networkSecurityGroups/wilxvm1NSG/defaultSecurityRules/AllowInternetOutBound","etag":"W/\"6361bd0a-d04f-4fc5-a2e7-42c53975ee7b\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow - outbound traffic from all VMs to Internet","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"Internet","access":"Allow","priority":65001,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"DenyAllOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/wilxtest/providers/Microsoft.Network/networkSecurityGroups/wilxvm1NSG/defaultSecurityRules/DenyAllOutBound","etag":"W/\"6361bd0a-d04f-4fc5-a2e7-42c53975ee7b\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Deny - all outbound traffic","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":65500,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}}],"networkInterfaces":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/wilxtest/providers/Microsoft.Network/networkInterfaces/wilxvm1VMNic"}]}},{"name":"ygsrcnsg","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ygsrc/providers/Microsoft.Network/networkSecurityGroups/ygsrcnsg","etag":"W/\"65faf37a-6b1c-48de-bfcd-014208e87897\"","type":"Microsoft.Network/networkSecurityGroups","location":"westus","properties":{"provisioningState":"Failed","resourceGuid":"34793fa9-f38a-49a4-836f-d47c2ac2f5a8","securityRules":[],"defaultSecurityRules":[{"name":"AllowVnetInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ygsrc/providers/Microsoft.Network/networkSecurityGroups/ygsrcnsg/defaultSecurityRules/AllowVnetInBound","etag":"W/\"65faf37a-6b1c-48de-bfcd-014208e87897\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Failed","description":"Allow + all outbound traffic","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":65500,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}}]}},{"name":"test-vm-vnet-2NSG","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/networkSecurityGroups/test-vm-vnet-2NSG","etag":"W/\"0d99734b-ce67-4924-9bab-108b903e4ab7\"","type":"Microsoft.Network/networkSecurityGroups","location":"westus","tags":{},"properties":{"provisioningState":"Succeeded","resourceGuid":"50e5c131-b702-4ba2-b70e-db288a58bb0a","securityRules":[{"name":"default-allow-ssh","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/networkSecurityGroups/test-vm-vnet-2NSG/securityRules/default-allow-ssh","etag":"W/\"0d99734b-ce67-4924-9bab-108b903e4ab7\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Allow","priority":1000,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-100","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/networkSecurityGroups/test-vm-vnet-2NSG/securityRules/Cleanuptool-Allow-100","etag":"W/\"0d99734b-ce67-4924-9bab-108b903e4ab7\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationAddressPrefix":"*","access":"Allow","priority":100,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":["22"],"sourceAddressPrefixes":["167.220.148.0/23","131.107.147.0/24","131.107.159.0/24","131.107.160.0/24","131.107.174.0/24","167.220.24.0/24","167.220.26.0/24","167.220.238.0/27","167.220.238.128/27","167.220.238.192/27","167.220.238.64/27","167.220.232.0/23","167.220.255.0/25","167.220.242.0/27","167.220.242.128/27","167.220.242.192/27","167.220.242.64/27","94.245.87.0/24","167.220.196.0/23","194.69.104.0/25","191.234.97.0/26","167.220.0.0/23","167.220.2.0/24","207.68.190.32/27","13.106.78.32/27","10.254.32.0/20","10.97.136.0/22","13.106.174.32/27","13.106.4.96/27"],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-101","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/networkSecurityGroups/test-vm-vnet-2NSG/securityRules/Cleanuptool-Allow-101","etag":"W/\"0d99734b-ce67-4924-9bab-108b903e4ab7\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"*","access":"Allow","priority":101,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":["22"],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-102","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/networkSecurityGroups/test-vm-vnet-2NSG/securityRules/Cleanuptool-Allow-102","etag":"W/\"0d99734b-ce67-4924-9bab-108b903e4ab7\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","sourceAddressPrefix":"AzureLoadBalancer","destinationAddressPrefix":"*","access":"Allow","priority":102,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":["22"],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Deny-103","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/networkSecurityGroups/test-vm-vnet-2NSG/securityRules/Cleanuptool-Deny-103","etag":"W/\"0d99734b-ce67-4924-9bab-108b903e4ab7\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":103,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":["22"],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}}],"defaultSecurityRules":[{"name":"AllowVnetInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/networkSecurityGroups/test-vm-vnet-2NSG/defaultSecurityRules/AllowVnetInBound","etag":"W/\"0d99734b-ce67-4924-9bab-108b903e4ab7\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow + inbound traffic from all VMs in VNET","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"VirtualNetwork","access":"Allow","priority":65000,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowAzureLoadBalancerInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/networkSecurityGroups/test-vm-vnet-2NSG/defaultSecurityRules/AllowAzureLoadBalancerInBound","etag":"W/\"0d99734b-ce67-4924-9bab-108b903e4ab7\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow + inbound traffic from azure load balancer","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"AzureLoadBalancer","destinationAddressPrefix":"*","access":"Allow","priority":65001,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"DenyAllInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/networkSecurityGroups/test-vm-vnet-2NSG/defaultSecurityRules/DenyAllInBound","etag":"W/\"0d99734b-ce67-4924-9bab-108b903e4ab7\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Deny + all inbound traffic","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":65500,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowVnetOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/networkSecurityGroups/test-vm-vnet-2NSG/defaultSecurityRules/AllowVnetOutBound","etag":"W/\"0d99734b-ce67-4924-9bab-108b903e4ab7\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow + outbound traffic from all VMs to all VMs in VNET","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"VirtualNetwork","access":"Allow","priority":65000,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowInternetOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/networkSecurityGroups/test-vm-vnet-2NSG/defaultSecurityRules/AllowInternetOutBound","etag":"W/\"0d99734b-ce67-4924-9bab-108b903e4ab7\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow + outbound traffic from all VMs to Internet","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"Internet","access":"Allow","priority":65001,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"DenyAllOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/networkSecurityGroups/test-vm-vnet-2NSG/defaultSecurityRules/DenyAllOutBound","etag":"W/\"0d99734b-ce67-4924-9bab-108b903e4ab7\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Deny + all outbound traffic","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":65500,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}}]}},{"name":"test-vm-vnetNSG","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/networkSecurityGroups/test-vm-vnetNSG","etag":"W/\"394c2f5b-8ac6-42a1-9460-c37f73303ba7\"","type":"Microsoft.Network/networkSecurityGroups","location":"westus","tags":{},"properties":{"provisioningState":"Succeeded","resourceGuid":"f072c98d-4c5d-4a7d-a152-565ff572c35d","securityRules":[{"name":"default-allow-ssh","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/networkSecurityGroups/test-vm-vnetNSG/securityRules/default-allow-ssh","etag":"W/\"394c2f5b-8ac6-42a1-9460-c37f73303ba7\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Allow","priority":1000,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}}],"defaultSecurityRules":[{"name":"AllowVnetInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/networkSecurityGroups/test-vm-vnetNSG/defaultSecurityRules/AllowVnetInBound","etag":"W/\"394c2f5b-8ac6-42a1-9460-c37f73303ba7\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow + inbound traffic from all VMs in VNET","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"VirtualNetwork","access":"Allow","priority":65000,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowAzureLoadBalancerInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/networkSecurityGroups/test-vm-vnetNSG/defaultSecurityRules/AllowAzureLoadBalancerInBound","etag":"W/\"394c2f5b-8ac6-42a1-9460-c37f73303ba7\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow + inbound traffic from azure load balancer","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"AzureLoadBalancer","destinationAddressPrefix":"*","access":"Allow","priority":65001,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"DenyAllInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/networkSecurityGroups/test-vm-vnetNSG/defaultSecurityRules/DenyAllInBound","etag":"W/\"394c2f5b-8ac6-42a1-9460-c37f73303ba7\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Deny + all inbound traffic","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":65500,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowVnetOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/networkSecurityGroups/test-vm-vnetNSG/defaultSecurityRules/AllowVnetOutBound","etag":"W/\"394c2f5b-8ac6-42a1-9460-c37f73303ba7\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow + outbound traffic from all VMs to all VMs in VNET","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"VirtualNetwork","access":"Allow","priority":65000,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowInternetOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/networkSecurityGroups/test-vm-vnetNSG/defaultSecurityRules/AllowInternetOutBound","etag":"W/\"394c2f5b-8ac6-42a1-9460-c37f73303ba7\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow + outbound traffic from all VMs to Internet","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"Internet","access":"Allow","priority":65001,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"DenyAllOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/networkSecurityGroups/test-vm-vnetNSG/defaultSecurityRules/DenyAllOutBound","etag":"W/\"394c2f5b-8ac6-42a1-9460-c37f73303ba7\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Deny + all outbound traffic","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":65500,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}}],"networkInterfaces":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/networkInterfaces/test-vm-vnetVMNic"}]}},{"name":"tosin-vm-generalizedNSG","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/networkSecurityGroups/tosin-vm-generalizedNSG","etag":"W/\"0660745c-45d9-4a47-8fd6-e0763f58bc2b\"","type":"Microsoft.Network/networkSecurityGroups","location":"westus","tags":{},"properties":{"provisioningState":"Succeeded","resourceGuid":"d17a581a-4fcc-4560-b517-f9c5eefbc49f","securityRules":[{"name":"default-allow-ssh","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/networkSecurityGroups/tosin-vm-generalizedNSG/securityRules/default-allow-ssh","etag":"W/\"0660745c-45d9-4a47-8fd6-e0763f58bc2b\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Allow","priority":1000,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}}],"defaultSecurityRules":[{"name":"AllowVnetInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/networkSecurityGroups/tosin-vm-generalizedNSG/defaultSecurityRules/AllowVnetInBound","etag":"W/\"0660745c-45d9-4a47-8fd6-e0763f58bc2b\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow + inbound traffic from all VMs in VNET","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"VirtualNetwork","access":"Allow","priority":65000,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowAzureLoadBalancerInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/networkSecurityGroups/tosin-vm-generalizedNSG/defaultSecurityRules/AllowAzureLoadBalancerInBound","etag":"W/\"0660745c-45d9-4a47-8fd6-e0763f58bc2b\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow + inbound traffic from azure load balancer","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"AzureLoadBalancer","destinationAddressPrefix":"*","access":"Allow","priority":65001,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"DenyAllInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/networkSecurityGroups/tosin-vm-generalizedNSG/defaultSecurityRules/DenyAllInBound","etag":"W/\"0660745c-45d9-4a47-8fd6-e0763f58bc2b\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Deny + all inbound traffic","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":65500,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowVnetOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/networkSecurityGroups/tosin-vm-generalizedNSG/defaultSecurityRules/AllowVnetOutBound","etag":"W/\"0660745c-45d9-4a47-8fd6-e0763f58bc2b\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow + outbound traffic from all VMs to all VMs in VNET","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"VirtualNetwork","access":"Allow","priority":65000,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowInternetOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/networkSecurityGroups/tosin-vm-generalizedNSG/defaultSecurityRules/AllowInternetOutBound","etag":"W/\"0660745c-45d9-4a47-8fd6-e0763f58bc2b\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow + outbound traffic from all VMs to Internet","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"Internet","access":"Allow","priority":65001,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"DenyAllOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/networkSecurityGroups/tosin-vm-generalizedNSG/defaultSecurityRules/DenyAllOutBound","etag":"W/\"0660745c-45d9-4a47-8fd6-e0763f58bc2b\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Deny + all outbound traffic","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":65500,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}}],"networkInterfaces":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/networkInterfaces/tosin-vm-generalizedVMNic"}]}},{"name":"tosin-vm-vnet-2NSG","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/networkSecurityGroups/tosin-vm-vnet-2NSG","etag":"W/\"3801edbf-3d7e-4d13-a318-9b3984f56137\"","type":"Microsoft.Network/networkSecurityGroups","location":"westus","tags":{},"properties":{"provisioningState":"Succeeded","resourceGuid":"9c32b7cd-d79a-4457-b12c-0346a5d7b595","securityRules":[{"name":"default-allow-ssh","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/networkSecurityGroups/tosin-vm-vnet-2NSG/securityRules/default-allow-ssh","etag":"W/\"3801edbf-3d7e-4d13-a318-9b3984f56137\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Allow","priority":1000,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-100","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/networkSecurityGroups/tosin-vm-vnet-2NSG/securityRules/Cleanuptool-Allow-100","etag":"W/\"3801edbf-3d7e-4d13-a318-9b3984f56137\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationAddressPrefix":"*","access":"Allow","priority":100,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":["22"],"sourceAddressPrefixes":["167.220.148.0/23","131.107.147.0/24","131.107.159.0/24","131.107.160.0/24","131.107.174.0/24","167.220.24.0/24","167.220.26.0/24","167.220.238.0/27","167.220.238.128/27","167.220.238.192/27","167.220.238.64/27","167.220.232.0/23","167.220.255.0/25","167.220.242.0/27","167.220.242.128/27","167.220.242.192/27","167.220.242.64/27","94.245.87.0/24","167.220.196.0/23","194.69.104.0/25","191.234.97.0/26","167.220.0.0/23","167.220.2.0/24","207.68.190.32/27","13.106.78.32/27","10.254.32.0/20","10.97.136.0/22","13.106.174.32/27","13.106.4.96/27"],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-101","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/networkSecurityGroups/tosin-vm-vnet-2NSG/securityRules/Cleanuptool-Allow-101","etag":"W/\"3801edbf-3d7e-4d13-a318-9b3984f56137\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"*","access":"Allow","priority":101,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":["22"],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-102","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/networkSecurityGroups/tosin-vm-vnet-2NSG/securityRules/Cleanuptool-Allow-102","etag":"W/\"3801edbf-3d7e-4d13-a318-9b3984f56137\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","sourceAddressPrefix":"AzureLoadBalancer","destinationAddressPrefix":"*","access":"Allow","priority":102,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":["22"],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Deny-103","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/networkSecurityGroups/tosin-vm-vnet-2NSG/securityRules/Cleanuptool-Deny-103","etag":"W/\"3801edbf-3d7e-4d13-a318-9b3984f56137\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":103,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":["22"],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}}],"defaultSecurityRules":[{"name":"AllowVnetInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/networkSecurityGroups/tosin-vm-vnet-2NSG/defaultSecurityRules/AllowVnetInBound","etag":"W/\"3801edbf-3d7e-4d13-a318-9b3984f56137\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow + inbound traffic from all VMs in VNET","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"VirtualNetwork","access":"Allow","priority":65000,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowAzureLoadBalancerInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/networkSecurityGroups/tosin-vm-vnet-2NSG/defaultSecurityRules/AllowAzureLoadBalancerInBound","etag":"W/\"3801edbf-3d7e-4d13-a318-9b3984f56137\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow + inbound traffic from azure load balancer","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"AzureLoadBalancer","destinationAddressPrefix":"*","access":"Allow","priority":65001,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"DenyAllInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/networkSecurityGroups/tosin-vm-vnet-2NSG/defaultSecurityRules/DenyAllInBound","etag":"W/\"3801edbf-3d7e-4d13-a318-9b3984f56137\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Deny + all inbound traffic","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":65500,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowVnetOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/networkSecurityGroups/tosin-vm-vnet-2NSG/defaultSecurityRules/AllowVnetOutBound","etag":"W/\"3801edbf-3d7e-4d13-a318-9b3984f56137\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow + outbound traffic from all VMs to all VMs in VNET","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"VirtualNetwork","access":"Allow","priority":65000,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowInternetOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/networkSecurityGroups/tosin-vm-vnet-2NSG/defaultSecurityRules/AllowInternetOutBound","etag":"W/\"3801edbf-3d7e-4d13-a318-9b3984f56137\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow + outbound traffic from all VMs to Internet","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"Internet","access":"Allow","priority":65001,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"DenyAllOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/networkSecurityGroups/tosin-vm-vnet-2NSG/defaultSecurityRules/DenyAllOutBound","etag":"W/\"3801edbf-3d7e-4d13-a318-9b3984f56137\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Deny + all outbound traffic","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":65500,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}}]}},{"name":"tosin-vmNSG","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/networkSecurityGroups/tosin-vmNSG","etag":"W/\"286cd2d4-2083-4b48-b766-d6848f408bee\"","type":"Microsoft.Network/networkSecurityGroups","location":"westus","tags":{},"properties":{"provisioningState":"Succeeded","resourceGuid":"b21cac34-f9a9-4b13-84a4-1a85325f0caa","securityRules":[{"name":"default-allow-ssh","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/networkSecurityGroups/tosin-vmNSG/securityRules/default-allow-ssh","etag":"W/\"286cd2d4-2083-4b48-b766-d6848f408bee\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Allow","priority":1000,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}}],"defaultSecurityRules":[{"name":"AllowVnetInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/networkSecurityGroups/tosin-vmNSG/defaultSecurityRules/AllowVnetInBound","etag":"W/\"286cd2d4-2083-4b48-b766-d6848f408bee\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow + inbound traffic from all VMs in VNET","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"VirtualNetwork","access":"Allow","priority":65000,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowAzureLoadBalancerInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/networkSecurityGroups/tosin-vmNSG/defaultSecurityRules/AllowAzureLoadBalancerInBound","etag":"W/\"286cd2d4-2083-4b48-b766-d6848f408bee\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow + inbound traffic from azure load balancer","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"AzureLoadBalancer","destinationAddressPrefix":"*","access":"Allow","priority":65001,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"DenyAllInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/networkSecurityGroups/tosin-vmNSG/defaultSecurityRules/DenyAllInBound","etag":"W/\"286cd2d4-2083-4b48-b766-d6848f408bee\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Deny + all inbound traffic","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":65500,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowVnetOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/networkSecurityGroups/tosin-vmNSG/defaultSecurityRules/AllowVnetOutBound","etag":"W/\"286cd2d4-2083-4b48-b766-d6848f408bee\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow + outbound traffic from all VMs to all VMs in VNET","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"VirtualNetwork","access":"Allow","priority":65000,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowInternetOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/networkSecurityGroups/tosin-vmNSG/defaultSecurityRules/AllowInternetOutBound","etag":"W/\"286cd2d4-2083-4b48-b766-d6848f408bee\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow + outbound traffic from all VMs to Internet","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"Internet","access":"Allow","priority":65001,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"DenyAllOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/networkSecurityGroups/tosin-vmNSG/defaultSecurityRules/DenyAllOutBound","etag":"W/\"286cd2d4-2083-4b48-b766-d6848f408bee\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Deny + all outbound traffic","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":65500,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}}],"networkInterfaces":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/networkInterfaces/tosin-vmVMNic"}]}},{"name":"pysecgroupc575136b","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b","etag":"W/\"e49886cb-8a31-436a-a5b5-0fa6e9feade7\"","type":"Microsoft.Network/networkSecurityGroups","location":"westus","properties":{"provisioningState":"Succeeded","resourceGuid":"cba5dcf4-45be-4ec9-9af0-c97385b52468","securityRules":[{"name":"pysecgrouprulec575136b","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/securityRules/pysecgrouprulec575136b","etag":"W/\"e49886cb-8a31-436a-a5b5-0fa6e9feade7\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","description":"Test + security rule","protocol":"Tcp","sourcePortRange":"655","destinationPortRange":"123-3500","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Allow","priority":500,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}}],"defaultSecurityRules":[{"name":"AllowVnetInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/AllowVnetInBound","etag":"W/\"e49886cb-8a31-436a-a5b5-0fa6e9feade7\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow + inbound traffic from all VMs in VNET","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"VirtualNetwork","access":"Allow","priority":65000,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowAzureLoadBalancerInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/AllowAzureLoadBalancerInBound","etag":"W/\"e49886cb-8a31-436a-a5b5-0fa6e9feade7\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow + inbound traffic from azure load balancer","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"AzureLoadBalancer","destinationAddressPrefix":"*","access":"Allow","priority":65001,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"DenyAllInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/DenyAllInBound","etag":"W/\"e49886cb-8a31-436a-a5b5-0fa6e9feade7\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Deny + all inbound traffic","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":65500,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowVnetOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/AllowVnetOutBound","etag":"W/\"e49886cb-8a31-436a-a5b5-0fa6e9feade7\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow + outbound traffic from all VMs to all VMs in VNET","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"VirtualNetwork","access":"Allow","priority":65000,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowInternetOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/AllowInternetOutBound","etag":"W/\"e49886cb-8a31-436a-a5b5-0fa6e9feade7\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow + outbound traffic from all VMs to Internet","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"Internet","access":"Allow","priority":65001,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"DenyAllOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/defaultSecurityRules/DenyAllOutBound","etag":"W/\"e49886cb-8a31-436a-a5b5-0fa6e9feade7\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Deny + all outbound traffic","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":65500,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}}]}},{"name":"ygsrcnsg","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ygsrc/providers/Microsoft.Network/networkSecurityGroups/ygsrcnsg","etag":"W/\"65faf37a-6b1c-48de-bfcd-014208e87897\"","type":"Microsoft.Network/networkSecurityGroups","location":"westus","properties":{"provisioningState":"Failed","resourceGuid":"34793fa9-f38a-49a4-836f-d47c2ac2f5a8","securityRules":[],"defaultSecurityRules":[{"name":"AllowVnetInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ygsrc/providers/Microsoft.Network/networkSecurityGroups/ygsrcnsg/defaultSecurityRules/AllowVnetInBound","etag":"W/\"65faf37a-6b1c-48de-bfcd-014208e87897\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Failed","description":"Allow inbound traffic from all VMs in VNET","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"VirtualNetwork","access":"Allow","priority":65000,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowAzureLoadBalancerInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ygsrc/providers/Microsoft.Network/networkSecurityGroups/ygsrcnsg/defaultSecurityRules/AllowAzureLoadBalancerInBound","etag":"W/\"65faf37a-6b1c-48de-bfcd-014208e87897\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Failed","description":"Allow inbound traffic from azure load balancer","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"AzureLoadBalancer","destinationAddressPrefix":"*","access":"Allow","priority":65001,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"DenyAllInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ygsrc/providers/Microsoft.Network/networkSecurityGroups/ygsrcnsg/defaultSecurityRules/DenyAllInBound","etag":"W/\"65faf37a-6b1c-48de-bfcd-014208e87897\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Failed","description":"Deny all inbound traffic","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":65500,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowVnetOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ygsrc/providers/Microsoft.Network/networkSecurityGroups/ygsrcnsg/defaultSecurityRules/AllowVnetOutBound","etag":"W/\"65faf37a-6b1c-48de-bfcd-014208e87897\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Failed","description":"Allow @@ -604,18 +616,30 @@ interactions: all inbound traffic","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":65500,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowVnetOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/networkSecurityGroups/abuntu3-nsg/defaultSecurityRules/AllowVnetOutBound","etag":"W/\"897e86a6-6178-4cb8-81aa-180db621663e\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow outbound traffic from all VMs to all VMs in VNET","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"VirtualNetwork","access":"Allow","priority":65000,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowInternetOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/networkSecurityGroups/abuntu3-nsg/defaultSecurityRules/AllowInternetOutBound","etag":"W/\"897e86a6-6178-4cb8-81aa-180db621663e\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow outbound traffic from all VMs to Internet","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"Internet","access":"Allow","priority":65001,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"DenyAllOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/networkSecurityGroups/abuntu3-nsg/defaultSecurityRules/DenyAllOutBound","etag":"W/\"897e86a6-6178-4cb8-81aa-180db621663e\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Deny - all outbound traffic","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":65500,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}}],"networkInterfaces":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/networkInterfaces/abuntu3634"}]}},{"name":"rg-cleanupservice-nsg","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg","etag":"W/\"2ef72110-3d67-4026-adc9-43c9021c9700\"","type":"Microsoft.Network/networkSecurityGroups","location":"eastus","properties":{"provisioningState":"Succeeded","resourceGuid":"c3ed34f5-c844-4318-b56c-e1338515a1df","securityRules":[{"name":"Cleanuptool-Allow-4001","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg/securityRules/Cleanuptool-Allow-4001","etag":"W/\"2ef72110-3d67-4026-adc9-43c9021c9700\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Allow","priority":4001,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-100","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg/securityRules/Cleanuptool-Allow-100","etag":"W/\"2ef72110-3d67-4026-adc9-43c9021c9700\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationAddressPrefix":"*","access":"Allow","priority":100,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":["3389","5985","5986","22","2222","1433","445","23","135"],"sourceAddressPrefixes":["167.220.148.0/23","131.107.147.0/24","131.107.159.0/24","131.107.160.0/24","131.107.174.0/24","167.220.24.0/24","167.220.26.0/24","167.220.238.0/27","167.220.238.128/27","167.220.238.192/27","167.220.238.64/27","167.220.232.0/23","167.220.255.0/25","167.220.242.0/27","167.220.242.128/27","167.220.242.192/27","167.220.242.64/27","94.245.87.0/24","167.220.196.0/23","194.69.104.0/25","191.234.97.0/26","167.220.0.0/23","167.220.2.0/24","207.68.190.32/27","13.106.78.32/27","10.254.32.0/20","10.97.136.0/22","13.106.174.32/27","13.106.4.96/27"],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-101","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg/securityRules/Cleanuptool-Allow-101","etag":"W/\"2ef72110-3d67-4026-adc9-43c9021c9700\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"*","access":"Allow","priority":101,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":["3389","5985","5986","22","2222","1433","445","23","135"],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-102","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg/securityRules/Cleanuptool-Allow-102","etag":"W/\"2ef72110-3d67-4026-adc9-43c9021c9700\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","sourceAddressPrefix":"AzureLoadBalancer","destinationAddressPrefix":"*","access":"Allow","priority":102,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":["3389","5985","5986","22","2222","1433","445","23","135"],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Deny-103","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg/securityRules/Cleanuptool-Deny-103","etag":"W/\"2ef72110-3d67-4026-adc9-43c9021c9700\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":103,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":["3389","5985","5986","22","2222","1433","445","23","135"],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}}],"defaultSecurityRules":[{"name":"AllowVnetInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg/defaultSecurityRules/AllowVnetInBound","etag":"W/\"2ef72110-3d67-4026-adc9-43c9021c9700\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow - inbound traffic from all VMs in VNET","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"VirtualNetwork","access":"Allow","priority":65000,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowAzureLoadBalancerInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg/defaultSecurityRules/AllowAzureLoadBalancerInBound","etag":"W/\"2ef72110-3d67-4026-adc9-43c9021c9700\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow - inbound traffic from azure load balancer","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"AzureLoadBalancer","destinationAddressPrefix":"*","access":"Allow","priority":65001,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"DenyAllInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg/defaultSecurityRules/DenyAllInBound","etag":"W/\"2ef72110-3d67-4026-adc9-43c9021c9700\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Deny - all inbound traffic","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":65500,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowVnetOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg/defaultSecurityRules/AllowVnetOutBound","etag":"W/\"2ef72110-3d67-4026-adc9-43c9021c9700\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow - outbound traffic from all VMs to all VMs in VNET","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"VirtualNetwork","access":"Allow","priority":65000,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowInternetOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg/defaultSecurityRules/AllowInternetOutBound","etag":"W/\"2ef72110-3d67-4026-adc9-43c9021c9700\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow - outbound traffic from all VMs to Internet","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"Internet","access":"Allow","priority":65001,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"DenyAllOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg/defaultSecurityRules/DenyAllOutBound","etag":"W/\"2ef72110-3d67-4026-adc9-43c9021c9700\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Deny + all outbound traffic","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":65500,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}}],"networkInterfaces":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/networkInterfaces/abuntu3634"}]}},{"name":"rg-cleanupservice-nsg","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg","etag":"W/\"9f496fed-23a2-400a-8660-7ef040b43cc7\"","type":"Microsoft.Network/networkSecurityGroups","location":"eastus","properties":{"provisioningState":"Succeeded","resourceGuid":"c3ed34f5-c844-4318-b56c-e1338515a1df","securityRules":[{"name":"Cleanuptool-Allow-4001","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg/securityRules/Cleanuptool-Allow-4001","etag":"W/\"9f496fed-23a2-400a-8660-7ef040b43cc7\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Allow","priority":4001,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-100","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg/securityRules/Cleanuptool-Allow-100","etag":"W/\"9f496fed-23a2-400a-8660-7ef040b43cc7\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationAddressPrefix":"*","access":"Allow","priority":100,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":["3389","5985","5986","22","2222","1433","445","23","135"],"sourceAddressPrefixes":["167.220.148.0/23","131.107.147.0/24","131.107.159.0/24","131.107.160.0/24","131.107.174.0/24","167.220.24.0/24","167.220.26.0/24","167.220.238.0/27","167.220.238.128/27","167.220.238.192/27","167.220.238.64/27","167.220.232.0/23","167.220.255.0/25","167.220.242.0/27","167.220.242.128/27","167.220.242.192/27","167.220.242.64/27","94.245.87.0/24","167.220.196.0/23","194.69.104.0/25","191.234.97.0/26","167.220.0.0/23","167.220.2.0/24","207.68.190.32/27","13.106.78.32/27","10.254.32.0/20","10.97.136.0/22","13.106.174.32/27","13.106.4.96/27"],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-101","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg/securityRules/Cleanuptool-Allow-101","etag":"W/\"9f496fed-23a2-400a-8660-7ef040b43cc7\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"*","access":"Allow","priority":101,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":["3389","5985","5986","22","2222","1433","445","23","135"],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-102","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg/securityRules/Cleanuptool-Allow-102","etag":"W/\"9f496fed-23a2-400a-8660-7ef040b43cc7\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","sourceAddressPrefix":"AzureLoadBalancer","destinationAddressPrefix":"*","access":"Allow","priority":102,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":["3389","5985","5986","22","2222","1433","445","23","135"],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Deny-103","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg/securityRules/Cleanuptool-Deny-103","etag":"W/\"9f496fed-23a2-400a-8660-7ef040b43cc7\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":103,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":["3389","5985","5986","22","2222","1433","445","23","135"],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}}],"defaultSecurityRules":[{"name":"AllowVnetInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg/defaultSecurityRules/AllowVnetInBound","etag":"W/\"9f496fed-23a2-400a-8660-7ef040b43cc7\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow + inbound traffic from all VMs in VNET","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"VirtualNetwork","access":"Allow","priority":65000,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowAzureLoadBalancerInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg/defaultSecurityRules/AllowAzureLoadBalancerInBound","etag":"W/\"9f496fed-23a2-400a-8660-7ef040b43cc7\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow + inbound traffic from azure load balancer","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"AzureLoadBalancer","destinationAddressPrefix":"*","access":"Allow","priority":65001,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"DenyAllInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg/defaultSecurityRules/DenyAllInBound","etag":"W/\"9f496fed-23a2-400a-8660-7ef040b43cc7\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Deny + all inbound traffic","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":65500,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowVnetOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg/defaultSecurityRules/AllowVnetOutBound","etag":"W/\"9f496fed-23a2-400a-8660-7ef040b43cc7\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow + outbound traffic from all VMs to all VMs in VNET","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"VirtualNetwork","access":"Allow","priority":65000,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowInternetOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg/defaultSecurityRules/AllowInternetOutBound","etag":"W/\"9f496fed-23a2-400a-8660-7ef040b43cc7\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow + outbound traffic from all VMs to Internet","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"Internet","access":"Allow","priority":65001,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"DenyAllOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg/defaultSecurityRules/DenyAllOutBound","etag":"W/\"9f496fed-23a2-400a-8660-7ef040b43cc7\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Deny all outbound traffic","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":65500,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}}],"subnets":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/virtualNetworks/abunt3/subnets/default"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/virtualNetworks/abuntu-vnet/subnets/default"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/virtualNetworks/abuntu2/subnets/default"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/virtualNetworks/abuntu3/subnets/default"}]}},{"name":"rg-cleanupservice-nsg3","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups","location":"eastus","properties":{"provisioningState":"Succeeded","resourceGuid":"d58ba515-8e0a-4f3e-9355-c78461ccb451","securityRules":[{"name":"Cleanuptool-Allow-4000","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-Allow-4000","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Allow","priority":4000,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Deny-3999","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-Deny-3999","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":3999,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Deny-3998","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-Deny-3998","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":3998,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Deny-3997","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-Deny-3997","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":3997,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Deny-3996","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-Deny-3996","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":3996,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Deny-3995","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-Deny-3995","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":3995,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Deny-3994","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-Deny-3994","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":3994,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-3993","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-Allow-3993","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Allow","priority":3993,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-3992","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-Allow-3992","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"*","access":"Allow","priority":3992,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-3991","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-Allow-3991","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Allow","priority":3991,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-3990","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-Allow-3990","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"*","access":"Allow","priority":3990,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-3989","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-Allow-3989","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Allow","priority":3989,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-3988","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-Allow-3988","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"*","access":"Allow","priority":3988,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-3987","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-Allow-3987","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Allow","priority":3987,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-3986","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-Allow-3986","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"*","access":"Allow","priority":3986,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-3985","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-Allow-3985","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Allow","priority":3985,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-3984","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-Allow-3984","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"*","access":"Allow","priority":3984,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-3983","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-Allow-3983","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Allow","priority":3983,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-3982","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-Allow-3982","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"*","access":"Allow","priority":3982,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-0ce66014-d3df-4828-a93d-1de405540626","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-3389-Corpnet-0ce66014-d3df-4828-a93d-1de405540626","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"167.220.148.0/23","destinationAddressPrefix":"*","access":"Allow","priority":110,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-61c2b633-ac4d-4d0a-b1b2-2d8fc7e0a0a0","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-3389-Corpnet-61c2b633-ac4d-4d0a-b1b2-2d8fc7e0a0a0","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"131.107.147.0/24","destinationAddressPrefix":"*","access":"Allow","priority":111,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-5e676e0a-eb70-4152-b89b-fd0c245ffdfa","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-3389-Corpnet-5e676e0a-eb70-4152-b89b-fd0c245ffdfa","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"131.107.159.0/24","destinationAddressPrefix":"*","access":"Allow","priority":112,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-e3b6715d-2f8e-48a4-a2ff-72cb85d0c934","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-3389-Corpnet-e3b6715d-2f8e-48a4-a2ff-72cb85d0c934","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"131.107.160.0/24","destinationAddressPrefix":"*","access":"Allow","priority":113,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-bab9519f-1394-448f-9825-9a15a52c443c","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-3389-Corpnet-bab9519f-1394-448f-9825-9a15a52c443c","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"131.107.174.0/24","destinationAddressPrefix":"*","access":"Allow","priority":114,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-6fa6a909-f2a4-4602-a8cd-2d95887e14d4","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-3389-Corpnet-6fa6a909-f2a4-4602-a8cd-2d95887e14d4","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"167.220.24.0/24","destinationAddressPrefix":"*","access":"Allow","priority":115,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-acc82632-7ad2-446f-8f02-1d5ff20cd706","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-3389-Corpnet-acc82632-7ad2-446f-8f02-1d5ff20cd706","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"167.220.26.0/24","destinationAddressPrefix":"*","access":"Allow","priority":116,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-5a75d13a-1385-44cd-a20d-ab6e5e68fa24","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-3389-Corpnet-5a75d13a-1385-44cd-a20d-ab6e5e68fa24","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"167.220.238.0/27","destinationAddressPrefix":"*","access":"Allow","priority":117,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-d62ddfbf-4c81-4368-a0db-1580db8d8695","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-3389-Corpnet-d62ddfbf-4c81-4368-a0db-1580db8d8695","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"167.220.238.128/27","destinationAddressPrefix":"*","access":"Allow","priority":118,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-49b3fe1f-a040-4eff-8885-10e532fa0fb4","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-3389-Corpnet-49b3fe1f-a040-4eff-8885-10e532fa0fb4","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"167.220.238.192/27","destinationAddressPrefix":"*","access":"Allow","priority":119,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-19e297de-70fa-4fd8-8080-551bf88746ab","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-3389-Corpnet-19e297de-70fa-4fd8-8080-551bf88746ab","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"167.220.238.64/27","destinationAddressPrefix":"*","access":"Allow","priority":120,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-0b605035-49dc-4b14-81da-79a082eadb6b","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-3389-Corpnet-0b605035-49dc-4b14-81da-79a082eadb6b","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"167.220.232.0/23","destinationAddressPrefix":"*","access":"Allow","priority":121,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-d10b52b0-b858-4722-8d09-50ec43d348c4","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-3389-Corpnet-d10b52b0-b858-4722-8d09-50ec43d348c4","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"167.220.255.0/25","destinationAddressPrefix":"*","access":"Allow","priority":122,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-47cb7d31-05f9-486d-8151-3f0d8aa9f951","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-3389-Corpnet-47cb7d31-05f9-486d-8151-3f0d8aa9f951","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"167.220.242.0/27","destinationAddressPrefix":"*","access":"Allow","priority":123,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-f4a7dbea-4930-4a35-9203-983ab1b547cb","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-3389-Corpnet-f4a7dbea-4930-4a35-9203-983ab1b547cb","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"167.220.242.128/27","destinationAddressPrefix":"*","access":"Allow","priority":124,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-87cc754e-45c9-4ce7-9ec3-486262d8cd42","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-3389-Corpnet-87cc754e-45c9-4ce7-9ec3-486262d8cd42","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"167.220.242.192/27","destinationAddressPrefix":"*","access":"Allow","priority":125,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-fa96df43-2439-42df-ad68-134759f4d407","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-3389-Corpnet-fa96df43-2439-42df-ad68-134759f4d407","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"167.220.242.64/27","destinationAddressPrefix":"*","access":"Allow","priority":126,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-ec77cff8-21d2-452b-a73f-8ee0834607de","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-3389-Corpnet-ec77cff8-21d2-452b-a73f-8ee0834607de","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"94.245.87.0/24","destinationAddressPrefix":"*","access":"Allow","priority":127,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-28accaee-37e4-4fc5-9e55-6b5b54d4cb69","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-3389-Corpnet-28accaee-37e4-4fc5-9e55-6b5b54d4cb69","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"167.220.196.0/23","destinationAddressPrefix":"*","access":"Allow","priority":128,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-65c2346d-7312-4cc9-8d67-996e509c15f2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-3389-Corpnet-65c2346d-7312-4cc9-8d67-996e509c15f2","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"194.69.104.0/25","destinationAddressPrefix":"*","access":"Allow","priority":129,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-e115c81f-b5e7-4bbc-ad9c-f76a5aecdbd3","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-3389-Corpnet-e115c81f-b5e7-4bbc-ad9c-f76a5aecdbd3","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"191.234.97.0/26","destinationAddressPrefix":"*","access":"Allow","priority":130,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-ebf8494e-954e-409c-8313-a3b6b240e311","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-3389-Corpnet-ebf8494e-954e-409c-8313-a3b6b240e311","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"167.220.0.0/23","destinationAddressPrefix":"*","access":"Allow","priority":131,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-e03b1817-a560-4800-b4d0-4c1abf1376d2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-3389-Corpnet-e03b1817-a560-4800-b4d0-4c1abf1376d2","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"167.220.2.0/24","destinationAddressPrefix":"*","access":"Allow","priority":132,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-9d4bcae1-d36a-43b7-9aa7-4a33b8d6464d","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-3389-Corpnet-9d4bcae1-d36a-43b7-9aa7-4a33b8d6464d","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"207.68.190.32/27","destinationAddressPrefix":"*","access":"Allow","priority":133,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-73f0f71d-7db3-49bc-8dd2-a4740864bba0","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-3389-Corpnet-73f0f71d-7db3-49bc-8dd2-a4740864bba0","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"13.106.78.32/27","destinationAddressPrefix":"*","access":"Allow","priority":134,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-07e49a3e-f119-4a96-927b-5dfe1bd64ff5","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-3389-Corpnet-07e49a3e-f119-4a96-927b-5dfe1bd64ff5","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"10.254.32.0/20","destinationAddressPrefix":"*","access":"Allow","priority":135,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-75efa1a8-e82b-4dfc-9751-5b650e0320e7","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-3389-Corpnet-75efa1a8-e82b-4dfc-9751-5b650e0320e7","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"10.97.136.0/22","destinationAddressPrefix":"*","access":"Allow","priority":136,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-7d07936e-ddeb-425e-9695-9c034fec8936","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-3389-Corpnet-7d07936e-ddeb-425e-9695-9c034fec8936","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"13.106.174.32/27","destinationAddressPrefix":"*","access":"Allow","priority":137,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-3389-Corpnet-11e48891-3523-4273-9378-e8b640109c0e","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-3389-Corpnet-11e48891-3523-4273-9378-e8b640109c0e","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"3389","sourceAddressPrefix":"13.106.4.96/27","destinationAddressPrefix":"*","access":"Allow","priority":138,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-09782672-9f07-4eba-873f-77e2eb1ad230","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-5985-5986-Corpnet-09782672-9f07-4eba-873f-77e2eb1ad230","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"167.220.148.0/23","destinationAddressPrefix":"*","access":"Allow","priority":139,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-920add84-3689-4107-af65-4e96fbca28c5","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-5985-5986-Corpnet-920add84-3689-4107-af65-4e96fbca28c5","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"131.107.147.0/24","destinationAddressPrefix":"*","access":"Allow","priority":140,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-7bd0d519-e6bd-4761-809b-f01cb0ff5fed","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-5985-5986-Corpnet-7bd0d519-e6bd-4761-809b-f01cb0ff5fed","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"131.107.159.0/24","destinationAddressPrefix":"*","access":"Allow","priority":141,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-078f7496-68c2-4e0d-8baf-191ba4e70598","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-5985-5986-Corpnet-078f7496-68c2-4e0d-8baf-191ba4e70598","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"131.107.160.0/24","destinationAddressPrefix":"*","access":"Allow","priority":142,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-962dab4d-c084-4400-a25f-cf20bb3a3dc8","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-5985-5986-Corpnet-962dab4d-c084-4400-a25f-cf20bb3a3dc8","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"131.107.174.0/24","destinationAddressPrefix":"*","access":"Allow","priority":143,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-c3f826db-5e5f-402c-99b4-b4f6fcd892bd","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-5985-5986-Corpnet-c3f826db-5e5f-402c-99b4-b4f6fcd892bd","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"167.220.24.0/24","destinationAddressPrefix":"*","access":"Allow","priority":144,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-3a01ca1a-32f3-421c-9d9d-0b85aeb4e27e","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-5985-5986-Corpnet-3a01ca1a-32f3-421c-9d9d-0b85aeb4e27e","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"167.220.26.0/24","destinationAddressPrefix":"*","access":"Allow","priority":145,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-7c4d43f3-1ae4-46f7-9c5a-e9a0068e2af7","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-5985-5986-Corpnet-7c4d43f3-1ae4-46f7-9c5a-e9a0068e2af7","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"167.220.238.0/27","destinationAddressPrefix":"*","access":"Allow","priority":146,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-e0f7417a-ef5d-416c-8031-09f9b064432b","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-5985-5986-Corpnet-e0f7417a-ef5d-416c-8031-09f9b064432b","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"167.220.238.128/27","destinationAddressPrefix":"*","access":"Allow","priority":147,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-2b3d4a2b-830e-4903-80bf-a3886545652e","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-5985-5986-Corpnet-2b3d4a2b-830e-4903-80bf-a3886545652e","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"167.220.238.192/27","destinationAddressPrefix":"*","access":"Allow","priority":148,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-d44d2e36-0e42-42e5-b254-eac0e24a44d3","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-5985-5986-Corpnet-d44d2e36-0e42-42e5-b254-eac0e24a44d3","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"167.220.238.64/27","destinationAddressPrefix":"*","access":"Allow","priority":149,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-9b4ffa0b-2fb1-4463-bf2e-3b6e6c5de34b","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-5985-5986-Corpnet-9b4ffa0b-2fb1-4463-bf2e-3b6e6c5de34b","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"167.220.232.0/23","destinationAddressPrefix":"*","access":"Allow","priority":150,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-9f0097aa-8642-4db0-92b1-bd62ccfdf744","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-5985-5986-Corpnet-9f0097aa-8642-4db0-92b1-bd62ccfdf744","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"167.220.255.0/25","destinationAddressPrefix":"*","access":"Allow","priority":151,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-cad3066c-a0aa-49b4-b9a4-2815c3e390fa","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-5985-5986-Corpnet-cad3066c-a0aa-49b4-b9a4-2815c3e390fa","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"167.220.242.0/27","destinationAddressPrefix":"*","access":"Allow","priority":152,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-6b4c6f62-88fa-45b7-9fb6-413783381a69","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-5985-5986-Corpnet-6b4c6f62-88fa-45b7-9fb6-413783381a69","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"167.220.242.128/27","destinationAddressPrefix":"*","access":"Allow","priority":153,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-d08ff710-c382-47dd-ba12-fe89b37a79cf","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-5985-5986-Corpnet-d08ff710-c382-47dd-ba12-fe89b37a79cf","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"167.220.242.192/27","destinationAddressPrefix":"*","access":"Allow","priority":154,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-3899692b-14c7-49a2-ad8a-8402ae65690e","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-5985-5986-Corpnet-3899692b-14c7-49a2-ad8a-8402ae65690e","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"167.220.242.64/27","destinationAddressPrefix":"*","access":"Allow","priority":155,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-4d5a3cbd-db04-4f9d-9fba-a79dab2712ab","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-5985-5986-Corpnet-4d5a3cbd-db04-4f9d-9fba-a79dab2712ab","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"94.245.87.0/24","destinationAddressPrefix":"*","access":"Allow","priority":156,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-cd573ed4-02ea-4f59-98b0-3a96fbd3739f","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-5985-5986-Corpnet-cd573ed4-02ea-4f59-98b0-3a96fbd3739f","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"167.220.196.0/23","destinationAddressPrefix":"*","access":"Allow","priority":157,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-d983373c-2ddd-4951-b3b1-919ac920f2c1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-5985-5986-Corpnet-d983373c-2ddd-4951-b3b1-919ac920f2c1","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"194.69.104.0/25","destinationAddressPrefix":"*","access":"Allow","priority":158,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-8f683262-0601-4796-8c60-e7f60e0305d6","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-5985-5986-Corpnet-8f683262-0601-4796-8c60-e7f60e0305d6","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"191.234.97.0/26","destinationAddressPrefix":"*","access":"Allow","priority":159,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-34788a5a-2cf8-44d7-b1bf-427402328111","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-5985-5986-Corpnet-34788a5a-2cf8-44d7-b1bf-427402328111","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"167.220.0.0/23","destinationAddressPrefix":"*","access":"Allow","priority":160,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-6a51471e-d51c-4c9c-884e-0c14bf5e40ca","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-5985-5986-Corpnet-6a51471e-d51c-4c9c-884e-0c14bf5e40ca","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"167.220.2.0/24","destinationAddressPrefix":"*","access":"Allow","priority":161,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-3a4761d1-4622-45eb-809c-0c2842f13330","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-5985-5986-Corpnet-3a4761d1-4622-45eb-809c-0c2842f13330","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"207.68.190.32/27","destinationAddressPrefix":"*","access":"Allow","priority":162,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-77fef7e0-b725-4308-934e-acd4c83b99a0","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-5985-5986-Corpnet-77fef7e0-b725-4308-934e-acd4c83b99a0","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"13.106.78.32/27","destinationAddressPrefix":"*","access":"Allow","priority":163,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-a9f89eb5-8c31-45e4-8d43-9f76dce6e56d","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-5985-5986-Corpnet-a9f89eb5-8c31-45e4-8d43-9f76dce6e56d","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"10.254.32.0/20","destinationAddressPrefix":"*","access":"Allow","priority":164,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-3abf3705-7a75-4037-ade2-70c3bb9bc418","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-5985-5986-Corpnet-3abf3705-7a75-4037-ade2-70c3bb9bc418","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"10.97.136.0/22","destinationAddressPrefix":"*","access":"Allow","priority":165,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-2d5078c2-6c13-47bc-9663-866d9da23e50","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-5985-5986-Corpnet-2d5078c2-6c13-47bc-9663-866d9da23e50","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"13.106.174.32/27","destinationAddressPrefix":"*","access":"Allow","priority":166,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-5985-5986-Corpnet-d9c179ce-52cb-4806-9203-7c13c7a5102d","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-5985-5986-Corpnet-d9c179ce-52cb-4806-9203-7c13c7a5102d","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"5985-5986","sourceAddressPrefix":"13.106.4.96/27","destinationAddressPrefix":"*","access":"Allow","priority":167,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-daac4d64-353c-485a-8f1c-2710b99d9414","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-22-23-Corpnet-daac4d64-353c-485a-8f1c-2710b99d9414","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"167.220.148.0/23","destinationAddressPrefix":"*","access":"Allow","priority":168,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-b3fffbb5-c1d2-4ff0-890c-56bf9ea915d5","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-22-23-Corpnet-b3fffbb5-c1d2-4ff0-890c-56bf9ea915d5","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"131.107.147.0/24","destinationAddressPrefix":"*","access":"Allow","priority":169,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-d832d539-8c2a-424f-8e12-073d9163ea5e","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-22-23-Corpnet-d832d539-8c2a-424f-8e12-073d9163ea5e","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"131.107.159.0/24","destinationAddressPrefix":"*","access":"Allow","priority":170,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-28077185-70fc-49ee-802d-113050b49f72","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-22-23-Corpnet-28077185-70fc-49ee-802d-113050b49f72","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"131.107.160.0/24","destinationAddressPrefix":"*","access":"Allow","priority":171,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-5b72dfa0-861a-48ec-9f59-d960a2dea237","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-22-23-Corpnet-5b72dfa0-861a-48ec-9f59-d960a2dea237","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"131.107.174.0/24","destinationAddressPrefix":"*","access":"Allow","priority":172,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-75ff438b-295f-485b-bed9-460504e4a711","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-22-23-Corpnet-75ff438b-295f-485b-bed9-460504e4a711","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"167.220.24.0/24","destinationAddressPrefix":"*","access":"Allow","priority":173,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-b2e09dcd-ba8a-471a-a0ac-d3adc742d992","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-22-23-Corpnet-b2e09dcd-ba8a-471a-a0ac-d3adc742d992","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"167.220.26.0/24","destinationAddressPrefix":"*","access":"Allow","priority":174,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-6a1dd794-13b6-476b-88d9-bd7afdfc94f9","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-22-23-Corpnet-6a1dd794-13b6-476b-88d9-bd7afdfc94f9","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"167.220.238.0/27","destinationAddressPrefix":"*","access":"Allow","priority":175,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-b429b57a-6182-4ee2-9438-13093f67eba3","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-22-23-Corpnet-b429b57a-6182-4ee2-9438-13093f67eba3","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"167.220.238.128/27","destinationAddressPrefix":"*","access":"Allow","priority":176,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-b47b8f89-8cf3-4720-81fc-52dee9793c8c","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-22-23-Corpnet-b47b8f89-8cf3-4720-81fc-52dee9793c8c","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"167.220.238.192/27","destinationAddressPrefix":"*","access":"Allow","priority":177,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-5f6d85af-c922-4abb-9bc8-20285e57c84e","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-22-23-Corpnet-5f6d85af-c922-4abb-9bc8-20285e57c84e","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"167.220.238.64/27","destinationAddressPrefix":"*","access":"Allow","priority":178,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-dcf05381-3fd7-4ad8-9736-4041796a5fc6","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-22-23-Corpnet-dcf05381-3fd7-4ad8-9736-4041796a5fc6","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"167.220.232.0/23","destinationAddressPrefix":"*","access":"Allow","priority":179,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-3f08a83a-ab33-4254-af0f-af62f979a9be","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-22-23-Corpnet-3f08a83a-ab33-4254-af0f-af62f979a9be","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"167.220.255.0/25","destinationAddressPrefix":"*","access":"Allow","priority":180,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-e9d60b46-c13d-4355-939e-ad9a616bd5a3","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-22-23-Corpnet-e9d60b46-c13d-4355-939e-ad9a616bd5a3","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"167.220.242.0/27","destinationAddressPrefix":"*","access":"Allow","priority":181,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-7922b82d-73d6-4646-90ab-3dff822854c8","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-22-23-Corpnet-7922b82d-73d6-4646-90ab-3dff822854c8","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"167.220.242.128/27","destinationAddressPrefix":"*","access":"Allow","priority":182,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-d77c16b6-0025-43aa-acbb-96691d3bfe66","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-22-23-Corpnet-d77c16b6-0025-43aa-acbb-96691d3bfe66","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"167.220.242.192/27","destinationAddressPrefix":"*","access":"Allow","priority":183,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-dae730f1-e2fc-4dc7-9846-afd6c1cdb8e6","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-22-23-Corpnet-dae730f1-e2fc-4dc7-9846-afd6c1cdb8e6","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"167.220.242.64/27","destinationAddressPrefix":"*","access":"Allow","priority":184,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-b5458831-8c12-4593-8898-8b7ceac60975","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-22-23-Corpnet-b5458831-8c12-4593-8898-8b7ceac60975","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"94.245.87.0/24","destinationAddressPrefix":"*","access":"Allow","priority":185,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-e1fd814e-fcfb-4b17-9e13-ac207b5fd0e9","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-22-23-Corpnet-e1fd814e-fcfb-4b17-9e13-ac207b5fd0e9","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"167.220.196.0/23","destinationAddressPrefix":"*","access":"Allow","priority":186,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-2297bc4d-5a59-4af7-869b-38808b56b075","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-22-23-Corpnet-2297bc4d-5a59-4af7-869b-38808b56b075","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"194.69.104.0/25","destinationAddressPrefix":"*","access":"Allow","priority":187,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-868e9402-8046-46ba-b30d-1af584b3108c","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-22-23-Corpnet-868e9402-8046-46ba-b30d-1af584b3108c","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"191.234.97.0/26","destinationAddressPrefix":"*","access":"Allow","priority":188,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-ad2d0ead-43c6-4a67-bdec-43ce20998e32","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-22-23-Corpnet-ad2d0ead-43c6-4a67-bdec-43ce20998e32","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"167.220.0.0/23","destinationAddressPrefix":"*","access":"Allow","priority":189,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-8da2eb7c-caf9-453b-ae09-e6fb3b2fffd9","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-22-23-Corpnet-8da2eb7c-caf9-453b-ae09-e6fb3b2fffd9","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"167.220.2.0/24","destinationAddressPrefix":"*","access":"Allow","priority":190,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-dfbc60cb-d17c-447b-9352-f8af14db6b2e","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-22-23-Corpnet-dfbc60cb-d17c-447b-9352-f8af14db6b2e","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"207.68.190.32/27","destinationAddressPrefix":"*","access":"Allow","priority":191,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-41cc8d9d-905a-4987-aa0f-407abe756e19","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-22-23-Corpnet-41cc8d9d-905a-4987-aa0f-407abe756e19","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"13.106.78.32/27","destinationAddressPrefix":"*","access":"Allow","priority":192,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-a508ff11-5534-4200-beef-7727dd761989","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-22-23-Corpnet-a508ff11-5534-4200-beef-7727dd761989","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"10.254.32.0/20","destinationAddressPrefix":"*","access":"Allow","priority":193,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-06dcff62-f7c9-4bd1-abbc-6754e3afd57c","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-22-23-Corpnet-06dcff62-f7c9-4bd1-abbc-6754e3afd57c","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"10.97.136.0/22","destinationAddressPrefix":"*","access":"Allow","priority":194,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-58550cf1-df9e-4a3c-8337-2ad0476669e5","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-22-23-Corpnet-58550cf1-df9e-4a3c-8337-2ad0476669e5","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"13.106.174.32/27","destinationAddressPrefix":"*","access":"Allow","priority":195,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-22-23-Corpnet-c6ddd1b0-406c-42e8-b2d3-aab60a70536f","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-22-23-Corpnet-c6ddd1b0-406c-42e8-b2d3-aab60a70536f","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22-23","sourceAddressPrefix":"13.106.4.96/27","destinationAddressPrefix":"*","access":"Allow","priority":196,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-ca9f5fe2-fae3-4973-a394-549b679bb15e","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-1433-Corpnet-ca9f5fe2-fae3-4973-a394-549b679bb15e","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"167.220.148.0/23","destinationAddressPrefix":"*","access":"Allow","priority":197,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-2746c8a6-b697-4b1c-8f2d-702054d6a0cf","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-1433-Corpnet-2746c8a6-b697-4b1c-8f2d-702054d6a0cf","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"131.107.147.0/24","destinationAddressPrefix":"*","access":"Allow","priority":198,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-aa289ad6-4326-4502-93b1-ce85c735539c","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-1433-Corpnet-aa289ad6-4326-4502-93b1-ce85c735539c","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"131.107.159.0/24","destinationAddressPrefix":"*","access":"Allow","priority":199,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-fb034f09-5f73-4f74-9651-7405063d5066","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-1433-Corpnet-fb034f09-5f73-4f74-9651-7405063d5066","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"131.107.160.0/24","destinationAddressPrefix":"*","access":"Allow","priority":200,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-14069919-8912-4240-b329-2296c57fb5be","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-1433-Corpnet-14069919-8912-4240-b329-2296c57fb5be","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"131.107.174.0/24","destinationAddressPrefix":"*","access":"Allow","priority":201,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-79d8a914-7eac-49a7-9f3e-6a3c38a124f2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-1433-Corpnet-79d8a914-7eac-49a7-9f3e-6a3c38a124f2","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"167.220.24.0/24","destinationAddressPrefix":"*","access":"Allow","priority":202,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-ff382964-a980-4f3d-bb76-d19ffe497198","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-1433-Corpnet-ff382964-a980-4f3d-bb76-d19ffe497198","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"167.220.26.0/24","destinationAddressPrefix":"*","access":"Allow","priority":203,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-78462b94-00fd-4d77-93c1-91647efd3e4a","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-1433-Corpnet-78462b94-00fd-4d77-93c1-91647efd3e4a","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"167.220.238.0/27","destinationAddressPrefix":"*","access":"Allow","priority":204,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-9f9f2cdc-3b92-4fb6-8831-ba0221ec2407","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-1433-Corpnet-9f9f2cdc-3b92-4fb6-8831-ba0221ec2407","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"167.220.238.128/27","destinationAddressPrefix":"*","access":"Allow","priority":205,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-e2dc690f-3ddc-409d-82d5-450db9790700","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-1433-Corpnet-e2dc690f-3ddc-409d-82d5-450db9790700","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"167.220.238.192/27","destinationAddressPrefix":"*","access":"Allow","priority":206,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-ba359fae-babf-4c56-b9da-a93ac313d288","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-1433-Corpnet-ba359fae-babf-4c56-b9da-a93ac313d288","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"167.220.238.64/27","destinationAddressPrefix":"*","access":"Allow","priority":207,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-293ea019-9b19-4236-8816-d60f84fe5503","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-1433-Corpnet-293ea019-9b19-4236-8816-d60f84fe5503","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"167.220.232.0/23","destinationAddressPrefix":"*","access":"Allow","priority":208,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-fdfa5e93-3fd9-460a-8faa-2f33544efbca","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-1433-Corpnet-fdfa5e93-3fd9-460a-8faa-2f33544efbca","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"167.220.255.0/25","destinationAddressPrefix":"*","access":"Allow","priority":209,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-948bb555-e13c-4b28-9638-da14c920e5e5","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-1433-Corpnet-948bb555-e13c-4b28-9638-da14c920e5e5","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"167.220.242.0/27","destinationAddressPrefix":"*","access":"Allow","priority":210,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-24b9d7d4-5c9d-43b1-aac8-fa418d591303","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-1433-Corpnet-24b9d7d4-5c9d-43b1-aac8-fa418d591303","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"167.220.242.128/27","destinationAddressPrefix":"*","access":"Allow","priority":211,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-6444c3e1-27d7-4ce7-85b8-e1be6d885ef5","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-1433-Corpnet-6444c3e1-27d7-4ce7-85b8-e1be6d885ef5","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"167.220.242.192/27","destinationAddressPrefix":"*","access":"Allow","priority":212,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-2ebd970e-54ab-475a-b3c8-118d1b5fba1a","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-1433-Corpnet-2ebd970e-54ab-475a-b3c8-118d1b5fba1a","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"167.220.242.64/27","destinationAddressPrefix":"*","access":"Allow","priority":213,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-35547621-edcb-4e95-8192-391f1acc271f","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-1433-Corpnet-35547621-edcb-4e95-8192-391f1acc271f","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"94.245.87.0/24","destinationAddressPrefix":"*","access":"Allow","priority":214,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-443fd4c2-fcae-4a63-a52e-0decfa30957a","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-1433-Corpnet-443fd4c2-fcae-4a63-a52e-0decfa30957a","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"167.220.196.0/23","destinationAddressPrefix":"*","access":"Allow","priority":215,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-1d9061b1-937b-4c60-b49f-4778b40dc788","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-1433-Corpnet-1d9061b1-937b-4c60-b49f-4778b40dc788","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"194.69.104.0/25","destinationAddressPrefix":"*","access":"Allow","priority":216,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-206b85ca-0b0d-42f4-8f6f-103e4a33b3e2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-1433-Corpnet-206b85ca-0b0d-42f4-8f6f-103e4a33b3e2","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"191.234.97.0/26","destinationAddressPrefix":"*","access":"Allow","priority":217,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-d1687866-c2d7-4b55-81f2-5263aed5f221","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-1433-Corpnet-d1687866-c2d7-4b55-81f2-5263aed5f221","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"167.220.0.0/23","destinationAddressPrefix":"*","access":"Allow","priority":218,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-088aacb8-8cbd-4eaf-a888-6a1df38043fc","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-1433-Corpnet-088aacb8-8cbd-4eaf-a888-6a1df38043fc","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"167.220.2.0/24","destinationAddressPrefix":"*","access":"Allow","priority":219,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-8a1ed5cb-d078-4f9d-b808-b5bb9e3982fd","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-1433-Corpnet-8a1ed5cb-d078-4f9d-b808-b5bb9e3982fd","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"207.68.190.32/27","destinationAddressPrefix":"*","access":"Allow","priority":220,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-79603cbe-b415-48db-a51b-e357dd6134f6","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-1433-Corpnet-79603cbe-b415-48db-a51b-e357dd6134f6","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"13.106.78.32/27","destinationAddressPrefix":"*","access":"Allow","priority":221,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-0d9e36c8-2e6e-4858-9c66-49b10a4a02e0","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-1433-Corpnet-0d9e36c8-2e6e-4858-9c66-49b10a4a02e0","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"10.254.32.0/20","destinationAddressPrefix":"*","access":"Allow","priority":222,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-f54284be-c741-45f0-a3c6-0c6383da99f0","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-1433-Corpnet-f54284be-c741-45f0-a3c6-0c6383da99f0","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"10.97.136.0/22","destinationAddressPrefix":"*","access":"Allow","priority":223,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-88e6a332-1b42-4b5f-bcc6-c96f40cfb6db","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-1433-Corpnet-88e6a332-1b42-4b5f-bcc6-c96f40cfb6db","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"13.106.174.32/27","destinationAddressPrefix":"*","access":"Allow","priority":224,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-1433-Corpnet-e57890bf-3f5c-42df-8037-0102305c106f","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-1433-Corpnet-e57890bf-3f5c-42df-8037-0102305c106f","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"1433","sourceAddressPrefix":"13.106.4.96/27","destinationAddressPrefix":"*","access":"Allow","priority":225,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-3e34bd2f-e061-4cde-b07e-0f335137ebb8","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-445-Corpnet-3e34bd2f-e061-4cde-b07e-0f335137ebb8","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"167.220.148.0/23","destinationAddressPrefix":"*","access":"Allow","priority":226,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-21d40535-ced8-4c3e-b0d4-9b9a579e3984","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-445-Corpnet-21d40535-ced8-4c3e-b0d4-9b9a579e3984","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"131.107.147.0/24","destinationAddressPrefix":"*","access":"Allow","priority":227,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-f13b1253-fad6-4f30-baca-484833e31cd6","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-445-Corpnet-f13b1253-fad6-4f30-baca-484833e31cd6","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"131.107.159.0/24","destinationAddressPrefix":"*","access":"Allow","priority":228,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-30e0e14f-285a-4d54-8c00-d94ce4a6ae88","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-445-Corpnet-30e0e14f-285a-4d54-8c00-d94ce4a6ae88","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"131.107.160.0/24","destinationAddressPrefix":"*","access":"Allow","priority":229,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-44d0f0f2-4d38-44fa-93fc-1781d08e0d64","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-445-Corpnet-44d0f0f2-4d38-44fa-93fc-1781d08e0d64","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"131.107.174.0/24","destinationAddressPrefix":"*","access":"Allow","priority":230,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-d5e39c12-7c7a-4a6e-8cb1-9fcdd079bf81","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-445-Corpnet-d5e39c12-7c7a-4a6e-8cb1-9fcdd079bf81","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"167.220.24.0/24","destinationAddressPrefix":"*","access":"Allow","priority":231,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-68a20a96-3a2d-47d3-b53f-a8af1dadac55","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-445-Corpnet-68a20a96-3a2d-47d3-b53f-a8af1dadac55","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"167.220.26.0/24","destinationAddressPrefix":"*","access":"Allow","priority":232,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-3723868e-969c-4d54-9323-78c4799f790f","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-445-Corpnet-3723868e-969c-4d54-9323-78c4799f790f","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"167.220.238.0/27","destinationAddressPrefix":"*","access":"Allow","priority":233,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-e6a117d5-9167-4ecf-bd07-b2a9c2d3a2e1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-445-Corpnet-e6a117d5-9167-4ecf-bd07-b2a9c2d3a2e1","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"167.220.238.128/27","destinationAddressPrefix":"*","access":"Allow","priority":234,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-335deb9d-91cf-4c6e-9ea5-d982e9ad94a0","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-445-Corpnet-335deb9d-91cf-4c6e-9ea5-d982e9ad94a0","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"167.220.238.192/27","destinationAddressPrefix":"*","access":"Allow","priority":235,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-b07a3bef-d1cd-4164-ba1d-58b5c83fff17","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-445-Corpnet-b07a3bef-d1cd-4164-ba1d-58b5c83fff17","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"167.220.238.64/27","destinationAddressPrefix":"*","access":"Allow","priority":236,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-c56c9cb7-a7b5-41d3-9109-9843c736c008","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-445-Corpnet-c56c9cb7-a7b5-41d3-9109-9843c736c008","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"167.220.232.0/23","destinationAddressPrefix":"*","access":"Allow","priority":237,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-36c90725-65e8-43bf-ac6d-d6350f2ef831","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-445-Corpnet-36c90725-65e8-43bf-ac6d-d6350f2ef831","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"167.220.255.0/25","destinationAddressPrefix":"*","access":"Allow","priority":238,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-bf001714-edeb-4f94-9a25-c5a9a9545fd5","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-445-Corpnet-bf001714-edeb-4f94-9a25-c5a9a9545fd5","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"167.220.242.0/27","destinationAddressPrefix":"*","access":"Allow","priority":239,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-d4abc525-5e4a-4151-92b0-f7b6cdb5bed2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-445-Corpnet-d4abc525-5e4a-4151-92b0-f7b6cdb5bed2","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"167.220.242.128/27","destinationAddressPrefix":"*","access":"Allow","priority":240,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-579f12c9-d21a-40f2-88ff-fb3a3cdd1f7e","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-445-Corpnet-579f12c9-d21a-40f2-88ff-fb3a3cdd1f7e","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"167.220.242.192/27","destinationAddressPrefix":"*","access":"Allow","priority":241,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-73a97f14-2ef6-48c1-bfa2-ff20e3995eb3","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-445-Corpnet-73a97f14-2ef6-48c1-bfa2-ff20e3995eb3","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"167.220.242.64/27","destinationAddressPrefix":"*","access":"Allow","priority":242,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-0a5df186-17ea-46cf-9458-9bccf6bcc81e","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-445-Corpnet-0a5df186-17ea-46cf-9458-9bccf6bcc81e","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"94.245.87.0/24","destinationAddressPrefix":"*","access":"Allow","priority":243,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-d40c5f25-8517-4a64-ab99-922891fba44f","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-445-Corpnet-d40c5f25-8517-4a64-ab99-922891fba44f","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"167.220.196.0/23","destinationAddressPrefix":"*","access":"Allow","priority":244,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-01e00e1d-ea36-44f7-a0ce-36e1fa08334b","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-445-Corpnet-01e00e1d-ea36-44f7-a0ce-36e1fa08334b","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"194.69.104.0/25","destinationAddressPrefix":"*","access":"Allow","priority":245,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-21ee1521-b90f-4003-b24c-a410af4d7e6a","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-445-Corpnet-21ee1521-b90f-4003-b24c-a410af4d7e6a","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"191.234.97.0/26","destinationAddressPrefix":"*","access":"Allow","priority":246,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-b8024009-923c-45a0-b28b-9eac56e8bbb4","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-445-Corpnet-b8024009-923c-45a0-b28b-9eac56e8bbb4","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"167.220.0.0/23","destinationAddressPrefix":"*","access":"Allow","priority":247,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-af7927de-de44-442d-a01d-c5bfcb15d023","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-445-Corpnet-af7927de-de44-442d-a01d-c5bfcb15d023","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"167.220.2.0/24","destinationAddressPrefix":"*","access":"Allow","priority":248,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-d4f6b2c9-6136-4fe5-a371-70bdc55e2b7c","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-445-Corpnet-d4f6b2c9-6136-4fe5-a371-70bdc55e2b7c","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"207.68.190.32/27","destinationAddressPrefix":"*","access":"Allow","priority":249,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-c22338bb-4618-4b90-9047-5977d916f205","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-445-Corpnet-c22338bb-4618-4b90-9047-5977d916f205","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"13.106.78.32/27","destinationAddressPrefix":"*","access":"Allow","priority":250,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-aa92c8a6-d6d7-4641-98a3-2c56b5dae223","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-445-Corpnet-aa92c8a6-d6d7-4641-98a3-2c56b5dae223","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"10.254.32.0/20","destinationAddressPrefix":"*","access":"Allow","priority":251,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-05f03461-dab8-460e-bc39-add8f395cd8b","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-445-Corpnet-05f03461-dab8-460e-bc39-add8f395cd8b","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"10.97.136.0/22","destinationAddressPrefix":"*","access":"Allow","priority":252,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-24491714-8e22-43ca-9491-7207f15475ce","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-445-Corpnet-24491714-8e22-43ca-9491-7207f15475ce","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"13.106.174.32/27","destinationAddressPrefix":"*","access":"Allow","priority":253,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-445-Corpnet-c89e02e1-14df-4c39-92b7-f4c81a8010bd","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-445-Corpnet-c89e02e1-14df-4c39-92b7-f4c81a8010bd","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"445","sourceAddressPrefix":"13.106.4.96/27","destinationAddressPrefix":"*","access":"Allow","priority":254,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-e6cb5152-2c93-43b5-8ffd-27f11e4be626","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-135-Corpnet-e6cb5152-2c93-43b5-8ffd-27f11e4be626","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"167.220.148.0/23","destinationAddressPrefix":"*","access":"Allow","priority":255,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-7dbf48fb-3018-4b3a-9981-af527ec0a3ea","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-135-Corpnet-7dbf48fb-3018-4b3a-9981-af527ec0a3ea","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"131.107.147.0/24","destinationAddressPrefix":"*","access":"Allow","priority":256,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-3a806578-9f64-432c-a1ba-21dfe0c7b9bd","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-135-Corpnet-3a806578-9f64-432c-a1ba-21dfe0c7b9bd","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"131.107.159.0/24","destinationAddressPrefix":"*","access":"Allow","priority":257,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-cde222d6-eac9-4a04-95ff-4e6803165402","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-135-Corpnet-cde222d6-eac9-4a04-95ff-4e6803165402","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"131.107.160.0/24","destinationAddressPrefix":"*","access":"Allow","priority":258,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-27858b71-b034-4970-93bf-09509296000d","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-135-Corpnet-27858b71-b034-4970-93bf-09509296000d","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"131.107.174.0/24","destinationAddressPrefix":"*","access":"Allow","priority":259,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-b7fdaa7a-ae76-4edf-9a42-2ba1b3875580","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-135-Corpnet-b7fdaa7a-ae76-4edf-9a42-2ba1b3875580","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"167.220.24.0/24","destinationAddressPrefix":"*","access":"Allow","priority":260,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-dd5e4075-b3db-4c72-a1da-df0a26d96c6a","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-135-Corpnet-dd5e4075-b3db-4c72-a1da-df0a26d96c6a","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"167.220.26.0/24","destinationAddressPrefix":"*","access":"Allow","priority":261,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-550390be-0ac2-4a96-86bc-8a9b8df90065","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-135-Corpnet-550390be-0ac2-4a96-86bc-8a9b8df90065","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"167.220.238.0/27","destinationAddressPrefix":"*","access":"Allow","priority":262,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-ad69f5dc-958b-4b4e-a2fa-f90a7ffbdda4","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-135-Corpnet-ad69f5dc-958b-4b4e-a2fa-f90a7ffbdda4","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"167.220.238.128/27","destinationAddressPrefix":"*","access":"Allow","priority":263,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-f2da7295-1a16-4da4-8105-55c6c920140f","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-135-Corpnet-f2da7295-1a16-4da4-8105-55c6c920140f","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"167.220.238.192/27","destinationAddressPrefix":"*","access":"Allow","priority":264,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-29ab161d-8751-433d-89bc-db3e7381d845","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-135-Corpnet-29ab161d-8751-433d-89bc-db3e7381d845","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"167.220.238.64/27","destinationAddressPrefix":"*","access":"Allow","priority":265,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-80b5d81c-2795-4315-bdcf-fc450bbfbc9c","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-135-Corpnet-80b5d81c-2795-4315-bdcf-fc450bbfbc9c","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"167.220.232.0/23","destinationAddressPrefix":"*","access":"Allow","priority":266,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-50f244af-f596-4834-a5a4-bc67063880fe","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-135-Corpnet-50f244af-f596-4834-a5a4-bc67063880fe","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"167.220.255.0/25","destinationAddressPrefix":"*","access":"Allow","priority":267,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-332db5cb-cf1d-4f1a-8723-12cc9f0f1c7f","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-135-Corpnet-332db5cb-cf1d-4f1a-8723-12cc9f0f1c7f","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"167.220.242.0/27","destinationAddressPrefix":"*","access":"Allow","priority":268,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-0305f8ed-a87d-4ecb-b941-42c08b049d40","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-135-Corpnet-0305f8ed-a87d-4ecb-b941-42c08b049d40","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"167.220.242.128/27","destinationAddressPrefix":"*","access":"Allow","priority":269,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-49d34454-0130-4cfc-bef6-426c8bd8de51","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-135-Corpnet-49d34454-0130-4cfc-bef6-426c8bd8de51","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"167.220.242.192/27","destinationAddressPrefix":"*","access":"Allow","priority":270,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-53dc91c0-dd11-4eec-a798-67eb7d9d8c22","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-135-Corpnet-53dc91c0-dd11-4eec-a798-67eb7d9d8c22","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"167.220.242.64/27","destinationAddressPrefix":"*","access":"Allow","priority":271,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-b69269c5-5605-406a-8dbe-fb630e8c849f","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-135-Corpnet-b69269c5-5605-406a-8dbe-fb630e8c849f","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"94.245.87.0/24","destinationAddressPrefix":"*","access":"Allow","priority":272,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-254a108d-ff43-480e-8309-c697df13ec3b","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-135-Corpnet-254a108d-ff43-480e-8309-c697df13ec3b","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"167.220.196.0/23","destinationAddressPrefix":"*","access":"Allow","priority":273,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-243a8e5f-8fe5-4e62-9860-0fd576c56c2e","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-135-Corpnet-243a8e5f-8fe5-4e62-9860-0fd576c56c2e","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"194.69.104.0/25","destinationAddressPrefix":"*","access":"Allow","priority":274,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-6ee2fef2-5be7-4d3f-892e-8797698207a3","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-135-Corpnet-6ee2fef2-5be7-4d3f-892e-8797698207a3","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"191.234.97.0/26","destinationAddressPrefix":"*","access":"Allow","priority":275,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-d9caeaaa-2e61-4652-a6b9-0d85d0b84c79","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-135-Corpnet-d9caeaaa-2e61-4652-a6b9-0d85d0b84c79","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"167.220.0.0/23","destinationAddressPrefix":"*","access":"Allow","priority":276,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-af8b9e2a-9413-44c8-977c-17c04d413586","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-135-Corpnet-af8b9e2a-9413-44c8-977c-17c04d413586","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"167.220.2.0/24","destinationAddressPrefix":"*","access":"Allow","priority":277,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-eb7924d1-2cc8-4461-a26d-ddd9efaf6c3e","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-135-Corpnet-eb7924d1-2cc8-4461-a26d-ddd9efaf6c3e","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"207.68.190.32/27","destinationAddressPrefix":"*","access":"Allow","priority":278,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-14244174-9cd4-4515-8ec4-0e2c01011ed7","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-135-Corpnet-14244174-9cd4-4515-8ec4-0e2c01011ed7","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"13.106.78.32/27","destinationAddressPrefix":"*","access":"Allow","priority":279,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-027a1e47-3ea7-4ce1-b5d2-b5a425e492e4","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-135-Corpnet-027a1e47-3ea7-4ce1-b5d2-b5a425e492e4","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"10.254.32.0/20","destinationAddressPrefix":"*","access":"Allow","priority":280,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-de8aa77e-85ef-468a-b211-fcef2bb0ab85","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-135-Corpnet-de8aa77e-85ef-468a-b211-fcef2bb0ab85","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"10.97.136.0/22","destinationAddressPrefix":"*","access":"Allow","priority":281,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-bb4e6b1b-9ab7-4f52-9fe6-debbec68abcc","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-135-Corpnet-bb4e6b1b-9ab7-4f52-9fe6-debbec68abcc","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"13.106.174.32/27","destinationAddressPrefix":"*","access":"Allow","priority":282,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-135-Corpnet-8df02417-ebf4-4180-8a72-c52e1dcf3ee6","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/securityRules/Cleanuptool-135-Corpnet-8df02417-ebf4-4180-8a72-c52e1dcf3ee6","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"135","sourceAddressPrefix":"13.106.4.96/27","destinationAddressPrefix":"*","access":"Allow","priority":283,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}}],"defaultSecurityRules":[{"name":"AllowVnetInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/defaultSecurityRules/AllowVnetInBound","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow inbound traffic from all VMs in VNET","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"VirtualNetwork","access":"Allow","priority":65000,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowAzureLoadBalancerInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/defaultSecurityRules/AllowAzureLoadBalancerInBound","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow inbound traffic from azure load balancer","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"AzureLoadBalancer","destinationAddressPrefix":"*","access":"Allow","priority":65001,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"DenyAllInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/defaultSecurityRules/DenyAllInBound","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Deny all inbound traffic","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":65500,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowVnetOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/defaultSecurityRules/AllowVnetOutBound","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow outbound traffic from all VMs to all VMs in VNET","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"VirtualNetwork","access":"Allow","priority":65000,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowInternetOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/defaultSecurityRules/AllowInternetOutBound","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow outbound traffic from all VMs to Internet","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"Internet","access":"Allow","priority":65001,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"DenyAllOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg3/defaultSecurityRules/DenyAllOutBound","etag":"W/\"d278f8a2-6f7c-41dc-8716-5f56fce6d4df\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Deny + all outbound traffic","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":65500,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}}]}},{"name":"rg-cleanupservice-nsg10","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg10","etag":"W/\"267afd60-6a40-41ca-b83f-ddd7ee7e8d85\"","type":"Microsoft.Network/networkSecurityGroups","location":"westeurope","properties":{"provisioningState":"Succeeded","resourceGuid":"3c854048-8985-43c7-82ac-58ef311bbd81","securityRules":[{"name":"Cleanuptool-Allow-4001","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg10/securityRules/Cleanuptool-Allow-4001","etag":"W/\"267afd60-6a40-41ca-b83f-ddd7ee7e8d85\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Allow","priority":4001,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-100","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg10/securityRules/Cleanuptool-Allow-100","etag":"W/\"267afd60-6a40-41ca-b83f-ddd7ee7e8d85\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationAddressPrefix":"*","access":"Allow","priority":100,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":["3389","5985","5986","22","2222","1433","445","23","135"],"sourceAddressPrefixes":["167.220.148.0/23","131.107.147.0/24","131.107.159.0/24","131.107.160.0/24","131.107.174.0/24","167.220.24.0/24","167.220.26.0/24","167.220.238.0/27","167.220.238.128/27","167.220.238.192/27","167.220.238.64/27","167.220.232.0/23","167.220.255.0/25","167.220.242.0/27","167.220.242.128/27","167.220.242.192/27","167.220.242.64/27","94.245.87.0/24","167.220.196.0/23","194.69.104.0/25","191.234.97.0/26","167.220.0.0/23","167.220.2.0/24","207.68.190.32/27","13.106.78.32/27","10.254.32.0/20","10.97.136.0/22","13.106.174.32/27","13.106.4.96/27"],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-101","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg10/securityRules/Cleanuptool-Allow-101","etag":"W/\"267afd60-6a40-41ca-b83f-ddd7ee7e8d85\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"*","access":"Allow","priority":101,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":["3389","5985","5986","22","2222","1433","445","23","135"],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-102","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg10/securityRules/Cleanuptool-Allow-102","etag":"W/\"267afd60-6a40-41ca-b83f-ddd7ee7e8d85\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","sourceAddressPrefix":"AzureLoadBalancer","destinationAddressPrefix":"*","access":"Allow","priority":102,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":["3389","5985","5986","22","2222","1433","445","23","135"],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Deny-103","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg10/securityRules/Cleanuptool-Deny-103","etag":"W/\"267afd60-6a40-41ca-b83f-ddd7ee7e8d85\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":103,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":["3389","5985","5986","22","2222","1433","445","23","135"],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}}],"defaultSecurityRules":[{"name":"AllowVnetInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg10/defaultSecurityRules/AllowVnetInBound","etag":"W/\"267afd60-6a40-41ca-b83f-ddd7ee7e8d85\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow + inbound traffic from all VMs in VNET","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"VirtualNetwork","access":"Allow","priority":65000,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowAzureLoadBalancerInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg10/defaultSecurityRules/AllowAzureLoadBalancerInBound","etag":"W/\"267afd60-6a40-41ca-b83f-ddd7ee7e8d85\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow + inbound traffic from azure load balancer","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"AzureLoadBalancer","destinationAddressPrefix":"*","access":"Allow","priority":65001,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"DenyAllInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg10/defaultSecurityRules/DenyAllInBound","etag":"W/\"267afd60-6a40-41ca-b83f-ddd7ee7e8d85\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Deny + all inbound traffic","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":65500,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowVnetOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg10/defaultSecurityRules/AllowVnetOutBound","etag":"W/\"267afd60-6a40-41ca-b83f-ddd7ee7e8d85\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow + outbound traffic from all VMs to all VMs in VNET","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"VirtualNetwork","access":"Allow","priority":65000,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowInternetOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg10/defaultSecurityRules/AllowInternetOutBound","etag":"W/\"267afd60-6a40-41ca-b83f-ddd7ee7e8d85\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow + outbound traffic from all VMs to Internet","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"Internet","access":"Allow","priority":65001,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"DenyAllOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg10/defaultSecurityRules/DenyAllOutBound","etag":"W/\"267afd60-6a40-41ca-b83f-ddd7ee7e8d85\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Deny + all outbound traffic","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":65500,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}}]}},{"name":"rg-cleanupservice-nsg12","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg12","etag":"W/\"fae8a873-bc4f-4d6d-aa3e-c4dd40995d84\"","type":"Microsoft.Network/networkSecurityGroups","location":"southeastasia","properties":{"provisioningState":"Succeeded","resourceGuid":"d3571957-a5ce-4f05-a759-e6f5f4aa8230","securityRules":[{"name":"Cleanuptool-Allow-4001","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg12/securityRules/Cleanuptool-Allow-4001","etag":"W/\"fae8a873-bc4f-4d6d-aa3e-c4dd40995d84\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Allow","priority":4001,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-100","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg12/securityRules/Cleanuptool-Allow-100","etag":"W/\"fae8a873-bc4f-4d6d-aa3e-c4dd40995d84\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationAddressPrefix":"*","access":"Allow","priority":100,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":["3389","5985","5986","22","2222","1433","445","23","135"],"sourceAddressPrefixes":["167.220.148.0/23","131.107.147.0/24","131.107.159.0/24","131.107.160.0/24","131.107.174.0/24","167.220.24.0/24","167.220.26.0/24","167.220.238.0/27","167.220.238.128/27","167.220.238.192/27","167.220.238.64/27","167.220.232.0/23","167.220.255.0/25","167.220.242.0/27","167.220.242.128/27","167.220.242.192/27","167.220.242.64/27","94.245.87.0/24","167.220.196.0/23","194.69.104.0/25","191.234.97.0/26","167.220.0.0/23","167.220.2.0/24","207.68.190.32/27","13.106.78.32/27","10.254.32.0/20","10.97.136.0/22","13.106.174.32/27","13.106.4.96/27"],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-101","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg12/securityRules/Cleanuptool-Allow-101","etag":"W/\"fae8a873-bc4f-4d6d-aa3e-c4dd40995d84\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"*","access":"Allow","priority":101,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":["3389","5985","5986","22","2222","1433","445","23","135"],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-102","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg12/securityRules/Cleanuptool-Allow-102","etag":"W/\"fae8a873-bc4f-4d6d-aa3e-c4dd40995d84\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","sourceAddressPrefix":"AzureLoadBalancer","destinationAddressPrefix":"*","access":"Allow","priority":102,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":["3389","5985","5986","22","2222","1433","445","23","135"],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Deny-103","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg12/securityRules/Cleanuptool-Deny-103","etag":"W/\"fae8a873-bc4f-4d6d-aa3e-c4dd40995d84\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":103,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":["3389","5985","5986","22","2222","1433","445","23","135"],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}}],"defaultSecurityRules":[{"name":"AllowVnetInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg12/defaultSecurityRules/AllowVnetInBound","etag":"W/\"fae8a873-bc4f-4d6d-aa3e-c4dd40995d84\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow + inbound traffic from all VMs in VNET","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"VirtualNetwork","access":"Allow","priority":65000,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowAzureLoadBalancerInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg12/defaultSecurityRules/AllowAzureLoadBalancerInBound","etag":"W/\"fae8a873-bc4f-4d6d-aa3e-c4dd40995d84\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow + inbound traffic from azure load balancer","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"AzureLoadBalancer","destinationAddressPrefix":"*","access":"Allow","priority":65001,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"DenyAllInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg12/defaultSecurityRules/DenyAllInBound","etag":"W/\"fae8a873-bc4f-4d6d-aa3e-c4dd40995d84\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Deny + all inbound traffic","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":65500,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowVnetOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg12/defaultSecurityRules/AllowVnetOutBound","etag":"W/\"fae8a873-bc4f-4d6d-aa3e-c4dd40995d84\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow + outbound traffic from all VMs to all VMs in VNET","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"VirtualNetwork","access":"Allow","priority":65000,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowInternetOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg12/defaultSecurityRules/AllowInternetOutBound","etag":"W/\"fae8a873-bc4f-4d6d-aa3e-c4dd40995d84\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow + outbound traffic from all VMs to Internet","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"Internet","access":"Allow","priority":65001,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"DenyAllOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg12/defaultSecurityRules/DenyAllOutBound","etag":"W/\"fae8a873-bc4f-4d6d-aa3e-c4dd40995d84\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Deny all outbound traffic","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":65500,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}}]}},{"name":"rg-cleanupservice-nsg1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg1","etag":"W/\"a617b2f9-ab34-4ab2-a9b1-746f9be44160\"","type":"Microsoft.Network/networkSecurityGroups","location":"southcentralus","properties":{"provisioningState":"Succeeded","resourceGuid":"35a08819-848a-4846-8c60-e4d794e2b442","securityRules":[{"name":"Cleanuptool-Allow-4001","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg1/securityRules/Cleanuptool-Allow-4001","etag":"W/\"a617b2f9-ab34-4ab2-a9b1-746f9be44160\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Allow","priority":4001,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-100","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg1/securityRules/Cleanuptool-Allow-100","etag":"W/\"a617b2f9-ab34-4ab2-a9b1-746f9be44160\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationAddressPrefix":"*","access":"Allow","priority":100,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":["3389","5985","5986","22","2222","1433","445","23","135"],"sourceAddressPrefixes":["167.220.148.0/23","131.107.147.0/24","131.107.159.0/24","131.107.160.0/24","131.107.174.0/24","167.220.24.0/24","167.220.26.0/24","167.220.238.0/27","167.220.238.128/27","167.220.238.192/27","167.220.238.64/27","167.220.232.0/23","167.220.255.0/25","167.220.242.0/27","167.220.242.128/27","167.220.242.192/27","167.220.242.64/27","94.245.87.0/24","167.220.196.0/23","194.69.104.0/25","191.234.97.0/26","167.220.0.0/23","167.220.2.0/24","207.68.190.32/27","13.106.78.32/27","10.254.32.0/20","10.97.136.0/22","13.106.174.32/27","13.106.4.96/27"],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-101","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg1/securityRules/Cleanuptool-Allow-101","etag":"W/\"a617b2f9-ab34-4ab2-a9b1-746f9be44160\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"*","access":"Allow","priority":101,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":["3389","5985","5986","22","2222","1433","445","23","135"],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-102","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg1/securityRules/Cleanuptool-Allow-102","etag":"W/\"a617b2f9-ab34-4ab2-a9b1-746f9be44160\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","sourceAddressPrefix":"AzureLoadBalancer","destinationAddressPrefix":"*","access":"Allow","priority":102,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":["3389","5985","5986","22","2222","1433","445","23","135"],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Deny-103","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg1/securityRules/Cleanuptool-Deny-103","etag":"W/\"a617b2f9-ab34-4ab2-a9b1-746f9be44160\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":103,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":["3389","5985","5986","22","2222","1433","445","23","135"],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}}],"defaultSecurityRules":[{"name":"AllowVnetInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg1/defaultSecurityRules/AllowVnetInBound","etag":"W/\"a617b2f9-ab34-4ab2-a9b1-746f9be44160\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow inbound traffic from all VMs in VNET","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"VirtualNetwork","access":"Allow","priority":65000,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowAzureLoadBalancerInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg1/defaultSecurityRules/AllowAzureLoadBalancerInBound","etag":"W/\"a617b2f9-ab34-4ab2-a9b1-746f9be44160\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow inbound traffic from azure load balancer","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"AzureLoadBalancer","destinationAddressPrefix":"*","access":"Allow","priority":65001,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"DenyAllInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg1/defaultSecurityRules/DenyAllInBound","etag":"W/\"a617b2f9-ab34-4ab2-a9b1-746f9be44160\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Deny @@ -628,19 +652,19 @@ interactions: all inbound traffic","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":65500,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowVnetOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg4/defaultSecurityRules/AllowVnetOutBound","etag":"W/\"8624eece-7b94-4dbb-b250-a3e39b679cc1\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow outbound traffic from all VMs to all VMs in VNET","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"VirtualNetwork","access":"Allow","priority":65000,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowInternetOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg4/defaultSecurityRules/AllowInternetOutBound","etag":"W/\"8624eece-7b94-4dbb-b250-a3e39b679cc1\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow outbound traffic from all VMs to Internet","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"Internet","access":"Allow","priority":65001,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"DenyAllOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg4/defaultSecurityRules/DenyAllOutBound","etag":"W/\"8624eece-7b94-4dbb-b250-a3e39b679cc1\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Deny - all outbound traffic","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":65500,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}}]}},{"name":"rg-cleanupservice-nsg8","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg8","etag":"W/\"5898958e-9505-40d1-985f-98f5c41cd592\"","type":"Microsoft.Network/networkSecurityGroups","location":"eastus2","properties":{"provisioningState":"Succeeded","resourceGuid":"606305c8-eabe-4c41-b5b9-ee266ea3b743","securityRules":[{"name":"Cleanuptool-Allow-4001","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg8/securityRules/Cleanuptool-Allow-4001","etag":"W/\"5898958e-9505-40d1-985f-98f5c41cd592\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Allow","priority":4001,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-100","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg8/securityRules/Cleanuptool-Allow-100","etag":"W/\"5898958e-9505-40d1-985f-98f5c41cd592\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationAddressPrefix":"*","access":"Allow","priority":100,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":["3389","5985","5986","22","2222","1433","445","23","135"],"sourceAddressPrefixes":["167.220.148.0/23","131.107.147.0/24","131.107.159.0/24","131.107.160.0/24","131.107.174.0/24","167.220.24.0/24","167.220.26.0/24","167.220.238.0/27","167.220.238.128/27","167.220.238.192/27","167.220.238.64/27","167.220.232.0/23","167.220.255.0/25","167.220.242.0/27","167.220.242.128/27","167.220.242.192/27","167.220.242.64/27","94.245.87.0/24","167.220.196.0/23","194.69.104.0/25","191.234.97.0/26","167.220.0.0/23","167.220.2.0/24","207.68.190.32/27","13.106.78.32/27","10.254.32.0/20","10.97.136.0/22","13.106.174.32/27","13.106.4.96/27"],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-101","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg8/securityRules/Cleanuptool-Allow-101","etag":"W/\"5898958e-9505-40d1-985f-98f5c41cd592\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"*","access":"Allow","priority":101,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":["3389","5985","5986","22","2222","1433","445","23","135"],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-102","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg8/securityRules/Cleanuptool-Allow-102","etag":"W/\"5898958e-9505-40d1-985f-98f5c41cd592\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","sourceAddressPrefix":"AzureLoadBalancer","destinationAddressPrefix":"*","access":"Allow","priority":102,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":["3389","5985","5986","22","2222","1433","445","23","135"],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Deny-103","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg8/securityRules/Cleanuptool-Deny-103","etag":"W/\"5898958e-9505-40d1-985f-98f5c41cd592\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":103,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":["3389","5985","5986","22","2222","1433","445","23","135"],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}}],"defaultSecurityRules":[{"name":"AllowVnetInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg8/defaultSecurityRules/AllowVnetInBound","etag":"W/\"5898958e-9505-40d1-985f-98f5c41cd592\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow - inbound traffic from all VMs in VNET","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"VirtualNetwork","access":"Allow","priority":65000,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowAzureLoadBalancerInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg8/defaultSecurityRules/AllowAzureLoadBalancerInBound","etag":"W/\"5898958e-9505-40d1-985f-98f5c41cd592\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow - inbound traffic from azure load balancer","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"AzureLoadBalancer","destinationAddressPrefix":"*","access":"Allow","priority":65001,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"DenyAllInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg8/defaultSecurityRules/DenyAllInBound","etag":"W/\"5898958e-9505-40d1-985f-98f5c41cd592\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Deny - all inbound traffic","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":65500,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowVnetOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg8/defaultSecurityRules/AllowVnetOutBound","etag":"W/\"5898958e-9505-40d1-985f-98f5c41cd592\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow - outbound traffic from all VMs to all VMs in VNET","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"VirtualNetwork","access":"Allow","priority":65000,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowInternetOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg8/defaultSecurityRules/AllowInternetOutBound","etag":"W/\"5898958e-9505-40d1-985f-98f5c41cd592\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow - outbound traffic from all VMs to Internet","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"Internet","access":"Allow","priority":65001,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"DenyAllOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg8/defaultSecurityRules/DenyAllOutBound","etag":"W/\"5898958e-9505-40d1-985f-98f5c41cd592\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Deny - all outbound traffic","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":65500,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}}],"subnets":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ovaZones/providers/Microsoft.Network/virtualNetworks/TestVMVNET/subnets/TestVMSubnet"}]}},{"name":"TestVMNSG","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ovaZones/providers/Microsoft.Network/networkSecurityGroups/TestVMNSG","etag":"W/\"525dcd06-3dc1-485c-91c0-5a35ad4477fd\"","type":"Microsoft.Network/networkSecurityGroups","location":"eastus2","tags":{},"properties":{"provisioningState":"Succeeded","resourceGuid":"bf42f030-7b2d-470b-8faa-a2e9fea149b3","securityRules":[{"name":"default-allow-ssh","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ovaZones/providers/Microsoft.Network/networkSecurityGroups/TestVMNSG/securityRules/default-allow-ssh","etag":"W/\"525dcd06-3dc1-485c-91c0-5a35ad4477fd\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationPortRange":"22","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Allow","priority":1000,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}}],"defaultSecurityRules":[{"name":"AllowVnetInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ovaZones/providers/Microsoft.Network/networkSecurityGroups/TestVMNSG/defaultSecurityRules/AllowVnetInBound","etag":"W/\"525dcd06-3dc1-485c-91c0-5a35ad4477fd\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow - inbound traffic from all VMs in VNET","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"VirtualNetwork","access":"Allow","priority":65000,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowAzureLoadBalancerInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ovaZones/providers/Microsoft.Network/networkSecurityGroups/TestVMNSG/defaultSecurityRules/AllowAzureLoadBalancerInBound","etag":"W/\"525dcd06-3dc1-485c-91c0-5a35ad4477fd\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow - inbound traffic from azure load balancer","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"AzureLoadBalancer","destinationAddressPrefix":"*","access":"Allow","priority":65001,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"DenyAllInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ovaZones/providers/Microsoft.Network/networkSecurityGroups/TestVMNSG/defaultSecurityRules/DenyAllInBound","etag":"W/\"525dcd06-3dc1-485c-91c0-5a35ad4477fd\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Deny - all inbound traffic","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":65500,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowVnetOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ovaZones/providers/Microsoft.Network/networkSecurityGroups/TestVMNSG/defaultSecurityRules/AllowVnetOutBound","etag":"W/\"525dcd06-3dc1-485c-91c0-5a35ad4477fd\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow - outbound traffic from all VMs to all VMs in VNET","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"VirtualNetwork","access":"Allow","priority":65000,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowInternetOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ovaZones/providers/Microsoft.Network/networkSecurityGroups/TestVMNSG/defaultSecurityRules/AllowInternetOutBound","etag":"W/\"525dcd06-3dc1-485c-91c0-5a35ad4477fd\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow - outbound traffic from all VMs to Internet","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"Internet","access":"Allow","priority":65001,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"DenyAllOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ovaZones/providers/Microsoft.Network/networkSecurityGroups/TestVMNSG/defaultSecurityRules/DenyAllOutBound","etag":"W/\"525dcd06-3dc1-485c-91c0-5a35ad4477fd\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Deny - all outbound traffic","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":65500,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}}],"networkInterfaces":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ovaZones/providers/Microsoft.Network/networkInterfaces/TestVMVMNic"}]}},{"name":"rg-cleanupservice-nsg2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg2","etag":"W/\"57341b7e-5274-4b5b-82e6-3e051c81d145\"","type":"Microsoft.Network/networkSecurityGroups","location":"westus2","properties":{"provisioningState":"Succeeded","resourceGuid":"84d36bc6-a2b3-4fcd-bf96-fb48ff241a04","securityRules":[{"name":"Cleanuptool-Allow-4001","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg2/securityRules/Cleanuptool-Allow-4001","etag":"W/\"57341b7e-5274-4b5b-82e6-3e051c81d145\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Allow","priority":4001,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-100","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg2/securityRules/Cleanuptool-Allow-100","etag":"W/\"57341b7e-5274-4b5b-82e6-3e051c81d145\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationAddressPrefix":"*","access":"Allow","priority":100,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":["3389","5985","5986","22","2222","1433","445","23","135"],"sourceAddressPrefixes":["167.220.148.0/23","131.107.147.0/24","131.107.159.0/24","131.107.160.0/24","131.107.174.0/24","167.220.24.0/24","167.220.26.0/24","167.220.238.0/27","167.220.238.128/27","167.220.238.192/27","167.220.238.64/27","167.220.232.0/23","167.220.255.0/25","167.220.242.0/27","167.220.242.128/27","167.220.242.192/27","167.220.242.64/27","94.245.87.0/24","167.220.196.0/23","194.69.104.0/25","191.234.97.0/26","167.220.0.0/23","167.220.2.0/24","207.68.190.32/27","13.106.78.32/27","10.254.32.0/20","10.97.136.0/22","13.106.174.32/27","13.106.4.96/27"],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-101","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg2/securityRules/Cleanuptool-Allow-101","etag":"W/\"57341b7e-5274-4b5b-82e6-3e051c81d145\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"*","access":"Allow","priority":101,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":["3389","5985","5986","22","2222","1433","445","23","135"],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-102","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg2/securityRules/Cleanuptool-Allow-102","etag":"W/\"57341b7e-5274-4b5b-82e6-3e051c81d145\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","sourceAddressPrefix":"AzureLoadBalancer","destinationAddressPrefix":"*","access":"Allow","priority":102,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":["3389","5985","5986","22","2222","1433","445","23","135"],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Deny-103","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg2/securityRules/Cleanuptool-Deny-103","etag":"W/\"57341b7e-5274-4b5b-82e6-3e051c81d145\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":103,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":["3389","5985","5986","22","2222","1433","445","23","135"],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}}],"defaultSecurityRules":[{"name":"AllowVnetInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg2/defaultSecurityRules/AllowVnetInBound","etag":"W/\"57341b7e-5274-4b5b-82e6-3e051c81d145\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow + all outbound traffic","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":65500,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}}]}},{"name":"rg-cleanupservice-nsg9","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg9","etag":"W/\"33cec97a-0ce3-4efb-ae13-37c5dd7ff04e\"","type":"Microsoft.Network/networkSecurityGroups","location":"centralus","properties":{"provisioningState":"Succeeded","resourceGuid":"97da03ac-c5e0-4e69-8f9f-4a4d1b4a19ea","securityRules":[{"name":"Cleanuptool-Allow-4001","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg9/securityRules/Cleanuptool-Allow-4001","etag":"W/\"33cec97a-0ce3-4efb-ae13-37c5dd7ff04e\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Allow","priority":4001,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-100","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg9/securityRules/Cleanuptool-Allow-100","etag":"W/\"33cec97a-0ce3-4efb-ae13-37c5dd7ff04e\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationAddressPrefix":"*","access":"Allow","priority":100,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":["3389","5985","5986","22","2222","1433","445","23","135"],"sourceAddressPrefixes":["167.220.148.0/23","131.107.147.0/24","131.107.159.0/24","131.107.160.0/24","131.107.174.0/24","167.220.24.0/24","167.220.26.0/24","167.220.238.0/27","167.220.238.128/27","167.220.238.192/27","167.220.238.64/27","167.220.232.0/23","167.220.255.0/25","167.220.242.0/27","167.220.242.128/27","167.220.242.192/27","167.220.242.64/27","94.245.87.0/24","167.220.196.0/23","194.69.104.0/25","191.234.97.0/26","167.220.0.0/23","167.220.2.0/24","207.68.190.32/27","13.106.78.32/27","10.254.32.0/20","10.97.136.0/22","13.106.174.32/27","13.106.4.96/27"],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-101","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg9/securityRules/Cleanuptool-Allow-101","etag":"W/\"33cec97a-0ce3-4efb-ae13-37c5dd7ff04e\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"*","access":"Allow","priority":101,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":["3389","5985","5986","22","2222","1433","445","23","135"],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-102","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg9/securityRules/Cleanuptool-Allow-102","etag":"W/\"33cec97a-0ce3-4efb-ae13-37c5dd7ff04e\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","sourceAddressPrefix":"AzureLoadBalancer","destinationAddressPrefix":"*","access":"Allow","priority":102,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":["3389","5985","5986","22","2222","1433","445","23","135"],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Deny-103","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg9/securityRules/Cleanuptool-Deny-103","etag":"W/\"33cec97a-0ce3-4efb-ae13-37c5dd7ff04e\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":103,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":["3389","5985","5986","22","2222","1433","445","23","135"],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}}],"defaultSecurityRules":[{"name":"AllowVnetInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg9/defaultSecurityRules/AllowVnetInBound","etag":"W/\"33cec97a-0ce3-4efb-ae13-37c5dd7ff04e\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow + inbound traffic from all VMs in VNET","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"VirtualNetwork","access":"Allow","priority":65000,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowAzureLoadBalancerInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg9/defaultSecurityRules/AllowAzureLoadBalancerInBound","etag":"W/\"33cec97a-0ce3-4efb-ae13-37c5dd7ff04e\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow + inbound traffic from azure load balancer","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"AzureLoadBalancer","destinationAddressPrefix":"*","access":"Allow","priority":65001,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"DenyAllInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg9/defaultSecurityRules/DenyAllInBound","etag":"W/\"33cec97a-0ce3-4efb-ae13-37c5dd7ff04e\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Deny + all inbound traffic","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":65500,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowVnetOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg9/defaultSecurityRules/AllowVnetOutBound","etag":"W/\"33cec97a-0ce3-4efb-ae13-37c5dd7ff04e\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow + outbound traffic from all VMs to all VMs in VNET","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"VirtualNetwork","access":"Allow","priority":65000,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowInternetOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg9/defaultSecurityRules/AllowInternetOutBound","etag":"W/\"33cec97a-0ce3-4efb-ae13-37c5dd7ff04e\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow + outbound traffic from all VMs to Internet","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"Internet","access":"Allow","priority":65001,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"DenyAllOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg9/defaultSecurityRules/DenyAllOutBound","etag":"W/\"33cec97a-0ce3-4efb-ae13-37c5dd7ff04e\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Deny + all outbound traffic","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":65500,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}}]}},{"name":"rg-cleanupservice-nsg8","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg8","etag":"W/\"04027923-13a6-414b-a62b-77fdbd5ba3ee\"","type":"Microsoft.Network/networkSecurityGroups","location":"eastus2","properties":{"provisioningState":"Succeeded","resourceGuid":"606305c8-eabe-4c41-b5b9-ee266ea3b743","securityRules":[{"name":"Cleanuptool-Allow-4001","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg8/securityRules/Cleanuptool-Allow-4001","etag":"W/\"04027923-13a6-414b-a62b-77fdbd5ba3ee\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Allow","priority":4001,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-100","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg8/securityRules/Cleanuptool-Allow-100","etag":"W/\"04027923-13a6-414b-a62b-77fdbd5ba3ee\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationAddressPrefix":"*","access":"Allow","priority":100,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":["3389","5985","5986","22","2222","1433","445","23","135"],"sourceAddressPrefixes":["167.220.148.0/23","131.107.147.0/24","131.107.159.0/24","131.107.160.0/24","131.107.174.0/24","167.220.24.0/24","167.220.26.0/24","167.220.238.0/27","167.220.238.128/27","167.220.238.192/27","167.220.238.64/27","167.220.232.0/23","167.220.255.0/25","167.220.242.0/27","167.220.242.128/27","167.220.242.192/27","167.220.242.64/27","94.245.87.0/24","167.220.196.0/23","194.69.104.0/25","191.234.97.0/26","167.220.0.0/23","167.220.2.0/24","207.68.190.32/27","13.106.78.32/27","10.254.32.0/20","10.97.136.0/22","13.106.174.32/27","13.106.4.96/27"],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-101","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg8/securityRules/Cleanuptool-Allow-101","etag":"W/\"04027923-13a6-414b-a62b-77fdbd5ba3ee\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"*","access":"Allow","priority":101,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":["3389","5985","5986","22","2222","1433","445","23","135"],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-102","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg8/securityRules/Cleanuptool-Allow-102","etag":"W/\"04027923-13a6-414b-a62b-77fdbd5ba3ee\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","sourceAddressPrefix":"AzureLoadBalancer","destinationAddressPrefix":"*","access":"Allow","priority":102,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":["3389","5985","5986","22","2222","1433","445","23","135"],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Deny-103","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg8/securityRules/Cleanuptool-Deny-103","etag":"W/\"04027923-13a6-414b-a62b-77fdbd5ba3ee\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":103,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":["3389","5985","5986","22","2222","1433","445","23","135"],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}}],"defaultSecurityRules":[{"name":"AllowVnetInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg8/defaultSecurityRules/AllowVnetInBound","etag":"W/\"04027923-13a6-414b-a62b-77fdbd5ba3ee\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow + inbound traffic from all VMs in VNET","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"VirtualNetwork","access":"Allow","priority":65000,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowAzureLoadBalancerInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg8/defaultSecurityRules/AllowAzureLoadBalancerInBound","etag":"W/\"04027923-13a6-414b-a62b-77fdbd5ba3ee\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow + inbound traffic from azure load balancer","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"AzureLoadBalancer","destinationAddressPrefix":"*","access":"Allow","priority":65001,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"DenyAllInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg8/defaultSecurityRules/DenyAllInBound","etag":"W/\"04027923-13a6-414b-a62b-77fdbd5ba3ee\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Deny + all inbound traffic","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":65500,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowVnetOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg8/defaultSecurityRules/AllowVnetOutBound","etag":"W/\"04027923-13a6-414b-a62b-77fdbd5ba3ee\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow + outbound traffic from all VMs to all VMs in VNET","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"VirtualNetwork","access":"Allow","priority":65000,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowInternetOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg8/defaultSecurityRules/AllowInternetOutBound","etag":"W/\"04027923-13a6-414b-a62b-77fdbd5ba3ee\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow + outbound traffic from all VMs to Internet","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"Internet","access":"Allow","priority":65001,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"DenyAllOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg8/defaultSecurityRules/DenyAllOutBound","etag":"W/\"04027923-13a6-414b-a62b-77fdbd5ba3ee\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Deny + all outbound traffic","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":65500,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}}]}},{"name":"rg-cleanupservice-nsg2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg2","etag":"W/\"57341b7e-5274-4b5b-82e6-3e051c81d145\"","type":"Microsoft.Network/networkSecurityGroups","location":"westus2","properties":{"provisioningState":"Succeeded","resourceGuid":"84d36bc6-a2b3-4fcd-bf96-fb48ff241a04","securityRules":[{"name":"Cleanuptool-Allow-4001","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg2/securityRules/Cleanuptool-Allow-4001","etag":"W/\"57341b7e-5274-4b5b-82e6-3e051c81d145\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Allow","priority":4001,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-100","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg2/securityRules/Cleanuptool-Allow-100","etag":"W/\"57341b7e-5274-4b5b-82e6-3e051c81d145\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationAddressPrefix":"*","access":"Allow","priority":100,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":["3389","5985","5986","22","2222","1433","445","23","135"],"sourceAddressPrefixes":["167.220.148.0/23","131.107.147.0/24","131.107.159.0/24","131.107.160.0/24","131.107.174.0/24","167.220.24.0/24","167.220.26.0/24","167.220.238.0/27","167.220.238.128/27","167.220.238.192/27","167.220.238.64/27","167.220.232.0/23","167.220.255.0/25","167.220.242.0/27","167.220.242.128/27","167.220.242.192/27","167.220.242.64/27","94.245.87.0/24","167.220.196.0/23","194.69.104.0/25","191.234.97.0/26","167.220.0.0/23","167.220.2.0/24","207.68.190.32/27","13.106.78.32/27","10.254.32.0/20","10.97.136.0/22","13.106.174.32/27","13.106.4.96/27"],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-101","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg2/securityRules/Cleanuptool-Allow-101","etag":"W/\"57341b7e-5274-4b5b-82e6-3e051c81d145\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"*","access":"Allow","priority":101,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":["3389","5985","5986","22","2222","1433","445","23","135"],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-102","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg2/securityRules/Cleanuptool-Allow-102","etag":"W/\"57341b7e-5274-4b5b-82e6-3e051c81d145\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","sourceAddressPrefix":"AzureLoadBalancer","destinationAddressPrefix":"*","access":"Allow","priority":102,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":["3389","5985","5986","22","2222","1433","445","23","135"],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Deny-103","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg2/securityRules/Cleanuptool-Deny-103","etag":"W/\"57341b7e-5274-4b5b-82e6-3e051c81d145\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":103,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":["3389","5985","5986","22","2222","1433","445","23","135"],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}}],"defaultSecurityRules":[{"name":"AllowVnetInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg2/defaultSecurityRules/AllowVnetInBound","etag":"W/\"57341b7e-5274-4b5b-82e6-3e051c81d145\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow inbound traffic from all VMs in VNET","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"VirtualNetwork","access":"Allow","priority":65000,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowAzureLoadBalancerInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg2/defaultSecurityRules/AllowAzureLoadBalancerInBound","etag":"W/\"57341b7e-5274-4b5b-82e6-3e051c81d145\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow inbound traffic from azure load balancer","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"AzureLoadBalancer","destinationAddressPrefix":"*","access":"Allow","priority":65001,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"DenyAllInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg2/defaultSecurityRules/DenyAllInBound","etag":"W/\"57341b7e-5274-4b5b-82e6-3e051c81d145\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Deny all inbound traffic","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":65500,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowVnetOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg2/defaultSecurityRules/AllowVnetOutBound","etag":"W/\"57341b7e-5274-4b5b-82e6-3e051c81d145\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow @@ -658,21 +682,35 @@ interactions: all inbound traffic","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":65500,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowVnetOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/lmazuel-testcapture/providers/Microsoft.Network/networkSecurityGroups/lmazuel-testcapture-nsg/defaultSecurityRules/AllowVnetOutBound","etag":"W/\"c58b0479-56f8-4920-9393-ddaca786d8fd\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow outbound traffic from all VMs to all VMs in VNET","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"VirtualNetwork","access":"Allow","priority":65000,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowInternetOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/lmazuel-testcapture/providers/Microsoft.Network/networkSecurityGroups/lmazuel-testcapture-nsg/defaultSecurityRules/AllowInternetOutBound","etag":"W/\"c58b0479-56f8-4920-9393-ddaca786d8fd\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow outbound traffic from all VMs to Internet","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"Internet","access":"Allow","priority":65001,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"DenyAllOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/lmazuel-testcapture/providers/Microsoft.Network/networkSecurityGroups/lmazuel-testcapture-nsg/defaultSecurityRules/DenyAllOutBound","etag":"W/\"c58b0479-56f8-4920-9393-ddaca786d8fd\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Deny - all outbound traffic","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":65500,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}}],"networkInterfaces":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/lmazuel-testcapture/providers/Microsoft.Network/networkInterfaces/lmazuel-testcapture427"}]}}]}'} + all outbound traffic","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":65500,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}}],"networkInterfaces":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/lmazuel-testcapture/providers/Microsoft.Network/networkInterfaces/lmazuel-testcapture427"}]}},{"name":"rg-cleanupservice-nsg11","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg11","etag":"W/\"498d8fa5-2b01-4c54-a055-67d942694148\"","type":"Microsoft.Network/networkSecurityGroups","location":"francecentral","properties":{"provisioningState":"Succeeded","resourceGuid":"90672883-9d39-4637-8533-5ec905065e1b","securityRules":[{"name":"Cleanuptool-Allow-4001","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg11/securityRules/Cleanuptool-Allow-4001","etag":"W/\"498d8fa5-2b01-4c54-a055-67d942694148\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Allow","priority":4001,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-100","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg11/securityRules/Cleanuptool-Allow-100","etag":"W/\"498d8fa5-2b01-4c54-a055-67d942694148\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationAddressPrefix":"*","access":"Allow","priority":100,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":["3389","5985","5986","22","2222","1433","445","23","135"],"sourceAddressPrefixes":["167.220.148.0/23","131.107.147.0/24","131.107.159.0/24","131.107.160.0/24","131.107.174.0/24","167.220.24.0/24","167.220.26.0/24","167.220.238.0/27","167.220.238.128/27","167.220.238.192/27","167.220.238.64/27","167.220.232.0/23","167.220.255.0/25","167.220.242.0/27","167.220.242.128/27","167.220.242.192/27","167.220.242.64/27","94.245.87.0/24","167.220.196.0/23","194.69.104.0/25","191.234.97.0/26","167.220.0.0/23","167.220.2.0/24","207.68.190.32/27","13.106.78.32/27","10.254.32.0/20","10.97.136.0/22","13.106.174.32/27","13.106.4.96/27"],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-101","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg11/securityRules/Cleanuptool-Allow-101","etag":"W/\"498d8fa5-2b01-4c54-a055-67d942694148\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"*","access":"Allow","priority":101,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":["3389","5985","5986","22","2222","1433","445","23","135"],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-102","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg11/securityRules/Cleanuptool-Allow-102","etag":"W/\"498d8fa5-2b01-4c54-a055-67d942694148\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","sourceAddressPrefix":"AzureLoadBalancer","destinationAddressPrefix":"*","access":"Allow","priority":102,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":["3389","5985","5986","22","2222","1433","445","23","135"],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Deny-103","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg11/securityRules/Cleanuptool-Deny-103","etag":"W/\"498d8fa5-2b01-4c54-a055-67d942694148\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":103,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":["3389","5985","5986","22","2222","1433","445","23","135"],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}}],"defaultSecurityRules":[{"name":"AllowVnetInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg11/defaultSecurityRules/AllowVnetInBound","etag":"W/\"498d8fa5-2b01-4c54-a055-67d942694148\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow + inbound traffic from all VMs in VNET","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"VirtualNetwork","access":"Allow","priority":65000,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowAzureLoadBalancerInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg11/defaultSecurityRules/AllowAzureLoadBalancerInBound","etag":"W/\"498d8fa5-2b01-4c54-a055-67d942694148\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow + inbound traffic from azure load balancer","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"AzureLoadBalancer","destinationAddressPrefix":"*","access":"Allow","priority":65001,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"DenyAllInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg11/defaultSecurityRules/DenyAllInBound","etag":"W/\"498d8fa5-2b01-4c54-a055-67d942694148\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Deny + all inbound traffic","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":65500,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowVnetOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg11/defaultSecurityRules/AllowVnetOutBound","etag":"W/\"498d8fa5-2b01-4c54-a055-67d942694148\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow + outbound traffic from all VMs to all VMs in VNET","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"VirtualNetwork","access":"Allow","priority":65000,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowInternetOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg11/defaultSecurityRules/AllowInternetOutBound","etag":"W/\"498d8fa5-2b01-4c54-a055-67d942694148\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow + outbound traffic from all VMs to Internet","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"Internet","access":"Allow","priority":65001,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"DenyAllOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg11/defaultSecurityRules/DenyAllOutBound","etag":"W/\"498d8fa5-2b01-4c54-a055-67d942694148\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Deny + all outbound traffic","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":65500,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}}]}},{"name":"rg-cleanupservice-nsg13","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg13","etag":"W/\"6280b5a6-6982-4a2a-bd09-77a21831d6ba\"","type":"Microsoft.Network/networkSecurityGroups","location":"centraluseuap","properties":{"provisioningState":"Succeeded","resourceGuid":"7d99f083-6f70-4088-8e0d-bc484ada4d9c","securityRules":[{"name":"Cleanuptool-Allow-4001","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg13/securityRules/Cleanuptool-Allow-4001","etag":"W/\"6280b5a6-6982-4a2a-bd09-77a21831d6ba\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Allow","priority":4001,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-100","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg13/securityRules/Cleanuptool-Allow-100","etag":"W/\"6280b5a6-6982-4a2a-bd09-77a21831d6ba\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","destinationAddressPrefix":"*","access":"Allow","priority":100,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":["3389","5985","5986","22","2222","1433","445","23","135"],"sourceAddressPrefixes":["167.220.148.0/23","131.107.147.0/24","131.107.159.0/24","131.107.160.0/24","131.107.174.0/24","167.220.24.0/24","167.220.26.0/24","167.220.238.0/27","167.220.238.128/27","167.220.238.192/27","167.220.238.64/27","167.220.232.0/23","167.220.255.0/25","167.220.242.0/27","167.220.242.128/27","167.220.242.192/27","167.220.242.64/27","94.245.87.0/24","167.220.196.0/23","194.69.104.0/25","191.234.97.0/26","167.220.0.0/23","167.220.2.0/24","207.68.190.32/27","13.106.78.32/27","10.254.32.0/20","10.97.136.0/22","13.106.174.32/27","13.106.4.96/27"],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-101","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg13/securityRules/Cleanuptool-Allow-101","etag":"W/\"6280b5a6-6982-4a2a-bd09-77a21831d6ba\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"*","access":"Allow","priority":101,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":["3389","5985","5986","22","2222","1433","445","23","135"],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Allow-102","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg13/securityRules/Cleanuptool-Allow-102","etag":"W/\"6280b5a6-6982-4a2a-bd09-77a21831d6ba\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","sourceAddressPrefix":"AzureLoadBalancer","destinationAddressPrefix":"*","access":"Allow","priority":102,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":["3389","5985","5986","22","2222","1433","445","23","135"],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"Cleanuptool-Deny-103","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg13/securityRules/Cleanuptool-Deny-103","etag":"W/\"6280b5a6-6982-4a2a-bd09-77a21831d6ba\"","type":"Microsoft.Network/networkSecurityGroups/securityRules","properties":{"provisioningState":"Succeeded","protocol":"Tcp","sourcePortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":103,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":["3389","5985","5986","22","2222","1433","445","23","135"],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}}],"defaultSecurityRules":[{"name":"AllowVnetInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg13/defaultSecurityRules/AllowVnetInBound","etag":"W/\"6280b5a6-6982-4a2a-bd09-77a21831d6ba\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow + inbound traffic from all VMs in VNET","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"VirtualNetwork","access":"Allow","priority":65000,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowAzureLoadBalancerInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg13/defaultSecurityRules/AllowAzureLoadBalancerInBound","etag":"W/\"6280b5a6-6982-4a2a-bd09-77a21831d6ba\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow + inbound traffic from azure load balancer","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"AzureLoadBalancer","destinationAddressPrefix":"*","access":"Allow","priority":65001,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"DenyAllInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg13/defaultSecurityRules/DenyAllInBound","etag":"W/\"6280b5a6-6982-4a2a-bd09-77a21831d6ba\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Deny + all inbound traffic","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":65500,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowVnetOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg13/defaultSecurityRules/AllowVnetOutBound","etag":"W/\"6280b5a6-6982-4a2a-bd09-77a21831d6ba\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow + outbound traffic from all VMs to all VMs in VNET","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"VirtualNetwork","access":"Allow","priority":65000,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowInternetOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg13/defaultSecurityRules/AllowInternetOutBound","etag":"W/\"6280b5a6-6982-4a2a-bd09-77a21831d6ba\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow + outbound traffic from all VMs to Internet","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"Internet","access":"Allow","priority":65001,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"DenyAllOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg13/defaultSecurityRules/DenyAllOutBound","etag":"W/\"6280b5a6-6982-4a2a-bd09-77a21831d6ba\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Deny + all outbound traffic","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":65500,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}}]}}]}'} headers: cache-control: [no-cache] - content-length: ['880843'] + content-length: ['916074'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:28:53 GMT'] + date: ['Tue, 27 Nov 2018 20:17:53 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff] - x-ms-original-request-ids: [245454a8-28e7-4d7e-9ec2-b3214f716a56, b05728a5-f67d-4e25-898e-d49953a4ba45, - fab457be-3c30-4ddd-a683-1ed54dffc0c1, b3ac3e00-24e8-41a7-8a7f-1da0e87a2727, - a1194b56-1f3f-4d5e-85f4-8430785f7edf] + x-ms-original-request-ids: [8f7ed515-35ef-4cba-9807-46be033e7a1b, 88283561-19d8-426f-8c6f-3f38edecc22a, + 1f2493be-2c49-4073-a2f2-7cc15af7f2f6, d7b8aee6-583a-43de-b989-a68a38bbe7da, + 4406c29a-2ecb-4787-8072-c29a2670b598, eb9e11e5-7985-495c-95af-3d222ac1be7f, + ec581c01-34ed-4b70-b95d-6d4d94566c65, fc6a865c-d794-4334-bcee-f0ebabdbe4a5, + 499dc553-4190-4e80-b535-856498c80470, 93d96085-870b-4c4c-a1b8-266b880dd342] status: {code: 200, message: OK} - request: body: '{"properties": {"description": "New Test security rule", "protocol": "Tcp", @@ -685,14 +723,14 @@ interactions: Connection: [keep-alive] Content-Length: ['260'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/securityRules/pynewrulec575136b?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/securityRules/pynewrulec575136b?api-version=2018-10-01 response: body: {string: "{\r\n \"name\": \"pynewrulec575136b\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/securityRules/pynewrulec575136b\"\ - ,\r\n \"etag\": \"W/\\\"50cdc48f-8e38-483f-9478-86087e794897\\\"\",\r\n \ + ,\r\n \"etag\": \"W/\\\"2656cafb-4edc-440c-9440-707a50c21193\\\"\",\r\n \ \ \"type\": \"Microsoft.Network/networkSecurityGroups/securityRules\",\r\n\ \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"\ description\": \"New Test security rule\",\r\n \"protocol\": \"Tcp\",\r\ @@ -703,11 +741,11 @@ interactions: : [],\r\n \"sourceAddressPrefixes\": [],\r\n \"destinationAddressPrefixes\"\ : []\r\n }\r\n}"} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/ba1e053b-1968-40f2-bcaa-4221d6b13aa1?api-version=2018-08-01'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/4a54feed-b8f0-45fd-9ba4-e1617747f452?api-version=2018-10-01'] cache-control: [no-cache] content-length: ['882'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:28:54 GMT'] + date: ['Tue, 27 Nov 2018 20:17:55 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -721,17 +759,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/ba1e053b-1968-40f2-bcaa-4221d6b13aa1?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/4a54feed-b8f0-45fd-9ba4-e1617747f452?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} headers: cache-control: [no-cache] content-length: ['29'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:29:04 GMT'] + date: ['Tue, 27 Nov 2018 20:18:04 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -746,13 +784,13 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/securityRules/pynewrulec575136b?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/securityRules/pynewrulec575136b?api-version=2018-10-01 response: body: {string: "{\r\n \"name\": \"pynewrulec575136b\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/securityRules/pynewrulec575136b\"\ - ,\r\n \"etag\": \"W/\\\"b101b1d6-80b0-4af0-80cf-57fbc9b5f487\\\"\",\r\n \ + ,\r\n \"etag\": \"W/\\\"9a597373-450b-4473-9695-78f832cc43bf\\\"\",\r\n \ \ \"type\": \"Microsoft.Network/networkSecurityGroups/securityRules\",\r\n\ \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"\ description\": \"New Test security rule\",\r\n \"protocol\": \"Tcp\",\r\ @@ -766,8 +804,8 @@ interactions: cache-control: [no-cache] content-length: ['883'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:29:05 GMT'] - etag: [W/"b101b1d6-80b0-4af0-80cf-57fbc9b5f487"] + date: ['Tue, 27 Nov 2018 20:18:06 GMT'] + etag: [W/"9a597373-450b-4473-9695-78f832cc43bf"] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -782,14 +820,14 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/securityRules/pynewrulec575136b?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/securityRules/pynewrulec575136b?api-version=2018-10-01 response: body: {string: "{\r\n \"name\": \"pynewrulec575136b\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/securityRules/pynewrulec575136b\"\ - ,\r\n \"etag\": \"W/\\\"b101b1d6-80b0-4af0-80cf-57fbc9b5f487\\\"\",\r\n \ + ,\r\n \"etag\": \"W/\\\"9a597373-450b-4473-9695-78f832cc43bf\\\"\",\r\n \ \ \"type\": \"Microsoft.Network/networkSecurityGroups/securityRules\",\r\n\ \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"\ description\": \"New Test security rule\",\r\n \"protocol\": \"Tcp\",\r\ @@ -803,8 +841,8 @@ interactions: cache-control: [no-cache] content-length: ['883'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:29:06 GMT'] - etag: [W/"b101b1d6-80b0-4af0-80cf-57fbc9b5f487"] + date: ['Tue, 27 Nov 2018 20:18:06 GMT'] + etag: [W/"9a597373-450b-4473-9695-78f832cc43bf"] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -819,15 +857,15 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/securityRules?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/securityRules?api-version=2018-10-01 response: body: {string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"pysecgrouprulec575136b\"\ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/securityRules/pysecgrouprulec575136b\"\ - ,\r\n \"etag\": \"W/\\\"b101b1d6-80b0-4af0-80cf-57fbc9b5f487\\\"\",\r\ + ,\r\n \"etag\": \"W/\\\"9a597373-450b-4473-9695-78f832cc43bf\\\"\",\r\ \n \"type\": \"Microsoft.Network/networkSecurityGroups/securityRules\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ ,\r\n \"description\": \"Test security rule\",\r\n \"protocol\"\ @@ -838,7 +876,7 @@ interactions: \n \"destinationPortRanges\": [],\r\n \"sourceAddressPrefixes\"\ : [],\r\n \"destinationAddressPrefixes\": []\r\n }\r\n },\r\ \n {\r\n \"name\": \"pynewrulec575136b\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/securityRules/pynewrulec575136b\"\ - ,\r\n \"etag\": \"W/\\\"b101b1d6-80b0-4af0-80cf-57fbc9b5f487\\\"\",\r\ + ,\r\n \"etag\": \"W/\\\"9a597373-450b-4473-9695-78f832cc43bf\\\"\",\r\ \n \"type\": \"Microsoft.Network/networkSecurityGroups/securityRules\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ ,\r\n \"description\": \"New Test security rule\",\r\n \"protocol\"\ @@ -853,7 +891,7 @@ interactions: cache-control: [no-cache] content-length: ['1975'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:29:07 GMT'] + date: ['Tue, 27 Nov 2018 20:18:06 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -869,25 +907,25 @@ interactions: Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/securityRules/pynewrulec575136b?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b/securityRules/pynewrulec575136b?api-version=2018-10-01 response: body: {string: ''} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/b4c093db-df76-4ae9-b6cb-b3fd07551a90?api-version=2018-08-01'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/ab4ca7d9-3d9f-4201-98f2-29344b07d94a?api-version=2018-10-01'] cache-control: [no-cache] content-length: ['0'] - date: ['Tue, 11 Sep 2018 17:29:08 GMT'] + date: ['Tue, 27 Nov 2018 20:18:08 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/b4c093db-df76-4ae9-b6cb-b3fd07551a90?api-version=2018-08-01'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/ab4ca7d9-3d9f-4201-98f2-29344b07d94a?api-version=2018-10-01'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-deletes: ['14999'] + x-ms-ratelimit-remaining-subscription-deletes: ['14998'] status: {code: 202, message: Accepted} - request: body: null @@ -895,17 +933,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/b4c093db-df76-4ae9-b6cb-b3fd07551a90?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/ab4ca7d9-3d9f-4201-98f2-29344b07d94a?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} headers: cache-control: [no-cache] content-length: ['29'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:29:19 GMT'] + date: ['Tue, 27 Nov 2018 20:18:18 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -921,20 +959,20 @@ interactions: Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_network_security_groupsc575136b/providers/Microsoft.Network/networkSecurityGroups/pysecgroupc575136b?api-version=2018-10-01 response: body: {string: ''} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/227c7903-5339-4dce-9232-9e8608d0a094?api-version=2018-08-01'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/22a5f00c-51ba-4d09-af22-39beae5b3257?api-version=2018-10-01'] cache-control: [no-cache] content-length: ['0'] - date: ['Tue, 11 Sep 2018 17:29:19 GMT'] + date: ['Tue, 27 Nov 2018 20:18:19 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/227c7903-5339-4dce-9232-9e8608d0a094?api-version=2018-08-01'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/22a5f00c-51ba-4d09-af22-39beae5b3257?api-version=2018-10-01'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -947,17 +985,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/227c7903-5339-4dce-9232-9e8608d0a094?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/22a5f00c-51ba-4d09-af22-39beae5b3257?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} headers: cache-control: [no-cache] content-length: ['29'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:29:29 GMT'] + date: ['Tue, 27 Nov 2018 20:18:30 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] diff --git a/azure-mgmt-network/tests/recordings/test_mgmt_network.test_public_ip_addresses.yaml b/azure-mgmt-network/tests/recordings/test_mgmt_network.test_public_ip_addresses.yaml index 6c02272ad623..d7ae3608bbc1 100644 --- a/azure-mgmt-network/tests/recordings/test_mgmt_network.test_public_ip_addresses.yaml +++ b/azure-mgmt-network/tests/recordings/test_mgmt_network.test_public_ip_addresses.yaml @@ -8,27 +8,27 @@ interactions: Connection: [keep-alive] Content-Length: ['103'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_public_ip_addresses773e115f/providers/Microsoft.Network/publicIPAddresses/pyipname773e115f?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_public_ip_addresses773e115f/providers/Microsoft.Network/publicIPAddresses/pyipname773e115f?api-version=2018-10-01 response: body: {string: "{\r\n \"name\": \"pyipname773e115f\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_public_ip_addresses773e115f/providers/Microsoft.Network/publicIPAddresses/pyipname773e115f\"\ - ,\r\n \"etag\": \"W/\\\"a91c4fba-581d-4697-9cf2-84940ca78883\\\"\",\r\n \ + ,\r\n \"etag\": \"W/\\\"28c6b1ac-8609-49b3-8f85-d93888343337\\\"\",\r\n \ \ \"location\": \"westus\",\r\n \"tags\": {\r\n \"key\": \"value\"\r\n\ \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\ - \n \"resourceGuid\": \"fe82448c-667f-46a4-9ce2-674f722bc7c7\",\r\n \"\ + \n \"resourceGuid\": \"984607ac-855e-4830-b712-4e7fa0435ba2\",\r\n \"\ publicIPAddressVersion\": \"IPv4\",\r\n \"publicIPAllocationMethod\": \"\ Dynamic\",\r\n \"idleTimeoutInMinutes\": 4,\r\n \"ipTags\": []\r\n \ \ },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n \"sku\"\ : {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Regional\"\r\n }\r\n}"} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/ee4452f0-570d-4083-a953-0ff257c59629?api-version=2018-08-01'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/b55fc463-2438-4a23-8ded-810cf46ee445?api-version=2018-10-01'] cache-control: [no-cache] content-length: ['719'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:29:39 GMT'] + date: ['Tue, 27 Nov 2018 20:18:40 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -42,17 +42,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/ee4452f0-570d-4083-a953-0ff257c59629?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/b55fc463-2438-4a23-8ded-810cf46ee445?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} headers: cache-control: [no-cache] content-length: ['29'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:29:43 GMT'] + date: ['Tue, 27 Nov 2018 20:18:41 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -67,16 +67,16 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_public_ip_addresses773e115f/providers/Microsoft.Network/publicIPAddresses/pyipname773e115f?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_public_ip_addresses773e115f/providers/Microsoft.Network/publicIPAddresses/pyipname773e115f?api-version=2018-10-01 response: body: {string: "{\r\n \"name\": \"pyipname773e115f\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_public_ip_addresses773e115f/providers/Microsoft.Network/publicIPAddresses/pyipname773e115f\"\ - ,\r\n \"etag\": \"W/\\\"1a6766ed-d5cd-418d-8a79-f6d238c5b7de\\\"\",\r\n \ + ,\r\n \"etag\": \"W/\\\"54fda4c5-bc29-4ae1-831c-eed45ca0a5a5\\\"\",\r\n \ \ \"location\": \"westus\",\r\n \"tags\": {\r\n \"key\": \"value\"\r\n\ \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\ - \n \"resourceGuid\": \"fe82448c-667f-46a4-9ce2-674f722bc7c7\",\r\n \"\ + \n \"resourceGuid\": \"984607ac-855e-4830-b712-4e7fa0435ba2\",\r\n \"\ publicIPAddressVersion\": \"IPv4\",\r\n \"publicIPAllocationMethod\": \"\ Dynamic\",\r\n \"idleTimeoutInMinutes\": 4,\r\n \"ipTags\": []\r\n \ \ },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n \"sku\"\ @@ -85,8 +85,8 @@ interactions: cache-control: [no-cache] content-length: ['720'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:29:43 GMT'] - etag: [W/"1a6766ed-d5cd-418d-8a79-f6d238c5b7de"] + date: ['Tue, 27 Nov 2018 20:18:41 GMT'] + etag: [W/"54fda4c5-bc29-4ae1-831c-eed45ca0a5a5"] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -101,17 +101,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_public_ip_addresses773e115f/providers/Microsoft.Network/publicIPAddresses/pyipname773e115f?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_public_ip_addresses773e115f/providers/Microsoft.Network/publicIPAddresses/pyipname773e115f?api-version=2018-10-01 response: body: {string: "{\r\n \"name\": \"pyipname773e115f\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_public_ip_addresses773e115f/providers/Microsoft.Network/publicIPAddresses/pyipname773e115f\"\ - ,\r\n \"etag\": \"W/\\\"1a6766ed-d5cd-418d-8a79-f6d238c5b7de\\\"\",\r\n \ + ,\r\n \"etag\": \"W/\\\"54fda4c5-bc29-4ae1-831c-eed45ca0a5a5\\\"\",\r\n \ \ \"location\": \"westus\",\r\n \"tags\": {\r\n \"key\": \"value\"\r\n\ \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\ - \n \"resourceGuid\": \"fe82448c-667f-46a4-9ce2-674f722bc7c7\",\r\n \"\ + \n \"resourceGuid\": \"984607ac-855e-4830-b712-4e7fa0435ba2\",\r\n \"\ publicIPAddressVersion\": \"IPv4\",\r\n \"publicIPAllocationMethod\": \"\ Dynamic\",\r\n \"idleTimeoutInMinutes\": 4,\r\n \"ipTags\": []\r\n \ \ },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n \"sku\"\ @@ -120,8 +120,8 @@ interactions: cache-control: [no-cache] content-length: ['720'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:29:44 GMT'] - etag: [W/"1a6766ed-d5cd-418d-8a79-f6d238c5b7de"] + date: ['Tue, 27 Nov 2018 20:18:43 GMT'] + etag: [W/"54fda4c5-bc29-4ae1-831c-eed45ca0a5a5"] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -136,18 +136,18 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_public_ip_addresses773e115f/providers/Microsoft.Network/publicIPAddresses?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_public_ip_addresses773e115f/providers/Microsoft.Network/publicIPAddresses?api-version=2018-10-01 response: body: {string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"pyipname773e115f\"\ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_public_ip_addresses773e115f/providers/Microsoft.Network/publicIPAddresses/pyipname773e115f\"\ - ,\r\n \"etag\": \"W/\\\"1a6766ed-d5cd-418d-8a79-f6d238c5b7de\\\"\",\r\ + ,\r\n \"etag\": \"W/\\\"54fda4c5-bc29-4ae1-831c-eed45ca0a5a5\\\"\",\r\ \n \"location\": \"westus\",\r\n \"tags\": {\r\n \"key\"\ : \"value\"\r\n },\r\n \"properties\": {\r\n \"provisioningState\"\ - : \"Succeeded\",\r\n \"resourceGuid\": \"fe82448c-667f-46a4-9ce2-674f722bc7c7\"\ + : \"Succeeded\",\r\n \"resourceGuid\": \"984607ac-855e-4830-b712-4e7fa0435ba2\"\ ,\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n \"publicIPAllocationMethod\"\ : \"Dynamic\",\r\n \"idleTimeoutInMinutes\": 4,\r\n \"ipTags\"\ : []\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\"\ @@ -157,7 +157,7 @@ interactions: cache-control: [no-cache] content-length: ['833'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:29:44 GMT'] + date: ['Tue, 27 Nov 2018 20:18:44 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -172,25 +172,25 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/publicIPAddresses?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/publicIPAddresses?api-version=2018-10-01 response: - body: {string: '{"value":[{"name":"TestVM2PublicIP","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ovaTestGroup/providers/Microsoft.Network/publicIPAddresses/TestVM2PublicIP","etag":"W/\"e1af41e6-2dd1-4d1f-aacf-3f2e16ae0c2b\"","location":"westus","tags":{},"properties":{"provisioningState":"Succeeded","resourceGuid":"1f7eb760-9c92-4b78-9ba1-82a0f4d0660b","ipAddress":"40.83.179.84","publicIPAddressVersion":"IPv4","publicIPAllocationMethod":"Dynamic","idleTimeoutInMinutes":4,"ipTags":[],"ipConfiguration":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ovaTestGroup/providers/Microsoft.Network/networkInterfaces/TestVM2VMNic/ipConfigurations/ipconfigTestVM2"}},"type":"Microsoft.Network/publicIPAddresses","sku":{"name":"Basic","tier":"Regional"}},{"name":"TestVMPublicIP","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ovaTestGroup/providers/Microsoft.Network/publicIPAddresses/TestVMPublicIP","etag":"W/\"088b8baa-d85a-456d-be79-c5f20f884702\"","location":"westus","tags":{},"properties":{"provisioningState":"Succeeded","resourceGuid":"d72cad3d-9188-495b-a861-e377218205c6","ipAddress":"40.118.238.143","publicIPAddressVersion":"IPv4","publicIPAllocationMethod":"Dynamic","idleTimeoutInMinutes":4,"ipTags":[],"ipConfiguration":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ovaTestGroup/providers/Microsoft.Network/networkInterfaces/TestVMVMNic/ipConfigurations/ipconfigTestVM"}},"type":"Microsoft.Network/publicIPAddresses","sku":{"name":"Basic","tier":"Regional"}},{"name":"pyipname773e115f","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_public_ip_addresses773e115f/providers/Microsoft.Network/publicIPAddresses/pyipname773e115f","etag":"W/\"1a6766ed-d5cd-418d-8a79-f6d238c5b7de\"","location":"westus","tags":{"key":"value"},"properties":{"provisioningState":"Succeeded","resourceGuid":"fe82448c-667f-46a4-9ce2-674f722bc7c7","publicIPAddressVersion":"IPv4","publicIPAllocationMethod":"Dynamic","idleTimeoutInMinutes":4,"ipTags":[]},"type":"Microsoft.Network/publicIPAddresses","sku":{"name":"Basic","tier":"Regional"}},{"name":"wilxvm1PublicIP","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/wilxtest/providers/Microsoft.Network/publicIPAddresses/wilxvm1PublicIP","etag":"W/\"4dc70b4b-6ba6-4e50-b3cf-2a5c2dce8ae3\"","location":"westus","tags":{},"properties":{"provisioningState":"Succeeded","resourceGuid":"bd4d53aa-74bf-4f40-99e8-1ff0e208d023","ipAddress":"40.80.152.192","publicIPAddressVersion":"IPv4","publicIPAllocationMethod":"Dynamic","idleTimeoutInMinutes":4,"ipTags":[],"ipConfiguration":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/wilxtest/providers/Microsoft.Network/networkInterfaces/wilxvm1VMNic/ipConfigurations/ipconfigwilxvm1"}},"type":"Microsoft.Network/publicIPAddresses","sku":{"name":"Basic","tier":"Regional"}},{"name":"abunt4-ip","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/publicIPAddresses/abunt4-ip","etag":"W/\"50a61b21-ec3f-4944-b6b6-357562a5493a\"","location":"eastus","properties":{"provisioningState":"Succeeded","resourceGuid":"320dd781-6fa5-45bd-af3b-4fb978a4f2d7","publicIPAddressVersion":"IPv4","publicIPAllocationMethod":"Dynamic","idleTimeoutInMinutes":4,"ipTags":[],"ipConfiguration":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/networkInterfaces/abunt4752/ipConfigurations/ipconfig1"}},"type":"Microsoft.Network/publicIPAddresses","sku":{"name":"Basic","tier":"Regional"}},{"name":"abuntu-ip","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/publicIPAddresses/abuntu-ip","etag":"W/\"cf3c8454-e291-446b-8cb5-4b2f7927a12c\"","location":"eastus","properties":{"provisioningState":"Succeeded","resourceGuid":"73aaa5e5-7972-48d6-8d00-7938ecb0f664","publicIPAddressVersion":"IPv4","publicIPAllocationMethod":"Dynamic","idleTimeoutInMinutes":4,"ipTags":[],"ipConfiguration":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/networkInterfaces/abuntu259/ipConfigurations/ipconfig1"}},"type":"Microsoft.Network/publicIPAddresses","sku":{"name":"Basic","tier":"Regional"}},{"name":"abuntu1-ip","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/publicIPAddresses/abuntu1-ip","etag":"W/\"efcb7e38-e76d-475c-a887-dbccc1604e5e\"","location":"eastus","properties":{"provisioningState":"Succeeded","resourceGuid":"cbfdb571-d357-440e-80a3-201c7f3471e5","ipAddress":"168.61.46.46","publicIPAddressVersion":"IPv4","publicIPAllocationMethod":"Dynamic","idleTimeoutInMinutes":4,"ipTags":[],"ipConfiguration":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/networkInterfaces/abuntu1428/ipConfigurations/ipconfig1"}},"type":"Microsoft.Network/publicIPAddresses","sku":{"name":"Basic","tier":"Regional"}},{"name":"abuntu2-ip","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/publicIPAddresses/abuntu2-ip","etag":"W/\"54c0c172-5ba6-4a87-9585-2846004ed39a\"","location":"eastus","properties":{"provisioningState":"Succeeded","resourceGuid":"5371acf8-c61a-4eed-bf05-3afd06707b1a","publicIPAddressVersion":"IPv4","publicIPAllocationMethod":"Dynamic","idleTimeoutInMinutes":4,"ipTags":[],"ipConfiguration":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/networkInterfaces/abuntu2817/ipConfigurations/ipconfig1"}},"type":"Microsoft.Network/publicIPAddresses","sku":{"name":"Basic","tier":"Regional"}},{"name":"abuntu2ip781","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/publicIPAddresses/abuntu2ip781","etag":"W/\"09dc6cce-8df7-4fc4-9f5d-f51c373bb2ef\"","location":"eastus","properties":{"provisioningState":"Succeeded","resourceGuid":"acd13c2d-fd45-4854-9c64-528f4d7c9d8c","ipAddress":"168.62.58.31","publicIPAddressVersion":"IPv4","publicIPAllocationMethod":"Dynamic","idleTimeoutInMinutes":4,"ipTags":[],"ipConfiguration":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/networkInterfaces/abuntu2743/ipConfigurations/ipconfig1"}},"type":"Microsoft.Network/publicIPAddresses","sku":{"name":"Basic","tier":"Regional"}},{"name":"abuntu3-ip","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/publicIPAddresses/abuntu3-ip","etag":"W/\"9ea0568a-d4ec-47ff-8698-4bdbd6879b88\"","location":"eastus","properties":{"provisioningState":"Succeeded","resourceGuid":"d952bf8a-2dbe-4e0d-91dd-1adad99b00bc","publicIPAddressVersion":"IPv4","publicIPAllocationMethod":"Dynamic","idleTimeoutInMinutes":4,"ipTags":[],"ipConfiguration":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/networkInterfaces/abuntu3634/ipConfigurations/ipconfig1"}},"type":"Microsoft.Network/publicIPAddresses","sku":{"name":"Basic","tier":"Regional"}},{"name":"TestVMPublicIP","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ovaZones/providers/Microsoft.Network/publicIPAddresses/TestVMPublicIP","etag":"W/\"4fdcf497-97bd-4456-95bb-bbf08f3627bb\"","location":"eastus2","tags":{},"zones":["3"],"properties":{"provisioningState":"Succeeded","resourceGuid":"72f4614c-4429-4fb3-8c20-97d4ca7579ba","ipAddress":"104.46.103.2","publicIPAddressVersion":"IPv4","publicIPAllocationMethod":"Dynamic","idleTimeoutInMinutes":4,"ipTags":[],"ipConfiguration":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ovaZones/providers/Microsoft.Network/networkInterfaces/TestVMVMNic/ipConfigurations/ipconfigTestVM"}},"type":"Microsoft.Network/publicIPAddresses","sku":{"name":"Basic","tier":"Regional"}},{"name":"lmazuel-testcapture-ip","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/lmazuel-testcapture/providers/Microsoft.Network/publicIPAddresses/lmazuel-testcapture-ip","etag":"W/\"1d33ff0c-7e7d-4aba-8116-c2be7220c24b\"","location":"westus2","properties":{"provisioningState":"Succeeded","resourceGuid":"d9e5b204-e9aa-408a-a3c5-4cd7d4836a0f","publicIPAddressVersion":"IPv4","publicIPAllocationMethod":"Dynamic","idleTimeoutInMinutes":4,"ipTags":[],"ipConfiguration":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/lmazuel-testcapture/providers/Microsoft.Network/networkInterfaces/lmazuel-testcapture427/ipConfigurations/ipconfig1"}},"type":"Microsoft.Network/publicIPAddresses","sku":{"name":"Basic","tier":"Regional"}}]}'} + body: {string: '{"value":[{"name":"test-vm-vnet-2PublicIP","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/publicIPAddresses/test-vm-vnet-2PublicIP","etag":"W/\"e7290b9e-1ced-4865-b2cb-6b18fd45ba1e\"","location":"westus","tags":{},"properties":{"provisioningState":"Succeeded","resourceGuid":"149468bc-a594-46e2-9f8b-877f76934717","publicIPAddressVersion":"IPv4","publicIPAllocationMethod":"Dynamic","idleTimeoutInMinutes":4,"ipTags":[]},"type":"Microsoft.Network/publicIPAddresses","sku":{"name":"Basic","tier":"Regional"}},{"name":"test-vm-vnetPublicIP","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/publicIPAddresses/test-vm-vnetPublicIP","etag":"W/\"c4364685-2b06-499b-9991-0ef8c72ae17a\"","location":"westus","tags":{},"properties":{"provisioningState":"Succeeded","resourceGuid":"5f8ce00c-1074-489c-83e5-e0920884c46c","ipAddress":"40.118.190.107","publicIPAddressVersion":"IPv4","publicIPAllocationMethod":"Dynamic","idleTimeoutInMinutes":4,"ipTags":[],"ipConfiguration":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/networkInterfaces/test-vm-vnetVMNic/ipConfigurations/ipconfigtest-vm-vnet"}},"type":"Microsoft.Network/publicIPAddresses","sku":{"name":"Basic","tier":"Regional"}},{"name":"tosin-vm-generalizedPublicIP","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/publicIPAddresses/tosin-vm-generalizedPublicIP","etag":"W/\"a1db1f04-5311-4f6b-96ec-2f1f81ff7d39\"","location":"westus","tags":{},"properties":{"provisioningState":"Succeeded","resourceGuid":"b854a7c5-c55f-4518-99ec-bd67cf08257a","publicIPAddressVersion":"IPv4","publicIPAllocationMethod":"Dynamic","idleTimeoutInMinutes":4,"ipTags":[],"ipConfiguration":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/networkInterfaces/tosin-vm-generalizedVMNic/ipConfigurations/ipconfigtosin-vm-generalized"}},"type":"Microsoft.Network/publicIPAddresses","sku":{"name":"Basic","tier":"Regional"}},{"name":"tosin-vm-vnet-2PublicIP","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/publicIPAddresses/tosin-vm-vnet-2PublicIP","etag":"W/\"66649050-c505-4862-8247-192c9110c961\"","location":"westus","tags":{},"properties":{"provisioningState":"Succeeded","resourceGuid":"bef0d710-228d-4ba2-87ac-004c2c3ffe8d","publicIPAddressVersion":"IPv4","publicIPAllocationMethod":"Dynamic","idleTimeoutInMinutes":4,"ipTags":[]},"type":"Microsoft.Network/publicIPAddresses","sku":{"name":"Basic","tier":"Regional"}},{"name":"tosin-vmPublicIP","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/publicIPAddresses/tosin-vmPublicIP","etag":"W/\"c5cc35bd-e6f4-4da7-9e2d-933e21c37403\"","location":"westus","tags":{},"properties":{"provisioningState":"Succeeded","resourceGuid":"db3b6ff1-7e11-4f0e-a276-ba654c44f13f","ipAddress":"40.112.164.247","publicIPAddressVersion":"IPv4","publicIPAllocationMethod":"Dynamic","idleTimeoutInMinutes":4,"ipTags":[],"ipConfiguration":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/networkInterfaces/tosin-vmVMNic/ipConfigurations/ipconfigtosin-vm"}},"type":"Microsoft.Network/publicIPAddresses","sku":{"name":"Basic","tier":"Regional"}},{"name":"pyipname773e115f","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_public_ip_addresses773e115f/providers/Microsoft.Network/publicIPAddresses/pyipname773e115f","etag":"W/\"54fda4c5-bc29-4ae1-831c-eed45ca0a5a5\"","location":"westus","tags":{"key":"value"},"properties":{"provisioningState":"Succeeded","resourceGuid":"984607ac-855e-4830-b712-4e7fa0435ba2","publicIPAddressVersion":"IPv4","publicIPAllocationMethod":"Dynamic","idleTimeoutInMinutes":4,"ipTags":[]},"type":"Microsoft.Network/publicIPAddresses","sku":{"name":"Basic","tier":"Regional"}},{"name":"abunt4-ip","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/publicIPAddresses/abunt4-ip","etag":"W/\"50a61b21-ec3f-4944-b6b6-357562a5493a\"","location":"eastus","properties":{"provisioningState":"Succeeded","resourceGuid":"320dd781-6fa5-45bd-af3b-4fb978a4f2d7","publicIPAddressVersion":"IPv4","publicIPAllocationMethod":"Dynamic","idleTimeoutInMinutes":4,"ipTags":[],"ipConfiguration":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/networkInterfaces/abunt4752/ipConfigurations/ipconfig1"}},"type":"Microsoft.Network/publicIPAddresses","sku":{"name":"Basic","tier":"Regional"}},{"name":"abuntu-ip","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/publicIPAddresses/abuntu-ip","etag":"W/\"cf3c8454-e291-446b-8cb5-4b2f7927a12c\"","location":"eastus","properties":{"provisioningState":"Succeeded","resourceGuid":"73aaa5e5-7972-48d6-8d00-7938ecb0f664","publicIPAddressVersion":"IPv4","publicIPAllocationMethod":"Dynamic","idleTimeoutInMinutes":4,"ipTags":[],"ipConfiguration":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/networkInterfaces/abuntu259/ipConfigurations/ipconfig1"}},"type":"Microsoft.Network/publicIPAddresses","sku":{"name":"Basic","tier":"Regional"}},{"name":"abuntu1-ip","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/publicIPAddresses/abuntu1-ip","etag":"W/\"efcb7e38-e76d-475c-a887-dbccc1604e5e\"","location":"eastus","properties":{"provisioningState":"Succeeded","resourceGuid":"cbfdb571-d357-440e-80a3-201c7f3471e5","ipAddress":"168.61.46.46","publicIPAddressVersion":"IPv4","publicIPAllocationMethod":"Dynamic","idleTimeoutInMinutes":4,"ipTags":[],"ipConfiguration":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/networkInterfaces/abuntu1428/ipConfigurations/ipconfig1"}},"type":"Microsoft.Network/publicIPAddresses","sku":{"name":"Basic","tier":"Regional"}},{"name":"abuntu2-ip","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/publicIPAddresses/abuntu2-ip","etag":"W/\"54c0c172-5ba6-4a87-9585-2846004ed39a\"","location":"eastus","properties":{"provisioningState":"Succeeded","resourceGuid":"5371acf8-c61a-4eed-bf05-3afd06707b1a","publicIPAddressVersion":"IPv4","publicIPAllocationMethod":"Dynamic","idleTimeoutInMinutes":4,"ipTags":[],"ipConfiguration":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/networkInterfaces/abuntu2817/ipConfigurations/ipconfig1"}},"type":"Microsoft.Network/publicIPAddresses","sku":{"name":"Basic","tier":"Regional"}},{"name":"abuntu2ip781","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/publicIPAddresses/abuntu2ip781","etag":"W/\"09dc6cce-8df7-4fc4-9f5d-f51c373bb2ef\"","location":"eastus","properties":{"provisioningState":"Succeeded","resourceGuid":"acd13c2d-fd45-4854-9c64-528f4d7c9d8c","ipAddress":"168.62.58.31","publicIPAddressVersion":"IPv4","publicIPAllocationMethod":"Dynamic","idleTimeoutInMinutes":4,"ipTags":[],"ipConfiguration":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/networkInterfaces/abuntu2743/ipConfigurations/ipconfig1"}},"type":"Microsoft.Network/publicIPAddresses","sku":{"name":"Basic","tier":"Regional"}},{"name":"abuntu3-ip","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/publicIPAddresses/abuntu3-ip","etag":"W/\"9ea0568a-d4ec-47ff-8698-4bdbd6879b88\"","location":"eastus","properties":{"provisioningState":"Succeeded","resourceGuid":"d952bf8a-2dbe-4e0d-91dd-1adad99b00bc","publicIPAddressVersion":"IPv4","publicIPAllocationMethod":"Dynamic","idleTimeoutInMinutes":4,"ipTags":[],"ipConfiguration":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/networkInterfaces/abuntu3634/ipConfigurations/ipconfig1"}},"type":"Microsoft.Network/publicIPAddresses","sku":{"name":"Basic","tier":"Regional"}},{"name":"lmazuel-testcapture-ip","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/lmazuel-testcapture/providers/Microsoft.Network/publicIPAddresses/lmazuel-testcapture-ip","etag":"W/\"1d33ff0c-7e7d-4aba-8116-c2be7220c24b\"","location":"westus2","properties":{"provisioningState":"Succeeded","resourceGuid":"d9e5b204-e9aa-408a-a3c5-4cd7d4836a0f","publicIPAddressVersion":"IPv4","publicIPAllocationMethod":"Dynamic","idleTimeoutInMinutes":4,"ipTags":[],"ipConfiguration":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/lmazuel-testcapture/providers/Microsoft.Network/networkInterfaces/lmazuel-testcapture427/ipConfigurations/ipconfig1"}},"type":"Microsoft.Network/publicIPAddresses","sku":{"name":"Basic","tier":"Regional"}}]}'} headers: cache-control: [no-cache] - content-length: ['8778'] + content-length: ['9160'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:29:45 GMT'] + date: ['Tue, 27 Nov 2018 20:18:44 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] vary: [Accept-Encoding] x-content-type-options: [nosniff] - x-ms-original-request-ids: [f00e3842-90be-4028-90fd-60388bb9bf1a, 5ab69bf8-1036-4c59-a357-fd976ee374f7, - 3e1118a3-fa4e-47e8-b402-643cb0fe7205, 7efc5030-52f8-497b-88e1-7d3153084bfb] + x-ms-original-request-ids: [d4860ef5-51a0-4736-b245-36e747e01020, 8dbaa0ff-0ae4-43af-a4f1-c02279aa29aa, + cbb2a879-8b95-4297-a66b-fa826d824811] status: {code: 200, message: OK} - request: body: null @@ -199,20 +199,20 @@ interactions: Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_public_ip_addresses773e115f/providers/Microsoft.Network/publicIPAddresses/pyipname773e115f?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_public_ip_addresses773e115f/providers/Microsoft.Network/publicIPAddresses/pyipname773e115f?api-version=2018-10-01 response: body: {string: ''} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/24dba1c4-c973-45e4-a1dc-9792a51f174c?api-version=2018-08-01'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f2c68637-2e4a-41b0-8ebd-981178d5cee3?api-version=2018-10-01'] cache-control: [no-cache] content-length: ['0'] - date: ['Tue, 11 Sep 2018 17:29:46 GMT'] + date: ['Tue, 27 Nov 2018 20:18:45 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/24dba1c4-c973-45e4-a1dc-9792a51f174c?api-version=2018-08-01'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/f2c68637-2e4a-41b0-8ebd-981178d5cee3?api-version=2018-10-01'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -225,17 +225,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/24dba1c4-c973-45e4-a1dc-9792a51f174c?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f2c68637-2e4a-41b0-8ebd-981178d5cee3?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} headers: cache-control: [no-cache] content-length: ['29'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:29:56 GMT'] + date: ['Tue, 27 Nov 2018 20:18:55 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -250,18 +250,18 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_public_ip_addresses773e115f/providers/Microsoft.Network/publicIPAddresses?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_public_ip_addresses773e115f/providers/Microsoft.Network/publicIPAddresses?api-version=2018-10-01 response: body: {string: "{\r\n \"value\": []\r\n}"} headers: cache-control: [no-cache] content-length: ['19'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:29:57 GMT'] + date: ['Tue, 27 Nov 2018 20:18:56 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] diff --git a/azure-mgmt-network/tests/recordings/test_mgmt_network.test_routes.yaml b/azure-mgmt-network/tests/recordings/test_mgmt_network.test_routes.yaml index 75a257c6df73..d5f1aced0d2d 100644 --- a/azure-mgmt-network/tests/recordings/test_mgmt_network.test_routes.yaml +++ b/azure-mgmt-network/tests/recordings/test_mgmt_network.test_routes.yaml @@ -7,24 +7,24 @@ interactions: Connection: [keep-alive] Content-Length: ['22'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_routesb6760c2d/providers/Microsoft.Network/routeTables/pyroutetableb6760c2d?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_routesb6760c2d/providers/Microsoft.Network/routeTables/pyroutetableb6760c2d?api-version=2018-10-01 response: body: {string: "{\r\n \"name\": \"pyroutetableb6760c2d\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_routesb6760c2d/providers/Microsoft.Network/routeTables/pyroutetableb6760c2d\"\ - ,\r\n \"etag\": \"W/\\\"c340126e-a519-4470-b522-b0055133d01e\\\"\",\r\n \ + ,\r\n \"etag\": \"W/\\\"36086d68-c939-448d-8591-f410c289c267\\\"\",\r\n \ \ \"type\": \"Microsoft.Network/routeTables\",\r\n \"location\": \"westus\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \ - \ \"resourceGuid\": \"c405fa85-a4ae-4b61-8dc8-97a2d555ba79\",\r\n \"\ + \ \"resourceGuid\": \"43184aa7-c94c-42fa-92ea-5c8db0fbd15f\",\r\n \"\ disableBgpRoutePropagation\": false,\r\n \"routes\": []\r\n }\r\n}"} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/31bd4173-7caa-4281-995e-9ab439cc97d5?api-version=2018-08-01'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/cf8e782c-b75d-4cb8-8115-228788f8733d?api-version=2018-10-01'] cache-control: [no-cache] content-length: ['526'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:30:03 GMT'] + date: ['Tue, 27 Nov 2018 20:19:00 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -38,17 +38,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/31bd4173-7caa-4281-995e-9ab439cc97d5?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/cf8e782c-b75d-4cb8-8115-228788f8733d?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} headers: cache-control: [no-cache] content-length: ['29'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:30:13 GMT'] + date: ['Tue, 27 Nov 2018 20:19:11 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -63,23 +63,23 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_routesb6760c2d/providers/Microsoft.Network/routeTables/pyroutetableb6760c2d?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_routesb6760c2d/providers/Microsoft.Network/routeTables/pyroutetableb6760c2d?api-version=2018-10-01 response: body: {string: "{\r\n \"name\": \"pyroutetableb6760c2d\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_routesb6760c2d/providers/Microsoft.Network/routeTables/pyroutetableb6760c2d\"\ - ,\r\n \"etag\": \"W/\\\"b9c70fd0-692d-4724-9a7c-4491131ecbb2\\\"\",\r\n \ + ,\r\n \"etag\": \"W/\\\"fc2a2206-cdbe-4760-bab1-82207213c084\\\"\",\r\n \ \ \"type\": \"Microsoft.Network/routeTables\",\r\n \"location\": \"westus\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n\ - \ \"resourceGuid\": \"c405fa85-a4ae-4b61-8dc8-97a2d555ba79\",\r\n \"\ + \ \"resourceGuid\": \"43184aa7-c94c-42fa-92ea-5c8db0fbd15f\",\r\n \"\ disableBgpRoutePropagation\": false,\r\n \"routes\": []\r\n }\r\n}"} headers: cache-control: [no-cache] content-length: ['527'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:30:14 GMT'] - etag: [W/"b9c70fd0-692d-4724-9a7c-4491131ecbb2"] + date: ['Tue, 27 Nov 2018 20:19:12 GMT'] + etag: [W/"fc2a2206-cdbe-4760-bab1-82207213c084"] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -94,24 +94,24 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_routesb6760c2d/providers/Microsoft.Network/routeTables/pyroutetableb6760c2d?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_routesb6760c2d/providers/Microsoft.Network/routeTables/pyroutetableb6760c2d?api-version=2018-10-01 response: body: {string: "{\r\n \"name\": \"pyroutetableb6760c2d\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_routesb6760c2d/providers/Microsoft.Network/routeTables/pyroutetableb6760c2d\"\ - ,\r\n \"etag\": \"W/\\\"b9c70fd0-692d-4724-9a7c-4491131ecbb2\\\"\",\r\n \ + ,\r\n \"etag\": \"W/\\\"fc2a2206-cdbe-4760-bab1-82207213c084\\\"\",\r\n \ \ \"type\": \"Microsoft.Network/routeTables\",\r\n \"location\": \"westus\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n\ - \ \"resourceGuid\": \"c405fa85-a4ae-4b61-8dc8-97a2d555ba79\",\r\n \"\ + \ \"resourceGuid\": \"43184aa7-c94c-42fa-92ea-5c8db0fbd15f\",\r\n \"\ disableBgpRoutePropagation\": false,\r\n \"routes\": []\r\n }\r\n}"} headers: cache-control: [no-cache] content-length: ['527'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:30:15 GMT'] - etag: [W/"b9c70fd0-692d-4724-9a7c-4491131ecbb2"] + date: ['Tue, 27 Nov 2018 20:19:12 GMT'] + etag: [W/"fc2a2206-cdbe-4760-bab1-82207213c084"] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -126,25 +126,25 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_routesb6760c2d/providers/Microsoft.Network/routeTables?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_routesb6760c2d/providers/Microsoft.Network/routeTables?api-version=2018-10-01 response: body: {string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"pyroutetableb6760c2d\"\ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_routesb6760c2d/providers/Microsoft.Network/routeTables/pyroutetableb6760c2d\"\ - ,\r\n \"etag\": \"W/\\\"b9c70fd0-692d-4724-9a7c-4491131ecbb2\\\"\",\r\ + ,\r\n \"etag\": \"W/\\\"fc2a2206-cdbe-4760-bab1-82207213c084\\\"\",\r\ \n \"type\": \"Microsoft.Network/routeTables\",\r\n \"location\"\ : \"westus\",\r\n \"properties\": {\r\n \"provisioningState\"\ - : \"Succeeded\",\r\n \"resourceGuid\": \"c405fa85-a4ae-4b61-8dc8-97a2d555ba79\"\ + : \"Succeeded\",\r\n \"resourceGuid\": \"43184aa7-c94c-42fa-92ea-5c8db0fbd15f\"\ ,\r\n \"disableBgpRoutePropagation\": false,\r\n \"routes\"\ : []\r\n }\r\n }\r\n ]\r\n}"} headers: cache-control: [no-cache] content-length: ['604'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:30:16 GMT'] + date: ['Tue, 27 Nov 2018 20:19:13 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -159,25 +159,25 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/routeTables?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/routeTables?api-version=2018-10-01 response: body: {string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"pyroutetableb6760c2d\"\ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_routesb6760c2d/providers/Microsoft.Network/routeTables/pyroutetableb6760c2d\"\ - ,\r\n \"etag\": \"W/\\\"b9c70fd0-692d-4724-9a7c-4491131ecbb2\\\"\",\r\ + ,\r\n \"etag\": \"W/\\\"fc2a2206-cdbe-4760-bab1-82207213c084\\\"\",\r\ \n \"type\": \"Microsoft.Network/routeTables\",\r\n \"location\"\ : \"westus\",\r\n \"properties\": {\r\n \"provisioningState\"\ - : \"Succeeded\",\r\n \"resourceGuid\": \"c405fa85-a4ae-4b61-8dc8-97a2d555ba79\"\ + : \"Succeeded\",\r\n \"resourceGuid\": \"43184aa7-c94c-42fa-92ea-5c8db0fbd15f\"\ ,\r\n \"disableBgpRoutePropagation\": false,\r\n \"routes\"\ : []\r\n }\r\n }\r\n ]\r\n}"} headers: cache-control: [no-cache] content-length: ['604'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:30:16 GMT'] + date: ['Tue, 27 Nov 2018 20:19:14 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -194,29 +194,29 @@ interactions: Connection: [keep-alive] Content-Length: ['71'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_routesb6760c2d/providers/Microsoft.Network/routeTables/pyroutetableb6760c2d/routes/pyrouteb6760c2d?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_routesb6760c2d/providers/Microsoft.Network/routeTables/pyroutetableb6760c2d/routes/pyrouteb6760c2d?api-version=2018-10-01 response: body: {string: "{\r\n \"name\": \"pyrouteb6760c2d\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_routesb6760c2d/providers/Microsoft.Network/routeTables/pyroutetableb6760c2d/routes/pyrouteb6760c2d\"\ - ,\r\n \"etag\": \"W/\\\"f226aabe-4365-4560-9428-4532dc448158\\\"\",\r\n \ + ,\r\n \"etag\": \"W/\\\"8865f8f3-b7b3-4544-897a-60c8fc5eae11\\\"\",\r\n \ \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"\ addressPrefix\": \"10.1.0.0/16\",\r\n \"nextHopType\": \"None\"\r\n },\r\ \n \"type\": \"Microsoft.Network/routeTables/routes\"\r\n}"} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/7b2c0e0c-49e7-4720-84bb-38a8833e9082?api-version=2018-08-01'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/c6609695-d46f-41df-91aa-91c38b80d5cd?api-version=2018-10-01'] cache-control: [no-cache] content-length: ['469'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:30:17 GMT'] + date: ['Tue, 27 Nov 2018 20:19:15 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 201, message: Created} - request: body: null @@ -224,17 +224,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/7b2c0e0c-49e7-4720-84bb-38a8833e9082?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/c6609695-d46f-41df-91aa-91c38b80d5cd?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} headers: cache-control: [no-cache] content-length: ['29'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:30:28 GMT'] + date: ['Tue, 27 Nov 2018 20:19:25 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -249,13 +249,13 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_routesb6760c2d/providers/Microsoft.Network/routeTables/pyroutetableb6760c2d/routes/pyrouteb6760c2d?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_routesb6760c2d/providers/Microsoft.Network/routeTables/pyroutetableb6760c2d/routes/pyrouteb6760c2d?api-version=2018-10-01 response: body: {string: "{\r\n \"name\": \"pyrouteb6760c2d\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_routesb6760c2d/providers/Microsoft.Network/routeTables/pyroutetableb6760c2d/routes/pyrouteb6760c2d\"\ - ,\r\n \"etag\": \"W/\\\"c1254bf1-48c9-41fa-8222-2b09850f0011\\\"\",\r\n \ + ,\r\n \"etag\": \"W/\\\"71d6b98f-f58f-4417-9222-78aaadbfa9c5\\\"\",\r\n \ \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"\ addressPrefix\": \"10.1.0.0/16\",\r\n \"nextHopType\": \"None\"\r\n },\r\ \n \"type\": \"Microsoft.Network/routeTables/routes\"\r\n}"} @@ -263,8 +263,8 @@ interactions: cache-control: [no-cache] content-length: ['470'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:30:28 GMT'] - etag: [W/"c1254bf1-48c9-41fa-8222-2b09850f0011"] + date: ['Tue, 27 Nov 2018 20:19:26 GMT'] + etag: [W/"71d6b98f-f58f-4417-9222-78aaadbfa9c5"] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -279,14 +279,14 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_routesb6760c2d/providers/Microsoft.Network/routeTables/pyroutetableb6760c2d/routes/pyrouteb6760c2d?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_routesb6760c2d/providers/Microsoft.Network/routeTables/pyroutetableb6760c2d/routes/pyrouteb6760c2d?api-version=2018-10-01 response: body: {string: "{\r\n \"name\": \"pyrouteb6760c2d\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_routesb6760c2d/providers/Microsoft.Network/routeTables/pyroutetableb6760c2d/routes/pyrouteb6760c2d\"\ - ,\r\n \"etag\": \"W/\\\"c1254bf1-48c9-41fa-8222-2b09850f0011\\\"\",\r\n \ + ,\r\n \"etag\": \"W/\\\"71d6b98f-f58f-4417-9222-78aaadbfa9c5\\\"\",\r\n \ \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"\ addressPrefix\": \"10.1.0.0/16\",\r\n \"nextHopType\": \"None\"\r\n },\r\ \n \"type\": \"Microsoft.Network/routeTables/routes\"\r\n}"} @@ -294,8 +294,8 @@ interactions: cache-control: [no-cache] content-length: ['470'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:30:28 GMT'] - etag: [W/"c1254bf1-48c9-41fa-8222-2b09850f0011"] + date: ['Tue, 27 Nov 2018 20:19:26 GMT'] + etag: [W/"71d6b98f-f58f-4417-9222-78aaadbfa9c5"] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -310,15 +310,15 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_routesb6760c2d/providers/Microsoft.Network/routeTables/pyroutetableb6760c2d/routes?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_routesb6760c2d/providers/Microsoft.Network/routeTables/pyroutetableb6760c2d/routes?api-version=2018-10-01 response: body: {string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"pyrouteb6760c2d\"\ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_routesb6760c2d/providers/Microsoft.Network/routeTables/pyroutetableb6760c2d/routes/pyrouteb6760c2d\"\ - ,\r\n \"etag\": \"W/\\\"c1254bf1-48c9-41fa-8222-2b09850f0011\\\"\",\r\ + ,\r\n \"etag\": \"W/\\\"71d6b98f-f58f-4417-9222-78aaadbfa9c5\\\"\",\r\ \n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ ,\r\n \"addressPrefix\": \"10.1.0.0/16\",\r\n \"nextHopType\"\ : \"None\"\r\n },\r\n \"type\": \"Microsoft.Network/routeTables/routes\"\ @@ -327,7 +327,7 @@ interactions: cache-control: [no-cache] content-length: ['539'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:30:29 GMT'] + date: ['Tue, 27 Nov 2018 20:19:27 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -343,25 +343,25 @@ interactions: Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_routesb6760c2d/providers/Microsoft.Network/routeTables/pyroutetableb6760c2d/routes/pyrouteb6760c2d?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_routesb6760c2d/providers/Microsoft.Network/routeTables/pyroutetableb6760c2d/routes/pyrouteb6760c2d?api-version=2018-10-01 response: body: {string: ''} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/30dd66e6-08da-43a1-bafe-e6e9d7bfc063?api-version=2018-08-01'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/8118e9d4-998b-43d4-b2cb-25c23926227f?api-version=2018-10-01'] cache-control: [no-cache] content-length: ['0'] - date: ['Tue, 11 Sep 2018 17:30:30 GMT'] + date: ['Tue, 27 Nov 2018 20:19:28 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/30dd66e6-08da-43a1-bafe-e6e9d7bfc063?api-version=2018-08-01'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/8118e9d4-998b-43d4-b2cb-25c23926227f?api-version=2018-10-01'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-deletes: ['14998'] + x-ms-ratelimit-remaining-subscription-deletes: ['14999'] status: {code: 202, message: Accepted} - request: body: null @@ -369,17 +369,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/30dd66e6-08da-43a1-bafe-e6e9d7bfc063?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/8118e9d4-998b-43d4-b2cb-25c23926227f?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} headers: cache-control: [no-cache] content-length: ['29'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:30:41 GMT'] + date: ['Tue, 27 Nov 2018 20:19:40 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -395,25 +395,25 @@ interactions: Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_routesb6760c2d/providers/Microsoft.Network/routeTables/pyroutetableb6760c2d?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_routesb6760c2d/providers/Microsoft.Network/routeTables/pyroutetableb6760c2d?api-version=2018-10-01 response: body: {string: ''} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/783761de-be99-4e6e-ac9e-a30ba16bea02?api-version=2018-08-01'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/710ed284-8a43-4f33-ac3f-12d438c00ef1?api-version=2018-10-01'] cache-control: [no-cache] content-length: ['0'] - date: ['Tue, 11 Sep 2018 17:30:41 GMT'] + date: ['Tue, 27 Nov 2018 20:19:39 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/783761de-be99-4e6e-ac9e-a30ba16bea02?api-version=2018-08-01'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/710ed284-8a43-4f33-ac3f-12d438c00ef1?api-version=2018-10-01'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-deletes: ['14998'] + x-ms-ratelimit-remaining-subscription-deletes: ['14999'] status: {code: 202, message: Accepted} - request: body: null @@ -421,17 +421,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/783761de-be99-4e6e-ac9e-a30ba16bea02?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/710ed284-8a43-4f33-ac3f-12d438c00ef1?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} headers: cache-control: [no-cache] content-length: ['29'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:30:52 GMT'] + date: ['Tue, 27 Nov 2018 20:19:50 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] diff --git a/azure-mgmt-network/tests/recordings/test_mgmt_network.test_subnets.yaml b/azure-mgmt-network/tests/recordings/test_mgmt_network.test_subnets.yaml index 66e18217f128..dd9a297f5b0c 100644 --- a/azure-mgmt-network/tests/recordings/test_mgmt_network.test_subnets.yaml +++ b/azure-mgmt-network/tests/recordings/test_mgmt_network.test_subnets.yaml @@ -10,34 +10,34 @@ interactions: Connection: [keep-alive] Content-Length: ['303'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_subnetsc2cc0c8f/providers/Microsoft.Network/virtualNetworks/pysubnetc2cc0c8f?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_subnetsc2cc0c8f/providers/Microsoft.Network/virtualNetworks/pysubnetc2cc0c8f?api-version=2018-10-01 response: body: {string: "{\r\n \"name\": \"pysubnetc2cc0c8f\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_subnetsc2cc0c8f/providers/Microsoft.Network/virtualNetworks/pysubnetc2cc0c8f\"\ - ,\r\n \"etag\": \"W/\\\"df417357-f9d8-4791-8e9d-9dd2b00a4b1e\\\"\",\r\n \ + ,\r\n \"etag\": \"W/\\\"070aa743-0aef-4f4f-88d3-cc04c102c650\\\"\",\r\n \ \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \ - \ \"resourceGuid\": \"486be941-5249-4dac-b5a4-9ff241bc1b45\",\r\n \"\ + \ \"resourceGuid\": \"14fa8524-200c-4c35-b8dd-e89e3e7aec89\",\r\n \"\ addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\ \r\n ]\r\n },\r\n \"dhcpOptions\": {\r\n \"dnsServers\": [\r\ \n \"10.1.1.1\",\r\n \"10.1.2.4\"\r\n ]\r\n },\r\n \ \ \"subnets\": [\r\n {\r\n \"name\": \"pysubnetonec2cc0c8f\"\ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_subnetsc2cc0c8f/providers/Microsoft.Network/virtualNetworks/pysubnetc2cc0c8f/subnets/pysubnetonec2cc0c8f\"\ - ,\r\n \"etag\": \"W/\\\"df417357-f9d8-4791-8e9d-9dd2b00a4b1e\\\"\"\ + ,\r\n \"etag\": \"W/\\\"070aa743-0aef-4f4f-88d3-cc04c102c650\\\"\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\ ,\r\n \"addressPrefix\": \"10.0.1.0/24\",\r\n \"delegations\"\ : []\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\ \r\n }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\"\ : false,\r\n \"enableVmProtection\": false\r\n }\r\n}"} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/6633a6e3-54a8-4b50-9486-dd86210114a0?api-version=2018-08-01'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/b1d9920a-dafd-4f1f-b02e-377931d3ae91?api-version=2018-10-01'] cache-control: [no-cache] content-length: ['1339'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:30:58 GMT'] + date: ['Tue, 27 Nov 2018 20:19:56 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -51,17 +51,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/6633a6e3-54a8-4b50-9486-dd86210114a0?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/b1d9920a-dafd-4f1f-b02e-377931d3ae91?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:31:01 GMT'] + date: ['Tue, 27 Nov 2018 20:19:59 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -76,17 +76,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/6633a6e3-54a8-4b50-9486-dd86210114a0?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/b1d9920a-dafd-4f1f-b02e-377931d3ae91?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} headers: cache-control: [no-cache] content-length: ['29'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:31:12 GMT'] + date: ['Tue, 27 Nov 2018 20:20:09 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -101,22 +101,22 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_subnetsc2cc0c8f/providers/Microsoft.Network/virtualNetworks/pysubnetc2cc0c8f?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_subnetsc2cc0c8f/providers/Microsoft.Network/virtualNetworks/pysubnetc2cc0c8f?api-version=2018-10-01 response: body: {string: "{\r\n \"name\": \"pysubnetc2cc0c8f\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_subnetsc2cc0c8f/providers/Microsoft.Network/virtualNetworks/pysubnetc2cc0c8f\"\ - ,\r\n \"etag\": \"W/\\\"fe714d29-b8e1-4604-9392-f650dc7dfbee\\\"\",\r\n \ + ,\r\n \"etag\": \"W/\\\"9c122e25-df67-48a2-aad8-465186eedeb1\\\"\",\r\n \ \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n\ - \ \"resourceGuid\": \"486be941-5249-4dac-b5a4-9ff241bc1b45\",\r\n \"\ + \ \"resourceGuid\": \"14fa8524-200c-4c35-b8dd-e89e3e7aec89\",\r\n \"\ addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\ \r\n ]\r\n },\r\n \"dhcpOptions\": {\r\n \"dnsServers\": [\r\ \n \"10.1.1.1\",\r\n \"10.1.2.4\"\r\n ]\r\n },\r\n \ \ \"subnets\": [\r\n {\r\n \"name\": \"pysubnetonec2cc0c8f\"\ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_subnetsc2cc0c8f/providers/Microsoft.Network/virtualNetworks/pysubnetc2cc0c8f/subnets/pysubnetonec2cc0c8f\"\ - ,\r\n \"etag\": \"W/\\\"fe714d29-b8e1-4604-9392-f650dc7dfbee\\\"\"\ + ,\r\n \"etag\": \"W/\\\"9c122e25-df67-48a2-aad8-465186eedeb1\\\"\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ ,\r\n \"addressPrefix\": \"10.0.1.0/24\",\r\n \"delegations\"\ : []\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\ @@ -126,8 +126,8 @@ interactions: cache-control: [no-cache] content-length: ['1341'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:31:12 GMT'] - etag: [W/"fe714d29-b8e1-4604-9392-f650dc7dfbee"] + date: ['Tue, 27 Nov 2018 20:20:10 GMT'] + etag: [W/"9c122e25-df67-48a2-aad8-465186eedeb1"] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -144,23 +144,23 @@ interactions: Connection: [keep-alive] Content-Length: ['79'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_subnetsc2cc0c8f/providers/Microsoft.Network/virtualNetworks/pysubnetc2cc0c8f/subnets/pysubnettwoc2cc0c8f?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_subnetsc2cc0c8f/providers/Microsoft.Network/virtualNetworks/pysubnetc2cc0c8f/subnets/pysubnettwoc2cc0c8f?api-version=2018-10-01 response: body: {string: "{\r\n \"name\": \"pysubnettwoc2cc0c8f\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_subnetsc2cc0c8f/providers/Microsoft.Network/virtualNetworks/pysubnetc2cc0c8f/subnets/pysubnettwoc2cc0c8f\"\ - ,\r\n \"etag\": \"W/\\\"50085daa-8ab9-44f5-bc88-5d58f0b12d7e\\\"\",\r\n \ + ,\r\n \"etag\": \"W/\\\"7a3e12e0-c96b-4f34-8594-6b9199936c74\\\"\",\r\n \ \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"\ addressPrefix\": \"10.0.2.0/24\",\r\n \"delegations\": []\r\n },\r\n \ \ \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n}"} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/adf356ca-ee88-48de-9e7d-5f7f9375fb45?api-version=2018-08-01'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/720582d1-7377-40b7-85ac-1925850582f0?api-version=2018-10-01'] cache-control: [no-cache] content-length: ['480'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:31:14 GMT'] + date: ['Tue, 27 Nov 2018 20:20:11 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -174,17 +174,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/adf356ca-ee88-48de-9e7d-5f7f9375fb45?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/720582d1-7377-40b7-85ac-1925850582f0?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} headers: cache-control: [no-cache] content-length: ['29'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:31:17 GMT'] + date: ['Tue, 27 Nov 2018 20:20:14 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -199,13 +199,13 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_subnetsc2cc0c8f/providers/Microsoft.Network/virtualNetworks/pysubnetc2cc0c8f/subnets/pysubnettwoc2cc0c8f?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_subnetsc2cc0c8f/providers/Microsoft.Network/virtualNetworks/pysubnetc2cc0c8f/subnets/pysubnettwoc2cc0c8f?api-version=2018-10-01 response: body: {string: "{\r\n \"name\": \"pysubnettwoc2cc0c8f\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_subnetsc2cc0c8f/providers/Microsoft.Network/virtualNetworks/pysubnetc2cc0c8f/subnets/pysubnettwoc2cc0c8f\"\ - ,\r\n \"etag\": \"W/\\\"471707a8-0403-427e-b680-2b8ececba098\\\"\",\r\n \ + ,\r\n \"etag\": \"W/\\\"00b92456-8388-4255-a72c-53dc9cc4bd68\\\"\",\r\n \ \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"\ addressPrefix\": \"10.0.2.0/24\",\r\n \"delegations\": []\r\n },\r\n \ \ \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n}"} @@ -213,8 +213,8 @@ interactions: cache-control: [no-cache] content-length: ['481'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:31:18 GMT'] - etag: [W/"471707a8-0403-427e-b680-2b8ececba098"] + date: ['Tue, 27 Nov 2018 20:20:15 GMT'] + etag: [W/"00b92456-8388-4255-a72c-53dc9cc4bd68"] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -229,29 +229,29 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_subnetsc2cc0c8f/providers/Microsoft.Network/virtualNetworks/pysubnetc2cc0c8f?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_subnetsc2cc0c8f/providers/Microsoft.Network/virtualNetworks/pysubnetc2cc0c8f?api-version=2018-10-01 response: body: {string: "{\r\n \"name\": \"pysubnetc2cc0c8f\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_subnetsc2cc0c8f/providers/Microsoft.Network/virtualNetworks/pysubnetc2cc0c8f\"\ - ,\r\n \"etag\": \"W/\\\"471707a8-0403-427e-b680-2b8ececba098\\\"\",\r\n \ + ,\r\n \"etag\": \"W/\\\"00b92456-8388-4255-a72c-53dc9cc4bd68\\\"\",\r\n \ \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n\ - \ \"resourceGuid\": \"486be941-5249-4dac-b5a4-9ff241bc1b45\",\r\n \"\ + \ \"resourceGuid\": \"14fa8524-200c-4c35-b8dd-e89e3e7aec89\",\r\n \"\ addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\ \r\n ]\r\n },\r\n \"dhcpOptions\": {\r\n \"dnsServers\": [\r\ \n \"10.1.1.1\",\r\n \"10.1.2.4\"\r\n ]\r\n },\r\n \ \ \"subnets\": [\r\n {\r\n \"name\": \"pysubnetonec2cc0c8f\"\ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_subnetsc2cc0c8f/providers/Microsoft.Network/virtualNetworks/pysubnetc2cc0c8f/subnets/pysubnetonec2cc0c8f\"\ - ,\r\n \"etag\": \"W/\\\"471707a8-0403-427e-b680-2b8ececba098\\\"\"\ + ,\r\n \"etag\": \"W/\\\"00b92456-8388-4255-a72c-53dc9cc4bd68\\\"\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ ,\r\n \"addressPrefix\": \"10.0.1.0/24\",\r\n \"delegations\"\ : []\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\ \r\n },\r\n {\r\n \"name\": \"pysubnettwoc2cc0c8f\",\r\n\ \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_subnetsc2cc0c8f/providers/Microsoft.Network/virtualNetworks/pysubnetc2cc0c8f/subnets/pysubnettwoc2cc0c8f\"\ - ,\r\n \"etag\": \"W/\\\"471707a8-0403-427e-b680-2b8ececba098\\\"\"\ + ,\r\n \"etag\": \"W/\\\"00b92456-8388-4255-a72c-53dc9cc4bd68\\\"\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ ,\r\n \"addressPrefix\": \"10.0.2.0/24\",\r\n \"delegations\"\ : []\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\ @@ -261,8 +261,8 @@ interactions: cache-control: [no-cache] content-length: ['1891'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:31:18 GMT'] - etag: [W/"471707a8-0403-427e-b680-2b8ececba098"] + date: ['Tue, 27 Nov 2018 20:20:15 GMT'] + etag: [W/"00b92456-8388-4255-a72c-53dc9cc4bd68"] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -277,14 +277,14 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_subnetsc2cc0c8f/providers/Microsoft.Network/virtualNetworks/pysubnetc2cc0c8f/subnets/pysubnettwoc2cc0c8f?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_subnetsc2cc0c8f/providers/Microsoft.Network/virtualNetworks/pysubnetc2cc0c8f/subnets/pysubnettwoc2cc0c8f?api-version=2018-10-01 response: body: {string: "{\r\n \"name\": \"pysubnettwoc2cc0c8f\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_subnetsc2cc0c8f/providers/Microsoft.Network/virtualNetworks/pysubnetc2cc0c8f/subnets/pysubnettwoc2cc0c8f\"\ - ,\r\n \"etag\": \"W/\\\"471707a8-0403-427e-b680-2b8ececba098\\\"\",\r\n \ + ,\r\n \"etag\": \"W/\\\"00b92456-8388-4255-a72c-53dc9cc4bd68\\\"\",\r\n \ \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"\ addressPrefix\": \"10.0.2.0/24\",\r\n \"delegations\": []\r\n },\r\n \ \ \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n}"} @@ -292,8 +292,8 @@ interactions: cache-control: [no-cache] content-length: ['481'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:31:19 GMT'] - etag: [W/"471707a8-0403-427e-b680-2b8ececba098"] + date: ['Tue, 27 Nov 2018 20:20:17 GMT'] + etag: [W/"00b92456-8388-4255-a72c-53dc9cc4bd68"] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -308,21 +308,21 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_subnetsc2cc0c8f/providers/Microsoft.Network/virtualNetworks/pysubnetc2cc0c8f/subnets?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_subnetsc2cc0c8f/providers/Microsoft.Network/virtualNetworks/pysubnetc2cc0c8f/subnets?api-version=2018-10-01 response: body: {string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"pysubnetonec2cc0c8f\"\ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_subnetsc2cc0c8f/providers/Microsoft.Network/virtualNetworks/pysubnetc2cc0c8f/subnets/pysubnetonec2cc0c8f\"\ - ,\r\n \"etag\": \"W/\\\"471707a8-0403-427e-b680-2b8ececba098\\\"\",\r\ + ,\r\n \"etag\": \"W/\\\"00b92456-8388-4255-a72c-53dc9cc4bd68\\\"\",\r\ \n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ ,\r\n \"addressPrefix\": \"10.0.1.0/24\",\r\n \"delegations\"\ : []\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\ \r\n },\r\n {\r\n \"name\": \"pysubnettwoc2cc0c8f\",\r\n \"\ id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_subnetsc2cc0c8f/providers/Microsoft.Network/virtualNetworks/pysubnetc2cc0c8f/subnets/pysubnettwoc2cc0c8f\"\ - ,\r\n \"etag\": \"W/\\\"471707a8-0403-427e-b680-2b8ececba098\\\"\",\r\ + ,\r\n \"etag\": \"W/\\\"00b92456-8388-4255-a72c-53dc9cc4bd68\\\"\",\r\ \n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ ,\r\n \"addressPrefix\": \"10.0.2.0/24\",\r\n \"delegations\"\ : []\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\ @@ -331,7 +331,7 @@ interactions: cache-control: [no-cache] content-length: ['1078'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:31:19 GMT'] + date: ['Tue, 27 Nov 2018 20:20:16 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -347,20 +347,20 @@ interactions: Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_subnetsc2cc0c8f/providers/Microsoft.Network/virtualNetworks/pysubnetc2cc0c8f/subnets/pysubnettwoc2cc0c8f?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_subnetsc2cc0c8f/providers/Microsoft.Network/virtualNetworks/pysubnetc2cc0c8f/subnets/pysubnettwoc2cc0c8f?api-version=2018-10-01 response: body: {string: ''} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/94f796a8-6948-4fbc-96ba-eba847a6a269?api-version=2018-08-01'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/b856246e-f977-4db2-aae5-321b8d159f93?api-version=2018-10-01'] cache-control: [no-cache] content-length: ['0'] - date: ['Tue, 11 Sep 2018 17:31:20 GMT'] + date: ['Tue, 27 Nov 2018 20:20:18 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/94f796a8-6948-4fbc-96ba-eba847a6a269?api-version=2018-08-01'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/b856246e-f977-4db2-aae5-321b8d159f93?api-version=2018-10-01'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -373,17 +373,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/94f796a8-6948-4fbc-96ba-eba847a6a269?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/b856246e-f977-4db2-aae5-321b8d159f93?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} headers: cache-control: [no-cache] content-length: ['29'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:31:31 GMT'] + date: ['Tue, 27 Nov 2018 20:20:28 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] diff --git a/azure-mgmt-network/tests/recordings/test_mgmt_network.test_usages.yaml b/azure-mgmt-network/tests/recordings/test_mgmt_network.test_usages.yaml index d2c80c0f2976..c81618eebef5 100644 --- a/azure-mgmt-network/tests/recordings/test_mgmt_network.test_usages.yaml +++ b/azure-mgmt-network/tests/recordings/test_mgmt_network.test_usages.yaml @@ -5,166 +5,170 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages?api-version=2018-10-01 response: - body: {string: "{\r\n \"value\": [\r\n {\r\n \"currentValue\": 3.0,\r\ - \n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/VirtualNetworks\"\ - ,\r\n \"limit\": 1000.0,\r\n \"name\": {\r\n \"localizedValue\"\ + body: {string: "{\r\n \"value\": [\r\n {\r\n \"currentValue\": 3,\r\n\ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/VirtualNetworks\"\ + ,\r\n \"limit\": 1000,\r\n \"name\": {\r\n \"localizedValue\"\ : \"Virtual Networks\",\r\n \"value\": \"VirtualNetworks\"\r\n \ \ },\r\n \"unit\": \"Count\"\r\n },\r\n {\r\n \"currentValue\"\ - : 0.0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/StaticPublicIPAddresses\"\ - ,\r\n \"limit\": 200.0,\r\n \"name\": {\r\n \"localizedValue\"\ + : 0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/StaticPublicIPAddresses\"\ + ,\r\n \"limit\": 200,\r\n \"name\": {\r\n \"localizedValue\"\ : \"Static Public IP Addresses\",\r\n \"value\": \"StaticPublicIPAddresses\"\ \r\n },\r\n \"unit\": \"Count\"\r\n },\r\n {\r\n \"currentValue\"\ - : 6.0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/NetworkSecurityGroups\"\ - ,\r\n \"limit\": 5000.0,\r\n \"name\": {\r\n \"localizedValue\"\ + : 8,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/NetworkSecurityGroups\"\ + ,\r\n \"limit\": 5000,\r\n \"name\": {\r\n \"localizedValue\"\ : \"Network Security Groups\",\r\n \"value\": \"NetworkSecurityGroups\"\ \r\n },\r\n \"unit\": \"Count\"\r\n },\r\n {\r\n \"currentValue\"\ - : 3.0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/PublicIPAddresses\"\ - ,\r\n \"limit\": 200.0,\r\n \"name\": {\r\n \"localizedValue\"\ + : 5,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/PublicIPAddresses\"\ + ,\r\n \"limit\": 1000,\r\n \"name\": {\r\n \"localizedValue\"\ : \"Public IP Addresses\",\r\n \"value\": \"PublicIPAddresses\"\r\n\ \ },\r\n \"unit\": \"Count\"\r\n },\r\n {\r\n \"currentValue\"\ - : 0.0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/PublicIpPrefixes\"\ - ,\r\n \"limit\": 2147483647.0,\r\n \"name\": {\r\n \"localizedValue\"\ + : 0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/PublicIpPrefixes\"\ + ,\r\n \"limit\": 2147483647,\r\n \"name\": {\r\n \"localizedValue\"\ : \"Public Ip Prefixes\",\r\n \"value\": \"PublicIpPrefixes\"\r\n \ \ },\r\n \"unit\": \"Count\"\r\n },\r\n {\r\n \"currentValue\"\ - : 3.0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/NetworkInterfaces\"\ - ,\r\n \"limit\": 24000.0,\r\n \"name\": {\r\n \"localizedValue\"\ + : 3,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/NetworkInterfaces\"\ + ,\r\n \"limit\": 65536,\r\n \"name\": {\r\n \"localizedValue\"\ : \"Network Interfaces\",\r\n \"value\": \"NetworkInterfaces\"\r\n\ \ },\r\n \"unit\": \"Count\"\r\n },\r\n {\r\n \"currentValue\"\ - : 0.0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/InterfaceEndpoints\"\ - ,\r\n \"limit\": 24000.0,\r\n \"name\": {\r\n \"localizedValue\"\ + : 0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/InterfaceEndpoints\"\ + ,\r\n \"limit\": 65536,\r\n \"name\": {\r\n \"localizedValue\"\ : \"Interface Endpoints\",\r\n \"value\": \"InterfaceEndpoints\"\r\n\ \ },\r\n \"unit\": \"Count\"\r\n },\r\n {\r\n \"currentValue\"\ - : 0.0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/LoadBalancers\"\ - ,\r\n \"limit\": 100.0,\r\n \"name\": {\r\n \"localizedValue\"\ + : 0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/LoadBalancers\"\ + ,\r\n \"limit\": 1000,\r\n \"name\": {\r\n \"localizedValue\"\ : \"Load Balancers\",\r\n \"value\": \"LoadBalancers\"\r\n },\r\ \n \"unit\": \"Count\"\r\n },\r\n {\r\n \"currentValue\":\ - \ 0.0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/PrivateLinkServices\"\ - ,\r\n \"limit\": 1000.0,\r\n \"name\": {\r\n \"localizedValue\"\ + \ 0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/PrivateLinkServices\"\ + ,\r\n \"limit\": 1000,\r\n \"name\": {\r\n \"localizedValue\"\ : \"Private Link Services\",\r\n \"value\": \"PrivateLinkServices\"\ \r\n },\r\n \"unit\": \"Count\"\r\n },\r\n {\r\n \"currentValue\"\ - : 0.0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/ApplicationGateways\"\ - ,\r\n \"limit\": 50.0,\r\n \"name\": {\r\n \"localizedValue\"\ + : 0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/ApplicationGateways\"\ + ,\r\n \"limit\": 1000,\r\n \"name\": {\r\n \"localizedValue\"\ : \"Application Gateways\",\r\n \"value\": \"ApplicationGateways\"\r\ \n },\r\n \"unit\": \"Count\"\r\n },\r\n {\r\n \"currentValue\"\ - : 0.0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/RouteTables\"\ - ,\r\n \"limit\": 200.0,\r\n \"name\": {\r\n \"localizedValue\"\ + : 0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/RouteTables\"\ + ,\r\n \"limit\": 200,\r\n \"name\": {\r\n \"localizedValue\"\ : \"Route Tables\",\r\n \"value\": \"RouteTables\"\r\n },\r\n\ - \ \"unit\": \"Count\"\r\n },\r\n {\r\n \"currentValue\": 0.0,\r\ + \ \"unit\": \"Count\"\r\n },\r\n {\r\n \"currentValue\": 0,\r\ \n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/RouteFilters\"\ - ,\r\n \"limit\": 1000.0,\r\n \"name\": {\r\n \"localizedValue\"\ + ,\r\n \"limit\": 1000,\r\n \"name\": {\r\n \"localizedValue\"\ : \"Route Filters\",\r\n \"value\": \"RouteFilters\"\r\n },\r\n\ - \ \"unit\": \"Count\"\r\n },\r\n {\r\n \"currentValue\": 0.0,\r\ + \ \"unit\": \"Count\"\r\n },\r\n {\r\n \"currentValue\": 0,\r\ \n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/NetworkWatchers\"\ - ,\r\n \"limit\": 1.0,\r\n \"name\": {\r\n \"localizedValue\"\ + ,\r\n \"limit\": 1,\r\n \"name\": {\r\n \"localizedValue\"\ : \"Network Watchers\",\r\n \"value\": \"NetworkWatchers\"\r\n \ \ },\r\n \"unit\": \"Count\"\r\n },\r\n {\r\n \"currentValue\"\ - : 0.0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/PacketCaptures\"\ - ,\r\n \"limit\": 100.0,\r\n \"name\": {\r\n \"localizedValue\"\ + : 0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/PacketCaptures\"\ + ,\r\n \"limit\": 100,\r\n \"name\": {\r\n \"localizedValue\"\ : \"Packet Captures\",\r\n \"value\": \"PacketCaptures\"\r\n },\r\ \n \"unit\": \"Count\"\r\n },\r\n {\r\n \"currentValue\":\ - \ 0.0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/ApplicationSecurityGroups\"\ - ,\r\n \"limit\": 3000.0,\r\n \"name\": {\r\n \"localizedValue\"\ + \ 0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/ApplicationSecurityGroups\"\ + ,\r\n \"limit\": 3000,\r\n \"name\": {\r\n \"localizedValue\"\ : \"Application Security Groups.\",\r\n \"value\": \"ApplicationSecurityGroups\"\ \r\n },\r\n \"unit\": \"Count\"\r\n },\r\n {\r\n \"currentValue\"\ - : 0.0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/DdosProtectionPlans\"\ - ,\r\n \"limit\": 1.0,\r\n \"name\": {\r\n \"localizedValue\"\ + : 0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/DdosProtectionPlans\"\ + ,\r\n \"limit\": 1,\r\n \"name\": {\r\n \"localizedValue\"\ : \"DDoS Protection Plans.\",\r\n \"value\": \"DdosProtectionPlans\"\ \r\n },\r\n \"unit\": \"Count\"\r\n },\r\n {\r\n \"currentValue\"\ - : 0.0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/ServiceEndpointPolicies\"\ - ,\r\n \"limit\": 500.0,\r\n \"name\": {\r\n \"localizedValue\"\ + : 0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/DdosCustomPolicies\"\ + ,\r\n \"limit\": 200,\r\n \"name\": {\r\n \"localizedValue\"\ + : \"DDoS customized policies\",\r\n \"value\": \"DdosCustomPolicies\"\ + \r\n },\r\n \"unit\": \"Count\"\r\n },\r\n {\r\n \"currentValue\"\ + : 0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/ServiceEndpointPolicies\"\ + ,\r\n \"limit\": 500,\r\n \"name\": {\r\n \"localizedValue\"\ : \"Service Endpoint Policies\",\r\n \"value\": \"ServiceEndpointPolicies\"\ \r\n },\r\n \"unit\": \"Count\"\r\n },\r\n {\r\n \"currentValue\"\ - : 0.0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/NetworkIntentPolicies\"\ - ,\r\n \"limit\": 200.0,\r\n \"name\": {\r\n \"localizedValue\"\ + : 0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/NetworkIntentPolicies\"\ + ,\r\n \"limit\": 200,\r\n \"name\": {\r\n \"localizedValue\"\ : \"Network Intent Policies\",\r\n \"value\": \"NetworkIntentPolicies\"\ \r\n },\r\n \"unit\": \"Count\"\r\n },\r\n {\r\n \"currentValue\"\ - : 0.0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/StandardSkuLoadBalancers\"\ - ,\r\n \"limit\": 100.0,\r\n \"name\": {\r\n \"localizedValue\"\ + : 0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/StandardSkuLoadBalancers\"\ + ,\r\n \"limit\": 1000,\r\n \"name\": {\r\n \"localizedValue\"\ : \"Standard Sku Load Balancers\",\r\n \"value\": \"StandardSkuLoadBalancers\"\ \r\n },\r\n \"unit\": \"Count\"\r\n },\r\n {\r\n \"currentValue\"\ - : 0.0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/StandardSkuPublicIpAddresses\"\ - ,\r\n \"limit\": 200.0,\r\n \"name\": {\r\n \"localizedValue\"\ + : 0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/StandardSkuPublicIpAddresses\"\ + ,\r\n \"limit\": 200,\r\n \"name\": {\r\n \"localizedValue\"\ : \"Standard Sku Public IP Addresses\",\r\n \"value\": \"StandardSkuPublicIpAddresses\"\ \r\n },\r\n \"unit\": \"Count\"\r\n },\r\n {\r\n \"currentValue\"\ - : 0.0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/DnsServersPerVirtualNetwork\"\ - ,\r\n \"limit\": 25.0,\r\n \"name\": {\r\n \"localizedValue\"\ + : 0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/DnsServersPerVirtualNetwork\"\ + ,\r\n \"limit\": 25,\r\n \"name\": {\r\n \"localizedValue\"\ : \"DNS servers per Virtual Network\",\r\n \"value\": \"DnsServersPerVirtualNetwork\"\ \r\n },\r\n \"unit\": \"Count\"\r\n },\r\n {\r\n \"currentValue\"\ - : 0.0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/SubnetsPerVirtualNetwork\"\ - ,\r\n \"limit\": 3000.0,\r\n \"name\": {\r\n \"localizedValue\"\ + : 0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/SubnetsPerVirtualNetwork\"\ + ,\r\n \"limit\": 3000,\r\n \"name\": {\r\n \"localizedValue\"\ : \"Subnets per Virtual Network\",\r\n \"value\": \"SubnetsPerVirtualNetwork\"\ \r\n },\r\n \"unit\": \"Count\"\r\n },\r\n {\r\n \"currentValue\"\ - : 0.0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/IPConfigurationsPerVirtualNetwork\"\ - ,\r\n \"limit\": 65536.0,\r\n \"name\": {\r\n \"localizedValue\"\ + : 0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/IPConfigurationsPerVirtualNetwork\"\ + ,\r\n \"limit\": 65536,\r\n \"name\": {\r\n \"localizedValue\"\ : \"IP Configurations per Virtual Network\",\r\n \"value\": \"IPConfigurationsPerVirtualNetwork\"\ \r\n },\r\n \"unit\": \"Count\"\r\n },\r\n {\r\n \"currentValue\"\ - : 0.0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/PeeringsPerVirtualNetwork\"\ - ,\r\n \"limit\": 100.0,\r\n \"name\": {\r\n \"localizedValue\"\ + : 0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/PeeringsPerVirtualNetwork\"\ + ,\r\n \"limit\": 100,\r\n \"name\": {\r\n \"localizedValue\"\ : \"Peerings per Virtual Network\",\r\n \"value\": \"PeeringsPerVirtualNetwork\"\ \r\n },\r\n \"unit\": \"Count\"\r\n },\r\n {\r\n \"currentValue\"\ - : 0.0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/SecurityRulesPerNetworkSecurityGroup\"\ - ,\r\n \"limit\": 1000.0,\r\n \"name\": {\r\n \"localizedValue\"\ + : 0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/SecurityRulesPerNetworkSecurityGroup\"\ + ,\r\n \"limit\": 1000,\r\n \"name\": {\r\n \"localizedValue\"\ : \"Security rules per Network Security Group\",\r\n \"value\": \"\ SecurityRulesPerNetworkSecurityGroup\"\r\n },\r\n \"unit\": \"Count\"\ - \r\n },\r\n {\r\n \"currentValue\": 0.0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/SecurityRulesPerNetworkIntentPolicy\"\ - ,\r\n \"limit\": 100.0,\r\n \"name\": {\r\n \"localizedValue\"\ + \r\n },\r\n {\r\n \"currentValue\": 0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/SecurityRulesPerNetworkIntentPolicy\"\ + ,\r\n \"limit\": 100,\r\n \"name\": {\r\n \"localizedValue\"\ : \"Security rules per Network Intent Policy\",\r\n \"value\": \"SecurityRulesPerNetworkIntentPolicy\"\ \r\n },\r\n \"unit\": \"Count\"\r\n },\r\n {\r\n \"currentValue\"\ - : 0.0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/RoutesPerNetworkIntentPolicy\"\ - ,\r\n \"limit\": 100.0,\r\n \"name\": {\r\n \"localizedValue\"\ + : 0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/RoutesPerNetworkIntentPolicy\"\ + ,\r\n \"limit\": 100,\r\n \"name\": {\r\n \"localizedValue\"\ : \"Routes per Network Intent Policy\",\r\n \"value\": \"RoutesPerNetworkIntentPolicy\"\ \r\n },\r\n \"unit\": \"Count\"\r\n },\r\n {\r\n \"currentValue\"\ - : 0.0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/SecurityRuleAddressesOrPortsPerNetworkSecurityGroup\"\ - ,\r\n \"limit\": 4000.0,\r\n \"name\": {\r\n \"localizedValue\"\ + : 0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/SecurityRuleAddressesOrPortsPerNetworkSecurityGroup\"\ + ,\r\n \"limit\": 4000,\r\n \"name\": {\r\n \"localizedValue\"\ : \"Security rules addresses or ports per Network Security Group\",\r\n \ \ \"value\": \"SecurityRuleAddressesOrPortsPerNetworkSecurityGroup\"\r\ \n },\r\n \"unit\": \"Count\"\r\n },\r\n {\r\n \"currentValue\"\ - : 0.0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/InboundRulesPerLoadBalancer\"\ - ,\r\n \"limit\": 250.0,\r\n \"name\": {\r\n \"localizedValue\"\ + : 0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/InboundRulesPerLoadBalancer\"\ + ,\r\n \"limit\": 250,\r\n \"name\": {\r\n \"localizedValue\"\ : \"Inbound Rules per Load Balancer\",\r\n \"value\": \"InboundRulesPerLoadBalancer\"\ \r\n },\r\n \"unit\": \"Count\"\r\n },\r\n {\r\n \"currentValue\"\ - : 0.0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/FrontendIPConfigurationPerLoadBalancer\"\ - ,\r\n \"limit\": 10.0,\r\n \"name\": {\r\n \"localizedValue\"\ + : 0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/FrontendIPConfigurationPerLoadBalancer\"\ + ,\r\n \"limit\": 200,\r\n \"name\": {\r\n \"localizedValue\"\ : \"Frontend IP Configurations per Load Balancer\",\r\n \"value\":\ \ \"FrontendIPConfigurationPerLoadBalancer\"\r\n },\r\n \"unit\"\ - : \"Count\"\r\n },\r\n {\r\n \"currentValue\": 0.0,\r\n \"\ - id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/OutboundRulesPerLoadBalancer\"\ - ,\r\n \"limit\": 5.0,\r\n \"name\": {\r\n \"localizedValue\"\ + : \"Count\"\r\n },\r\n {\r\n \"currentValue\": 0,\r\n \"id\"\ + : \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/OutboundRulesPerLoadBalancer\"\ + ,\r\n \"limit\": 5,\r\n \"name\": {\r\n \"localizedValue\"\ : \"Outbound Rules per Load Balancer\",\r\n \"value\": \"OutboundRulesPerLoadBalancer\"\ \r\n },\r\n \"unit\": \"Count\"\r\n },\r\n {\r\n \"currentValue\"\ - : 0.0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/RoutesPerRouteTable\"\ - ,\r\n \"limit\": 400.0,\r\n \"name\": {\r\n \"localizedValue\"\ + : 0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/RoutesPerRouteTable\"\ + ,\r\n \"limit\": 400,\r\n \"name\": {\r\n \"localizedValue\"\ : \"Routes per Route Table\",\r\n \"value\": \"RoutesPerRouteTable\"\ \r\n },\r\n \"unit\": \"Count\"\r\n },\r\n {\r\n \"currentValue\"\ - : 0.0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/SecondaryIPConfigurationsPerNetworkInterface\"\ - ,\r\n \"limit\": 256.0,\r\n \"name\": {\r\n \"localizedValue\"\ + : 0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/SecondaryIPConfigurationsPerNetworkInterface\"\ + ,\r\n \"limit\": 256,\r\n \"name\": {\r\n \"localizedValue\"\ : \"Secondary IP Configurations per Network Interface\",\r\n \"value\"\ : \"SecondaryIPConfigurationsPerNetworkInterface\"\r\n },\r\n \"\ - unit\": \"Count\"\r\n },\r\n {\r\n \"currentValue\": 0.0,\r\n \ - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/InboundRulesPerNetworkInterface\"\ - ,\r\n \"limit\": 500.0,\r\n \"name\": {\r\n \"localizedValue\"\ + unit\": \"Count\"\r\n },\r\n {\r\n \"currentValue\": 0,\r\n \ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/InboundRulesPerNetworkInterface\"\ + ,\r\n \"limit\": 500,\r\n \"name\": {\r\n \"localizedValue\"\ : \"Inbound rules per Network Interface\",\r\n \"value\": \"InboundRulesPerNetworkInterface\"\ \r\n },\r\n \"unit\": \"Count\"\r\n },\r\n {\r\n \"currentValue\"\ - : 0.0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/RouteFilterRulesPerRouteFilter\"\ - ,\r\n \"limit\": 1.0,\r\n \"name\": {\r\n \"localizedValue\"\ + : 0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/RouteFilterRulesPerRouteFilter\"\ + ,\r\n \"limit\": 1,\r\n \"name\": {\r\n \"localizedValue\"\ : \"Route filter rules per Route Filter\",\r\n \"value\": \"RouteFilterRulesPerRouteFilter\"\ \r\n },\r\n \"unit\": \"Count\"\r\n },\r\n {\r\n \"currentValue\"\ - : 0.0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/RouteFiltersPerExpressRouteBgpPeering\"\ - ,\r\n \"limit\": 1.0,\r\n \"name\": {\r\n \"localizedValue\"\ + : 0,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/usages/RouteFiltersPerExpressRouteBgpPeering\"\ + ,\r\n \"limit\": 1,\r\n \"name\": {\r\n \"localizedValue\"\ : \"Route filters per Express route BGP Peering\",\r\n \"value\": \"\ RouteFiltersPerExpressRouteBgpPeering\"\r\n },\r\n \"unit\": \"\ Count\"\r\n }\r\n ]\r\n}"} headers: cache-control: [no-cache] - content-length: ['13194'] + content-length: ['13401'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:31:34 GMT'] + date: ['Tue, 27 Nov 2018 20:20:31 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] diff --git a/azure-mgmt-network/tests/recordings/test_mgmt_network.test_virtual_network_gateway_operations.yaml b/azure-mgmt-network/tests/recordings/test_mgmt_network.test_virtual_network_gateway_operations.yaml index f495d8dc2875..638bcb30718a 100644 --- a/azure-mgmt-network/tests/recordings/test_mgmt_network.test_virtual_network_gateway_operations.yaml +++ b/azure-mgmt-network/tests/recordings/test_mgmt_network.test_virtual_network_gateway_operations.yaml @@ -8,33 +8,33 @@ interactions: Connection: [keep-alive] Content-Length: ['109'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworks/pyvirtnetb4d417ef?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworks/pyvirtnetb4d417ef?api-version=2018-10-01 response: body: {string: "{\r\n \"name\": \"pyvirtnetb4d417ef\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworks/pyvirtnetb4d417ef\"\ - ,\r\n \"etag\": \"W/\\\"7e7d346d-8bd3-43b5-864a-fd152b9df12a\\\"\",\r\n \ + ,\r\n \"etag\": \"W/\\\"d40e8467-5aa5-456b-bfa7-45d7f64f732c\\\"\",\r\n \ \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \ - \ \"resourceGuid\": \"f4e18441-91a0-49b3-88c4-fedaf21d6288\",\r\n \"\ + \ \"resourceGuid\": \"06eb4b27-04da-43ea-8a5e-ebded8c62cc3\",\r\n \"\ addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"10.11.0.0/16\"\ ,\r\n \"10.12.0.0/16\"\r\n ]\r\n },\r\n \"subnets\": [],\r\ \n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": false,\r\ \n \"enableVmProtection\": false\r\n }\r\n}"} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/80018aaa-f249-4b87-9452-25fd4d99f6ef?api-version=2018-08-01'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/37e63e56-571a-45e8-ab50-5d91cc190379?api-version=2018-10-01'] cache-control: [no-cache] content-length: ['737'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:31:37 GMT'] + date: ['Tue, 27 Nov 2018 20:20:34 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 201, message: Created} - request: body: null @@ -42,17 +42,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/80018aaa-f249-4b87-9452-25fd4d99f6ef?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/37e63e56-571a-45e8-ab50-5d91cc190379?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:31:42 GMT'] + date: ['Tue, 27 Nov 2018 20:20:38 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -67,17 +67,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/80018aaa-f249-4b87-9452-25fd4d99f6ef?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/37e63e56-571a-45e8-ab50-5d91cc190379?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} headers: cache-control: [no-cache] content-length: ['29'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:31:51 GMT'] + date: ['Tue, 27 Nov 2018 20:20:48 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -92,16 +92,16 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworks/pyvirtnetb4d417ef?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworks/pyvirtnetb4d417ef?api-version=2018-10-01 response: body: {string: "{\r\n \"name\": \"pyvirtnetb4d417ef\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworks/pyvirtnetb4d417ef\"\ - ,\r\n \"etag\": \"W/\\\"6011136b-6479-4199-8974-f0bc5fd264ca\\\"\",\r\n \ + ,\r\n \"etag\": \"W/\\\"d7f2e6a2-1f31-4fc2-b7c9-d10528f9f82f\\\"\",\r\n \ \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n\ - \ \"resourceGuid\": \"f4e18441-91a0-49b3-88c4-fedaf21d6288\",\r\n \"\ + \ \"resourceGuid\": \"06eb4b27-04da-43ea-8a5e-ebded8c62cc3\",\r\n \"\ addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"10.11.0.0/16\"\ ,\r\n \"10.12.0.0/16\"\r\n ]\r\n },\r\n \"subnets\": [],\r\ \n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": false,\r\ @@ -110,8 +110,8 @@ interactions: cache-control: [no-cache] content-length: ['738'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:31:52 GMT'] - etag: [W/"6011136b-6479-4199-8974-f0bc5fd264ca"] + date: ['Tue, 27 Nov 2018 20:20:49 GMT'] + etag: [W/"d7f2e6a2-1f31-4fc2-b7c9-d10528f9f82f"] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -128,29 +128,29 @@ interactions: Connection: [keep-alive] Content-Length: ['49'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworks/pyvirtnetb4d417ef/subnets/pysubnetfeb4d417ef?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworks/pyvirtnetb4d417ef/subnets/pysubnetfeb4d417ef?api-version=2018-10-01 response: body: {string: "{\r\n \"name\": \"pysubnetfeb4d417ef\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworks/pyvirtnetb4d417ef/subnets/pysubnetfeb4d417ef\"\ - ,\r\n \"etag\": \"W/\\\"0ca33a71-7ae7-4d36-8724-90e454359fa1\\\"\",\r\n \ + ,\r\n \"etag\": \"W/\\\"c220912e-103d-459e-8c5f-eb23eabaab61\\\"\",\r\n \ \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"\ addressPrefix\": \"10.11.0.0/24\",\r\n \"delegations\": []\r\n },\r\n\ \ \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n}"} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/0c9a6083-f54f-48b6-9535-4bb90521fa35?api-version=2018-08-01'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/c8de3f16-49ea-46a3-bfee-25276983ac88?api-version=2018-10-01'] cache-control: [no-cache] content-length: ['507'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:31:53 GMT'] + date: ['Tue, 27 Nov 2018 20:20:51 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 201, message: Created} - request: body: null @@ -158,17 +158,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/0c9a6083-f54f-48b6-9535-4bb90521fa35?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/c8de3f16-49ea-46a3-bfee-25276983ac88?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} headers: cache-control: [no-cache] content-length: ['29'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:31:57 GMT'] + date: ['Tue, 27 Nov 2018 20:20:54 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -183,13 +183,13 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworks/pyvirtnetb4d417ef/subnets/pysubnetfeb4d417ef?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworks/pyvirtnetb4d417ef/subnets/pysubnetfeb4d417ef?api-version=2018-10-01 response: body: {string: "{\r\n \"name\": \"pysubnetfeb4d417ef\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworks/pyvirtnetb4d417ef/subnets/pysubnetfeb4d417ef\"\ - ,\r\n \"etag\": \"W/\\\"b0660063-81a5-4be7-b615-8a2c60c680e3\\\"\",\r\n \ + ,\r\n \"etag\": \"W/\\\"8ec5428c-f39d-4ab0-8b2a-059f84ff522a\\\"\",\r\n \ \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"\ addressPrefix\": \"10.11.0.0/24\",\r\n \"delegations\": []\r\n },\r\n\ \ \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n}"} @@ -197,8 +197,8 @@ interactions: cache-control: [no-cache] content-length: ['508'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:31:58 GMT'] - etag: [W/"b0660063-81a5-4be7-b615-8a2c60c680e3"] + date: ['Tue, 27 Nov 2018 20:20:55 GMT'] + etag: [W/"8ec5428c-f39d-4ab0-8b2a-059f84ff522a"] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -215,29 +215,29 @@ interactions: Connection: [keep-alive] Content-Length: ['49'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworks/pyvirtnetb4d417ef/subnets/pysubnetbeb4d417ef?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworks/pyvirtnetb4d417ef/subnets/pysubnetbeb4d417ef?api-version=2018-10-01 response: body: {string: "{\r\n \"name\": \"pysubnetbeb4d417ef\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworks/pyvirtnetb4d417ef/subnets/pysubnetbeb4d417ef\"\ - ,\r\n \"etag\": \"W/\\\"6c20c8b1-af25-4c40-a77e-8bc5703464b0\\\"\",\r\n \ + ,\r\n \"etag\": \"W/\\\"f16b2a8b-6675-4ab2-a66f-32baeff9867b\\\"\",\r\n \ \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"\ addressPrefix\": \"10.12.0.0/24\",\r\n \"delegations\": []\r\n },\r\n\ \ \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n}"} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/6ce35fd6-32b8-4272-a0c9-004433585b7e?api-version=2018-08-01'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/fcce6bc4-c8e1-4189-bc28-a3179215a391?api-version=2018-10-01'] cache-control: [no-cache] content-length: ['507'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:31:59 GMT'] + date: ['Tue, 27 Nov 2018 20:20:56 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 201, message: Created} - request: body: null @@ -245,17 +245,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/6ce35fd6-32b8-4272-a0c9-004433585b7e?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/fcce6bc4-c8e1-4189-bc28-a3179215a391?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} headers: cache-control: [no-cache] content-length: ['29'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:32:02 GMT'] + date: ['Tue, 27 Nov 2018 20:21:00 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -270,13 +270,13 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworks/pyvirtnetb4d417ef/subnets/pysubnetbeb4d417ef?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworks/pyvirtnetb4d417ef/subnets/pysubnetbeb4d417ef?api-version=2018-10-01 response: body: {string: "{\r\n \"name\": \"pysubnetbeb4d417ef\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworks/pyvirtnetb4d417ef/subnets/pysubnetbeb4d417ef\"\ - ,\r\n \"etag\": \"W/\\\"c0a1c4c8-cbc2-4cce-b9e7-23daf87da649\\\"\",\r\n \ + ,\r\n \"etag\": \"W/\\\"8859b490-13f6-49ba-ab79-975ad1ed2551\\\"\",\r\n \ \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"\ addressPrefix\": \"10.12.0.0/24\",\r\n \"delegations\": []\r\n },\r\n\ \ \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n}"} @@ -284,8 +284,8 @@ interactions: cache-control: [no-cache] content-length: ['508'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:32:03 GMT'] - etag: [W/"c0a1c4c8-cbc2-4cce-b9e7-23daf87da649"] + date: ['Tue, 27 Nov 2018 20:20:59 GMT'] + etag: [W/"8859b490-13f6-49ba-ab79-975ad1ed2551"] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -302,29 +302,29 @@ interactions: Connection: [keep-alive] Content-Length: ['51'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworks/pyvirtnetb4d417ef/subnets/GatewaySubnet?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworks/pyvirtnetb4d417ef/subnets/GatewaySubnet?api-version=2018-10-01 response: body: {string: "{\r\n \"name\": \"GatewaySubnet\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworks/pyvirtnetb4d417ef/subnets/GatewaySubnet\"\ - ,\r\n \"etag\": \"W/\\\"b231e357-b8fa-4882-8f0e-525e0157f09e\\\"\",\r\n \ + ,\r\n \"etag\": \"W/\\\"18757317-8a68-4159-a0ee-7c8399b103bc\\\"\",\r\n \ \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"\ addressPrefix\": \"10.12.255.0/27\",\r\n \"delegations\": []\r\n },\r\n\ \ \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n}"} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/3778b612-351b-42e1-a53b-be5ed3d66e95?api-version=2018-08-01'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/fd678893-351c-4cdf-a364-38759e81dae0?api-version=2018-10-01'] cache-control: [no-cache] content-length: ['499'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:32:04 GMT'] + date: ['Tue, 27 Nov 2018 20:21:01 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 201, message: Created} - request: body: null @@ -332,17 +332,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/3778b612-351b-42e1-a53b-be5ed3d66e95?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/fd678893-351c-4cdf-a364-38759e81dae0?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} headers: cache-control: [no-cache] content-length: ['29'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:32:07 GMT'] + date: ['Tue, 27 Nov 2018 20:21:05 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -357,13 +357,13 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworks/pyvirtnetb4d417ef/subnets/GatewaySubnet?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworks/pyvirtnetb4d417ef/subnets/GatewaySubnet?api-version=2018-10-01 response: body: {string: "{\r\n \"name\": \"GatewaySubnet\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworks/pyvirtnetb4d417ef/subnets/GatewaySubnet\"\ - ,\r\n \"etag\": \"W/\\\"5cd12e40-3cf5-4bc8-bb32-c48ef5d9ffa3\\\"\",\r\n \ + ,\r\n \"etag\": \"W/\\\"515172aa-487b-4cd5-a6fd-13162dbf04c9\\\"\",\r\n \ \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"\ addressPrefix\": \"10.12.255.0/27\",\r\n \"delegations\": []\r\n },\r\n\ \ \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n}"} @@ -371,8 +371,8 @@ interactions: cache-control: [no-cache] content-length: ['500'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:32:08 GMT'] - etag: [W/"5cd12e40-3cf5-4bc8-bb32-c48ef5d9ffa3"] + date: ['Tue, 27 Nov 2018 20:21:05 GMT'] + etag: [W/"515172aa-487b-4cd5-a6fd-13162dbf04c9"] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -390,33 +390,33 @@ interactions: Connection: [keep-alive] Content-Length: ['103'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/publicIPAddresses/pyipnameb4d417ef?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/publicIPAddresses/pyipnameb4d417ef?api-version=2018-10-01 response: body: {string: "{\r\n \"name\": \"pyipnameb4d417ef\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/publicIPAddresses/pyipnameb4d417ef\"\ - ,\r\n \"etag\": \"W/\\\"5f292e3c-44b8-49c2-91da-1cf1d00e4c26\\\"\",\r\n \ + ,\r\n \"etag\": \"W/\\\"05d1d89b-9e6f-4f03-bfbe-c2b662cc5762\\\"\",\r\n \ \ \"location\": \"westus\",\r\n \"tags\": {\r\n \"key\": \"value\"\r\n\ \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\ - \n \"resourceGuid\": \"056c07c6-26cf-4187-b854-ba914ac2cdcc\",\r\n \"\ + \n \"resourceGuid\": \"d0df07cb-73f1-442e-b9a9-052b24f4dfaf\",\r\n \"\ publicIPAddressVersion\": \"IPv4\",\r\n \"publicIPAllocationMethod\": \"\ Dynamic\",\r\n \"idleTimeoutInMinutes\": 4,\r\n \"ipTags\": []\r\n \ \ },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n \"sku\"\ : {\r\n \"name\": \"Basic\",\r\n \"tier\": \"Regional\"\r\n }\r\n}"} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/c1495367-a1d2-44e7-8842-cf02ba29424d?api-version=2018-08-01'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/825cbd26-e3bf-4748-bad4-bc13a64d355c?api-version=2018-10-01'] cache-control: [no-cache] content-length: ['734'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:32:09 GMT'] + date: ['Tue, 27 Nov 2018 20:21:07 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 201, message: Created} - request: body: null @@ -424,17 +424,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/c1495367-a1d2-44e7-8842-cf02ba29424d?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/825cbd26-e3bf-4748-bad4-bc13a64d355c?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} headers: cache-control: [no-cache] content-length: ['29'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:32:13 GMT'] + date: ['Tue, 27 Nov 2018 20:21:08 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -449,16 +449,16 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/publicIPAddresses/pyipnameb4d417ef?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/publicIPAddresses/pyipnameb4d417ef?api-version=2018-10-01 response: body: {string: "{\r\n \"name\": \"pyipnameb4d417ef\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/publicIPAddresses/pyipnameb4d417ef\"\ - ,\r\n \"etag\": \"W/\\\"07a9092f-e03c-4813-af14-ccc9ab036cd7\\\"\",\r\n \ + ,\r\n \"etag\": \"W/\\\"36cd614f-bfb1-4531-afd9-38b3a7bd5f26\\\"\",\r\n \ \ \"location\": \"westus\",\r\n \"tags\": {\r\n \"key\": \"value\"\r\n\ \ },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\ - \n \"resourceGuid\": \"056c07c6-26cf-4187-b854-ba914ac2cdcc\",\r\n \"\ + \n \"resourceGuid\": \"d0df07cb-73f1-442e-b9a9-052b24f4dfaf\",\r\n \"\ publicIPAddressVersion\": \"IPv4\",\r\n \"publicIPAllocationMethod\": \"\ Dynamic\",\r\n \"idleTimeoutInMinutes\": 4,\r\n \"ipTags\": []\r\n \ \ },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n \"sku\"\ @@ -467,8 +467,8 @@ interactions: cache-control: [no-cache] content-length: ['735'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:32:13 GMT'] - etag: [W/"07a9092f-e03c-4813-af14-ccc9ab036cd7"] + date: ['Tue, 27 Nov 2018 20:21:08 GMT'] + etag: [W/"36cd614f-bfb1-4531-afd9-38b3a7bd5f26"] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -489,20 +489,20 @@ interactions: Connection: [keep-alive] Content-Length: ['732'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworkGateways/pyvngb4d417ef?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworkGateways/pyvngb4d417ef?api-version=2018-10-01 response: body: {string: "{\r\n \"name\": \"pyvngb4d417ef\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworkGateways/pyvngb4d417ef\"\ - ,\r\n \"etag\": \"W/\\\"94273992-06b9-4ef5-8394-dfc06636a742\\\"\",\r\n \ + ,\r\n \"etag\": \"W/\\\"798f018a-cd47-4291-b801-b22b353d5c53\\\"\",\r\n \ \ \"type\": \"Microsoft.Network/virtualNetworkGateways\",\r\n \"location\"\ : \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\ - ,\r\n \"resourceGuid\": \"5b18375b-3171-45db-903e-a30ef80b8e61\",\r\n \ + ,\r\n \"resourceGuid\": \"e1d48904-3cc0-416e-a676-cd230bd4e323\",\r\n \ \ \"ipConfigurations\": [\r\n {\r\n \"name\": \"default\",\r\ \n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworkGateways/pyvngb4d417ef/ipConfigurations/default\"\ - ,\r\n \"etag\": \"W/\\\"94273992-06b9-4ef5-8394-dfc06636a742\\\"\"\ + ,\r\n \"etag\": \"W/\\\"798f018a-cd47-4291-b801-b22b353d5c53\\\"\"\ ,\r\n \"type\": \"Microsoft.Network/virtualNetworkGateways/ipConfigurations\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\ ,\r\n \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"\ @@ -517,17 +517,17 @@ interactions: : [],\r\n \"vpnClientRevokedCertificates\": [],\r\n \"vpnClientIpsecPolicies\"\ : []\r\n }\r\n }\r\n}"} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01'] cache-control: [no-cache] content-length: ['2074'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:32:15 GMT'] + date: ['Tue, 27 Nov 2018 20:21:10 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] status: {code: 201, message: Created} - request: body: null @@ -535,1817 +535,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['30'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:32:25 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['30'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:32:36 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['30'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:32:46 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['30'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:32:56 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['30'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:33:07 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['30'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:33:18 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['30'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:33:29 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['30'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:33:39 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['30'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:33:50 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['30'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:34:01 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['30'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:34:11 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['30'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:34:21 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['30'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:34:32 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['30'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:34:43 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['30'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:34:54 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['30'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:35:04 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['30'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:35:15 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['30'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:35:26 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['30'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:35:36 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['30'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:35:47 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['30'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:35:58 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['30'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:36:08 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['30'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:36:19 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['30'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:36:29 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['30'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:36:40 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['30'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:36:50 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['30'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:37:01 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['30'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:37:11 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['30'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:37:22 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['30'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:37:32 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['30'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:37:43 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['30'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:37:54 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['30'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:38:05 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['30'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:38:15 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['30'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:38:26 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['30'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:38:37 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['30'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:38:48 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['30'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:38:58 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['30'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:39:08 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['30'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:39:19 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['30'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:39:30 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['30'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:39:40 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['30'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:39:51 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['30'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:40:02 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['30'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:40:12 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['30'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:40:23 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['30'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:40:33 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['30'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:40:44 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['30'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:40:55 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['30'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:41:05 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['30'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:41:17 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['30'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:41:27 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['30'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:41:38 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['30'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:41:48 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['30'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:41:59 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['30'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:42:10 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['30'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:42:20 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['30'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:42:32 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['30'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:42:42 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['30'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:42:52 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['30'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:43:03 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['30'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:43:14 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['30'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:43:25 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['30'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:43:35 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['30'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:43:46 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['30'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:43:56 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['30'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:44:07 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['30'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:44:17 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['30'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:44:27 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['30'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:44:39 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['30'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:44:49 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 - response: - body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} - headers: - cache-control: [no-cache] - content-length: ['30'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:45:00 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - x-content-type-options: [nosniff] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:45:11 GMT'] + date: ['Tue, 27 Nov 2018 20:21:21 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -2360,17 +560,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:45:21 GMT'] + date: ['Tue, 27 Nov 2018 20:21:31 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -2385,17 +585,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:45:31 GMT'] + date: ['Tue, 27 Nov 2018 20:21:42 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -2410,17 +610,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:45:43 GMT'] + date: ['Tue, 27 Nov 2018 20:21:52 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -2435,17 +635,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:45:53 GMT'] + date: ['Tue, 27 Nov 2018 20:22:03 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -2460,17 +660,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:46:04 GMT'] + date: ['Tue, 27 Nov 2018 20:22:13 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -2485,17 +685,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:46:14 GMT'] + date: ['Tue, 27 Nov 2018 20:22:24 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -2510,17 +710,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:46:25 GMT'] + date: ['Tue, 27 Nov 2018 20:22:34 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -2535,17 +735,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:46:36 GMT'] + date: ['Tue, 27 Nov 2018 20:22:45 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -2560,17 +760,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:46:46 GMT'] + date: ['Tue, 27 Nov 2018 20:22:56 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -2585,17 +785,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:46:57 GMT'] + date: ['Tue, 27 Nov 2018 20:23:06 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -2610,17 +810,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:47:08 GMT'] + date: ['Tue, 27 Nov 2018 20:23:17 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -2635,17 +835,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:47:18 GMT'] + date: ['Tue, 27 Nov 2018 20:23:28 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -2660,17 +860,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:47:30 GMT'] + date: ['Tue, 27 Nov 2018 20:23:38 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -2685,17 +885,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:47:40 GMT'] + date: ['Tue, 27 Nov 2018 20:23:49 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -2710,17 +910,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:47:51 GMT'] + date: ['Tue, 27 Nov 2018 20:24:00 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -2735,17 +935,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:48:01 GMT'] + date: ['Tue, 27 Nov 2018 20:24:11 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -2760,17 +960,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:48:12 GMT'] + date: ['Tue, 27 Nov 2018 20:24:21 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -2785,17 +985,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:48:23 GMT'] + date: ['Tue, 27 Nov 2018 20:24:32 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -2810,17 +1010,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:48:33 GMT'] + date: ['Tue, 27 Nov 2018 20:24:42 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -2835,17 +1035,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:48:43 GMT'] + date: ['Tue, 27 Nov 2018 20:24:53 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -2860,17 +1060,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:48:54 GMT'] + date: ['Tue, 27 Nov 2018 20:25:03 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -2885,17 +1085,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:49:05 GMT'] + date: ['Tue, 27 Nov 2018 20:25:14 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -2910,17 +1110,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:49:15 GMT'] + date: ['Tue, 27 Nov 2018 20:25:25 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -2935,17 +1135,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:49:25 GMT'] + date: ['Tue, 27 Nov 2018 20:25:36 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -2960,17 +1160,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:49:36 GMT'] + date: ['Tue, 27 Nov 2018 20:25:46 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -2985,17 +1185,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:49:47 GMT'] + date: ['Tue, 27 Nov 2018 20:25:57 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -3010,17 +1210,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:49:57 GMT'] + date: ['Tue, 27 Nov 2018 20:26:08 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -3035,17 +1235,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:50:09 GMT'] + date: ['Tue, 27 Nov 2018 20:26:19 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -3060,17 +1260,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:50:19 GMT'] + date: ['Tue, 27 Nov 2018 20:26:30 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -3085,17 +1285,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:50:30 GMT'] + date: ['Tue, 27 Nov 2018 20:26:40 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -3110,17 +1310,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:50:41 GMT'] + date: ['Tue, 27 Nov 2018 20:26:52 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -3135,17 +1335,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:50:51 GMT'] + date: ['Tue, 27 Nov 2018 20:27:02 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -3160,17 +1360,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:51:01 GMT'] + date: ['Tue, 27 Nov 2018 20:27:12 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -3185,17 +1385,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:51:13 GMT'] + date: ['Tue, 27 Nov 2018 20:27:23 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -3210,17 +1410,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:51:23 GMT'] + date: ['Tue, 27 Nov 2018 20:27:34 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -3235,17 +1435,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:51:33 GMT'] + date: ['Tue, 27 Nov 2018 20:27:44 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -3260,17 +1460,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:51:44 GMT'] + date: ['Tue, 27 Nov 2018 20:27:55 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -3285,17 +1485,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:51:55 GMT'] + date: ['Tue, 27 Nov 2018 20:28:06 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -3310,17 +1510,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:52:05 GMT'] + date: ['Tue, 27 Nov 2018 20:28:15 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -3335,17 +1535,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:52:16 GMT'] + date: ['Tue, 27 Nov 2018 20:28:26 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -3360,17 +1560,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:52:26 GMT'] + date: ['Tue, 27 Nov 2018 20:28:38 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -3385,17 +1585,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:52:37 GMT'] + date: ['Tue, 27 Nov 2018 20:28:48 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -3410,17 +1610,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:52:48 GMT'] + date: ['Tue, 27 Nov 2018 20:28:59 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -3435,17 +1635,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:52:58 GMT'] + date: ['Tue, 27 Nov 2018 20:29:09 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -3460,17 +1660,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:53:09 GMT'] + date: ['Tue, 27 Nov 2018 20:29:20 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -3485,17 +1685,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:53:20 GMT'] + date: ['Tue, 27 Nov 2018 20:29:31 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -3510,17 +1710,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:53:31 GMT'] + date: ['Tue, 27 Nov 2018 20:29:41 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -3535,17 +1735,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:53:41 GMT'] + date: ['Tue, 27 Nov 2018 20:29:52 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -3560,17 +1760,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:53:52 GMT'] + date: ['Tue, 27 Nov 2018 20:30:02 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -3585,17 +1785,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:54:02 GMT'] + date: ['Tue, 27 Nov 2018 20:30:13 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -3610,17 +1810,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:54:13 GMT'] + date: ['Tue, 27 Nov 2018 20:30:24 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -3635,17 +1835,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:54:23 GMT'] + date: ['Tue, 27 Nov 2018 20:30:34 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -3660,17 +1860,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:54:35 GMT'] + date: ['Tue, 27 Nov 2018 20:30:46 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -3685,17 +1885,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:54:45 GMT'] + date: ['Tue, 27 Nov 2018 20:30:56 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -3710,17 +1910,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:54:56 GMT'] + date: ['Tue, 27 Nov 2018 20:31:07 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -3735,17 +1935,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:55:06 GMT'] + date: ['Tue, 27 Nov 2018 20:31:18 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -3760,17 +1960,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:55:17 GMT'] + date: ['Tue, 27 Nov 2018 20:31:29 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -3785,17 +1985,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:55:28 GMT'] + date: ['Tue, 27 Nov 2018 20:31:39 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -3810,17 +2010,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:55:38 GMT'] + date: ['Tue, 27 Nov 2018 20:31:49 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -3835,17 +2035,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:55:49 GMT'] + date: ['Tue, 27 Nov 2018 20:32:00 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -3860,17 +2060,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:56:00 GMT'] + date: ['Tue, 27 Nov 2018 20:32:11 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -3885,17 +2085,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:56:11 GMT'] + date: ['Tue, 27 Nov 2018 20:32:21 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -3910,17 +2110,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:56:21 GMT'] + date: ['Tue, 27 Nov 2018 20:32:32 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -3935,17 +2135,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:56:31 GMT'] + date: ['Tue, 27 Nov 2018 20:32:43 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -3960,17 +2160,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:56:42 GMT'] + date: ['Tue, 27 Nov 2018 20:32:53 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -3985,17 +2185,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:56:52 GMT'] + date: ['Tue, 27 Nov 2018 20:33:04 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -4010,17 +2210,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:57:03 GMT'] + date: ['Tue, 27 Nov 2018 20:33:14 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -4035,17 +2235,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:57:15 GMT'] + date: ['Tue, 27 Nov 2018 20:33:25 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -4060,17 +2260,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:57:25 GMT'] + date: ['Tue, 27 Nov 2018 20:33:36 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -4085,17 +2285,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:57:36 GMT'] + date: ['Tue, 27 Nov 2018 20:33:46 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -4110,17 +2310,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:57:46 GMT'] + date: ['Tue, 27 Nov 2018 20:33:57 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -4135,17 +2335,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:57:57 GMT'] + date: ['Tue, 27 Nov 2018 20:34:07 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -4160,17 +2360,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:58:08 GMT'] + date: ['Tue, 27 Nov 2018 20:34:18 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -4185,17 +2385,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:58:18 GMT'] + date: ['Tue, 27 Nov 2018 20:34:29 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -4210,17 +2410,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:58:29 GMT'] + date: ['Tue, 27 Nov 2018 20:34:40 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -4235,17 +2435,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:58:39 GMT'] + date: ['Tue, 27 Nov 2018 20:34:49 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -4260,17 +2460,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:58:50 GMT'] + date: ['Tue, 27 Nov 2018 20:35:01 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -4285,17 +2485,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:59:00 GMT'] + date: ['Tue, 27 Nov 2018 20:35:11 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -4310,17 +2510,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:59:11 GMT'] + date: ['Tue, 27 Nov 2018 20:35:22 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -4335,17 +2535,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:59:22 GMT'] + date: ['Tue, 27 Nov 2018 20:35:32 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -4360,17 +2560,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:59:33 GMT'] + date: ['Tue, 27 Nov 2018 20:35:43 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -4385,17 +2585,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:59:44 GMT'] + date: ['Tue, 27 Nov 2018 20:35:54 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -4410,17 +2610,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 17:59:54 GMT'] + date: ['Tue, 27 Nov 2018 20:36:04 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -4435,17 +2635,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 18:00:04 GMT'] + date: ['Tue, 27 Nov 2018 20:36:15 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -4460,17 +2660,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 18:00:15 GMT'] + date: ['Tue, 27 Nov 2018 20:36:25 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -4485,17 +2685,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 18:00:25 GMT'] + date: ['Tue, 27 Nov 2018 20:36:36 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -4510,17 +2710,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 18:00:36 GMT'] + date: ['Tue, 27 Nov 2018 20:36:46 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -4535,17 +2735,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 18:00:46 GMT'] + date: ['Tue, 27 Nov 2018 20:36:57 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -4560,17 +2760,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 18:00:57 GMT'] + date: ['Tue, 27 Nov 2018 20:37:08 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -4585,17 +2785,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 18:01:07 GMT'] + date: ['Tue, 27 Nov 2018 20:37:19 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -4610,17 +2810,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 18:01:19 GMT'] + date: ['Tue, 27 Nov 2018 20:37:30 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -4635,17 +2835,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 18:01:29 GMT'] + date: ['Tue, 27 Nov 2018 20:37:39 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -4660,17 +2860,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 18:01:40 GMT'] + date: ['Tue, 27 Nov 2018 20:37:51 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -4685,17 +2885,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 18:01:50 GMT'] + date: ['Tue, 27 Nov 2018 20:38:01 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -4710,17 +2910,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 18:02:01 GMT'] + date: ['Tue, 27 Nov 2018 20:38:12 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -4735,17 +2935,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 18:02:12 GMT'] + date: ['Tue, 27 Nov 2018 20:38:23 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -4760,17 +2960,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 18:02:23 GMT'] + date: ['Tue, 27 Nov 2018 20:38:33 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -4785,17 +2985,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 18:02:33 GMT'] + date: ['Tue, 27 Nov 2018 20:38:44 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -4810,17 +3010,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 18:02:43 GMT'] + date: ['Tue, 27 Nov 2018 20:38:54 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -4835,17 +3035,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 18:02:55 GMT'] + date: ['Tue, 27 Nov 2018 20:39:05 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -4860,17 +3060,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 18:03:05 GMT'] + date: ['Tue, 27 Nov 2018 20:39:16 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -4885,17 +3085,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 18:03:15 GMT'] + date: ['Tue, 27 Nov 2018 20:39:27 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -4910,17 +3110,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 18:03:26 GMT'] + date: ['Tue, 27 Nov 2018 20:39:36 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -4935,17 +3135,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 18:03:37 GMT'] + date: ['Tue, 27 Nov 2018 20:39:47 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -4960,17 +3160,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 18:03:47 GMT'] + date: ['Tue, 27 Nov 2018 20:39:59 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -4985,17 +3185,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 18:03:58 GMT'] + date: ['Tue, 27 Nov 2018 20:40:09 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -5010,17 +3210,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 18:04:09 GMT'] + date: ['Tue, 27 Nov 2018 20:40:20 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -5035,17 +3235,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 18:04:20 GMT'] + date: ['Tue, 27 Nov 2018 20:40:30 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -5060,17 +3260,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 18:04:30 GMT'] + date: ['Tue, 27 Nov 2018 20:40:41 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -5085,17 +3285,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 18:04:41 GMT'] + date: ['Tue, 27 Nov 2018 20:40:51 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -5110,17 +3310,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 18:04:52 GMT'] + date: ['Tue, 27 Nov 2018 20:41:02 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -5135,17 +3335,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 18:05:02 GMT'] + date: ['Tue, 27 Nov 2018 20:41:13 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -5160,17 +3360,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 18:05:13 GMT'] + date: ['Tue, 27 Nov 2018 20:41:23 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -5185,17 +3385,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 18:05:23 GMT'] + date: ['Tue, 27 Nov 2018 20:41:34 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -5210,17 +3410,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 18:05:33 GMT'] + date: ['Tue, 27 Nov 2018 20:41:44 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -5235,17 +3435,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 18:05:44 GMT'] + date: ['Tue, 27 Nov 2018 20:41:55 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -5260,17 +3460,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 18:05:55 GMT'] + date: ['Tue, 27 Nov 2018 20:42:06 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -5285,17 +3485,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 18:06:06 GMT'] + date: ['Tue, 27 Nov 2018 20:42:16 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -5310,17 +3510,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 18:06:16 GMT'] + date: ['Tue, 27 Nov 2018 20:42:27 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -5335,17 +3535,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 18:06:27 GMT'] + date: ['Tue, 27 Nov 2018 20:42:38 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -5360,17 +3560,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 18:06:38 GMT'] + date: ['Tue, 27 Nov 2018 20:42:49 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -5385,17 +3585,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 18:06:49 GMT'] + date: ['Tue, 27 Nov 2018 20:43:00 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -5410,17 +3610,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 18:06:59 GMT'] + date: ['Tue, 27 Nov 2018 20:43:09 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -5435,17 +3635,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 18:07:10 GMT'] + date: ['Tue, 27 Nov 2018 20:43:20 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -5460,17 +3660,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 18:07:21 GMT'] + date: ['Tue, 27 Nov 2018 20:43:31 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -5485,17 +3685,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 18:07:31 GMT'] + date: ['Tue, 27 Nov 2018 20:43:41 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -5510,17 +3710,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 18:07:41 GMT'] + date: ['Tue, 27 Nov 2018 20:43:53 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -5535,17 +3735,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 18:07:52 GMT'] + date: ['Tue, 27 Nov 2018 20:44:03 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -5560,17 +3760,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 18:08:03 GMT'] + date: ['Tue, 27 Nov 2018 20:44:13 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -5585,17 +3785,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 18:08:13 GMT'] + date: ['Tue, 27 Nov 2018 20:44:25 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -5610,17 +3810,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 18:08:25 GMT'] + date: ['Tue, 27 Nov 2018 20:44:36 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -5635,17 +3835,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 18:08:35 GMT'] + date: ['Tue, 27 Nov 2018 20:44:46 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -5660,17 +3860,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 18:08:45 GMT'] + date: ['Tue, 27 Nov 2018 20:44:57 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -5685,17 +3885,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 18:08:56 GMT'] + date: ['Tue, 27 Nov 2018 20:45:07 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -5710,17 +3910,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 18:09:06 GMT'] + date: ['Tue, 27 Nov 2018 20:45:18 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -5735,17 +3935,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 18:09:17 GMT'] + date: ['Tue, 27 Nov 2018 20:45:28 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -5760,17 +3960,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 18:09:27 GMT'] + date: ['Tue, 27 Nov 2018 20:45:39 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -5785,17 +3985,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 18:09:38 GMT'] + date: ['Tue, 27 Nov 2018 20:45:50 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -5810,17 +4010,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 18:09:49 GMT'] + date: ['Tue, 27 Nov 2018 20:46:00 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -5835,17 +4035,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 18:09:59 GMT'] + date: ['Tue, 27 Nov 2018 20:46:11 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -5860,17 +4060,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 18:10:10 GMT'] + date: ['Tue, 27 Nov 2018 20:46:21 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -5885,17 +4085,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/f1aaa3c7-8202-49d1-874f-8e6e3c1ecaaa?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/9b8cc23d-7f91-48b5-9eba-9f86f1098762?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} headers: cache-control: [no-cache] content-length: ['29'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 18:10:21 GMT'] + date: ['Tue, 27 Nov 2018 20:46:33 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -5910,19 +4110,19 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworkGateways/pyvngb4d417ef?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworkGateways/pyvngb4d417ef?api-version=2018-10-01 response: body: {string: "{\r\n \"name\": \"pyvngb4d417ef\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworkGateways/pyvngb4d417ef\"\ - ,\r\n \"etag\": \"W/\\\"a8b9a085-13be-43f2-a2db-55c39316be86\\\"\",\r\n \ + ,\r\n \"etag\": \"W/\\\"d8cbe0e0-1db9-4f5d-8afb-cdd1fc27c843\\\"\",\r\n \ \ \"type\": \"Microsoft.Network/virtualNetworkGateways\",\r\n \"location\"\ : \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ - ,\r\n \"resourceGuid\": \"5b18375b-3171-45db-903e-a30ef80b8e61\",\r\n \ + ,\r\n \"resourceGuid\": \"e1d48904-3cc0-416e-a676-cd230bd4e323\",\r\n \ \ \"ipConfigurations\": [\r\n {\r\n \"name\": \"default\",\r\ \n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworkGateways/pyvngb4d417ef/ipConfigurations/default\"\ - ,\r\n \"etag\": \"W/\\\"a8b9a085-13be-43f2-a2db-55c39316be86\\\"\"\ + ,\r\n \"etag\": \"W/\\\"d8cbe0e0-1db9-4f5d-8afb-cdd1fc27c843\\\"\"\ ,\r\n \"type\": \"Microsoft.Network/virtualNetworkGateways/ipConfigurations\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ ,\r\n \"privateIPAllocationMethod\": \"Dynamic\",\r\n \"\ @@ -5938,7 +4138,7 @@ interactions: cache-control: [no-cache] content-length: ['1959'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 18:10:22 GMT'] + date: ['Tue, 27 Nov 2018 20:46:33 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] diff --git a/azure-mgmt-network/tests/recordings/test_mgmt_network.test_virtual_networks.yaml b/azure-mgmt-network/tests/recordings/test_mgmt_network.test_virtual_networks.yaml index 948199971d55..07477bfc5f79 100644 --- a/azure-mgmt-network/tests/recordings/test_mgmt_network.test_virtual_networks.yaml +++ b/azure-mgmt-network/tests/recordings/test_mgmt_network.test_virtual_networks.yaml @@ -11,40 +11,40 @@ interactions: Connection: [keep-alive] Content-Length: ['392'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_networks4725106e/providers/Microsoft.Network/virtualNetworks/pyvnet4725106e?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_networks4725106e/providers/Microsoft.Network/virtualNetworks/pyvnet4725106e?api-version=2018-10-01 response: body: {string: "{\r\n \"name\": \"pyvnet4725106e\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_networks4725106e/providers/Microsoft.Network/virtualNetworks/pyvnet4725106e\"\ - ,\r\n \"etag\": \"W/\\\"a31b273c-05cb-409f-ab3a-4490bb132231\\\"\",\r\n \ + ,\r\n \"etag\": \"W/\\\"e75383e3-cc8f-446f-b67d-68815833a568\\\"\",\r\n \ \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \ - \ \"resourceGuid\": \"28fd3954-4516-434a-8e00-213bafd3db4e\",\r\n \"\ + \ \"resourceGuid\": \"9d6271f7-14fa-47c5-832a-349717ac28fb\",\r\n \"\ addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\ \r\n ]\r\n },\r\n \"dhcpOptions\": {\r\n \"dnsServers\": [\r\ \n \"10.1.1.1\",\r\n \"10.1.2.4\"\r\n ]\r\n },\r\n \ \ \"subnets\": [\r\n {\r\n \"name\": \"pyvnetsubnetone4725106e\"\ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_networks4725106e/providers/Microsoft.Network/virtualNetworks/pyvnet4725106e/subnets/pyvnetsubnetone4725106e\"\ - ,\r\n \"etag\": \"W/\\\"a31b273c-05cb-409f-ab3a-4490bb132231\\\"\"\ + ,\r\n \"etag\": \"W/\\\"e75383e3-cc8f-446f-b67d-68815833a568\\\"\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\ ,\r\n \"addressPrefix\": \"10.0.1.0/24\",\r\n \"delegations\"\ : []\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\ \r\n },\r\n {\r\n \"name\": \"pyvnetsubnettwo4725106e\",\r\ \n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_networks4725106e/providers/Microsoft.Network/virtualNetworks/pyvnet4725106e/subnets/pyvnetsubnettwo4725106e\"\ - ,\r\n \"etag\": \"W/\\\"a31b273c-05cb-409f-ab3a-4490bb132231\\\"\"\ + ,\r\n \"etag\": \"W/\\\"e75383e3-cc8f-446f-b67d-68815833a568\\\"\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Updating\"\ ,\r\n \"addressPrefix\": \"10.0.2.0/24\",\r\n \"delegations\"\ : []\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\ \r\n }\r\n ],\r\n \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\"\ : false,\r\n \"enableVmProtection\": false\r\n }\r\n}"} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/96bb1ea8-7702-4a91-a0fc-57e4eaa8efc3?api-version=2018-08-01'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e8dae37e-10b5-4666-bbff-f28cbc56ea7a?api-version=2018-10-01'] cache-control: [no-cache] content-length: ['1923'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 18:10:29 GMT'] + date: ['Tue, 27 Nov 2018 20:46:39 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -58,17 +58,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/96bb1ea8-7702-4a91-a0fc-57e4eaa8efc3?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e8dae37e-10b5-4666-bbff-f28cbc56ea7a?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"InProgress\"\r\n}"} headers: cache-control: [no-cache] content-length: ['30'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 18:10:33 GMT'] + date: ['Tue, 27 Nov 2018 20:46:43 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -83,17 +83,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/96bb1ea8-7702-4a91-a0fc-57e4eaa8efc3?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/e8dae37e-10b5-4666-bbff-f28cbc56ea7a?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} headers: cache-control: [no-cache] content-length: ['29'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 18:10:43 GMT'] + date: ['Tue, 27 Nov 2018 20:46:54 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -108,28 +108,28 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_networks4725106e/providers/Microsoft.Network/virtualNetworks/pyvnet4725106e?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_networks4725106e/providers/Microsoft.Network/virtualNetworks/pyvnet4725106e?api-version=2018-10-01 response: body: {string: "{\r\n \"name\": \"pyvnet4725106e\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_networks4725106e/providers/Microsoft.Network/virtualNetworks/pyvnet4725106e\"\ - ,\r\n \"etag\": \"W/\\\"13814b45-d0c0-4753-9597-6675db4cbe39\\\"\",\r\n \ + ,\r\n \"etag\": \"W/\\\"c2f739f2-c82a-479b-b37a-d3bfce069e04\\\"\",\r\n \ \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n\ - \ \"resourceGuid\": \"28fd3954-4516-434a-8e00-213bafd3db4e\",\r\n \"\ + \ \"resourceGuid\": \"9d6271f7-14fa-47c5-832a-349717ac28fb\",\r\n \"\ addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\ \r\n ]\r\n },\r\n \"dhcpOptions\": {\r\n \"dnsServers\": [\r\ \n \"10.1.1.1\",\r\n \"10.1.2.4\"\r\n ]\r\n },\r\n \ \ \"subnets\": [\r\n {\r\n \"name\": \"pyvnetsubnetone4725106e\"\ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_networks4725106e/providers/Microsoft.Network/virtualNetworks/pyvnet4725106e/subnets/pyvnetsubnetone4725106e\"\ - ,\r\n \"etag\": \"W/\\\"13814b45-d0c0-4753-9597-6675db4cbe39\\\"\"\ + ,\r\n \"etag\": \"W/\\\"c2f739f2-c82a-479b-b37a-d3bfce069e04\\\"\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ ,\r\n \"addressPrefix\": \"10.0.1.0/24\",\r\n \"delegations\"\ : []\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\ \r\n },\r\n {\r\n \"name\": \"pyvnetsubnettwo4725106e\",\r\ \n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_networks4725106e/providers/Microsoft.Network/virtualNetworks/pyvnet4725106e/subnets/pyvnetsubnettwo4725106e\"\ - ,\r\n \"etag\": \"W/\\\"13814b45-d0c0-4753-9597-6675db4cbe39\\\"\"\ + ,\r\n \"etag\": \"W/\\\"c2f739f2-c82a-479b-b37a-d3bfce069e04\\\"\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ ,\r\n \"addressPrefix\": \"10.0.2.0/24\",\r\n \"delegations\"\ : []\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\ @@ -139,8 +139,8 @@ interactions: cache-control: [no-cache] content-length: ['1926'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 18:10:44 GMT'] - etag: [W/"13814b45-d0c0-4753-9597-6675db4cbe39"] + date: ['Tue, 27 Nov 2018 20:46:55 GMT'] + etag: [W/"c2f739f2-c82a-479b-b37a-d3bfce069e04"] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -155,29 +155,29 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_networks4725106e/providers/Microsoft.Network/virtualNetworks/pyvnet4725106e?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_networks4725106e/providers/Microsoft.Network/virtualNetworks/pyvnet4725106e?api-version=2018-10-01 response: body: {string: "{\r\n \"name\": \"pyvnet4725106e\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_networks4725106e/providers/Microsoft.Network/virtualNetworks/pyvnet4725106e\"\ - ,\r\n \"etag\": \"W/\\\"13814b45-d0c0-4753-9597-6675db4cbe39\\\"\",\r\n \ + ,\r\n \"etag\": \"W/\\\"c2f739f2-c82a-479b-b37a-d3bfce069e04\\\"\",\r\n \ \ \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n\ - \ \"resourceGuid\": \"28fd3954-4516-434a-8e00-213bafd3db4e\",\r\n \"\ + \ \"resourceGuid\": \"9d6271f7-14fa-47c5-832a-349717ac28fb\",\r\n \"\ addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\ \r\n ]\r\n },\r\n \"dhcpOptions\": {\r\n \"dnsServers\": [\r\ \n \"10.1.1.1\",\r\n \"10.1.2.4\"\r\n ]\r\n },\r\n \ \ \"subnets\": [\r\n {\r\n \"name\": \"pyvnetsubnetone4725106e\"\ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_networks4725106e/providers/Microsoft.Network/virtualNetworks/pyvnet4725106e/subnets/pyvnetsubnetone4725106e\"\ - ,\r\n \"etag\": \"W/\\\"13814b45-d0c0-4753-9597-6675db4cbe39\\\"\"\ + ,\r\n \"etag\": \"W/\\\"c2f739f2-c82a-479b-b37a-d3bfce069e04\\\"\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ ,\r\n \"addressPrefix\": \"10.0.1.0/24\",\r\n \"delegations\"\ : []\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\ \r\n },\r\n {\r\n \"name\": \"pyvnetsubnettwo4725106e\",\r\ \n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_networks4725106e/providers/Microsoft.Network/virtualNetworks/pyvnet4725106e/subnets/pyvnetsubnettwo4725106e\"\ - ,\r\n \"etag\": \"W/\\\"13814b45-d0c0-4753-9597-6675db4cbe39\\\"\"\ + ,\r\n \"etag\": \"W/\\\"c2f739f2-c82a-479b-b37a-d3bfce069e04\\\"\"\ ,\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\ ,\r\n \"addressPrefix\": \"10.0.2.0/24\",\r\n \"delegations\"\ : []\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\ @@ -187,8 +187,8 @@ interactions: cache-control: [no-cache] content-length: ['1926'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 18:10:45 GMT'] - etag: [W/"13814b45-d0c0-4753-9597-6675db4cbe39"] + date: ['Tue, 27 Nov 2018 20:46:55 GMT'] + etag: [W/"c2f739f2-c82a-479b-b37a-d3bfce069e04"] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -203,18 +203,18 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_networks4725106e/providers/Microsoft.Network/virtualNetworks/pyvnet4725106e/CheckIPAddressAvailability?ipAddress=10.0.1.35&api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_networks4725106e/providers/Microsoft.Network/virtualNetworks/pyvnet4725106e/CheckIPAddressAvailability?ipAddress=10.0.1.35&api-version=2018-10-01 response: body: {string: "{\r\n \"available\": true\r\n}"} headers: cache-control: [no-cache] content-length: ['25'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 18:10:45 GMT'] + date: ['Tue, 27 Nov 2018 20:46:56 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -229,32 +229,32 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_networks4725106e/providers/Microsoft.Network/virtualNetworks?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_networks4725106e/providers/Microsoft.Network/virtualNetworks?api-version=2018-10-01 response: body: {string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"pyvnet4725106e\"\ ,\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_networks4725106e/providers/Microsoft.Network/virtualNetworks/pyvnet4725106e\"\ - ,\r\n \"etag\": \"W/\\\"13814b45-d0c0-4753-9597-6675db4cbe39\\\"\",\r\ + ,\r\n \"etag\": \"W/\\\"c2f739f2-c82a-479b-b37a-d3bfce069e04\\\"\",\r\ \n \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\"\ : \"westus\",\r\n \"properties\": {\r\n \"provisioningState\"\ - : \"Succeeded\",\r\n \"resourceGuid\": \"28fd3954-4516-434a-8e00-213bafd3db4e\"\ + : \"Succeeded\",\r\n \"resourceGuid\": \"9d6271f7-14fa-47c5-832a-349717ac28fb\"\ ,\r\n \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \ \ \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"dhcpOptions\"\ : {\r\n \"dnsServers\": [\r\n \"10.1.1.1\",\r\n \ \ \"10.1.2.4\"\r\n ]\r\n },\r\n \"subnets\": [\r\ \n {\r\n \"name\": \"pyvnetsubnetone4725106e\",\r\n \ \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_networks4725106e/providers/Microsoft.Network/virtualNetworks/pyvnet4725106e/subnets/pyvnetsubnetone4725106e\"\ - ,\r\n \"etag\": \"W/\\\"13814b45-d0c0-4753-9597-6675db4cbe39\\\"\ + ,\r\n \"etag\": \"W/\\\"c2f739f2-c82a-479b-b37a-d3bfce069e04\\\"\ \",\r\n \"properties\": {\r\n \"provisioningState\"\ : \"Succeeded\",\r\n \"addressPrefix\": \"10.0.1.0/24\",\r\n\ \ \"delegations\": []\r\n },\r\n \"type\"\ : \"Microsoft.Network/virtualNetworks/subnets\"\r\n },\r\n \ \ {\r\n \"name\": \"pyvnetsubnettwo4725106e\",\r\n \ \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_networks4725106e/providers/Microsoft.Network/virtualNetworks/pyvnet4725106e/subnets/pyvnetsubnettwo4725106e\"\ - ,\r\n \"etag\": \"W/\\\"13814b45-d0c0-4753-9597-6675db4cbe39\\\"\ + ,\r\n \"etag\": \"W/\\\"c2f739f2-c82a-479b-b37a-d3bfce069e04\\\"\ \",\r\n \"properties\": {\r\n \"provisioningState\"\ : \"Succeeded\",\r\n \"addressPrefix\": \"10.0.2.0/24\",\r\n\ \ \"delegations\": []\r\n },\r\n \"type\"\ @@ -266,7 +266,7 @@ interactions: cache-control: [no-cache] content-length: ['2147'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 18:10:46 GMT'] + date: ['Tue, 27 Nov 2018 20:46:56 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -281,26 +281,25 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/virtualNetworks?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/virtualNetworks?api-version=2018-10-01 response: - body: {string: '{"value":[{"name":"TestVMVNET","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ovaTestGroup/providers/Microsoft.Network/virtualNetworks/TestVMVNET","etag":"W/\"cad7f4c7-4b78-4f10-8920-ccff926a1944\"","type":"Microsoft.Network/virtualNetworks","location":"westus","tags":{},"properties":{"provisioningState":"Succeeded","resourceGuid":"978fac18-f4bb-4208-a361-0d7807856490","addressSpace":{"addressPrefixes":["10.0.0.0/16"]},"subnets":[{"name":"TestVMSubnet","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ovaTestGroup/providers/Microsoft.Network/virtualNetworks/TestVMVNET/subnets/TestVMSubnet","etag":"W/\"cad7f4c7-4b78-4f10-8920-ccff926a1944\"","properties":{"provisioningState":"Succeeded","addressPrefix":"10.0.0.0/24","networkSecurityGroup":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg6"},"ipConfigurations":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ovaTestGroup/providers/Microsoft.Network/networkInterfaces/TestVMVMNic/ipConfigurations/ipconfigTestVM"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ovaTestGroup/providers/Microsoft.Network/networkInterfaces/TestVM2VMNic/ipConfigurations/ipconfigTestVM2"}],"delegations":[]},"type":"Microsoft.Network/virtualNetworks/subnets"}],"virtualNetworkPeerings":[],"enableDdosProtection":false,"enableVmProtection":false}},{"name":"pyvnet4725106e","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_networks4725106e/providers/Microsoft.Network/virtualNetworks/pyvnet4725106e","etag":"W/\"13814b45-d0c0-4753-9597-6675db4cbe39\"","type":"Microsoft.Network/virtualNetworks","location":"westus","properties":{"provisioningState":"Succeeded","resourceGuid":"28fd3954-4516-434a-8e00-213bafd3db4e","addressSpace":{"addressPrefixes":["10.0.0.0/16"]},"dhcpOptions":{"dnsServers":["10.1.1.1","10.1.2.4"]},"subnets":[{"name":"pyvnetsubnetone4725106e","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_networks4725106e/providers/Microsoft.Network/virtualNetworks/pyvnet4725106e/subnets/pyvnetsubnetone4725106e","etag":"W/\"13814b45-d0c0-4753-9597-6675db4cbe39\"","properties":{"provisioningState":"Succeeded","addressPrefix":"10.0.1.0/24","delegations":[]},"type":"Microsoft.Network/virtualNetworks/subnets"},{"name":"pyvnetsubnettwo4725106e","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_networks4725106e/providers/Microsoft.Network/virtualNetworks/pyvnet4725106e/subnets/pyvnetsubnettwo4725106e","etag":"W/\"13814b45-d0c0-4753-9597-6675db4cbe39\"","properties":{"provisioningState":"Succeeded","addressPrefix":"10.0.2.0/24","delegations":[]},"type":"Microsoft.Network/virtualNetworks/subnets"}],"virtualNetworkPeerings":[],"enableDdosProtection":false,"enableVmProtection":false}},{"name":"pyvirtnetb4d417ef","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworks/pyvirtnetb4d417ef","etag":"W/\"2c69e932-201c-40b5-8463-5b1fa6590e24\"","type":"Microsoft.Network/virtualNetworks","location":"westus","properties":{"provisioningState":"Succeeded","resourceGuid":"f4e18441-91a0-49b3-88c4-fedaf21d6288","addressSpace":{"addressPrefixes":["10.11.0.0/16","10.12.0.0/16"]},"subnets":[{"name":"pysubnetfeb4d417ef","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworks/pyvirtnetb4d417ef/subnets/pysubnetfeb4d417ef","etag":"W/\"2c69e932-201c-40b5-8463-5b1fa6590e24\"","properties":{"provisioningState":"Succeeded","addressPrefix":"10.11.0.0/24","delegations":[]},"type":"Microsoft.Network/virtualNetworks/subnets"},{"name":"pysubnetbeb4d417ef","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworks/pyvirtnetb4d417ef/subnets/pysubnetbeb4d417ef","etag":"W/\"2c69e932-201c-40b5-8463-5b1fa6590e24\"","properties":{"provisioningState":"Succeeded","addressPrefix":"10.12.0.0/24","delegations":[]},"type":"Microsoft.Network/virtualNetworks/subnets"},{"name":"GatewaySubnet","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworks/pyvirtnetb4d417ef/subnets/GatewaySubnet","etag":"W/\"2c69e932-201c-40b5-8463-5b1fa6590e24\"","properties":{"provisioningState":"Succeeded","addressPrefix":"10.12.255.0/27","ipConfigurations":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworkGateways/pyvngb4d417ef/ipConfigurations/default"}],"delegations":[]},"type":"Microsoft.Network/virtualNetworks/subnets"}],"virtualNetworkPeerings":[],"enableDdosProtection":false,"enableVmProtection":false}},{"name":"wilxvm1VNET","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/wilxtest/providers/Microsoft.Network/virtualNetworks/wilxvm1VNET","etag":"W/\"1119da29-82cb-43fd-97ce-1d2f3c1a6ab0\"","type":"Microsoft.Network/virtualNetworks","location":"westus","tags":{},"properties":{"provisioningState":"Succeeded","resourceGuid":"f532ec91-debf-46ff-9d28-f2e177aa6e17","addressSpace":{"addressPrefixes":["10.0.0.0/16"]},"subnets":[{"name":"wilxvm1Subnet","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/wilxtest/providers/Microsoft.Network/virtualNetworks/wilxvm1VNET/subnets/wilxvm1Subnet","etag":"W/\"1119da29-82cb-43fd-97ce-1d2f3c1a6ab0\"","properties":{"provisioningState":"Succeeded","addressPrefix":"10.0.0.0/24","networkSecurityGroup":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg6"},"ipConfigurations":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/wilxtest/providers/Microsoft.Network/networkInterfaces/wilxvm1VMNic/ipConfigurations/ipconfigwilxvm1"}],"delegations":[]},"type":"Microsoft.Network/virtualNetworks/subnets"}],"virtualNetworkPeerings":[],"enableDdosProtection":false,"enableVmProtection":false}},{"name":"abunt3","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/virtualNetworks/abunt3","etag":"W/\"0e9a2fe0-a94b-4f65-85b9-ab8fcaed8149\"","type":"Microsoft.Network/virtualNetworks","location":"eastus","properties":{"provisioningState":"Succeeded","resourceGuid":"1138617d-1a25-4252-8846-1a72b81aa4a8","addressSpace":{"addressPrefixes":["10.2.0.0/16"]},"subnets":[{"name":"default","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/virtualNetworks/abunt3/subnets/default","etag":"W/\"0e9a2fe0-a94b-4f65-85b9-ab8fcaed8149\"","properties":{"provisioningState":"Succeeded","addressPrefix":"10.2.0.0/24","networkSecurityGroup":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg"},"ipConfigurations":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/networkInterfaces/abuntu3634/ipConfigurations/ipconfig1"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/networkInterfaces/abuntu1428/ipConfigurations/ipconfig1"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/networkInterfaces/abuntu2743/ipConfigurations/ipconfig1"}],"delegations":[]},"type":"Microsoft.Network/virtualNetworks/subnets"}],"virtualNetworkPeerings":[],"enableDdosProtection":false,"enableVmProtection":false}},{"name":"abuntu-vnet","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/virtualNetworks/abuntu-vnet","etag":"W/\"5a0a8b60-b7ab-4407-9cb3-5d06b9871779\"","type":"Microsoft.Network/virtualNetworks","location":"eastus","properties":{"provisioningState":"Succeeded","resourceGuid":"ac579595-763e-4053-895d-cfbed48dd172","addressSpace":{"addressPrefixes":["10.3.0.0/16"]},"subnets":[{"name":"default","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/virtualNetworks/abuntu-vnet/subnets/default","etag":"W/\"5a0a8b60-b7ab-4407-9cb3-5d06b9871779\"","properties":{"provisioningState":"Succeeded","addressPrefix":"10.3.0.0/24","networkSecurityGroup":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg"},"ipConfigurations":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/networkInterfaces/abuntu259/ipConfigurations/ipconfig1"}],"delegations":[]},"type":"Microsoft.Network/virtualNetworks/subnets"}],"virtualNetworkPeerings":[],"enableDdosProtection":false,"enableVmProtection":false}},{"name":"abuntu2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/virtualNetworks/abuntu2","etag":"W/\"27aef006-e982-4285-92ba-677483aaeb03\"","type":"Microsoft.Network/virtualNetworks","location":"eastus","properties":{"provisioningState":"Succeeded","resourceGuid":"8d52136d-fdf0-413b-be8e-f68a7d57eddc","addressSpace":{"addressPrefixes":["10.5.0.0/16"]},"subnets":[{"name":"default","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/virtualNetworks/abuntu2/subnets/default","etag":"W/\"27aef006-e982-4285-92ba-677483aaeb03\"","properties":{"provisioningState":"Succeeded","addressPrefix":"10.5.0.0/24","networkSecurityGroup":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg"},"ipConfigurations":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/networkInterfaces/abuntu2817/ipConfigurations/ipconfig1"}],"delegations":[]},"type":"Microsoft.Network/virtualNetworks/subnets"}],"virtualNetworkPeerings":[],"enableDdosProtection":false,"enableVmProtection":false}},{"name":"abuntu3","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/virtualNetworks/abuntu3","etag":"W/\"e187a70d-2f97-40dc-8a5c-dae16721ddcb\"","type":"Microsoft.Network/virtualNetworks","location":"eastus","properties":{"provisioningState":"Succeeded","resourceGuid":"fa919f6c-1730-4ba6-99a1-909f8ab380d0","addressSpace":{"addressPrefixes":["10.4.0.0/16"]},"subnets":[{"name":"default","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/virtualNetworks/abuntu3/subnets/default","etag":"W/\"e187a70d-2f97-40dc-8a5c-dae16721ddcb\"","properties":{"provisioningState":"Succeeded","addressPrefix":"10.4.0.0/24","networkSecurityGroup":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg"},"ipConfigurations":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/networkInterfaces/abunt4752/ipConfigurations/ipconfig1"}],"delegations":[]},"type":"Microsoft.Network/virtualNetworks/subnets"}],"virtualNetworkPeerings":[],"enableDdosProtection":false,"enableVmProtection":false}},{"name":"Dtlcliautomationlab","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitestlab1/providers/Microsoft.Network/virtualNetworks/Dtlcliautomationlab","etag":"W/\"260bff7b-7436-49c5-8836-49b261c2e518\"","type":"Microsoft.Network/virtualNetworks","location":"southcentralus","tags":{"hidden-DevTestLabs-LabUId":"ca9ec547-32c5-422d-b3d2-25906ed71959"},"properties":{"provisioningState":"Succeeded","resourceGuid":"b083abf5-63cf-4ba2-b6fa-55ce660ce895","addressSpace":{"addressPrefixes":["10.0.0.0/20"]},"dhcpOptions":{"dnsServers":[]},"subnets":[{"name":"DtlcliautomationlabSubnet","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitestlab1/providers/Microsoft.Network/virtualNetworks/Dtlcliautomationlab/subnets/DtlcliautomationlabSubnet","etag":"W/\"260bff7b-7436-49c5-8836-49b261c2e518\"","properties":{"provisioningState":"Succeeded","addressPrefix":"10.0.0.0/20","networkSecurityGroup":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg1"},"delegations":[]},"type":"Microsoft.Network/virtualNetworks/subnets"}],"virtualNetworkPeerings":[],"enableDdosProtection":false,"enableVmProtection":false}},{"name":"TestVMVNET","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ovaZones/providers/Microsoft.Network/virtualNetworks/TestVMVNET","etag":"W/\"e12c440b-91f5-4068-9108-4a56380ff2e2\"","type":"Microsoft.Network/virtualNetworks","location":"eastus2","tags":{},"properties":{"provisioningState":"Succeeded","resourceGuid":"0689cce2-4c74-470f-a9b1-01bcb40056a1","addressSpace":{"addressPrefixes":["10.0.0.0/16"]},"subnets":[{"name":"TestVMSubnet","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ovaZones/providers/Microsoft.Network/virtualNetworks/TestVMVNET/subnets/TestVMSubnet","etag":"W/\"e12c440b-91f5-4068-9108-4a56380ff2e2\"","properties":{"provisioningState":"Succeeded","addressPrefix":"10.0.0.0/24","networkSecurityGroup":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg8"},"ipConfigurations":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ovaZones/providers/Microsoft.Network/networkInterfaces/TestVMVMNic/ipConfigurations/ipconfigTestVM"}],"delegations":[]},"type":"Microsoft.Network/virtualNetworks/subnets"}],"virtualNetworkPeerings":[],"enableDdosProtection":false,"enableVmProtection":false}},{"name":"lmazuel-testcapture-vnet","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/lmazuel-testcapture/providers/Microsoft.Network/virtualNetworks/lmazuel-testcapture-vnet","etag":"W/\"e9cc42b4-8cd7-4839-ab92-fe3147b98a20\"","type":"Microsoft.Network/virtualNetworks","location":"westus2","properties":{"provisioningState":"Succeeded","resourceGuid":"a1ba5e36-4ef1-4778-bac9-826091314efa","addressSpace":{"addressPrefixes":["10.1.0.0/24"]},"subnets":[{"name":"default","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/lmazuel-testcapture/providers/Microsoft.Network/virtualNetworks/lmazuel-testcapture-vnet/subnets/default","etag":"W/\"e9cc42b4-8cd7-4839-ab92-fe3147b98a20\"","properties":{"provisioningState":"Succeeded","addressPrefix":"10.1.0.0/24","networkSecurityGroup":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg2"},"ipConfigurations":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/lmazuel-testcapture/providers/Microsoft.Network/networkInterfaces/lmazuel-testcapture427/ipConfigurations/ipconfig1"}],"delegations":[]},"type":"Microsoft.Network/virtualNetworks/subnets"}],"virtualNetworkPeerings":[],"enableDdosProtection":false,"enableVmProtection":false}}]}'} + body: {string: '{"value":[{"name":"tosin-vmVNET","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/virtualNetworks/tosin-vmVNET","etag":"W/\"2c507d2d-b7f6-4149-8724-e539876f9754\"","type":"Microsoft.Network/virtualNetworks","location":"westus","tags":{},"properties":{"provisioningState":"Succeeded","resourceGuid":"f09dc357-46ca-44b0-a95b-9dfa8092c2d0","addressSpace":{"addressPrefixes":["10.0.0.0/16"]},"subnets":[{"name":"tosin-vmSubnet","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/virtualNetworks/tosin-vmVNET/subnets/tosin-vmSubnet","etag":"W/\"2c507d2d-b7f6-4149-8724-e539876f9754\"","properties":{"provisioningState":"Succeeded","addressPrefix":"10.0.0.0/24","networkSecurityGroup":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg6"},"ipConfigurations":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/networkInterfaces/tosin-vmVMNic/ipConfigurations/ipconfigtosin-vm"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/networkInterfaces/tosin-vm-generalizedVMNic/ipConfigurations/ipconfigtosin-vm-generalized"}],"delegations":[]},"type":"Microsoft.Network/virtualNetworks/subnets"}],"virtualNetworkPeerings":[],"enableDdosProtection":false,"enableVmProtection":false}},{"name":"tosin-vnet","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/virtualNetworks/tosin-vnet","etag":"W/\"e76fad5b-8bb5-4482-993f-cc571b5d3261\"","type":"Microsoft.Network/virtualNetworks","location":"westus","tags":{},"properties":{"provisioningState":"Succeeded","resourceGuid":"d53a4ab2-7dd4-45d7-b6b0-bcd984a74c3f","addressSpace":{"addressPrefixes":["10.0.0.0/16"]},"subnets":[{"name":"my-subnet","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/virtualNetworks/tosin-vnet/subnets/my-subnet","etag":"W/\"e76fad5b-8bb5-4482-993f-cc571b5d3261\"","properties":{"provisioningState":"Succeeded","addressPrefix":"10.0.0.0/24","networkSecurityGroup":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg6"},"ipConfigurations":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ova-test/providers/Microsoft.Network/networkInterfaces/test-vm-vnetVMNic/ipConfigurations/ipconfigtest-vm-vnet"}],"delegations":[]},"type":"Microsoft.Network/virtualNetworks/subnets"}],"virtualNetworkPeerings":[],"enableDdosProtection":false,"enableVmProtection":false}},{"name":"pyvnet4725106e","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_networks4725106e/providers/Microsoft.Network/virtualNetworks/pyvnet4725106e","etag":"W/\"c2f739f2-c82a-479b-b37a-d3bfce069e04\"","type":"Microsoft.Network/virtualNetworks","location":"westus","properties":{"provisioningState":"Succeeded","resourceGuid":"9d6271f7-14fa-47c5-832a-349717ac28fb","addressSpace":{"addressPrefixes":["10.0.0.0/16"]},"dhcpOptions":{"dnsServers":["10.1.1.1","10.1.2.4"]},"subnets":[{"name":"pyvnetsubnetone4725106e","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_networks4725106e/providers/Microsoft.Network/virtualNetworks/pyvnet4725106e/subnets/pyvnetsubnetone4725106e","etag":"W/\"c2f739f2-c82a-479b-b37a-d3bfce069e04\"","properties":{"provisioningState":"Succeeded","addressPrefix":"10.0.1.0/24","delegations":[]},"type":"Microsoft.Network/virtualNetworks/subnets"},{"name":"pyvnetsubnettwo4725106e","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_networks4725106e/providers/Microsoft.Network/virtualNetworks/pyvnet4725106e/subnets/pyvnetsubnettwo4725106e","etag":"W/\"c2f739f2-c82a-479b-b37a-d3bfce069e04\"","properties":{"provisioningState":"Succeeded","addressPrefix":"10.0.2.0/24","delegations":[]},"type":"Microsoft.Network/virtualNetworks/subnets"}],"virtualNetworkPeerings":[],"enableDdosProtection":false,"enableVmProtection":false}},{"name":"pyvirtnetb4d417ef","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworks/pyvirtnetb4d417ef","etag":"W/\"ac7c1133-5987-4b3d-a426-2c9b0ffca1fe\"","type":"Microsoft.Network/virtualNetworks","location":"westus","properties":{"provisioningState":"Succeeded","resourceGuid":"06eb4b27-04da-43ea-8a5e-ebded8c62cc3","addressSpace":{"addressPrefixes":["10.11.0.0/16","10.12.0.0/16"]},"subnets":[{"name":"pysubnetfeb4d417ef","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworks/pyvirtnetb4d417ef/subnets/pysubnetfeb4d417ef","etag":"W/\"ac7c1133-5987-4b3d-a426-2c9b0ffca1fe\"","properties":{"provisioningState":"Succeeded","addressPrefix":"10.11.0.0/24","delegations":[]},"type":"Microsoft.Network/virtualNetworks/subnets"},{"name":"pysubnetbeb4d417ef","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworks/pyvirtnetb4d417ef/subnets/pysubnetbeb4d417ef","etag":"W/\"ac7c1133-5987-4b3d-a426-2c9b0ffca1fe\"","properties":{"provisioningState":"Succeeded","addressPrefix":"10.12.0.0/24","delegations":[]},"type":"Microsoft.Network/virtualNetworks/subnets"},{"name":"GatewaySubnet","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworks/pyvirtnetb4d417ef/subnets/GatewaySubnet","etag":"W/\"ac7c1133-5987-4b3d-a426-2c9b0ffca1fe\"","properties":{"provisioningState":"Succeeded","addressPrefix":"10.12.255.0/27","ipConfigurations":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_network_gateway_operationsb4d417ef/providers/Microsoft.Network/virtualNetworkGateways/pyvngb4d417ef/ipConfigurations/default"}],"delegations":[]},"type":"Microsoft.Network/virtualNetworks/subnets"}],"virtualNetworkPeerings":[],"enableDdosProtection":false,"enableVmProtection":false}},{"name":"abunt3","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/virtualNetworks/abunt3","etag":"W/\"0e9a2fe0-a94b-4f65-85b9-ab8fcaed8149\"","type":"Microsoft.Network/virtualNetworks","location":"eastus","properties":{"provisioningState":"Succeeded","resourceGuid":"1138617d-1a25-4252-8846-1a72b81aa4a8","addressSpace":{"addressPrefixes":["10.2.0.0/16"]},"subnets":[{"name":"default","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/virtualNetworks/abunt3/subnets/default","etag":"W/\"0e9a2fe0-a94b-4f65-85b9-ab8fcaed8149\"","properties":{"provisioningState":"Succeeded","addressPrefix":"10.2.0.0/24","networkSecurityGroup":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg"},"ipConfigurations":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/networkInterfaces/abuntu3634/ipConfigurations/ipconfig1"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/networkInterfaces/abuntu1428/ipConfigurations/ipconfig1"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/networkInterfaces/abuntu2743/ipConfigurations/ipconfig1"}],"delegations":[]},"type":"Microsoft.Network/virtualNetworks/subnets"}],"virtualNetworkPeerings":[],"enableDdosProtection":false,"enableVmProtection":false}},{"name":"abuntu-vnet","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/virtualNetworks/abuntu-vnet","etag":"W/\"5a0a8b60-b7ab-4407-9cb3-5d06b9871779\"","type":"Microsoft.Network/virtualNetworks","location":"eastus","properties":{"provisioningState":"Succeeded","resourceGuid":"ac579595-763e-4053-895d-cfbed48dd172","addressSpace":{"addressPrefixes":["10.3.0.0/16"]},"subnets":[{"name":"default","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/virtualNetworks/abuntu-vnet/subnets/default","etag":"W/\"5a0a8b60-b7ab-4407-9cb3-5d06b9871779\"","properties":{"provisioningState":"Succeeded","addressPrefix":"10.3.0.0/24","networkSecurityGroup":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg"},"ipConfigurations":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/networkInterfaces/abuntu259/ipConfigurations/ipconfig1"}],"delegations":[]},"type":"Microsoft.Network/virtualNetworks/subnets"}],"virtualNetworkPeerings":[],"enableDdosProtection":false,"enableVmProtection":false}},{"name":"abuntu2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/virtualNetworks/abuntu2","etag":"W/\"27aef006-e982-4285-92ba-677483aaeb03\"","type":"Microsoft.Network/virtualNetworks","location":"eastus","properties":{"provisioningState":"Succeeded","resourceGuid":"8d52136d-fdf0-413b-be8e-f68a7d57eddc","addressSpace":{"addressPrefixes":["10.5.0.0/16"]},"subnets":[{"name":"default","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/virtualNetworks/abuntu2/subnets/default","etag":"W/\"27aef006-e982-4285-92ba-677483aaeb03\"","properties":{"provisioningState":"Succeeded","addressPrefix":"10.5.0.0/24","networkSecurityGroup":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg"},"ipConfigurations":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/networkInterfaces/abuntu2817/ipConfigurations/ipconfig1"}],"delegations":[]},"type":"Microsoft.Network/virtualNetworks/subnets"}],"virtualNetworkPeerings":[],"enableDdosProtection":false,"enableVmProtection":false}},{"name":"abuntu3","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/virtualNetworks/abuntu3","etag":"W/\"e187a70d-2f97-40dc-8a5c-dae16721ddcb\"","type":"Microsoft.Network/virtualNetworks","location":"eastus","properties":{"provisioningState":"Succeeded","resourceGuid":"fa919f6c-1730-4ba6-99a1-909f8ab380d0","addressSpace":{"addressPrefixes":["10.4.0.0/16"]},"subnets":[{"name":"default","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/virtualNetworks/abuntu3/subnets/default","etag":"W/\"e187a70d-2f97-40dc-8a5c-dae16721ddcb\"","properties":{"provisioningState":"Succeeded","addressPrefix":"10.4.0.0/24","networkSecurityGroup":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg"},"ipConfigurations":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/amar/providers/Microsoft.Network/networkInterfaces/abunt4752/ipConfigurations/ipconfig1"}],"delegations":[]},"type":"Microsoft.Network/virtualNetworks/subnets"}],"virtualNetworkPeerings":[],"enableDdosProtection":false,"enableVmProtection":false}},{"name":"Dtlcliautomationlab","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitestlab1/providers/Microsoft.Network/virtualNetworks/Dtlcliautomationlab","etag":"W/\"260bff7b-7436-49c5-8836-49b261c2e518\"","type":"Microsoft.Network/virtualNetworks","location":"southcentralus","tags":{"hidden-DevTestLabs-LabUId":"ca9ec547-32c5-422d-b3d2-25906ed71959"},"properties":{"provisioningState":"Succeeded","resourceGuid":"b083abf5-63cf-4ba2-b6fa-55ce660ce895","addressSpace":{"addressPrefixes":["10.0.0.0/20"]},"dhcpOptions":{"dnsServers":[]},"subnets":[{"name":"DtlcliautomationlabSubnet","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitestlab1/providers/Microsoft.Network/virtualNetworks/Dtlcliautomationlab/subnets/DtlcliautomationlabSubnet","etag":"W/\"260bff7b-7436-49c5-8836-49b261c2e518\"","properties":{"provisioningState":"Succeeded","addressPrefix":"10.0.0.0/20","networkSecurityGroup":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg1"},"delegations":[]},"type":"Microsoft.Network/virtualNetworks/subnets"}],"virtualNetworkPeerings":[],"enableDdosProtection":false,"enableVmProtection":false}},{"name":"lmazuel-testcapture-vnet","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/lmazuel-testcapture/providers/Microsoft.Network/virtualNetworks/lmazuel-testcapture-vnet","etag":"W/\"e9cc42b4-8cd7-4839-ab92-fe3147b98a20\"","type":"Microsoft.Network/virtualNetworks","location":"westus2","properties":{"provisioningState":"Succeeded","resourceGuid":"a1ba5e36-4ef1-4778-bac9-826091314efa","addressSpace":{"addressPrefixes":["10.1.0.0/24"]},"subnets":[{"name":"default","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/lmazuel-testcapture/providers/Microsoft.Network/virtualNetworks/lmazuel-testcapture-vnet/subnets/default","etag":"W/\"e9cc42b4-8cd7-4839-ab92-fe3147b98a20\"","properties":{"provisioningState":"Succeeded","addressPrefix":"10.1.0.0/24","networkSecurityGroup":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cleanupservice/providers/Microsoft.Network/networkSecurityGroups/rg-cleanupservice-nsg2"},"ipConfigurations":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/lmazuel-testcapture/providers/Microsoft.Network/networkInterfaces/lmazuel-testcapture427/ipConfigurations/ipconfig1"}],"delegations":[]},"type":"Microsoft.Network/virtualNetworks/subnets"}],"virtualNetworkPeerings":[],"enableDdosProtection":false,"enableVmProtection":false}}]}'} headers: cache-control: [no-cache] - content-length: ['15791'] + content-length: ['14517'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 18:10:47 GMT'] + date: ['Tue, 27 Nov 2018 20:46:57 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] vary: [Accept-Encoding] x-content-type-options: [nosniff] - x-ms-original-request-ids: [66136c22-8ce1-4a04-9889-78e10c00ae74, 3db1bc2d-c7dd-41ec-9b3b-1486dffc8f61, - 95c00f16-b8fa-4013-8799-58ea46533053, 21199ba6-985e-433f-85a5-f4e095c136b4, - 369d4cc6-cbf9-44e5-ba9a-1d6437ce34dc] + x-ms-original-request-ids: [7ad060c3-2b25-496c-8b97-3d6ff1c739de, 38285f4d-b1da-42a6-b824-354fef0afc26, + 328381d1-11c5-4e23-b628-a6c897d1e752, 8882c43c-8bd7-4123-9cfb-69b1a07f6b86] status: {code: 200, message: OK} - request: body: null @@ -309,20 +308,20 @@ interactions: Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['0'] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] accept-language: [en-US] method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_networks4725106e/providers/Microsoft.Network/virtualNetworks/pyvnet4725106e?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_network_test_virtual_networks4725106e/providers/Microsoft.Network/virtualNetworks/pyvnet4725106e?api-version=2018-10-01 response: body: {string: ''} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/11f92986-680b-43cd-9243-f83eb11a25ea?api-version=2018-08-01'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/68663164-1cd5-4547-8f58-106db3daf203?api-version=2018-10-01'] cache-control: [no-cache] content-length: ['0'] - date: ['Tue, 11 Sep 2018 18:10:47 GMT'] + date: ['Tue, 27 Nov 2018 20:46:57 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/11f92986-680b-43cd-9243-f83eb11a25ea?api-version=2018-08-01'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operationResults/68663164-1cd5-4547-8f58-106db3daf203?api-version=2018-10-01'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -335,17 +334,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) requests/2.19.1 msrest/0.5.5 - msrest_azure/0.4.34 networkmanagementclient/2.2.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.3 (Windows-10-10.0.17134-SP0) msrest/0.6.1 msrest_azure/0.4.34 + networkmanagementclient/2.4.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/11f92986-680b-43cd-9243-f83eb11a25ea?api-version=2018-08-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/68663164-1cd5-4547-8f58-106db3daf203?api-version=2018-10-01 response: body: {string: "{\r\n \"status\": \"Succeeded\"\r\n}"} headers: cache-control: [no-cache] content-length: ['29'] content-type: [application/json; charset=utf-8] - date: ['Tue, 11 Sep 2018 18:10:58 GMT'] + date: ['Tue, 27 Nov 2018 20:47:08 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] From ec18d0b25be10fddbde416b901b905dfb0896430 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Tue, 27 Nov 2018 13:57:19 -0800 Subject: [PATCH 02/12] [AutoPR] sqlvirtualmachine/resource-manager (#3810) * [AutoPR sqlvirtualmachine/resource-manager] [Do Not Merge] New Swagger specification for Microsoft.SqlVirtualMachine Resource Provider. (#3748) * Generated from 5e8b28090177ca4a22ae577fdecc8f4bae4ebcd0 Addressing code review comments, adding readme file * Packaging update of azure-mgmt-sqlvirtualmachine * Generated from f2820727481088045e25bda0ffe17cd71e304d2c Addressing code review comments * Generated from 5fb1ee8844dbe6df07569a955405beda98f63e59 Addressing comments * Packaging * Packaging update of azure-mgmt-sqlvirtualmachine * Update version.py --- azure-mgmt-sqlvirtualmachine/HISTORY.rst | 9 + azure-mgmt-sqlvirtualmachine/MANIFEST.in | 4 + azure-mgmt-sqlvirtualmachine/README.rst | 49 ++ .../azure/__init__.py | 1 + .../azure/mgmt/__init__.py | 1 + .../azure/mgmt/sqlvirtualmachine/__init__.py | 18 + .../mgmt/sqlvirtualmachine/models/__init__.py | 121 ++++ ...ditional_features_server_configurations.py | 34 ++ ...onal_features_server_configurations_py3.py | 34 ++ .../models/auto_backup_settings.py | 83 +++ .../models/auto_backup_settings_py3.py | 83 +++ .../models/auto_patching_settings.py | 43 ++ .../models/auto_patching_settings_py3.py | 43 ++ .../models/availability_group_listener.py | 67 +++ .../availability_group_listener_paged.py | 27 + .../models/availability_group_listener_py3.py | 67 +++ .../models/key_vault_credential_settings.py | 46 ++ .../key_vault_credential_settings_py3.py | 46 ++ .../models/load_balancer_configuration.py | 47 ++ .../models/load_balancer_configuration_py3.py | 47 ++ .../sqlvirtualmachine/models/operation.py | 54 ++ .../models/operation_display.py | 51 ++ .../models/operation_display_py3.py | 51 ++ .../models/operation_paged.py | 27 + .../sqlvirtualmachine/models/operation_py3.py | 54 ++ .../models/private_ip_address.py | 33 ++ .../models/private_ip_address_py3.py | 33 ++ .../models/proxy_resource.py | 42 ++ .../models/proxy_resource_py3.py | 42 ++ .../mgmt/sqlvirtualmachine/models/resource.py | 45 ++ .../models/resource_identity.py | 46 ++ .../models/resource_identity_py3.py | 46 ++ .../sqlvirtualmachine/models/resource_py3.py | 45 ++ ...rver_configurations_management_settings.py | 45 ++ ..._configurations_management_settings_py3.py | 45 ++ .../sql_connectivity_update_settings.py | 42 ++ .../sql_connectivity_update_settings_py3.py | 42 ++ .../models/sql_storage_update_settings.py | 34 ++ .../models/sql_storage_update_settings_py3.py | 34 ++ .../models/sql_virtual_machine.py | 118 ++++ .../models/sql_virtual_machine_group.py | 93 +++ .../models/sql_virtual_machine_group_paged.py | 27 + .../models/sql_virtual_machine_group_py3.py | 93 +++ .../sql_virtual_machine_group_update.py | 28 + .../sql_virtual_machine_group_update_py3.py | 28 + ...virtual_machine_management_client_enums.py | 97 ++++ .../models/sql_virtual_machine_paged.py | 27 + .../models/sql_virtual_machine_py3.py | 118 ++++ .../models/sql_virtual_machine_update.py | 28 + .../models/sql_virtual_machine_update_py3.py | 28 + .../sql_workload_type_update_settings.py | 30 + .../sql_workload_type_update_settings_py3.py | 30 + .../models/tracked_resource.py | 53 ++ .../models/tracked_resource_py3.py | 53 ++ .../models/wsfc_domain_credentials.py | 39 ++ .../models/wsfc_domain_credentials_py3.py | 39 ++ .../models/wsfc_domain_profile.py | 64 +++ .../models/wsfc_domain_profile_py3.py | 64 +++ .../sqlvirtualmachine/operations/__init__.py | 22 + ...availability_group_listeners_operations.py | 381 +++++++++++++ .../operations/operations.py | 98 ++++ .../sql_virtual_machine_groups_operations.py | 531 ++++++++++++++++++ .../sql_virtual_machines_operations.py | 531 ++++++++++++++++++ .../sql_virtual_machine_management_client.py | 98 ++++ .../azure/mgmt/sqlvirtualmachine/version.py | 13 + .../sdk_packaging.toml | 7 + azure-mgmt-sqlvirtualmachine/setup.cfg | 2 + azure-mgmt-sqlvirtualmachine/setup.py | 87 +++ 68 files changed, 4508 insertions(+) create mode 100644 azure-mgmt-sqlvirtualmachine/HISTORY.rst create mode 100644 azure-mgmt-sqlvirtualmachine/MANIFEST.in create mode 100644 azure-mgmt-sqlvirtualmachine/README.rst create mode 100644 azure-mgmt-sqlvirtualmachine/azure/__init__.py create mode 100644 azure-mgmt-sqlvirtualmachine/azure/mgmt/__init__.py create mode 100644 azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/__init__.py create mode 100644 azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/__init__.py create mode 100644 azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/additional_features_server_configurations.py create mode 100644 azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/additional_features_server_configurations_py3.py create mode 100644 azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/auto_backup_settings.py create mode 100644 azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/auto_backup_settings_py3.py create mode 100644 azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/auto_patching_settings.py create mode 100644 azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/auto_patching_settings_py3.py create mode 100644 azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/availability_group_listener.py create mode 100644 azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/availability_group_listener_paged.py create mode 100644 azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/availability_group_listener_py3.py create mode 100644 azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/key_vault_credential_settings.py create mode 100644 azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/key_vault_credential_settings_py3.py create mode 100644 azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/load_balancer_configuration.py create mode 100644 azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/load_balancer_configuration_py3.py create mode 100644 azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/operation.py create mode 100644 azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/operation_display.py create mode 100644 azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/operation_display_py3.py create mode 100644 azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/operation_paged.py create mode 100644 azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/operation_py3.py create mode 100644 azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/private_ip_address.py create mode 100644 azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/private_ip_address_py3.py create mode 100644 azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/proxy_resource.py create mode 100644 azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/proxy_resource_py3.py create mode 100644 azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/resource.py create mode 100644 azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/resource_identity.py create mode 100644 azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/resource_identity_py3.py create mode 100644 azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/resource_py3.py create mode 100644 azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/server_configurations_management_settings.py create mode 100644 azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/server_configurations_management_settings_py3.py create mode 100644 azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_connectivity_update_settings.py create mode 100644 azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_connectivity_update_settings_py3.py create mode 100644 azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_storage_update_settings.py create mode 100644 azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_storage_update_settings_py3.py create mode 100644 azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_virtual_machine.py create mode 100644 azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_virtual_machine_group.py create mode 100644 azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_virtual_machine_group_paged.py create mode 100644 azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_virtual_machine_group_py3.py create mode 100644 azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_virtual_machine_group_update.py create mode 100644 azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_virtual_machine_group_update_py3.py create mode 100644 azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_virtual_machine_management_client_enums.py create mode 100644 azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_virtual_machine_paged.py create mode 100644 azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_virtual_machine_py3.py create mode 100644 azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_virtual_machine_update.py create mode 100644 azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_virtual_machine_update_py3.py create mode 100644 azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_workload_type_update_settings.py create mode 100644 azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_workload_type_update_settings_py3.py create mode 100644 azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/tracked_resource.py create mode 100644 azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/tracked_resource_py3.py create mode 100644 azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/wsfc_domain_credentials.py create mode 100644 azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/wsfc_domain_credentials_py3.py create mode 100644 azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/wsfc_domain_profile.py create mode 100644 azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/wsfc_domain_profile_py3.py create mode 100644 azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/operations/__init__.py create mode 100644 azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/operations/availability_group_listeners_operations.py create mode 100644 azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/operations/operations.py create mode 100644 azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/operations/sql_virtual_machine_groups_operations.py create mode 100644 azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/operations/sql_virtual_machines_operations.py create mode 100644 azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/sql_virtual_machine_management_client.py create mode 100644 azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/version.py create mode 100644 azure-mgmt-sqlvirtualmachine/sdk_packaging.toml create mode 100644 azure-mgmt-sqlvirtualmachine/setup.cfg create mode 100644 azure-mgmt-sqlvirtualmachine/setup.py diff --git a/azure-mgmt-sqlvirtualmachine/HISTORY.rst b/azure-mgmt-sqlvirtualmachine/HISTORY.rst new file mode 100644 index 000000000000..fbbc2771cae4 --- /dev/null +++ b/azure-mgmt-sqlvirtualmachine/HISTORY.rst @@ -0,0 +1,9 @@ +.. :changelog: + +Release History +=============== + +0.1.0 (2018-11-27) +++++++++++++++++++ + +* Initial Release diff --git a/azure-mgmt-sqlvirtualmachine/MANIFEST.in b/azure-mgmt-sqlvirtualmachine/MANIFEST.in new file mode 100644 index 000000000000..6ceb27f7a96e --- /dev/null +++ b/azure-mgmt-sqlvirtualmachine/MANIFEST.in @@ -0,0 +1,4 @@ +include *.rst +include azure/__init__.py +include azure/mgmt/__init__.py + diff --git a/azure-mgmt-sqlvirtualmachine/README.rst b/azure-mgmt-sqlvirtualmachine/README.rst new file mode 100644 index 000000000000..c9f0b9498ffe --- /dev/null +++ b/azure-mgmt-sqlvirtualmachine/README.rst @@ -0,0 +1,49 @@ +Microsoft Azure SDK for Python +============================== + +This is the Microsoft Azure SQL Virtual Machine Management Client Library. + +Azure Resource Manager (ARM) is the next generation of management APIs that +replace the old Azure Service Management (ASM). + +This package has been tested with Python 2.7, 3.4, 3.5, 3.6 and 3.7. + +For the older Azure Service Management (ASM) libraries, see +`azure-servicemanagement-legacy `__ library. + +For a more complete set of Azure libraries, see the `azure `__ bundle package. + + +Compatibility +============= + +**IMPORTANT**: If you have an earlier version of the azure package +(version < 1.0), you should uninstall it before installing this package. + +You can check the version using pip: + +.. code:: shell + + pip freeze + +If you see azure==0.11.0 (or any version below 1.0), uninstall it first: + +.. code:: shell + + pip uninstall azure + + +Usage +===== + +For code examples, see `SQL Virtual Machine Management +`__ +on docs.microsoft.com. + + +Provide Feedback +================ + +If you encounter any bugs or have suggestions, please file an issue in the +`Issues `__ +section of the project. diff --git a/azure-mgmt-sqlvirtualmachine/azure/__init__.py b/azure-mgmt-sqlvirtualmachine/azure/__init__.py new file mode 100644 index 000000000000..0260537a02bb --- /dev/null +++ b/azure-mgmt-sqlvirtualmachine/azure/__init__.py @@ -0,0 +1 @@ +__path__ = __import__('pkgutil').extend_path(__path__, __name__) \ No newline at end of file diff --git a/azure-mgmt-sqlvirtualmachine/azure/mgmt/__init__.py b/azure-mgmt-sqlvirtualmachine/azure/mgmt/__init__.py new file mode 100644 index 000000000000..0260537a02bb --- /dev/null +++ b/azure-mgmt-sqlvirtualmachine/azure/mgmt/__init__.py @@ -0,0 +1 @@ +__path__ = __import__('pkgutil').extend_path(__path__, __name__) \ No newline at end of file diff --git a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/__init__.py b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/__init__.py new file mode 100644 index 000000000000..d5491dd89ac6 --- /dev/null +++ b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/__init__.py @@ -0,0 +1,18 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sql_virtual_machine_management_client import SqlVirtualMachineManagementClient +from .version import VERSION + +__all__ = ['SqlVirtualMachineManagementClient'] + +__version__ = VERSION + diff --git a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/__init__.py b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/__init__.py new file mode 100644 index 000000000000..5855d2727ed8 --- /dev/null +++ b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/__init__.py @@ -0,0 +1,121 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +try: + from .private_ip_address_py3 import PrivateIPAddress + from .load_balancer_configuration_py3 import LoadBalancerConfiguration + from .resource_py3 import Resource + from .proxy_resource_py3 import ProxyResource + from .availability_group_listener_py3 import AvailabilityGroupListener + from .operation_display_py3 import OperationDisplay + from .operation_py3 import Operation + from .wsfc_domain_profile_py3 import WsfcDomainProfile + from .tracked_resource_py3 import TrackedResource + from .sql_virtual_machine_group_py3 import SqlVirtualMachineGroup + from .sql_virtual_machine_group_update_py3 import SqlVirtualMachineGroupUpdate + from .resource_identity_py3 import ResourceIdentity + from .wsfc_domain_credentials_py3 import WsfcDomainCredentials + from .auto_patching_settings_py3 import AutoPatchingSettings + from .auto_backup_settings_py3 import AutoBackupSettings + from .key_vault_credential_settings_py3 import KeyVaultCredentialSettings + from .sql_connectivity_update_settings_py3 import SqlConnectivityUpdateSettings + from .sql_workload_type_update_settings_py3 import SqlWorkloadTypeUpdateSettings + from .sql_storage_update_settings_py3 import SqlStorageUpdateSettings + from .additional_features_server_configurations_py3 import AdditionalFeaturesServerConfigurations + from .server_configurations_management_settings_py3 import ServerConfigurationsManagementSettings + from .sql_virtual_machine_py3 import SqlVirtualMachine + from .sql_virtual_machine_update_py3 import SqlVirtualMachineUpdate +except (SyntaxError, ImportError): + from .private_ip_address import PrivateIPAddress + from .load_balancer_configuration import LoadBalancerConfiguration + from .resource import Resource + from .proxy_resource import ProxyResource + from .availability_group_listener import AvailabilityGroupListener + from .operation_display import OperationDisplay + from .operation import Operation + from .wsfc_domain_profile import WsfcDomainProfile + from .tracked_resource import TrackedResource + from .sql_virtual_machine_group import SqlVirtualMachineGroup + from .sql_virtual_machine_group_update import SqlVirtualMachineGroupUpdate + from .resource_identity import ResourceIdentity + from .wsfc_domain_credentials import WsfcDomainCredentials + from .auto_patching_settings import AutoPatchingSettings + from .auto_backup_settings import AutoBackupSettings + from .key_vault_credential_settings import KeyVaultCredentialSettings + from .sql_connectivity_update_settings import SqlConnectivityUpdateSettings + from .sql_workload_type_update_settings import SqlWorkloadTypeUpdateSettings + from .sql_storage_update_settings import SqlStorageUpdateSettings + from .additional_features_server_configurations import AdditionalFeaturesServerConfigurations + from .server_configurations_management_settings import ServerConfigurationsManagementSettings + from .sql_virtual_machine import SqlVirtualMachine + from .sql_virtual_machine_update import SqlVirtualMachineUpdate +from .availability_group_listener_paged import AvailabilityGroupListenerPaged +from .operation_paged import OperationPaged +from .sql_virtual_machine_group_paged import SqlVirtualMachineGroupPaged +from .sql_virtual_machine_paged import SqlVirtualMachinePaged +from .sql_virtual_machine_management_client_enums import ( + OperationOrigin, + SqlImageSku, + ScaleType, + ClusterManagerType, + ClusterConfiguration, + IdentityType, + SqlServerLicenseType, + DayOfWeek, + BackupScheduleType, + FullBackupFrequencyType, + ConnectivityType, + SqlWorkloadType, + DiskConfigurationType, +) + +__all__ = [ + 'PrivateIPAddress', + 'LoadBalancerConfiguration', + 'Resource', + 'ProxyResource', + 'AvailabilityGroupListener', + 'OperationDisplay', + 'Operation', + 'WsfcDomainProfile', + 'TrackedResource', + 'SqlVirtualMachineGroup', + 'SqlVirtualMachineGroupUpdate', + 'ResourceIdentity', + 'WsfcDomainCredentials', + 'AutoPatchingSettings', + 'AutoBackupSettings', + 'KeyVaultCredentialSettings', + 'SqlConnectivityUpdateSettings', + 'SqlWorkloadTypeUpdateSettings', + 'SqlStorageUpdateSettings', + 'AdditionalFeaturesServerConfigurations', + 'ServerConfigurationsManagementSettings', + 'SqlVirtualMachine', + 'SqlVirtualMachineUpdate', + 'AvailabilityGroupListenerPaged', + 'OperationPaged', + 'SqlVirtualMachineGroupPaged', + 'SqlVirtualMachinePaged', + 'OperationOrigin', + 'SqlImageSku', + 'ScaleType', + 'ClusterManagerType', + 'ClusterConfiguration', + 'IdentityType', + 'SqlServerLicenseType', + 'DayOfWeek', + 'BackupScheduleType', + 'FullBackupFrequencyType', + 'ConnectivityType', + 'SqlWorkloadType', + 'DiskConfigurationType', +] diff --git a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/additional_features_server_configurations.py b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/additional_features_server_configurations.py new file mode 100644 index 000000000000..cd976abb8474 --- /dev/null +++ b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/additional_features_server_configurations.py @@ -0,0 +1,34 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AdditionalFeaturesServerConfigurations(Model): + """Additional SQL Server feature settings. + + :param is_rservices_enabled: Enable or disable R services (SQL 2016 + onwards). + :type is_rservices_enabled: bool + :param backup_permissions_for_azure_backup_svc: Enable or disable Azure + Backup service. + :type backup_permissions_for_azure_backup_svc: bool + """ + + _attribute_map = { + 'is_rservices_enabled': {'key': 'isRServicesEnabled', 'type': 'bool'}, + 'backup_permissions_for_azure_backup_svc': {'key': 'backupPermissionsForAzureBackupSvc', 'type': 'bool'}, + } + + def __init__(self, **kwargs): + super(AdditionalFeaturesServerConfigurations, self).__init__(**kwargs) + self.is_rservices_enabled = kwargs.get('is_rservices_enabled', None) + self.backup_permissions_for_azure_backup_svc = kwargs.get('backup_permissions_for_azure_backup_svc', None) diff --git a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/additional_features_server_configurations_py3.py b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/additional_features_server_configurations_py3.py new file mode 100644 index 000000000000..6fd2cc8931bf --- /dev/null +++ b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/additional_features_server_configurations_py3.py @@ -0,0 +1,34 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AdditionalFeaturesServerConfigurations(Model): + """Additional SQL Server feature settings. + + :param is_rservices_enabled: Enable or disable R services (SQL 2016 + onwards). + :type is_rservices_enabled: bool + :param backup_permissions_for_azure_backup_svc: Enable or disable Azure + Backup service. + :type backup_permissions_for_azure_backup_svc: bool + """ + + _attribute_map = { + 'is_rservices_enabled': {'key': 'isRServicesEnabled', 'type': 'bool'}, + 'backup_permissions_for_azure_backup_svc': {'key': 'backupPermissionsForAzureBackupSvc', 'type': 'bool'}, + } + + def __init__(self, *, is_rservices_enabled: bool=None, backup_permissions_for_azure_backup_svc: bool=None, **kwargs) -> None: + super(AdditionalFeaturesServerConfigurations, self).__init__(**kwargs) + self.is_rservices_enabled = is_rservices_enabled + self.backup_permissions_for_azure_backup_svc = backup_permissions_for_azure_backup_svc diff --git a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/auto_backup_settings.py b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/auto_backup_settings.py new file mode 100644 index 000000000000..dbeab14c0e17 --- /dev/null +++ b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/auto_backup_settings.py @@ -0,0 +1,83 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AutoBackupSettings(Model): + """Configure backups for databases in your SQL virtual machine. + + :param enable: Enable or disable autobackup on SQL virtual machine. + :type enable: bool + :param enable_encryption: Enable or disable encryption for backup on SQL + virtual machine. + :type enable_encryption: bool + :param retention_period: Retention period of backup: 1-30 days. + :type retention_period: int + :param storage_account_url: Storage account url where backup will be taken + to. + :type storage_account_url: str + :param storage_access_key: Storage account key where backup will be taken + to. + :type storage_access_key: str + :param password: Password for encryption on backup. + :type password: str + :param backup_system_dbs: Include or exclude system databases from auto + backup. + :type backup_system_dbs: bool + :param backup_schedule_type: Backup schedule type. Possible values + include: 'Manual', 'Automated' + :type backup_schedule_type: str or + ~azure.mgmt.sqlvirtualmachine.models.BackupScheduleType + :param full_backup_frequency: Frequency of full backups. In both cases, + full backups begin during the next scheduled time window. Possible values + include: 'Daily', 'Weekly' + :type full_backup_frequency: str or + ~azure.mgmt.sqlvirtualmachine.models.FullBackupFrequencyType + :param full_backup_start_time: Start time of a given day during which full + backups can take place. 0-23 hours. + :type full_backup_start_time: int + :param full_backup_window_hours: Duration of the time window of a given + day during which full backups can take place. 1-23 hours. + :type full_backup_window_hours: int + :param log_backup_frequency: Frequency of log backups. 5-60 minutes. + :type log_backup_frequency: int + """ + + _attribute_map = { + 'enable': {'key': 'enable', 'type': 'bool'}, + 'enable_encryption': {'key': 'enableEncryption', 'type': 'bool'}, + 'retention_period': {'key': 'retentionPeriod', 'type': 'int'}, + 'storage_account_url': {'key': 'storageAccountUrl', 'type': 'str'}, + 'storage_access_key': {'key': 'storageAccessKey', 'type': 'str'}, + 'password': {'key': 'password', 'type': 'str'}, + 'backup_system_dbs': {'key': 'backupSystemDbs', 'type': 'bool'}, + 'backup_schedule_type': {'key': 'backupScheduleType', 'type': 'str'}, + 'full_backup_frequency': {'key': 'fullBackupFrequency', 'type': 'str'}, + 'full_backup_start_time': {'key': 'fullBackupStartTime', 'type': 'int'}, + 'full_backup_window_hours': {'key': 'fullBackupWindowHours', 'type': 'int'}, + 'log_backup_frequency': {'key': 'logBackupFrequency', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(AutoBackupSettings, self).__init__(**kwargs) + self.enable = kwargs.get('enable', None) + self.enable_encryption = kwargs.get('enable_encryption', None) + self.retention_period = kwargs.get('retention_period', None) + self.storage_account_url = kwargs.get('storage_account_url', None) + self.storage_access_key = kwargs.get('storage_access_key', None) + self.password = kwargs.get('password', None) + self.backup_system_dbs = kwargs.get('backup_system_dbs', None) + self.backup_schedule_type = kwargs.get('backup_schedule_type', None) + self.full_backup_frequency = kwargs.get('full_backup_frequency', None) + self.full_backup_start_time = kwargs.get('full_backup_start_time', None) + self.full_backup_window_hours = kwargs.get('full_backup_window_hours', None) + self.log_backup_frequency = kwargs.get('log_backup_frequency', None) diff --git a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/auto_backup_settings_py3.py b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/auto_backup_settings_py3.py new file mode 100644 index 000000000000..6913e4d11f50 --- /dev/null +++ b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/auto_backup_settings_py3.py @@ -0,0 +1,83 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AutoBackupSettings(Model): + """Configure backups for databases in your SQL virtual machine. + + :param enable: Enable or disable autobackup on SQL virtual machine. + :type enable: bool + :param enable_encryption: Enable or disable encryption for backup on SQL + virtual machine. + :type enable_encryption: bool + :param retention_period: Retention period of backup: 1-30 days. + :type retention_period: int + :param storage_account_url: Storage account url where backup will be taken + to. + :type storage_account_url: str + :param storage_access_key: Storage account key where backup will be taken + to. + :type storage_access_key: str + :param password: Password for encryption on backup. + :type password: str + :param backup_system_dbs: Include or exclude system databases from auto + backup. + :type backup_system_dbs: bool + :param backup_schedule_type: Backup schedule type. Possible values + include: 'Manual', 'Automated' + :type backup_schedule_type: str or + ~azure.mgmt.sqlvirtualmachine.models.BackupScheduleType + :param full_backup_frequency: Frequency of full backups. In both cases, + full backups begin during the next scheduled time window. Possible values + include: 'Daily', 'Weekly' + :type full_backup_frequency: str or + ~azure.mgmt.sqlvirtualmachine.models.FullBackupFrequencyType + :param full_backup_start_time: Start time of a given day during which full + backups can take place. 0-23 hours. + :type full_backup_start_time: int + :param full_backup_window_hours: Duration of the time window of a given + day during which full backups can take place. 1-23 hours. + :type full_backup_window_hours: int + :param log_backup_frequency: Frequency of log backups. 5-60 minutes. + :type log_backup_frequency: int + """ + + _attribute_map = { + 'enable': {'key': 'enable', 'type': 'bool'}, + 'enable_encryption': {'key': 'enableEncryption', 'type': 'bool'}, + 'retention_period': {'key': 'retentionPeriod', 'type': 'int'}, + 'storage_account_url': {'key': 'storageAccountUrl', 'type': 'str'}, + 'storage_access_key': {'key': 'storageAccessKey', 'type': 'str'}, + 'password': {'key': 'password', 'type': 'str'}, + 'backup_system_dbs': {'key': 'backupSystemDbs', 'type': 'bool'}, + 'backup_schedule_type': {'key': 'backupScheduleType', 'type': 'str'}, + 'full_backup_frequency': {'key': 'fullBackupFrequency', 'type': 'str'}, + 'full_backup_start_time': {'key': 'fullBackupStartTime', 'type': 'int'}, + 'full_backup_window_hours': {'key': 'fullBackupWindowHours', 'type': 'int'}, + 'log_backup_frequency': {'key': 'logBackupFrequency', 'type': 'int'}, + } + + def __init__(self, *, enable: bool=None, enable_encryption: bool=None, retention_period: int=None, storage_account_url: str=None, storage_access_key: str=None, password: str=None, backup_system_dbs: bool=None, backup_schedule_type=None, full_backup_frequency=None, full_backup_start_time: int=None, full_backup_window_hours: int=None, log_backup_frequency: int=None, **kwargs) -> None: + super(AutoBackupSettings, self).__init__(**kwargs) + self.enable = enable + self.enable_encryption = enable_encryption + self.retention_period = retention_period + self.storage_account_url = storage_account_url + self.storage_access_key = storage_access_key + self.password = password + self.backup_system_dbs = backup_system_dbs + self.backup_schedule_type = backup_schedule_type + self.full_backup_frequency = full_backup_frequency + self.full_backup_start_time = full_backup_start_time + self.full_backup_window_hours = full_backup_window_hours + self.log_backup_frequency = log_backup_frequency diff --git a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/auto_patching_settings.py b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/auto_patching_settings.py new file mode 100644 index 000000000000..6f91282e5ee0 --- /dev/null +++ b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/auto_patching_settings.py @@ -0,0 +1,43 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AutoPatchingSettings(Model): + """Set a patching window during which Windows and SQL patches will be applied. + + :param enable: Enable or disable autopatching on SQL virtual machine. + :type enable: bool + :param day_of_week: Day of week to apply the patch on. Possible values + include: 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', + 'Saturday', 'Sunday' + :type day_of_week: str or ~azure.mgmt.sqlvirtualmachine.models.DayOfWeek + :param maintenance_window_starting_hour: Hour of the day when patching is + initiated. Local VM time. + :type maintenance_window_starting_hour: int + :param maintenance_window_duration: Duration of patching. + :type maintenance_window_duration: int + """ + + _attribute_map = { + 'enable': {'key': 'enable', 'type': 'bool'}, + 'day_of_week': {'key': 'dayOfWeek', 'type': 'DayOfWeek'}, + 'maintenance_window_starting_hour': {'key': 'maintenanceWindowStartingHour', 'type': 'int'}, + 'maintenance_window_duration': {'key': 'maintenanceWindowDuration', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(AutoPatchingSettings, self).__init__(**kwargs) + self.enable = kwargs.get('enable', None) + self.day_of_week = kwargs.get('day_of_week', None) + self.maintenance_window_starting_hour = kwargs.get('maintenance_window_starting_hour', None) + self.maintenance_window_duration = kwargs.get('maintenance_window_duration', None) diff --git a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/auto_patching_settings_py3.py b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/auto_patching_settings_py3.py new file mode 100644 index 000000000000..743aa0f69e79 --- /dev/null +++ b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/auto_patching_settings_py3.py @@ -0,0 +1,43 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AutoPatchingSettings(Model): + """Set a patching window during which Windows and SQL patches will be applied. + + :param enable: Enable or disable autopatching on SQL virtual machine. + :type enable: bool + :param day_of_week: Day of week to apply the patch on. Possible values + include: 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', + 'Saturday', 'Sunday' + :type day_of_week: str or ~azure.mgmt.sqlvirtualmachine.models.DayOfWeek + :param maintenance_window_starting_hour: Hour of the day when patching is + initiated. Local VM time. + :type maintenance_window_starting_hour: int + :param maintenance_window_duration: Duration of patching. + :type maintenance_window_duration: int + """ + + _attribute_map = { + 'enable': {'key': 'enable', 'type': 'bool'}, + 'day_of_week': {'key': 'dayOfWeek', 'type': 'DayOfWeek'}, + 'maintenance_window_starting_hour': {'key': 'maintenanceWindowStartingHour', 'type': 'int'}, + 'maintenance_window_duration': {'key': 'maintenanceWindowDuration', 'type': 'int'}, + } + + def __init__(self, *, enable: bool=None, day_of_week=None, maintenance_window_starting_hour: int=None, maintenance_window_duration: int=None, **kwargs) -> None: + super(AutoPatchingSettings, self).__init__(**kwargs) + self.enable = enable + self.day_of_week = day_of_week + self.maintenance_window_starting_hour = maintenance_window_starting_hour + self.maintenance_window_duration = maintenance_window_duration diff --git a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/availability_group_listener.py b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/availability_group_listener.py new file mode 100644 index 000000000000..0647367c314f --- /dev/null +++ b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/availability_group_listener.py @@ -0,0 +1,67 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .proxy_resource import ProxyResource + + +class AvailabilityGroupListener(ProxyResource): + """A SQL Server availability group listener. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar provisioning_state: Provisioning state to track the aysnc operation + status. + :vartype provisioning_state: str + :param availability_group_name: Name of the availability group. + :type availability_group_name: str + :param load_balancer_configurations: List of load balancer configurations + for an availability group listener. + :type load_balancer_configurations: + list[~azure.mgmt.sqlvirtualmachine.models.LoadBalancerConfiguration] + :param create_default_availability_group_if_not_exist: Create a default + availability group if it does not exist. + :type create_default_availability_group_if_not_exist: bool + :param port: Listener port. + :type port: int + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'availability_group_name': {'key': 'properties.availabilityGroupName', 'type': 'str'}, + 'load_balancer_configurations': {'key': 'properties.loadBalancerConfigurations', 'type': '[LoadBalancerConfiguration]'}, + 'create_default_availability_group_if_not_exist': {'key': 'properties.createDefaultAvailabilityGroupIfNotExist', 'type': 'bool'}, + 'port': {'key': 'properties.port', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(AvailabilityGroupListener, self).__init__(**kwargs) + self.provisioning_state = None + self.availability_group_name = kwargs.get('availability_group_name', None) + self.load_balancer_configurations = kwargs.get('load_balancer_configurations', None) + self.create_default_availability_group_if_not_exist = kwargs.get('create_default_availability_group_if_not_exist', None) + self.port = kwargs.get('port', None) diff --git a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/availability_group_listener_paged.py b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/availability_group_listener_paged.py new file mode 100644 index 000000000000..af5e37f8ae9a --- /dev/null +++ b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/availability_group_listener_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class AvailabilityGroupListenerPaged(Paged): + """ + A paging container for iterating over a list of :class:`AvailabilityGroupListener ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[AvailabilityGroupListener]'} + } + + def __init__(self, *args, **kwargs): + + super(AvailabilityGroupListenerPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/availability_group_listener_py3.py b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/availability_group_listener_py3.py new file mode 100644 index 000000000000..2f290deacd45 --- /dev/null +++ b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/availability_group_listener_py3.py @@ -0,0 +1,67 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .proxy_resource_py3 import ProxyResource + + +class AvailabilityGroupListener(ProxyResource): + """A SQL Server availability group listener. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :ivar provisioning_state: Provisioning state to track the aysnc operation + status. + :vartype provisioning_state: str + :param availability_group_name: Name of the availability group. + :type availability_group_name: str + :param load_balancer_configurations: List of load balancer configurations + for an availability group listener. + :type load_balancer_configurations: + list[~azure.mgmt.sqlvirtualmachine.models.LoadBalancerConfiguration] + :param create_default_availability_group_if_not_exist: Create a default + availability group if it does not exist. + :type create_default_availability_group_if_not_exist: bool + :param port: Listener port. + :type port: int + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'availability_group_name': {'key': 'properties.availabilityGroupName', 'type': 'str'}, + 'load_balancer_configurations': {'key': 'properties.loadBalancerConfigurations', 'type': '[LoadBalancerConfiguration]'}, + 'create_default_availability_group_if_not_exist': {'key': 'properties.createDefaultAvailabilityGroupIfNotExist', 'type': 'bool'}, + 'port': {'key': 'properties.port', 'type': 'int'}, + } + + def __init__(self, *, availability_group_name: str=None, load_balancer_configurations=None, create_default_availability_group_if_not_exist: bool=None, port: int=None, **kwargs) -> None: + super(AvailabilityGroupListener, self).__init__(**kwargs) + self.provisioning_state = None + self.availability_group_name = availability_group_name + self.load_balancer_configurations = load_balancer_configurations + self.create_default_availability_group_if_not_exist = create_default_availability_group_if_not_exist + self.port = port diff --git a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/key_vault_credential_settings.py b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/key_vault_credential_settings.py new file mode 100644 index 000000000000..1da723d5a53e --- /dev/null +++ b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/key_vault_credential_settings.py @@ -0,0 +1,46 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class KeyVaultCredentialSettings(Model): + """Configure your SQL virtual machine to be able to connect to the Azure Key + Vault service. + + :param enable: Enable or disable key vault credential setting. + :type enable: bool + :param credential_name: Credential name. + :type credential_name: str + :param azure_key_vault_url: Azure Key Vault url. + :type azure_key_vault_url: str + :param service_principal_name: Service principal name to access key vault. + :type service_principal_name: str + :param service_principal_secret: Service principal name secret to access + key vault. + :type service_principal_secret: str + """ + + _attribute_map = { + 'enable': {'key': 'enable', 'type': 'bool'}, + 'credential_name': {'key': 'credentialName', 'type': 'str'}, + 'azure_key_vault_url': {'key': 'azureKeyVaultUrl', 'type': 'str'}, + 'service_principal_name': {'key': 'servicePrincipalName', 'type': 'str'}, + 'service_principal_secret': {'key': 'servicePrincipalSecret', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(KeyVaultCredentialSettings, self).__init__(**kwargs) + self.enable = kwargs.get('enable', None) + self.credential_name = kwargs.get('credential_name', None) + self.azure_key_vault_url = kwargs.get('azure_key_vault_url', None) + self.service_principal_name = kwargs.get('service_principal_name', None) + self.service_principal_secret = kwargs.get('service_principal_secret', None) diff --git a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/key_vault_credential_settings_py3.py b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/key_vault_credential_settings_py3.py new file mode 100644 index 000000000000..e7210b64f103 --- /dev/null +++ b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/key_vault_credential_settings_py3.py @@ -0,0 +1,46 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class KeyVaultCredentialSettings(Model): + """Configure your SQL virtual machine to be able to connect to the Azure Key + Vault service. + + :param enable: Enable or disable key vault credential setting. + :type enable: bool + :param credential_name: Credential name. + :type credential_name: str + :param azure_key_vault_url: Azure Key Vault url. + :type azure_key_vault_url: str + :param service_principal_name: Service principal name to access key vault. + :type service_principal_name: str + :param service_principal_secret: Service principal name secret to access + key vault. + :type service_principal_secret: str + """ + + _attribute_map = { + 'enable': {'key': 'enable', 'type': 'bool'}, + 'credential_name': {'key': 'credentialName', 'type': 'str'}, + 'azure_key_vault_url': {'key': 'azureKeyVaultUrl', 'type': 'str'}, + 'service_principal_name': {'key': 'servicePrincipalName', 'type': 'str'}, + 'service_principal_secret': {'key': 'servicePrincipalSecret', 'type': 'str'}, + } + + def __init__(self, *, enable: bool=None, credential_name: str=None, azure_key_vault_url: str=None, service_principal_name: str=None, service_principal_secret: str=None, **kwargs) -> None: + super(KeyVaultCredentialSettings, self).__init__(**kwargs) + self.enable = enable + self.credential_name = credential_name + self.azure_key_vault_url = azure_key_vault_url + self.service_principal_name = service_principal_name + self.service_principal_secret = service_principal_secret diff --git a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/load_balancer_configuration.py b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/load_balancer_configuration.py new file mode 100644 index 000000000000..df09e18404d1 --- /dev/null +++ b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/load_balancer_configuration.py @@ -0,0 +1,47 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class LoadBalancerConfiguration(Model): + """A load balancer configuration for an availability group listener. + + :param private_ip_address: Private IP address. + :type private_ip_address: + ~azure.mgmt.sqlvirtualmachine.models.PrivateIPAddress + :param public_ip_address_resource_id: Resource id of the public IP. + :type public_ip_address_resource_id: str + :param load_balancer_resource_id: Subnet used to include private IP. + :type load_balancer_resource_id: str + :param probe_port: Probe port. + :type probe_port: int + :param sql_virtual_machine_instances: List of the SQL virtual machine + instance resource id's that are enrolled into the availability group + listener. + :type sql_virtual_machine_instances: list[str] + """ + + _attribute_map = { + 'private_ip_address': {'key': 'privateIpAddress', 'type': 'PrivateIPAddress'}, + 'public_ip_address_resource_id': {'key': 'publicIpAddressResourceId', 'type': 'str'}, + 'load_balancer_resource_id': {'key': 'loadBalancerResourceId', 'type': 'str'}, + 'probe_port': {'key': 'probePort', 'type': 'int'}, + 'sql_virtual_machine_instances': {'key': 'sqlVirtualMachineInstances', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(LoadBalancerConfiguration, self).__init__(**kwargs) + self.private_ip_address = kwargs.get('private_ip_address', None) + self.public_ip_address_resource_id = kwargs.get('public_ip_address_resource_id', None) + self.load_balancer_resource_id = kwargs.get('load_balancer_resource_id', None) + self.probe_port = kwargs.get('probe_port', None) + self.sql_virtual_machine_instances = kwargs.get('sql_virtual_machine_instances', None) diff --git a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/load_balancer_configuration_py3.py b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/load_balancer_configuration_py3.py new file mode 100644 index 000000000000..c8cc7e3a17f9 --- /dev/null +++ b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/load_balancer_configuration_py3.py @@ -0,0 +1,47 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class LoadBalancerConfiguration(Model): + """A load balancer configuration for an availability group listener. + + :param private_ip_address: Private IP address. + :type private_ip_address: + ~azure.mgmt.sqlvirtualmachine.models.PrivateIPAddress + :param public_ip_address_resource_id: Resource id of the public IP. + :type public_ip_address_resource_id: str + :param load_balancer_resource_id: Subnet used to include private IP. + :type load_balancer_resource_id: str + :param probe_port: Probe port. + :type probe_port: int + :param sql_virtual_machine_instances: List of the SQL virtual machine + instance resource id's that are enrolled into the availability group + listener. + :type sql_virtual_machine_instances: list[str] + """ + + _attribute_map = { + 'private_ip_address': {'key': 'privateIpAddress', 'type': 'PrivateIPAddress'}, + 'public_ip_address_resource_id': {'key': 'publicIpAddressResourceId', 'type': 'str'}, + 'load_balancer_resource_id': {'key': 'loadBalancerResourceId', 'type': 'str'}, + 'probe_port': {'key': 'probePort', 'type': 'int'}, + 'sql_virtual_machine_instances': {'key': 'sqlVirtualMachineInstances', 'type': '[str]'}, + } + + def __init__(self, *, private_ip_address=None, public_ip_address_resource_id: str=None, load_balancer_resource_id: str=None, probe_port: int=None, sql_virtual_machine_instances=None, **kwargs) -> None: + super(LoadBalancerConfiguration, self).__init__(**kwargs) + self.private_ip_address = private_ip_address + self.public_ip_address_resource_id = public_ip_address_resource_id + self.load_balancer_resource_id = load_balancer_resource_id + self.probe_port = probe_port + self.sql_virtual_machine_instances = sql_virtual_machine_instances diff --git a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/operation.py b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/operation.py new file mode 100644 index 000000000000..4bc77d2a0022 --- /dev/null +++ b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/operation.py @@ -0,0 +1,54 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class Operation(Model): + """SQL REST API operation definition. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar name: The name of the operation being performed on this particular + object. + :vartype name: str + :ivar display: The localized display information for this particular + operation / action. + :vartype display: ~azure.mgmt.sqlvirtualmachine.models.OperationDisplay + :ivar origin: The intended executor of the operation. Possible values + include: 'user', 'system' + :vartype origin: str or + ~azure.mgmt.sqlvirtualmachine.models.OperationOrigin + :ivar properties: Additional descriptions for the operation. + :vartype properties: dict[str, object] + """ + + _validation = { + 'name': {'readonly': True}, + 'display': {'readonly': True}, + 'origin': {'readonly': True}, + 'properties': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display': {'key': 'display', 'type': 'OperationDisplay'}, + 'origin': {'key': 'origin', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': '{object}'}, + } + + def __init__(self, **kwargs): + super(Operation, self).__init__(**kwargs) + self.name = None + self.display = None + self.origin = None + self.properties = None diff --git a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/operation_display.py b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/operation_display.py new file mode 100644 index 000000000000..dfbc4a6fcff3 --- /dev/null +++ b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/operation_display.py @@ -0,0 +1,51 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class OperationDisplay(Model): + """Display metadata associated with the operation. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar provider: The localized friendly form of the resource provider name. + :vartype provider: str + :ivar resource: The localized friendly form of the resource type related + to this action/operation. + :vartype resource: str + :ivar operation: The localized friendly name for the operation. + :vartype operation: str + :ivar description: The localized friendly description for the operation. + :vartype description: str + """ + + _validation = { + 'provider': {'readonly': True}, + 'resource': {'readonly': True}, + 'operation': {'readonly': True}, + 'description': {'readonly': True}, + } + + _attribute_map = { + 'provider': {'key': 'provider', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(OperationDisplay, self).__init__(**kwargs) + self.provider = None + self.resource = None + self.operation = None + self.description = None diff --git a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/operation_display_py3.py b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/operation_display_py3.py new file mode 100644 index 000000000000..0541321c178c --- /dev/null +++ b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/operation_display_py3.py @@ -0,0 +1,51 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class OperationDisplay(Model): + """Display metadata associated with the operation. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar provider: The localized friendly form of the resource provider name. + :vartype provider: str + :ivar resource: The localized friendly form of the resource type related + to this action/operation. + :vartype resource: str + :ivar operation: The localized friendly name for the operation. + :vartype operation: str + :ivar description: The localized friendly description for the operation. + :vartype description: str + """ + + _validation = { + 'provider': {'readonly': True}, + 'resource': {'readonly': True}, + 'operation': {'readonly': True}, + 'description': {'readonly': True}, + } + + _attribute_map = { + 'provider': {'key': 'provider', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(OperationDisplay, self).__init__(**kwargs) + self.provider = None + self.resource = None + self.operation = None + self.description = None diff --git a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/operation_paged.py b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/operation_paged.py new file mode 100644 index 000000000000..cd39eb52dd4f --- /dev/null +++ b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/operation_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class OperationPaged(Paged): + """ + A paging container for iterating over a list of :class:`Operation ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[Operation]'} + } + + def __init__(self, *args, **kwargs): + + super(OperationPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/operation_py3.py b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/operation_py3.py new file mode 100644 index 000000000000..4c69dde360a8 --- /dev/null +++ b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/operation_py3.py @@ -0,0 +1,54 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class Operation(Model): + """SQL REST API operation definition. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar name: The name of the operation being performed on this particular + object. + :vartype name: str + :ivar display: The localized display information for this particular + operation / action. + :vartype display: ~azure.mgmt.sqlvirtualmachine.models.OperationDisplay + :ivar origin: The intended executor of the operation. Possible values + include: 'user', 'system' + :vartype origin: str or + ~azure.mgmt.sqlvirtualmachine.models.OperationOrigin + :ivar properties: Additional descriptions for the operation. + :vartype properties: dict[str, object] + """ + + _validation = { + 'name': {'readonly': True}, + 'display': {'readonly': True}, + 'origin': {'readonly': True}, + 'properties': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display': {'key': 'display', 'type': 'OperationDisplay'}, + 'origin': {'key': 'origin', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': '{object}'}, + } + + def __init__(self, **kwargs) -> None: + super(Operation, self).__init__(**kwargs) + self.name = None + self.display = None + self.origin = None + self.properties = None diff --git a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/private_ip_address.py b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/private_ip_address.py new file mode 100644 index 000000000000..68a8a58ff740 --- /dev/null +++ b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/private_ip_address.py @@ -0,0 +1,33 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class PrivateIPAddress(Model): + """A private IP address bound to the availability group listener. + + :param ip_address: Private IP address bound to the availability group + listener. + :type ip_address: str + :param subnet_resource_id: Subnet used to include private IP. + :type subnet_resource_id: str + """ + + _attribute_map = { + 'ip_address': {'key': 'ipAddress', 'type': 'str'}, + 'subnet_resource_id': {'key': 'subnetResourceId', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(PrivateIPAddress, self).__init__(**kwargs) + self.ip_address = kwargs.get('ip_address', None) + self.subnet_resource_id = kwargs.get('subnet_resource_id', None) diff --git a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/private_ip_address_py3.py b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/private_ip_address_py3.py new file mode 100644 index 000000000000..25ca6a765078 --- /dev/null +++ b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/private_ip_address_py3.py @@ -0,0 +1,33 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class PrivateIPAddress(Model): + """A private IP address bound to the availability group listener. + + :param ip_address: Private IP address bound to the availability group + listener. + :type ip_address: str + :param subnet_resource_id: Subnet used to include private IP. + :type subnet_resource_id: str + """ + + _attribute_map = { + 'ip_address': {'key': 'ipAddress', 'type': 'str'}, + 'subnet_resource_id': {'key': 'subnetResourceId', 'type': 'str'}, + } + + def __init__(self, *, ip_address: str=None, subnet_resource_id: str=None, **kwargs) -> None: + super(PrivateIPAddress, self).__init__(**kwargs) + self.ip_address = ip_address + self.subnet_resource_id = subnet_resource_id diff --git a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/proxy_resource.py b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/proxy_resource.py new file mode 100644 index 000000000000..21fea4f24360 --- /dev/null +++ b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/proxy_resource.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource import Resource + + +class ProxyResource(Resource): + """ARM proxy resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ProxyResource, self).__init__(**kwargs) diff --git a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/proxy_resource_py3.py b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/proxy_resource_py3.py new file mode 100644 index 000000000000..707323dfc134 --- /dev/null +++ b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/proxy_resource_py3.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource_py3 import Resource + + +class ProxyResource(Resource): + """ARM proxy resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(ProxyResource, self).__init__(**kwargs) diff --git a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/resource.py b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/resource.py new file mode 100644 index 000000000000..fc92549d32e9 --- /dev/null +++ b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/resource.py @@ -0,0 +1,45 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class Resource(Model): + """ARM resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Resource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None diff --git a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/resource_identity.py b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/resource_identity.py new file mode 100644 index 000000000000..4503b6fe05ad --- /dev/null +++ b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/resource_identity.py @@ -0,0 +1,46 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ResourceIdentity(Model): + """Azure Active Directory identity configuration for a resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar principal_id: The Azure Active Directory principal id. + :vartype principal_id: str + :param type: The identity type. Set this to 'SystemAssigned' in order to + automatically create and assign an Azure Active Directory principal for + the resource. Possible values include: 'SystemAssigned' + :type type: str or ~azure.mgmt.sqlvirtualmachine.models.IdentityType + :ivar tenant_id: The Azure Active Directory tenant id. + :vartype tenant_id: str + """ + + _validation = { + 'principal_id': {'readonly': True}, + 'tenant_id': {'readonly': True}, + } + + _attribute_map = { + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ResourceIdentity, self).__init__(**kwargs) + self.principal_id = None + self.type = kwargs.get('type', None) + self.tenant_id = None diff --git a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/resource_identity_py3.py b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/resource_identity_py3.py new file mode 100644 index 000000000000..cdfca44600cf --- /dev/null +++ b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/resource_identity_py3.py @@ -0,0 +1,46 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ResourceIdentity(Model): + """Azure Active Directory identity configuration for a resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar principal_id: The Azure Active Directory principal id. + :vartype principal_id: str + :param type: The identity type. Set this to 'SystemAssigned' in order to + automatically create and assign an Azure Active Directory principal for + the resource. Possible values include: 'SystemAssigned' + :type type: str or ~azure.mgmt.sqlvirtualmachine.models.IdentityType + :ivar tenant_id: The Azure Active Directory tenant id. + :vartype tenant_id: str + """ + + _validation = { + 'principal_id': {'readonly': True}, + 'tenant_id': {'readonly': True}, + } + + _attribute_map = { + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + } + + def __init__(self, *, type=None, **kwargs) -> None: + super(ResourceIdentity, self).__init__(**kwargs) + self.principal_id = None + self.type = type + self.tenant_id = None diff --git a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/resource_py3.py b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/resource_py3.py new file mode 100644 index 000000000000..aedc5cfaf0b9 --- /dev/null +++ b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/resource_py3.py @@ -0,0 +1,45 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class Resource(Model): + """ARM resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(Resource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None diff --git a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/server_configurations_management_settings.py b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/server_configurations_management_settings.py new file mode 100644 index 000000000000..ab68dd90af2b --- /dev/null +++ b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/server_configurations_management_settings.py @@ -0,0 +1,45 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ServerConfigurationsManagementSettings(Model): + """Set the connectivity, storage and workload settings. + + :param sql_connectivity_update_settings: SQL connectivity type settings. + :type sql_connectivity_update_settings: + ~azure.mgmt.sqlvirtualmachine.models.SqlConnectivityUpdateSettings + :param sql_workload_type_update_settings: SQL workload type settings. + :type sql_workload_type_update_settings: + ~azure.mgmt.sqlvirtualmachine.models.SqlWorkloadTypeUpdateSettings + :param sql_storage_update_settings: SQL storage update settings. + :type sql_storage_update_settings: + ~azure.mgmt.sqlvirtualmachine.models.SqlStorageUpdateSettings + :param additional_features_server_configurations: Additional SQL feature + settings. + :type additional_features_server_configurations: + ~azure.mgmt.sqlvirtualmachine.models.AdditionalFeaturesServerConfigurations + """ + + _attribute_map = { + 'sql_connectivity_update_settings': {'key': 'sqlConnectivityUpdateSettings', 'type': 'SqlConnectivityUpdateSettings'}, + 'sql_workload_type_update_settings': {'key': 'sqlWorkloadTypeUpdateSettings', 'type': 'SqlWorkloadTypeUpdateSettings'}, + 'sql_storage_update_settings': {'key': 'sqlStorageUpdateSettings', 'type': 'SqlStorageUpdateSettings'}, + 'additional_features_server_configurations': {'key': 'additionalFeaturesServerConfigurations', 'type': 'AdditionalFeaturesServerConfigurations'}, + } + + def __init__(self, **kwargs): + super(ServerConfigurationsManagementSettings, self).__init__(**kwargs) + self.sql_connectivity_update_settings = kwargs.get('sql_connectivity_update_settings', None) + self.sql_workload_type_update_settings = kwargs.get('sql_workload_type_update_settings', None) + self.sql_storage_update_settings = kwargs.get('sql_storage_update_settings', None) + self.additional_features_server_configurations = kwargs.get('additional_features_server_configurations', None) diff --git a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/server_configurations_management_settings_py3.py b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/server_configurations_management_settings_py3.py new file mode 100644 index 000000000000..fd863b5255f9 --- /dev/null +++ b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/server_configurations_management_settings_py3.py @@ -0,0 +1,45 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ServerConfigurationsManagementSettings(Model): + """Set the connectivity, storage and workload settings. + + :param sql_connectivity_update_settings: SQL connectivity type settings. + :type sql_connectivity_update_settings: + ~azure.mgmt.sqlvirtualmachine.models.SqlConnectivityUpdateSettings + :param sql_workload_type_update_settings: SQL workload type settings. + :type sql_workload_type_update_settings: + ~azure.mgmt.sqlvirtualmachine.models.SqlWorkloadTypeUpdateSettings + :param sql_storage_update_settings: SQL storage update settings. + :type sql_storage_update_settings: + ~azure.mgmt.sqlvirtualmachine.models.SqlStorageUpdateSettings + :param additional_features_server_configurations: Additional SQL feature + settings. + :type additional_features_server_configurations: + ~azure.mgmt.sqlvirtualmachine.models.AdditionalFeaturesServerConfigurations + """ + + _attribute_map = { + 'sql_connectivity_update_settings': {'key': 'sqlConnectivityUpdateSettings', 'type': 'SqlConnectivityUpdateSettings'}, + 'sql_workload_type_update_settings': {'key': 'sqlWorkloadTypeUpdateSettings', 'type': 'SqlWorkloadTypeUpdateSettings'}, + 'sql_storage_update_settings': {'key': 'sqlStorageUpdateSettings', 'type': 'SqlStorageUpdateSettings'}, + 'additional_features_server_configurations': {'key': 'additionalFeaturesServerConfigurations', 'type': 'AdditionalFeaturesServerConfigurations'}, + } + + def __init__(self, *, sql_connectivity_update_settings=None, sql_workload_type_update_settings=None, sql_storage_update_settings=None, additional_features_server_configurations=None, **kwargs) -> None: + super(ServerConfigurationsManagementSettings, self).__init__(**kwargs) + self.sql_connectivity_update_settings = sql_connectivity_update_settings + self.sql_workload_type_update_settings = sql_workload_type_update_settings + self.sql_storage_update_settings = sql_storage_update_settings + self.additional_features_server_configurations = additional_features_server_configurations diff --git a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_connectivity_update_settings.py b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_connectivity_update_settings.py new file mode 100644 index 000000000000..dc9ce902d887 --- /dev/null +++ b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_connectivity_update_settings.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class SqlConnectivityUpdateSettings(Model): + """Set the access level and network port settings for SQL Server. + + :param connectivity_type: SQL Server connectivity option. Possible values + include: 'LOCAL', 'PRIVATE', 'PUBLIC' + :type connectivity_type: str or + ~azure.mgmt.sqlvirtualmachine.models.ConnectivityType + :param port: SQL Server port. + :type port: int + :param sql_auth_update_user_name: SQL Server sysadmin login to create. + :type sql_auth_update_user_name: str + :param sql_auth_update_password: SQL Server sysadmin login password. + :type sql_auth_update_password: str + """ + + _attribute_map = { + 'connectivity_type': {'key': 'connectivityType', 'type': 'str'}, + 'port': {'key': 'port', 'type': 'int'}, + 'sql_auth_update_user_name': {'key': 'sqlAuthUpdateUserName', 'type': 'str'}, + 'sql_auth_update_password': {'key': 'sqlAuthUpdatePassword', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(SqlConnectivityUpdateSettings, self).__init__(**kwargs) + self.connectivity_type = kwargs.get('connectivity_type', None) + self.port = kwargs.get('port', None) + self.sql_auth_update_user_name = kwargs.get('sql_auth_update_user_name', None) + self.sql_auth_update_password = kwargs.get('sql_auth_update_password', None) diff --git a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_connectivity_update_settings_py3.py b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_connectivity_update_settings_py3.py new file mode 100644 index 000000000000..a1efd4fd33a2 --- /dev/null +++ b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_connectivity_update_settings_py3.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class SqlConnectivityUpdateSettings(Model): + """Set the access level and network port settings for SQL Server. + + :param connectivity_type: SQL Server connectivity option. Possible values + include: 'LOCAL', 'PRIVATE', 'PUBLIC' + :type connectivity_type: str or + ~azure.mgmt.sqlvirtualmachine.models.ConnectivityType + :param port: SQL Server port. + :type port: int + :param sql_auth_update_user_name: SQL Server sysadmin login to create. + :type sql_auth_update_user_name: str + :param sql_auth_update_password: SQL Server sysadmin login password. + :type sql_auth_update_password: str + """ + + _attribute_map = { + 'connectivity_type': {'key': 'connectivityType', 'type': 'str'}, + 'port': {'key': 'port', 'type': 'int'}, + 'sql_auth_update_user_name': {'key': 'sqlAuthUpdateUserName', 'type': 'str'}, + 'sql_auth_update_password': {'key': 'sqlAuthUpdatePassword', 'type': 'str'}, + } + + def __init__(self, *, connectivity_type=None, port: int=None, sql_auth_update_user_name: str=None, sql_auth_update_password: str=None, **kwargs) -> None: + super(SqlConnectivityUpdateSettings, self).__init__(**kwargs) + self.connectivity_type = connectivity_type + self.port = port + self.sql_auth_update_user_name = sql_auth_update_user_name + self.sql_auth_update_password = sql_auth_update_password diff --git a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_storage_update_settings.py b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_storage_update_settings.py new file mode 100644 index 000000000000..117a29855992 --- /dev/null +++ b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_storage_update_settings.py @@ -0,0 +1,34 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class SqlStorageUpdateSettings(Model): + """Set disk storage settings for SQL Server. + + :param disk_count: Virtual machine disk count. + :type disk_count: int + :param disk_configuration_type: Disk configuration to apply to SQL Server. + Possible values include: 'NEW', 'EXTEND', 'ADD' + :type disk_configuration_type: str or + ~azure.mgmt.sqlvirtualmachine.models.DiskConfigurationType + """ + + _attribute_map = { + 'disk_count': {'key': 'diskCount', 'type': 'int'}, + 'disk_configuration_type': {'key': 'diskConfigurationType', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(SqlStorageUpdateSettings, self).__init__(**kwargs) + self.disk_count = kwargs.get('disk_count', None) + self.disk_configuration_type = kwargs.get('disk_configuration_type', None) diff --git a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_storage_update_settings_py3.py b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_storage_update_settings_py3.py new file mode 100644 index 000000000000..94b8b9a5dc52 --- /dev/null +++ b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_storage_update_settings_py3.py @@ -0,0 +1,34 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class SqlStorageUpdateSettings(Model): + """Set disk storage settings for SQL Server. + + :param disk_count: Virtual machine disk count. + :type disk_count: int + :param disk_configuration_type: Disk configuration to apply to SQL Server. + Possible values include: 'NEW', 'EXTEND', 'ADD' + :type disk_configuration_type: str or + ~azure.mgmt.sqlvirtualmachine.models.DiskConfigurationType + """ + + _attribute_map = { + 'disk_count': {'key': 'diskCount', 'type': 'int'}, + 'disk_configuration_type': {'key': 'diskConfigurationType', 'type': 'str'}, + } + + def __init__(self, *, disk_count: int=None, disk_configuration_type=None, **kwargs) -> None: + super(SqlStorageUpdateSettings, self).__init__(**kwargs) + self.disk_count = disk_count + self.disk_configuration_type = disk_configuration_type diff --git a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_virtual_machine.py b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_virtual_machine.py new file mode 100644 index 000000000000..c72dc4d1a1f3 --- /dev/null +++ b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_virtual_machine.py @@ -0,0 +1,118 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .tracked_resource import TrackedResource + + +class SqlVirtualMachine(TrackedResource): + """A SQL virtual machine. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Required. Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param identity: Azure Active Directory identity of the server. + :type identity: ~azure.mgmt.sqlvirtualmachine.models.ResourceIdentity + :param virtual_machine_resource_id: ARM Resource id of underlying virtual + machine created from SQL marketplace image. + :type virtual_machine_resource_id: str + :ivar provisioning_state: Provisioning state to track the aysnc operation + status. + :vartype provisioning_state: str + :ivar sql_image_offer: SQL image offer. Examples include SQL2016-WS2016, + SQL2017-WS2016. + :vartype sql_image_offer: str + :param sql_server_license_type: SQL Server license type. Possible values + include: 'PAYG', 'AHUB' + :type sql_server_license_type: str or + ~azure.mgmt.sqlvirtualmachine.models.SqlServerLicenseType + :ivar sql_image_sku: SQL image sku. Possible values include: 'Developer', + 'Express', 'Standard', 'Enterprise', 'Web' + :vartype sql_image_sku: str or + ~azure.mgmt.sqlvirtualmachine.models.SqlImageSku + :param sql_virtual_machine_group_resource_id: ARM resource id of the SQL + virtual machine group this SQL virtual machine is or will be part of. + :type sql_virtual_machine_group_resource_id: str + :param wsfc_domain_credentials: Domain credentials for setting up Windows + Server Failover Cluster for SQL availability group. + :type wsfc_domain_credentials: + ~azure.mgmt.sqlvirtualmachine.models.WsfcDomainCredentials + :param auto_patching_settings: Auto patching settings for applying + critical security updates to SQL virtual machine. + :type auto_patching_settings: + ~azure.mgmt.sqlvirtualmachine.models.AutoPatchingSettings + :param auto_backup_settings: Auto backup settings for SQL Server. + :type auto_backup_settings: + ~azure.mgmt.sqlvirtualmachine.models.AutoBackupSettings + :param key_vault_credential_settings: Key vault credential settings. + :type key_vault_credential_settings: + ~azure.mgmt.sqlvirtualmachine.models.KeyVaultCredentialSettings + :param server_configurations_management_settings: SQL Server configuration + management settings. + :type server_configurations_management_settings: + ~azure.mgmt.sqlvirtualmachine.models.ServerConfigurationsManagementSettings + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + 'provisioning_state': {'readonly': True}, + 'sql_image_offer': {'readonly': True}, + 'sql_image_sku': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'identity': {'key': 'identity', 'type': 'ResourceIdentity'}, + 'virtual_machine_resource_id': {'key': 'properties.virtualMachineResourceId', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'sql_image_offer': {'key': 'properties.sqlImageOffer', 'type': 'str'}, + 'sql_server_license_type': {'key': 'properties.sqlServerLicenseType', 'type': 'str'}, + 'sql_image_sku': {'key': 'properties.sqlImageSku', 'type': 'str'}, + 'sql_virtual_machine_group_resource_id': {'key': 'properties.sqlVirtualMachineGroupResourceId', 'type': 'str'}, + 'wsfc_domain_credentials': {'key': 'properties.wsfcDomainCredentials', 'type': 'WsfcDomainCredentials'}, + 'auto_patching_settings': {'key': 'properties.autoPatchingSettings', 'type': 'AutoPatchingSettings'}, + 'auto_backup_settings': {'key': 'properties.autoBackupSettings', 'type': 'AutoBackupSettings'}, + 'key_vault_credential_settings': {'key': 'properties.keyVaultCredentialSettings', 'type': 'KeyVaultCredentialSettings'}, + 'server_configurations_management_settings': {'key': 'properties.serverConfigurationsManagementSettings', 'type': 'ServerConfigurationsManagementSettings'}, + } + + def __init__(self, **kwargs): + super(SqlVirtualMachine, self).__init__(**kwargs) + self.identity = kwargs.get('identity', None) + self.virtual_machine_resource_id = kwargs.get('virtual_machine_resource_id', None) + self.provisioning_state = None + self.sql_image_offer = None + self.sql_server_license_type = kwargs.get('sql_server_license_type', None) + self.sql_image_sku = None + self.sql_virtual_machine_group_resource_id = kwargs.get('sql_virtual_machine_group_resource_id', None) + self.wsfc_domain_credentials = kwargs.get('wsfc_domain_credentials', None) + self.auto_patching_settings = kwargs.get('auto_patching_settings', None) + self.auto_backup_settings = kwargs.get('auto_backup_settings', None) + self.key_vault_credential_settings = kwargs.get('key_vault_credential_settings', None) + self.server_configurations_management_settings = kwargs.get('server_configurations_management_settings', None) diff --git a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_virtual_machine_group.py b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_virtual_machine_group.py new file mode 100644 index 000000000000..f9f127f195f1 --- /dev/null +++ b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_virtual_machine_group.py @@ -0,0 +1,93 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .tracked_resource import TrackedResource + + +class SqlVirtualMachineGroup(TrackedResource): + """A SQL virtual machine group. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Required. Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :ivar provisioning_state: Provisioning state to track the aysnc operation + status. + :vartype provisioning_state: str + :param sql_image_offer: SQL image offer. Examples may include + SQL2016-WS2016, SQL2017-WS2016. + :type sql_image_offer: str + :param sql_image_sku: SQL image sku. Possible values include: 'Developer', + 'Express', 'Standard', 'Enterprise', 'Web' + :type sql_image_sku: str or + ~azure.mgmt.sqlvirtualmachine.models.SqlImageSku + :ivar scale_type: Scale type. Possible values include: 'HA' + :vartype scale_type: str or ~azure.mgmt.sqlvirtualmachine.models.ScaleType + :ivar cluster_manager_type: Type of cluster manager: Windows Server + Failover Cluster (WSFC), implied by the scale type of the group and the OS + type. Possible values include: 'WSFC' + :vartype cluster_manager_type: str or + ~azure.mgmt.sqlvirtualmachine.models.ClusterManagerType + :ivar cluster_configuration: Cluster type. Possible values include: + 'Domainful' + :vartype cluster_configuration: str or + ~azure.mgmt.sqlvirtualmachine.models.ClusterConfiguration + :param wsfc_domain_profile: Cluster Active Directory domain profile. + :type wsfc_domain_profile: + ~azure.mgmt.sqlvirtualmachine.models.WsfcDomainProfile + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + 'provisioning_state': {'readonly': True}, + 'scale_type': {'readonly': True}, + 'cluster_manager_type': {'readonly': True}, + 'cluster_configuration': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'sql_image_offer': {'key': 'properties.sqlImageOffer', 'type': 'str'}, + 'sql_image_sku': {'key': 'properties.sqlImageSku', 'type': 'str'}, + 'scale_type': {'key': 'properties.scaleType', 'type': 'str'}, + 'cluster_manager_type': {'key': 'properties.clusterManagerType', 'type': 'str'}, + 'cluster_configuration': {'key': 'properties.clusterConfiguration', 'type': 'str'}, + 'wsfc_domain_profile': {'key': 'properties.wsfcDomainProfile', 'type': 'WsfcDomainProfile'}, + } + + def __init__(self, **kwargs): + super(SqlVirtualMachineGroup, self).__init__(**kwargs) + self.provisioning_state = None + self.sql_image_offer = kwargs.get('sql_image_offer', None) + self.sql_image_sku = kwargs.get('sql_image_sku', None) + self.scale_type = None + self.cluster_manager_type = None + self.cluster_configuration = None + self.wsfc_domain_profile = kwargs.get('wsfc_domain_profile', None) diff --git a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_virtual_machine_group_paged.py b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_virtual_machine_group_paged.py new file mode 100644 index 000000000000..cf7a581ad478 --- /dev/null +++ b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_virtual_machine_group_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class SqlVirtualMachineGroupPaged(Paged): + """ + A paging container for iterating over a list of :class:`SqlVirtualMachineGroup ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[SqlVirtualMachineGroup]'} + } + + def __init__(self, *args, **kwargs): + + super(SqlVirtualMachineGroupPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_virtual_machine_group_py3.py b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_virtual_machine_group_py3.py new file mode 100644 index 000000000000..a7a2c32fc3f6 --- /dev/null +++ b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_virtual_machine_group_py3.py @@ -0,0 +1,93 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .tracked_resource_py3 import TrackedResource + + +class SqlVirtualMachineGroup(TrackedResource): + """A SQL virtual machine group. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Required. Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :ivar provisioning_state: Provisioning state to track the aysnc operation + status. + :vartype provisioning_state: str + :param sql_image_offer: SQL image offer. Examples may include + SQL2016-WS2016, SQL2017-WS2016. + :type sql_image_offer: str + :param sql_image_sku: SQL image sku. Possible values include: 'Developer', + 'Express', 'Standard', 'Enterprise', 'Web' + :type sql_image_sku: str or + ~azure.mgmt.sqlvirtualmachine.models.SqlImageSku + :ivar scale_type: Scale type. Possible values include: 'HA' + :vartype scale_type: str or ~azure.mgmt.sqlvirtualmachine.models.ScaleType + :ivar cluster_manager_type: Type of cluster manager: Windows Server + Failover Cluster (WSFC), implied by the scale type of the group and the OS + type. Possible values include: 'WSFC' + :vartype cluster_manager_type: str or + ~azure.mgmt.sqlvirtualmachine.models.ClusterManagerType + :ivar cluster_configuration: Cluster type. Possible values include: + 'Domainful' + :vartype cluster_configuration: str or + ~azure.mgmt.sqlvirtualmachine.models.ClusterConfiguration + :param wsfc_domain_profile: Cluster Active Directory domain profile. + :type wsfc_domain_profile: + ~azure.mgmt.sqlvirtualmachine.models.WsfcDomainProfile + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + 'provisioning_state': {'readonly': True}, + 'scale_type': {'readonly': True}, + 'cluster_manager_type': {'readonly': True}, + 'cluster_configuration': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'sql_image_offer': {'key': 'properties.sqlImageOffer', 'type': 'str'}, + 'sql_image_sku': {'key': 'properties.sqlImageSku', 'type': 'str'}, + 'scale_type': {'key': 'properties.scaleType', 'type': 'str'}, + 'cluster_manager_type': {'key': 'properties.clusterManagerType', 'type': 'str'}, + 'cluster_configuration': {'key': 'properties.clusterConfiguration', 'type': 'str'}, + 'wsfc_domain_profile': {'key': 'properties.wsfcDomainProfile', 'type': 'WsfcDomainProfile'}, + } + + def __init__(self, *, location: str, tags=None, sql_image_offer: str=None, sql_image_sku=None, wsfc_domain_profile=None, **kwargs) -> None: + super(SqlVirtualMachineGroup, self).__init__(location=location, tags=tags, **kwargs) + self.provisioning_state = None + self.sql_image_offer = sql_image_offer + self.sql_image_sku = sql_image_sku + self.scale_type = None + self.cluster_manager_type = None + self.cluster_configuration = None + self.wsfc_domain_profile = wsfc_domain_profile diff --git a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_virtual_machine_group_update.py b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_virtual_machine_group_update.py new file mode 100644 index 000000000000..bcc42061ed8e --- /dev/null +++ b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_virtual_machine_group_update.py @@ -0,0 +1,28 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class SqlVirtualMachineGroupUpdate(Model): + """An update to a SQL virtual machine group. + + :param tags: Resource tags. + :type tags: dict[str, str] + """ + + _attribute_map = { + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, **kwargs): + super(SqlVirtualMachineGroupUpdate, self).__init__(**kwargs) + self.tags = kwargs.get('tags', None) diff --git a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_virtual_machine_group_update_py3.py b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_virtual_machine_group_update_py3.py new file mode 100644 index 000000000000..281d1c4711c1 --- /dev/null +++ b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_virtual_machine_group_update_py3.py @@ -0,0 +1,28 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class SqlVirtualMachineGroupUpdate(Model): + """An update to a SQL virtual machine group. + + :param tags: Resource tags. + :type tags: dict[str, str] + """ + + _attribute_map = { + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, *, tags=None, **kwargs) -> None: + super(SqlVirtualMachineGroupUpdate, self).__init__(**kwargs) + self.tags = tags diff --git a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_virtual_machine_management_client_enums.py b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_virtual_machine_management_client_enums.py new file mode 100644 index 000000000000..abede8d3d0de --- /dev/null +++ b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_virtual_machine_management_client_enums.py @@ -0,0 +1,97 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from enum import Enum + + +class OperationOrigin(str, Enum): + + user = "user" + system = "system" + + +class SqlImageSku(str, Enum): + + developer = "Developer" + express = "Express" + standard = "Standard" + enterprise = "Enterprise" + web = "Web" + + +class ScaleType(str, Enum): + + ha = "HA" + + +class ClusterManagerType(str, Enum): + + wsfc = "WSFC" + + +class ClusterConfiguration(str, Enum): + + domainful = "Domainful" + + +class IdentityType(str, Enum): + + system_assigned = "SystemAssigned" + + +class SqlServerLicenseType(str, Enum): + + payg = "PAYG" + ahub = "AHUB" + + +class DayOfWeek(str, Enum): + + monday = "Monday" + tuesday = "Tuesday" + wednesday = "Wednesday" + thursday = "Thursday" + friday = "Friday" + saturday = "Saturday" + sunday = "Sunday" + + +class BackupScheduleType(str, Enum): + + manual = "Manual" + automated = "Automated" + + +class FullBackupFrequencyType(str, Enum): + + daily = "Daily" + weekly = "Weekly" + + +class ConnectivityType(str, Enum): + + local = "LOCAL" + private = "PRIVATE" + public = "PUBLIC" + + +class SqlWorkloadType(str, Enum): + + general = "GENERAL" + oltp = "OLTP" + dw = "DW" + + +class DiskConfigurationType(str, Enum): + + new = "NEW" + extend = "EXTEND" + add = "ADD" diff --git a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_virtual_machine_paged.py b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_virtual_machine_paged.py new file mode 100644 index 000000000000..5a5766e2bfc9 --- /dev/null +++ b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_virtual_machine_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class SqlVirtualMachinePaged(Paged): + """ + A paging container for iterating over a list of :class:`SqlVirtualMachine ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[SqlVirtualMachine]'} + } + + def __init__(self, *args, **kwargs): + + super(SqlVirtualMachinePaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_virtual_machine_py3.py b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_virtual_machine_py3.py new file mode 100644 index 000000000000..d63a77f1c398 --- /dev/null +++ b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_virtual_machine_py3.py @@ -0,0 +1,118 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .tracked_resource_py3 import TrackedResource + + +class SqlVirtualMachine(TrackedResource): + """A SQL virtual machine. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Required. Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param identity: Azure Active Directory identity of the server. + :type identity: ~azure.mgmt.sqlvirtualmachine.models.ResourceIdentity + :param virtual_machine_resource_id: ARM Resource id of underlying virtual + machine created from SQL marketplace image. + :type virtual_machine_resource_id: str + :ivar provisioning_state: Provisioning state to track the aysnc operation + status. + :vartype provisioning_state: str + :ivar sql_image_offer: SQL image offer. Examples include SQL2016-WS2016, + SQL2017-WS2016. + :vartype sql_image_offer: str + :param sql_server_license_type: SQL Server license type. Possible values + include: 'PAYG', 'AHUB' + :type sql_server_license_type: str or + ~azure.mgmt.sqlvirtualmachine.models.SqlServerLicenseType + :ivar sql_image_sku: SQL image sku. Possible values include: 'Developer', + 'Express', 'Standard', 'Enterprise', 'Web' + :vartype sql_image_sku: str or + ~azure.mgmt.sqlvirtualmachine.models.SqlImageSku + :param sql_virtual_machine_group_resource_id: ARM resource id of the SQL + virtual machine group this SQL virtual machine is or will be part of. + :type sql_virtual_machine_group_resource_id: str + :param wsfc_domain_credentials: Domain credentials for setting up Windows + Server Failover Cluster for SQL availability group. + :type wsfc_domain_credentials: + ~azure.mgmt.sqlvirtualmachine.models.WsfcDomainCredentials + :param auto_patching_settings: Auto patching settings for applying + critical security updates to SQL virtual machine. + :type auto_patching_settings: + ~azure.mgmt.sqlvirtualmachine.models.AutoPatchingSettings + :param auto_backup_settings: Auto backup settings for SQL Server. + :type auto_backup_settings: + ~azure.mgmt.sqlvirtualmachine.models.AutoBackupSettings + :param key_vault_credential_settings: Key vault credential settings. + :type key_vault_credential_settings: + ~azure.mgmt.sqlvirtualmachine.models.KeyVaultCredentialSettings + :param server_configurations_management_settings: SQL Server configuration + management settings. + :type server_configurations_management_settings: + ~azure.mgmt.sqlvirtualmachine.models.ServerConfigurationsManagementSettings + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + 'provisioning_state': {'readonly': True}, + 'sql_image_offer': {'readonly': True}, + 'sql_image_sku': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'identity': {'key': 'identity', 'type': 'ResourceIdentity'}, + 'virtual_machine_resource_id': {'key': 'properties.virtualMachineResourceId', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'sql_image_offer': {'key': 'properties.sqlImageOffer', 'type': 'str'}, + 'sql_server_license_type': {'key': 'properties.sqlServerLicenseType', 'type': 'str'}, + 'sql_image_sku': {'key': 'properties.sqlImageSku', 'type': 'str'}, + 'sql_virtual_machine_group_resource_id': {'key': 'properties.sqlVirtualMachineGroupResourceId', 'type': 'str'}, + 'wsfc_domain_credentials': {'key': 'properties.wsfcDomainCredentials', 'type': 'WsfcDomainCredentials'}, + 'auto_patching_settings': {'key': 'properties.autoPatchingSettings', 'type': 'AutoPatchingSettings'}, + 'auto_backup_settings': {'key': 'properties.autoBackupSettings', 'type': 'AutoBackupSettings'}, + 'key_vault_credential_settings': {'key': 'properties.keyVaultCredentialSettings', 'type': 'KeyVaultCredentialSettings'}, + 'server_configurations_management_settings': {'key': 'properties.serverConfigurationsManagementSettings', 'type': 'ServerConfigurationsManagementSettings'}, + } + + def __init__(self, *, location: str, tags=None, identity=None, virtual_machine_resource_id: str=None, sql_server_license_type=None, sql_virtual_machine_group_resource_id: str=None, wsfc_domain_credentials=None, auto_patching_settings=None, auto_backup_settings=None, key_vault_credential_settings=None, server_configurations_management_settings=None, **kwargs) -> None: + super(SqlVirtualMachine, self).__init__(location=location, tags=tags, **kwargs) + self.identity = identity + self.virtual_machine_resource_id = virtual_machine_resource_id + self.provisioning_state = None + self.sql_image_offer = None + self.sql_server_license_type = sql_server_license_type + self.sql_image_sku = None + self.sql_virtual_machine_group_resource_id = sql_virtual_machine_group_resource_id + self.wsfc_domain_credentials = wsfc_domain_credentials + self.auto_patching_settings = auto_patching_settings + self.auto_backup_settings = auto_backup_settings + self.key_vault_credential_settings = key_vault_credential_settings + self.server_configurations_management_settings = server_configurations_management_settings diff --git a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_virtual_machine_update.py b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_virtual_machine_update.py new file mode 100644 index 000000000000..ca4e030cf0da --- /dev/null +++ b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_virtual_machine_update.py @@ -0,0 +1,28 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class SqlVirtualMachineUpdate(Model): + """An update to a SQL virtual machine. + + :param tags: Resource tags. + :type tags: dict[str, str] + """ + + _attribute_map = { + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, **kwargs): + super(SqlVirtualMachineUpdate, self).__init__(**kwargs) + self.tags = kwargs.get('tags', None) diff --git a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_virtual_machine_update_py3.py b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_virtual_machine_update_py3.py new file mode 100644 index 000000000000..230138c59880 --- /dev/null +++ b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_virtual_machine_update_py3.py @@ -0,0 +1,28 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class SqlVirtualMachineUpdate(Model): + """An update to a SQL virtual machine. + + :param tags: Resource tags. + :type tags: dict[str, str] + """ + + _attribute_map = { + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, *, tags=None, **kwargs) -> None: + super(SqlVirtualMachineUpdate, self).__init__(**kwargs) + self.tags = tags diff --git a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_workload_type_update_settings.py b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_workload_type_update_settings.py new file mode 100644 index 000000000000..aee212c6081f --- /dev/null +++ b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_workload_type_update_settings.py @@ -0,0 +1,30 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class SqlWorkloadTypeUpdateSettings(Model): + """Set workload type to optimize storage for SQL Server. + + :param sql_workload_type: SQL Server workload type. Possible values + include: 'GENERAL', 'OLTP', 'DW' + :type sql_workload_type: str or + ~azure.mgmt.sqlvirtualmachine.models.SqlWorkloadType + """ + + _attribute_map = { + 'sql_workload_type': {'key': 'sqlWorkloadType', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(SqlWorkloadTypeUpdateSettings, self).__init__(**kwargs) + self.sql_workload_type = kwargs.get('sql_workload_type', None) diff --git a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_workload_type_update_settings_py3.py b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_workload_type_update_settings_py3.py new file mode 100644 index 000000000000..fbfe489a9173 --- /dev/null +++ b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_workload_type_update_settings_py3.py @@ -0,0 +1,30 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class SqlWorkloadTypeUpdateSettings(Model): + """Set workload type to optimize storage for SQL Server. + + :param sql_workload_type: SQL Server workload type. Possible values + include: 'GENERAL', 'OLTP', 'DW' + :type sql_workload_type: str or + ~azure.mgmt.sqlvirtualmachine.models.SqlWorkloadType + """ + + _attribute_map = { + 'sql_workload_type': {'key': 'sqlWorkloadType', 'type': 'str'}, + } + + def __init__(self, *, sql_workload_type=None, **kwargs) -> None: + super(SqlWorkloadTypeUpdateSettings, self).__init__(**kwargs) + self.sql_workload_type = sql_workload_type diff --git a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/tracked_resource.py b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/tracked_resource.py new file mode 100644 index 000000000000..dc99e096cf18 --- /dev/null +++ b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/tracked_resource.py @@ -0,0 +1,53 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource import Resource + + +class TrackedResource(Resource): + """ARM tracked top level resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Required. Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, **kwargs): + super(TrackedResource, self).__init__(**kwargs) + self.location = kwargs.get('location', None) + self.tags = kwargs.get('tags', None) diff --git a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/tracked_resource_py3.py b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/tracked_resource_py3.py new file mode 100644 index 000000000000..5edf04ac0a73 --- /dev/null +++ b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/tracked_resource_py3.py @@ -0,0 +1,53 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource_py3 import Resource + + +class TrackedResource(Resource): + """ARM tracked top level resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Resource ID. + :vartype id: str + :ivar name: Resource name. + :vartype name: str + :ivar type: Resource type. + :vartype type: str + :param location: Required. Resource location. + :type location: str + :param tags: Resource tags. + :type tags: dict[str, str] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, *, location: str, tags=None, **kwargs) -> None: + super(TrackedResource, self).__init__(**kwargs) + self.location = location + self.tags = tags diff --git a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/wsfc_domain_credentials.py b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/wsfc_domain_credentials.py new file mode 100644 index 000000000000..76ad60deb524 --- /dev/null +++ b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/wsfc_domain_credentials.py @@ -0,0 +1,39 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class WsfcDomainCredentials(Model): + """Domain credentials for setting up Windows Server Failover Cluster for SQL + availability group. + + :param cluster_bootstrap_account_password: Cluster bootstrap account + password. + :type cluster_bootstrap_account_password: str + :param cluster_operator_account_password: Cluster operator account + password. + :type cluster_operator_account_password: str + :param sql_service_account_password: SQL service account password. + :type sql_service_account_password: str + """ + + _attribute_map = { + 'cluster_bootstrap_account_password': {'key': 'clusterBootstrapAccountPassword', 'type': 'str'}, + 'cluster_operator_account_password': {'key': 'clusterOperatorAccountPassword', 'type': 'str'}, + 'sql_service_account_password': {'key': 'sqlServiceAccountPassword', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(WsfcDomainCredentials, self).__init__(**kwargs) + self.cluster_bootstrap_account_password = kwargs.get('cluster_bootstrap_account_password', None) + self.cluster_operator_account_password = kwargs.get('cluster_operator_account_password', None) + self.sql_service_account_password = kwargs.get('sql_service_account_password', None) diff --git a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/wsfc_domain_credentials_py3.py b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/wsfc_domain_credentials_py3.py new file mode 100644 index 000000000000..a6dd9e173c81 --- /dev/null +++ b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/wsfc_domain_credentials_py3.py @@ -0,0 +1,39 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class WsfcDomainCredentials(Model): + """Domain credentials for setting up Windows Server Failover Cluster for SQL + availability group. + + :param cluster_bootstrap_account_password: Cluster bootstrap account + password. + :type cluster_bootstrap_account_password: str + :param cluster_operator_account_password: Cluster operator account + password. + :type cluster_operator_account_password: str + :param sql_service_account_password: SQL service account password. + :type sql_service_account_password: str + """ + + _attribute_map = { + 'cluster_bootstrap_account_password': {'key': 'clusterBootstrapAccountPassword', 'type': 'str'}, + 'cluster_operator_account_password': {'key': 'clusterOperatorAccountPassword', 'type': 'str'}, + 'sql_service_account_password': {'key': 'sqlServiceAccountPassword', 'type': 'str'}, + } + + def __init__(self, *, cluster_bootstrap_account_password: str=None, cluster_operator_account_password: str=None, sql_service_account_password: str=None, **kwargs) -> None: + super(WsfcDomainCredentials, self).__init__(**kwargs) + self.cluster_bootstrap_account_password = cluster_bootstrap_account_password + self.cluster_operator_account_password = cluster_operator_account_password + self.sql_service_account_password = sql_service_account_password diff --git a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/wsfc_domain_profile.py b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/wsfc_domain_profile.py new file mode 100644 index 000000000000..e83bf8f287a6 --- /dev/null +++ b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/wsfc_domain_profile.py @@ -0,0 +1,64 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class WsfcDomainProfile(Model): + """Active Directory account details to operate Windows Server Failover + Cluster. + + :param domain_fqdn: Fully qualified name of the domain. + :type domain_fqdn: str + :param ou_path: Organizational Unit path in which the nodes and cluster + will be present. + :type ou_path: str + :param cluster_bootstrap_account: Account name used for creating cluster + (at minimum needs permissions to 'Create Computer Objects' in domain). + :type cluster_bootstrap_account: str + :param cluster_operator_account: Account name used for operating cluster + i.e. will be part of administrators group on all the participating virtual + machines in the cluster. + :type cluster_operator_account: str + :param sql_service_account: Account name under which SQL service will run + on all participating SQL virtual machines in the cluster. + :type sql_service_account: str + :param file_share_witness_path: Optional path for fileshare witness. + :type file_share_witness_path: str + :param storage_account_url: Fully qualified ARM resource id of the witness + storage account. + :type storage_account_url: str + :param storage_account_primary_key: Primary key of the witness storage + account. + :type storage_account_primary_key: str + """ + + _attribute_map = { + 'domain_fqdn': {'key': 'domainFqdn', 'type': 'str'}, + 'ou_path': {'key': 'ouPath', 'type': 'str'}, + 'cluster_bootstrap_account': {'key': 'clusterBootstrapAccount', 'type': 'str'}, + 'cluster_operator_account': {'key': 'clusterOperatorAccount', 'type': 'str'}, + 'sql_service_account': {'key': 'sqlServiceAccount', 'type': 'str'}, + 'file_share_witness_path': {'key': 'fileShareWitnessPath', 'type': 'str'}, + 'storage_account_url': {'key': 'storageAccountUrl', 'type': 'str'}, + 'storage_account_primary_key': {'key': 'storageAccountPrimaryKey', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(WsfcDomainProfile, self).__init__(**kwargs) + self.domain_fqdn = kwargs.get('domain_fqdn', None) + self.ou_path = kwargs.get('ou_path', None) + self.cluster_bootstrap_account = kwargs.get('cluster_bootstrap_account', None) + self.cluster_operator_account = kwargs.get('cluster_operator_account', None) + self.sql_service_account = kwargs.get('sql_service_account', None) + self.file_share_witness_path = kwargs.get('file_share_witness_path', None) + self.storage_account_url = kwargs.get('storage_account_url', None) + self.storage_account_primary_key = kwargs.get('storage_account_primary_key', None) diff --git a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/wsfc_domain_profile_py3.py b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/wsfc_domain_profile_py3.py new file mode 100644 index 000000000000..0d7864768ad8 --- /dev/null +++ b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/wsfc_domain_profile_py3.py @@ -0,0 +1,64 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class WsfcDomainProfile(Model): + """Active Directory account details to operate Windows Server Failover + Cluster. + + :param domain_fqdn: Fully qualified name of the domain. + :type domain_fqdn: str + :param ou_path: Organizational Unit path in which the nodes and cluster + will be present. + :type ou_path: str + :param cluster_bootstrap_account: Account name used for creating cluster + (at minimum needs permissions to 'Create Computer Objects' in domain). + :type cluster_bootstrap_account: str + :param cluster_operator_account: Account name used for operating cluster + i.e. will be part of administrators group on all the participating virtual + machines in the cluster. + :type cluster_operator_account: str + :param sql_service_account: Account name under which SQL service will run + on all participating SQL virtual machines in the cluster. + :type sql_service_account: str + :param file_share_witness_path: Optional path for fileshare witness. + :type file_share_witness_path: str + :param storage_account_url: Fully qualified ARM resource id of the witness + storage account. + :type storage_account_url: str + :param storage_account_primary_key: Primary key of the witness storage + account. + :type storage_account_primary_key: str + """ + + _attribute_map = { + 'domain_fqdn': {'key': 'domainFqdn', 'type': 'str'}, + 'ou_path': {'key': 'ouPath', 'type': 'str'}, + 'cluster_bootstrap_account': {'key': 'clusterBootstrapAccount', 'type': 'str'}, + 'cluster_operator_account': {'key': 'clusterOperatorAccount', 'type': 'str'}, + 'sql_service_account': {'key': 'sqlServiceAccount', 'type': 'str'}, + 'file_share_witness_path': {'key': 'fileShareWitnessPath', 'type': 'str'}, + 'storage_account_url': {'key': 'storageAccountUrl', 'type': 'str'}, + 'storage_account_primary_key': {'key': 'storageAccountPrimaryKey', 'type': 'str'}, + } + + def __init__(self, *, domain_fqdn: str=None, ou_path: str=None, cluster_bootstrap_account: str=None, cluster_operator_account: str=None, sql_service_account: str=None, file_share_witness_path: str=None, storage_account_url: str=None, storage_account_primary_key: str=None, **kwargs) -> None: + super(WsfcDomainProfile, self).__init__(**kwargs) + self.domain_fqdn = domain_fqdn + self.ou_path = ou_path + self.cluster_bootstrap_account = cluster_bootstrap_account + self.cluster_operator_account = cluster_operator_account + self.sql_service_account = sql_service_account + self.file_share_witness_path = file_share_witness_path + self.storage_account_url = storage_account_url + self.storage_account_primary_key = storage_account_primary_key diff --git a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/operations/__init__.py b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/operations/__init__.py new file mode 100644 index 000000000000..f178ca4ed1a1 --- /dev/null +++ b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/operations/__init__.py @@ -0,0 +1,22 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .availability_group_listeners_operations import AvailabilityGroupListenersOperations +from .operations import Operations +from .sql_virtual_machine_groups_operations import SqlVirtualMachineGroupsOperations +from .sql_virtual_machines_operations import SqlVirtualMachinesOperations + +__all__ = [ + 'AvailabilityGroupListenersOperations', + 'Operations', + 'SqlVirtualMachineGroupsOperations', + 'SqlVirtualMachinesOperations', +] diff --git a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/operations/availability_group_listeners_operations.py b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/operations/availability_group_listeners_operations.py new file mode 100644 index 000000000000..733fa257a132 --- /dev/null +++ b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/operations/availability_group_listeners_operations.py @@ -0,0 +1,381 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +from msrest.polling import LROPoller, NoPolling +from msrestazure.polling.arm_polling import ARMPolling + +from .. import models + + +class AvailabilityGroupListenersOperations(object): + """AvailabilityGroupListenersOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: API version to use for the request. Constant value: "2017-03-01-preview". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2017-03-01-preview" + + self.config = config + + def get( + self, resource_group_name, sql_virtual_machine_group_name, availability_group_listener_name, custom_headers=None, raw=False, **operation_config): + """Gets an availability group listener. + + :param resource_group_name: Name of the resource group that contains + the resource. You can obtain this value from the Azure Resource + Manager API or the portal. + :type resource_group_name: str + :param sql_virtual_machine_group_name: Name of the SQL virtual machine + group. + :type sql_virtual_machine_group_name: str + :param availability_group_listener_name: Name of the availability + group listener. + :type availability_group_listener_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: AvailabilityGroupListener or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.sqlvirtualmachine.models.AvailabilityGroupListener + or ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'sqlVirtualMachineGroupName': self._serialize.url("sql_virtual_machine_group_name", sql_virtual_machine_group_name, 'str'), + 'availabilityGroupListenerName': self._serialize.url("availability_group_listener_name", availability_group_listener_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('AvailabilityGroupListener', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}/availabilityGroupListeners/{availabilityGroupListenerName}'} + + + def _create_or_update_initial( + self, resource_group_name, sql_virtual_machine_group_name, availability_group_listener_name, parameters, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'sqlVirtualMachineGroupName': self._serialize.url("sql_virtual_machine_group_name", sql_virtual_machine_group_name, 'str'), + 'availabilityGroupListenerName': self._serialize.url("availability_group_listener_name", availability_group_listener_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'AvailabilityGroupListener') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('AvailabilityGroupListener', response) + if response.status_code == 201: + deserialized = self._deserialize('AvailabilityGroupListener', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update( + self, resource_group_name, sql_virtual_machine_group_name, availability_group_listener_name, parameters, custom_headers=None, raw=False, polling=True, **operation_config): + """Creates or updates an availability group listener. + + :param resource_group_name: Name of the resource group that contains + the resource. You can obtain this value from the Azure Resource + Manager API or the portal. + :type resource_group_name: str + :param sql_virtual_machine_group_name: Name of the SQL virtual machine + group. + :type sql_virtual_machine_group_name: str + :param availability_group_listener_name: Name of the availability + group listener. + :type availability_group_listener_name: str + :param parameters: The availability group listener. + :type parameters: + ~azure.mgmt.sqlvirtualmachine.models.AvailabilityGroupListener + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns + AvailabilityGroupListener or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.sqlvirtualmachine.models.AvailabilityGroupListener] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.sqlvirtualmachine.models.AvailabilityGroupListener]] + :raises: :class:`CloudError` + """ + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + sql_virtual_machine_group_name=sql_virtual_machine_group_name, + availability_group_listener_name=availability_group_listener_name, + parameters=parameters, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('AvailabilityGroupListener', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}/availabilityGroupListeners/{availabilityGroupListenerName}'} + + + def _delete_initial( + self, resource_group_name, sql_virtual_machine_group_name, availability_group_listener_name, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'sqlVirtualMachineGroupName': self._serialize.url("sql_virtual_machine_group_name", sql_virtual_machine_group_name, 'str'), + 'availabilityGroupListenerName': self._serialize.url("availability_group_listener_name", availability_group_listener_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202, 204]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def delete( + self, resource_group_name, sql_virtual_machine_group_name, availability_group_listener_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Deletes an availability group listener. + + :param resource_group_name: Name of the resource group that contains + the resource. You can obtain this value from the Azure Resource + Manager API or the portal. + :type resource_group_name: str + :param sql_virtual_machine_group_name: Name of the SQL virtual machine + group. + :type sql_virtual_machine_group_name: str + :param availability_group_listener_name: Name of the availability + group listener. + :type availability_group_listener_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: :class:`CloudError` + """ + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + sql_virtual_machine_group_name=sql_virtual_machine_group_name, + availability_group_listener_name=availability_group_listener_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}/availabilityGroupListeners/{availabilityGroupListenerName}'} + + def list_by_group( + self, resource_group_name, sql_virtual_machine_group_name, custom_headers=None, raw=False, **operation_config): + """Lists all availability group listeners in a SQL virtual machine group. + + :param resource_group_name: Name of the resource group that contains + the resource. You can obtain this value from the Azure Resource + Manager API or the portal. + :type resource_group_name: str + :param sql_virtual_machine_group_name: Name of the SQL virtual machine + group. + :type sql_virtual_machine_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of AvailabilityGroupListener + :rtype: + ~azure.mgmt.sqlvirtualmachine.models.AvailabilityGroupListenerPaged[~azure.mgmt.sqlvirtualmachine.models.AvailabilityGroupListener] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_by_group.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'sqlVirtualMachineGroupName': self._serialize.url("sql_virtual_machine_group_name", sql_virtual_machine_group_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.AvailabilityGroupListenerPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.AvailabilityGroupListenerPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_by_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}/availabilityGroupListeners'} diff --git a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/operations/operations.py b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/operations/operations.py new file mode 100644 index 000000000000..5876680f0b93 --- /dev/null +++ b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/operations/operations.py @@ -0,0 +1,98 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError + +from .. import models + + +class Operations(object): + """Operations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: API version to use for the request. Constant value: "2017-03-01-preview". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2017-03-01-preview" + + self.config = config + + def list( + self, custom_headers=None, raw=False, **operation_config): + """Lists all of the available SQL Rest API operations. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of Operation + :rtype: + ~azure.mgmt.sqlvirtualmachine.models.OperationPaged[~azure.mgmt.sqlvirtualmachine.models.Operation] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.OperationPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.OperationPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/providers/Microsoft.SqlVirtualMachine/operations'} diff --git a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/operations/sql_virtual_machine_groups_operations.py b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/operations/sql_virtual_machine_groups_operations.py new file mode 100644 index 000000000000..ba08176ddd41 --- /dev/null +++ b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/operations/sql_virtual_machine_groups_operations.py @@ -0,0 +1,531 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +from msrest.polling import LROPoller, NoPolling +from msrestazure.polling.arm_polling import ARMPolling + +from .. import models + + +class SqlVirtualMachineGroupsOperations(object): + """SqlVirtualMachineGroupsOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: API version to use for the request. Constant value: "2017-03-01-preview". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2017-03-01-preview" + + self.config = config + + def get( + self, resource_group_name, sql_virtual_machine_group_name, custom_headers=None, raw=False, **operation_config): + """Gets a SQL virtual machine group. + + :param resource_group_name: Name of the resource group that contains + the resource. You can obtain this value from the Azure Resource + Manager API or the portal. + :type resource_group_name: str + :param sql_virtual_machine_group_name: Name of the SQL virtual machine + group. + :type sql_virtual_machine_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: SqlVirtualMachineGroup or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.sqlvirtualmachine.models.SqlVirtualMachineGroup or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'sqlVirtualMachineGroupName': self._serialize.url("sql_virtual_machine_group_name", sql_virtual_machine_group_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('SqlVirtualMachineGroup', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}'} + + + def _create_or_update_initial( + self, resource_group_name, sql_virtual_machine_group_name, parameters, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'sqlVirtualMachineGroupName': self._serialize.url("sql_virtual_machine_group_name", sql_virtual_machine_group_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'SqlVirtualMachineGroup') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('SqlVirtualMachineGroup', response) + if response.status_code == 201: + deserialized = self._deserialize('SqlVirtualMachineGroup', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update( + self, resource_group_name, sql_virtual_machine_group_name, parameters, custom_headers=None, raw=False, polling=True, **operation_config): + """Creates or updates a SQL virtual machine group. + + :param resource_group_name: Name of the resource group that contains + the resource. You can obtain this value from the Azure Resource + Manager API or the portal. + :type resource_group_name: str + :param sql_virtual_machine_group_name: Name of the SQL virtual machine + group. + :type sql_virtual_machine_group_name: str + :param parameters: The SQL virtual machine group. + :type parameters: + ~azure.mgmt.sqlvirtualmachine.models.SqlVirtualMachineGroup + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns SqlVirtualMachineGroup + or ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.sqlvirtualmachine.models.SqlVirtualMachineGroup] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.sqlvirtualmachine.models.SqlVirtualMachineGroup]] + :raises: :class:`CloudError` + """ + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + sql_virtual_machine_group_name=sql_virtual_machine_group_name, + parameters=parameters, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('SqlVirtualMachineGroup', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}'} + + + def _delete_initial( + self, resource_group_name, sql_virtual_machine_group_name, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'sqlVirtualMachineGroupName': self._serialize.url("sql_virtual_machine_group_name", sql_virtual_machine_group_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202, 204]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def delete( + self, resource_group_name, sql_virtual_machine_group_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Deletes a SQL virtual machine group. + + :param resource_group_name: Name of the resource group that contains + the resource. You can obtain this value from the Azure Resource + Manager API or the portal. + :type resource_group_name: str + :param sql_virtual_machine_group_name: Name of the SQL virtual machine + group. + :type sql_virtual_machine_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: :class:`CloudError` + """ + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + sql_virtual_machine_group_name=sql_virtual_machine_group_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}'} + + + def _update_initial( + self, resource_group_name, sql_virtual_machine_group_name, tags=None, custom_headers=None, raw=False, **operation_config): + parameters = models.SqlVirtualMachineGroupUpdate(tags=tags) + + # Construct URL + url = self.update.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'sqlVirtualMachineGroupName': self._serialize.url("sql_virtual_machine_group_name", sql_virtual_machine_group_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'SqlVirtualMachineGroupUpdate') + + # Construct and send request + request = self._client.patch(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('SqlVirtualMachineGroup', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def update( + self, resource_group_name, sql_virtual_machine_group_name, tags=None, custom_headers=None, raw=False, polling=True, **operation_config): + """Updates SQL virtual machine group tags. + + :param resource_group_name: Name of the resource group that contains + the resource. You can obtain this value from the Azure Resource + Manager API or the portal. + :type resource_group_name: str + :param sql_virtual_machine_group_name: Name of the SQL virtual machine + group. + :type sql_virtual_machine_group_name: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns SqlVirtualMachineGroup + or ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.sqlvirtualmachine.models.SqlVirtualMachineGroup] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.sqlvirtualmachine.models.SqlVirtualMachineGroup]] + :raises: :class:`CloudError` + """ + raw_result = self._update_initial( + resource_group_name=resource_group_name, + sql_virtual_machine_group_name=sql_virtual_machine_group_name, + tags=tags, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('SqlVirtualMachineGroup', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/{sqlVirtualMachineGroupName}'} + + def list_by_resource_group( + self, resource_group_name, custom_headers=None, raw=False, **operation_config): + """Gets all SQL virtual machine groups in a resource group. + + :param resource_group_name: Name of the resource group that contains + the resource. You can obtain this value from the Azure Resource + Manager API or the portal. + :type resource_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of SqlVirtualMachineGroup + :rtype: + ~azure.mgmt.sqlvirtualmachine.models.SqlVirtualMachineGroupPaged[~azure.mgmt.sqlvirtualmachine.models.SqlVirtualMachineGroup] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_by_resource_group.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.SqlVirtualMachineGroupPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.SqlVirtualMachineGroupPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups'} + + def list( + self, custom_headers=None, raw=False, **operation_config): + """Gets all SQL virtual machine groups in a subscription. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of SqlVirtualMachineGroup + :rtype: + ~azure.mgmt.sqlvirtualmachine.models.SqlVirtualMachineGroupPaged[~azure.mgmt.sqlvirtualmachine.models.SqlVirtualMachineGroup] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.SqlVirtualMachineGroupPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.SqlVirtualMachineGroupPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups'} diff --git a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/operations/sql_virtual_machines_operations.py b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/operations/sql_virtual_machines_operations.py new file mode 100644 index 000000000000..efb68b3f404b --- /dev/null +++ b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/operations/sql_virtual_machines_operations.py @@ -0,0 +1,531 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +from msrest.polling import LROPoller, NoPolling +from msrestazure.polling.arm_polling import ARMPolling + +from .. import models + + +class SqlVirtualMachinesOperations(object): + """SqlVirtualMachinesOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: API version to use for the request. Constant value: "2017-03-01-preview". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2017-03-01-preview" + + self.config = config + + def get( + self, resource_group_name, sql_virtual_machine_name, expand=None, custom_headers=None, raw=False, **operation_config): + """Gets a SQL virtual machine. + + :param resource_group_name: Name of the resource group that contains + the resource. You can obtain this value from the Azure Resource + Manager API or the portal. + :type resource_group_name: str + :param sql_virtual_machine_name: Name of the SQL virtual machine. + :type sql_virtual_machine_name: str + :param expand: The child resources to include in the response. + :type expand: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: SqlVirtualMachine or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.sqlvirtualmachine.models.SqlVirtualMachine or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'sqlVirtualMachineName': self._serialize.url("sql_virtual_machine_name", sql_virtual_machine_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + if expand is not None: + query_parameters['$expand'] = self._serialize.query("expand", expand, 'str') + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('SqlVirtualMachine', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}'} + + + def _create_or_update_initial( + self, resource_group_name, sql_virtual_machine_name, parameters, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'sqlVirtualMachineName': self._serialize.url("sql_virtual_machine_name", sql_virtual_machine_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'SqlVirtualMachine') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('SqlVirtualMachine', response) + if response.status_code == 201: + deserialized = self._deserialize('SqlVirtualMachine', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update( + self, resource_group_name, sql_virtual_machine_name, parameters, custom_headers=None, raw=False, polling=True, **operation_config): + """Creates or updates a SQL virtual machine. + + :param resource_group_name: Name of the resource group that contains + the resource. You can obtain this value from the Azure Resource + Manager API or the portal. + :type resource_group_name: str + :param sql_virtual_machine_name: Name of the SQL virtual machine. + :type sql_virtual_machine_name: str + :param parameters: The SQL virtual machine. + :type parameters: + ~azure.mgmt.sqlvirtualmachine.models.SqlVirtualMachine + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns SqlVirtualMachine or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.sqlvirtualmachine.models.SqlVirtualMachine] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.sqlvirtualmachine.models.SqlVirtualMachine]] + :raises: :class:`CloudError` + """ + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + sql_virtual_machine_name=sql_virtual_machine_name, + parameters=parameters, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('SqlVirtualMachine', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}'} + + + def _delete_initial( + self, resource_group_name, sql_virtual_machine_name, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'sqlVirtualMachineName': self._serialize.url("sql_virtual_machine_name", sql_virtual_machine_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202, 204]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def delete( + self, resource_group_name, sql_virtual_machine_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Deletes a SQL virtual machine. + + :param resource_group_name: Name of the resource group that contains + the resource. You can obtain this value from the Azure Resource + Manager API or the portal. + :type resource_group_name: str + :param sql_virtual_machine_name: Name of the SQL virtual machine. + :type sql_virtual_machine_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: :class:`CloudError` + """ + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + sql_virtual_machine_name=sql_virtual_machine_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}'} + + + def _update_initial( + self, resource_group_name, sql_virtual_machine_name, tags=None, custom_headers=None, raw=False, **operation_config): + parameters = models.SqlVirtualMachineUpdate(tags=tags) + + # Construct URL + url = self.update.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'sqlVirtualMachineName': self._serialize.url("sql_virtual_machine_name", sql_virtual_machine_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'SqlVirtualMachineUpdate') + + # Construct and send request + request = self._client.patch(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('SqlVirtualMachine', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def update( + self, resource_group_name, sql_virtual_machine_name, tags=None, custom_headers=None, raw=False, polling=True, **operation_config): + """Updates a SQL virtual machine. + + :param resource_group_name: Name of the resource group that contains + the resource. You can obtain this value from the Azure Resource + Manager API or the portal. + :type resource_group_name: str + :param sql_virtual_machine_name: Name of the SQL virtual machine. + :type sql_virtual_machine_name: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns SqlVirtualMachine or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.sqlvirtualmachine.models.SqlVirtualMachine] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.sqlvirtualmachine.models.SqlVirtualMachine]] + :raises: :class:`CloudError` + """ + raw_result = self._update_initial( + resource_group_name=resource_group_name, + sql_virtual_machine_name=sql_virtual_machine_name, + tags=tags, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('SqlVirtualMachine', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/{sqlVirtualMachineName}'} + + def list_by_resource_group( + self, resource_group_name, custom_headers=None, raw=False, **operation_config): + """Gets all SQL virtual machines in a resource group. + + :param resource_group_name: Name of the resource group that contains + the resource. You can obtain this value from the Azure Resource + Manager API or the portal. + :type resource_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of SqlVirtualMachine + :rtype: + ~azure.mgmt.sqlvirtualmachine.models.SqlVirtualMachinePaged[~azure.mgmt.sqlvirtualmachine.models.SqlVirtualMachine] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_by_resource_group.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.SqlVirtualMachinePaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.SqlVirtualMachinePaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines'} + + def list( + self, custom_headers=None, raw=False, **operation_config): + """Gets all SQL virtual machines in a subscription. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of SqlVirtualMachine + :rtype: + ~azure.mgmt.sqlvirtualmachine.models.SqlVirtualMachinePaged[~azure.mgmt.sqlvirtualmachine.models.SqlVirtualMachine] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.SqlVirtualMachinePaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.SqlVirtualMachinePaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines'} diff --git a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/sql_virtual_machine_management_client.py b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/sql_virtual_machine_management_client.py new file mode 100644 index 000000000000..6dfec102442c --- /dev/null +++ b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/sql_virtual_machine_management_client.py @@ -0,0 +1,98 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.service_client import SDKClient +from msrest import Serializer, Deserializer +from msrestazure import AzureConfiguration +from .version import VERSION +from .operations.availability_group_listeners_operations import AvailabilityGroupListenersOperations +from .operations.operations import Operations +from .operations.sql_virtual_machine_groups_operations import SqlVirtualMachineGroupsOperations +from .operations.sql_virtual_machines_operations import SqlVirtualMachinesOperations +from . import models + + +class SqlVirtualMachineManagementClientConfiguration(AzureConfiguration): + """Configuration for SqlVirtualMachineManagementClient + Note that all parameters used to create this instance are saved as instance + attributes. + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param subscription_id: Subscription ID that identifies an Azure + subscription. + :type subscription_id: str + :param str base_url: Service URL + """ + + def __init__( + self, credentials, subscription_id, base_url=None): + + if credentials is None: + raise ValueError("Parameter 'credentials' must not be None.") + if subscription_id is None: + raise ValueError("Parameter 'subscription_id' must not be None.") + if not base_url: + base_url = 'https://management.azure.com' + + super(SqlVirtualMachineManagementClientConfiguration, self).__init__(base_url) + + self.add_user_agent('azure-mgmt-sqlvirtualmachine/{}'.format(VERSION)) + self.add_user_agent('Azure-SDK-For-Python') + + self.credentials = credentials + self.subscription_id = subscription_id + + +class SqlVirtualMachineManagementClient(SDKClient): + """The SQL virtual machine management API provides a RESTful set of web APIs that interact with Azure Compute, Network & Storage services to manage your SQL Server virtual machine. The API enables users to create, delete and retrieve a SQL virtual machine, SQL virtual machine group or availability group listener. + + :ivar config: Configuration for client. + :vartype config: SqlVirtualMachineManagementClientConfiguration + + :ivar availability_group_listeners: AvailabilityGroupListeners operations + :vartype availability_group_listeners: azure.mgmt.sqlvirtualmachine.operations.AvailabilityGroupListenersOperations + :ivar operations: Operations operations + :vartype operations: azure.mgmt.sqlvirtualmachine.operations.Operations + :ivar sql_virtual_machine_groups: SqlVirtualMachineGroups operations + :vartype sql_virtual_machine_groups: azure.mgmt.sqlvirtualmachine.operations.SqlVirtualMachineGroupsOperations + :ivar sql_virtual_machines: SqlVirtualMachines operations + :vartype sql_virtual_machines: azure.mgmt.sqlvirtualmachine.operations.SqlVirtualMachinesOperations + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param subscription_id: Subscription ID that identifies an Azure + subscription. + :type subscription_id: str + :param str base_url: Service URL + """ + + def __init__( + self, credentials, subscription_id, base_url=None): + + self.config = SqlVirtualMachineManagementClientConfiguration(credentials, subscription_id, base_url) + super(SqlVirtualMachineManagementClient, self).__init__(self.config.credentials, self.config) + + client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} + self.api_version = '2017-03-01-preview' + self._serialize = Serializer(client_models) + self._deserialize = Deserializer(client_models) + + self.availability_group_listeners = AvailabilityGroupListenersOperations( + self._client, self.config, self._serialize, self._deserialize) + self.operations = Operations( + self._client, self.config, self._serialize, self._deserialize) + self.sql_virtual_machine_groups = SqlVirtualMachineGroupsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.sql_virtual_machines = SqlVirtualMachinesOperations( + self._client, self.config, self._serialize, self._deserialize) diff --git a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/version.py b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/version.py new file mode 100644 index 000000000000..e0ec669828cb --- /dev/null +++ b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/version.py @@ -0,0 +1,13 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +VERSION = "0.1.0" + diff --git a/azure-mgmt-sqlvirtualmachine/sdk_packaging.toml b/azure-mgmt-sqlvirtualmachine/sdk_packaging.toml new file mode 100644 index 000000000000..da81e215b77e --- /dev/null +++ b/azure-mgmt-sqlvirtualmachine/sdk_packaging.toml @@ -0,0 +1,7 @@ +[packaging] +package_name = "azure-mgmt-sqlvirtualmachine" +package_nspkg = "azure-mgmt-nspkg" +package_pprint_name = "SQL Virtual Machine Management" +package_doc_id = "" +is_stable = false +is_arm = true diff --git a/azure-mgmt-sqlvirtualmachine/setup.cfg b/azure-mgmt-sqlvirtualmachine/setup.cfg new file mode 100644 index 000000000000..3c6e79cf31da --- /dev/null +++ b/azure-mgmt-sqlvirtualmachine/setup.cfg @@ -0,0 +1,2 @@ +[bdist_wheel] +universal=1 diff --git a/azure-mgmt-sqlvirtualmachine/setup.py b/azure-mgmt-sqlvirtualmachine/setup.py new file mode 100644 index 000000000000..3f4d10f6f2a1 --- /dev/null +++ b/azure-mgmt-sqlvirtualmachine/setup.py @@ -0,0 +1,87 @@ +#!/usr/bin/env python + +#------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +#-------------------------------------------------------------------------- + +import re +import os.path +from io import open +from setuptools import find_packages, setup + +# Change the PACKAGE_NAME only to change folder and different name +PACKAGE_NAME = "azure-mgmt-sqlvirtualmachine" +PACKAGE_PPRINT_NAME = "SQL Virtual Machine Management" + +# a-b-c => a/b/c +package_folder_path = PACKAGE_NAME.replace('-', '/') +# a-b-c => a.b.c +namespace_name = PACKAGE_NAME.replace('-', '.') + +# azure v0.x is not compatible with this package +# azure v0.x used to have a __version__ attribute (newer versions don't) +try: + import azure + try: + ver = azure.__version__ + raise Exception( + 'This package is incompatible with azure=={}. '.format(ver) + + 'Uninstall it with "pip uninstall azure".' + ) + except AttributeError: + pass +except ImportError: + pass + +# Version extraction inspired from 'requests' +with open(os.path.join(package_folder_path, 'version.py'), 'r') as fd: + version = re.search(r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]', + fd.read(), re.MULTILINE).group(1) + +if not version: + raise RuntimeError('Cannot find version information') + +with open('README.rst', encoding='utf-8') as f: + readme = f.read() +with open('HISTORY.rst', encoding='utf-8') as f: + history = f.read() + +setup( + name=PACKAGE_NAME, + version=version, + description='Microsoft Azure {} Client Library for Python'.format(PACKAGE_PPRINT_NAME), + long_description=readme + '\n\n' + history, + license='MIT License', + author='Microsoft Corporation', + author_email='azpysdkhelp@microsoft.com', + url='https://github.com/Azure/azure-sdk-for-python', + classifiers=[ + 'Development Status :: 4 - Beta', + 'Programming Language :: Python', + 'Programming Language :: Python :: 2', + 'Programming Language :: Python :: 2.7', + 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3.4', + 'Programming Language :: Python :: 3.5', + 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', + 'License :: OSI Approved :: MIT License', + ], + zip_safe=False, + packages=find_packages(exclude=[ + 'tests', + # Exclude packages that will be covered by PEP420 or nspkg + 'azure', + 'azure.mgmt', + ]), + install_requires=[ + 'msrest>=0.5.0', + 'msrestazure>=0.4.32,<2.0.0', + 'azure-common~=1.1', + ], + extras_require={ + ":python_version<'3.0'": ['azure-mgmt-nspkg'], + } +) From b862802f7622f4b75730d406c46efff5a3e9ff6c Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Fri, 7 Dec 2018 11:33:08 -0800 Subject: [PATCH 03/12] [AutoPR] sqlvirtualmachine/resource-manager (#4020) * [AutoPR sqlvirtualmachine/resource-manager] [Portal Generated] Review request for Microsoft.SqlVirtualMachine to add version 2017-03-01-preview (#3982) * Generated from 8cf04559ccfe6540af242b9977aaac00c2d8a3cc Updating the swagger * Generated from 5ea83941799d7a33a652fbec840c663b2161232e Moving property to the end of the object * Update version.py * ChangeLog --- azure-mgmt-sqlvirtualmachine/HISTORY.rst | 11 +++++++++++ .../mgmt/sqlvirtualmachine/models/__init__.py | 6 ++++-- .../additional_features_server_configurations.py | 5 ----- ...dditional_features_server_configurations_py3.py | 7 +------ .../models/load_balancer_configuration.py | 2 +- .../models/load_balancer_configuration_py3.py | 2 +- .../models/sql_storage_update_settings.py | 4 ++++ .../models/sql_storage_update_settings_py3.py | 6 +++++- .../models/sql_virtual_machine_group.py | 4 ++-- .../models/sql_virtual_machine_group_py3.py | 4 ++-- .../sql_virtual_machine_management_client_enums.py | 14 ++++++++++---- .../azure/mgmt/sqlvirtualmachine/version.py | 2 +- 12 files changed, 42 insertions(+), 25 deletions(-) diff --git a/azure-mgmt-sqlvirtualmachine/HISTORY.rst b/azure-mgmt-sqlvirtualmachine/HISTORY.rst index fbbc2771cae4..b89a8f95b90e 100644 --- a/azure-mgmt-sqlvirtualmachine/HISTORY.rst +++ b/azure-mgmt-sqlvirtualmachine/HISTORY.rst @@ -3,6 +3,17 @@ Release History =============== +0.2.0 (2018-12-07) +++++++++++++++++++ + +**Features** + +- Model SqlStorageUpdateSettings has a new parameter starting_device_id + +**Breaking changes** + +- Model AdditionalFeaturesServerConfigurations no longer has parameter backup_permissions_for_azure_backup_svc + 0.1.0 (2018-11-27) ++++++++++++++++++ diff --git a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/__init__.py b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/__init__.py index 5855d2727ed8..c04c0c76e4d0 100644 --- a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/__init__.py +++ b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/__init__.py @@ -63,12 +63,13 @@ from .sql_virtual_machine_paged import SqlVirtualMachinePaged from .sql_virtual_machine_management_client_enums import ( OperationOrigin, - SqlImageSku, + SqlVmGroupImageSku, ScaleType, ClusterManagerType, ClusterConfiguration, IdentityType, SqlServerLicenseType, + SqlImageSku, DayOfWeek, BackupScheduleType, FullBackupFrequencyType, @@ -106,12 +107,13 @@ 'SqlVirtualMachineGroupPaged', 'SqlVirtualMachinePaged', 'OperationOrigin', - 'SqlImageSku', + 'SqlVmGroupImageSku', 'ScaleType', 'ClusterManagerType', 'ClusterConfiguration', 'IdentityType', 'SqlServerLicenseType', + 'SqlImageSku', 'DayOfWeek', 'BackupScheduleType', 'FullBackupFrequencyType', diff --git a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/additional_features_server_configurations.py b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/additional_features_server_configurations.py index cd976abb8474..fbc134b696d2 100644 --- a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/additional_features_server_configurations.py +++ b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/additional_features_server_configurations.py @@ -18,17 +18,12 @@ class AdditionalFeaturesServerConfigurations(Model): :param is_rservices_enabled: Enable or disable R services (SQL 2016 onwards). :type is_rservices_enabled: bool - :param backup_permissions_for_azure_backup_svc: Enable or disable Azure - Backup service. - :type backup_permissions_for_azure_backup_svc: bool """ _attribute_map = { 'is_rservices_enabled': {'key': 'isRServicesEnabled', 'type': 'bool'}, - 'backup_permissions_for_azure_backup_svc': {'key': 'backupPermissionsForAzureBackupSvc', 'type': 'bool'}, } def __init__(self, **kwargs): super(AdditionalFeaturesServerConfigurations, self).__init__(**kwargs) self.is_rservices_enabled = kwargs.get('is_rservices_enabled', None) - self.backup_permissions_for_azure_backup_svc = kwargs.get('backup_permissions_for_azure_backup_svc', None) diff --git a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/additional_features_server_configurations_py3.py b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/additional_features_server_configurations_py3.py index 6fd2cc8931bf..f5e86f259c31 100644 --- a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/additional_features_server_configurations_py3.py +++ b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/additional_features_server_configurations_py3.py @@ -18,17 +18,12 @@ class AdditionalFeaturesServerConfigurations(Model): :param is_rservices_enabled: Enable or disable R services (SQL 2016 onwards). :type is_rservices_enabled: bool - :param backup_permissions_for_azure_backup_svc: Enable or disable Azure - Backup service. - :type backup_permissions_for_azure_backup_svc: bool """ _attribute_map = { 'is_rservices_enabled': {'key': 'isRServicesEnabled', 'type': 'bool'}, - 'backup_permissions_for_azure_backup_svc': {'key': 'backupPermissionsForAzureBackupSvc', 'type': 'bool'}, } - def __init__(self, *, is_rservices_enabled: bool=None, backup_permissions_for_azure_backup_svc: bool=None, **kwargs) -> None: + def __init__(self, *, is_rservices_enabled: bool=None, **kwargs) -> None: super(AdditionalFeaturesServerConfigurations, self).__init__(**kwargs) self.is_rservices_enabled = is_rservices_enabled - self.backup_permissions_for_azure_backup_svc = backup_permissions_for_azure_backup_svc diff --git a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/load_balancer_configuration.py b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/load_balancer_configuration.py index df09e18404d1..7546d5b9d0a3 100644 --- a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/load_balancer_configuration.py +++ b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/load_balancer_configuration.py @@ -20,7 +20,7 @@ class LoadBalancerConfiguration(Model): ~azure.mgmt.sqlvirtualmachine.models.PrivateIPAddress :param public_ip_address_resource_id: Resource id of the public IP. :type public_ip_address_resource_id: str - :param load_balancer_resource_id: Subnet used to include private IP. + :param load_balancer_resource_id: Resource id of the load balancer. :type load_balancer_resource_id: str :param probe_port: Probe port. :type probe_port: int diff --git a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/load_balancer_configuration_py3.py b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/load_balancer_configuration_py3.py index c8cc7e3a17f9..94a60b59c1cc 100644 --- a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/load_balancer_configuration_py3.py +++ b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/load_balancer_configuration_py3.py @@ -20,7 +20,7 @@ class LoadBalancerConfiguration(Model): ~azure.mgmt.sqlvirtualmachine.models.PrivateIPAddress :param public_ip_address_resource_id: Resource id of the public IP. :type public_ip_address_resource_id: str - :param load_balancer_resource_id: Subnet used to include private IP. + :param load_balancer_resource_id: Resource id of the load balancer. :type load_balancer_resource_id: str :param probe_port: Probe port. :type probe_port: int diff --git a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_storage_update_settings.py b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_storage_update_settings.py index 117a29855992..9698b522e3cb 100644 --- a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_storage_update_settings.py +++ b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_storage_update_settings.py @@ -21,14 +21,18 @@ class SqlStorageUpdateSettings(Model): Possible values include: 'NEW', 'EXTEND', 'ADD' :type disk_configuration_type: str or ~azure.mgmt.sqlvirtualmachine.models.DiskConfigurationType + :param starting_device_id: Device id of the first disk to be updated. + :type starting_device_id: int """ _attribute_map = { 'disk_count': {'key': 'diskCount', 'type': 'int'}, 'disk_configuration_type': {'key': 'diskConfigurationType', 'type': 'str'}, + 'starting_device_id': {'key': 'startingDeviceId', 'type': 'int'}, } def __init__(self, **kwargs): super(SqlStorageUpdateSettings, self).__init__(**kwargs) self.disk_count = kwargs.get('disk_count', None) self.disk_configuration_type = kwargs.get('disk_configuration_type', None) + self.starting_device_id = kwargs.get('starting_device_id', None) diff --git a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_storage_update_settings_py3.py b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_storage_update_settings_py3.py index 94b8b9a5dc52..a392f27f9089 100644 --- a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_storage_update_settings_py3.py +++ b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_storage_update_settings_py3.py @@ -21,14 +21,18 @@ class SqlStorageUpdateSettings(Model): Possible values include: 'NEW', 'EXTEND', 'ADD' :type disk_configuration_type: str or ~azure.mgmt.sqlvirtualmachine.models.DiskConfigurationType + :param starting_device_id: Device id of the first disk to be updated. + :type starting_device_id: int """ _attribute_map = { 'disk_count': {'key': 'diskCount', 'type': 'int'}, 'disk_configuration_type': {'key': 'diskConfigurationType', 'type': 'str'}, + 'starting_device_id': {'key': 'startingDeviceId', 'type': 'int'}, } - def __init__(self, *, disk_count: int=None, disk_configuration_type=None, **kwargs) -> None: + def __init__(self, *, disk_count: int=None, disk_configuration_type=None, starting_device_id: int=None, **kwargs) -> None: super(SqlStorageUpdateSettings, self).__init__(**kwargs) self.disk_count = disk_count self.disk_configuration_type = disk_configuration_type + self.starting_device_id = starting_device_id diff --git a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_virtual_machine_group.py b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_virtual_machine_group.py index f9f127f195f1..81cd2b479027 100644 --- a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_virtual_machine_group.py +++ b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_virtual_machine_group.py @@ -37,9 +37,9 @@ class SqlVirtualMachineGroup(TrackedResource): SQL2016-WS2016, SQL2017-WS2016. :type sql_image_offer: str :param sql_image_sku: SQL image sku. Possible values include: 'Developer', - 'Express', 'Standard', 'Enterprise', 'Web' + 'Enterprise' :type sql_image_sku: str or - ~azure.mgmt.sqlvirtualmachine.models.SqlImageSku + ~azure.mgmt.sqlvirtualmachine.models.SqlVmGroupImageSku :ivar scale_type: Scale type. Possible values include: 'HA' :vartype scale_type: str or ~azure.mgmt.sqlvirtualmachine.models.ScaleType :ivar cluster_manager_type: Type of cluster manager: Windows Server diff --git a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_virtual_machine_group_py3.py b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_virtual_machine_group_py3.py index a7a2c32fc3f6..93b3b2e08a6c 100644 --- a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_virtual_machine_group_py3.py +++ b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_virtual_machine_group_py3.py @@ -37,9 +37,9 @@ class SqlVirtualMachineGroup(TrackedResource): SQL2016-WS2016, SQL2017-WS2016. :type sql_image_offer: str :param sql_image_sku: SQL image sku. Possible values include: 'Developer', - 'Express', 'Standard', 'Enterprise', 'Web' + 'Enterprise' :type sql_image_sku: str or - ~azure.mgmt.sqlvirtualmachine.models.SqlImageSku + ~azure.mgmt.sqlvirtualmachine.models.SqlVmGroupImageSku :ivar scale_type: Scale type. Possible values include: 'HA' :vartype scale_type: str or ~azure.mgmt.sqlvirtualmachine.models.ScaleType :ivar cluster_manager_type: Type of cluster manager: Windows Server diff --git a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_virtual_machine_management_client_enums.py b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_virtual_machine_management_client_enums.py index abede8d3d0de..f60a88e07d49 100644 --- a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_virtual_machine_management_client_enums.py +++ b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/models/sql_virtual_machine_management_client_enums.py @@ -18,13 +18,10 @@ class OperationOrigin(str, Enum): system = "system" -class SqlImageSku(str, Enum): +class SqlVmGroupImageSku(str, Enum): developer = "Developer" - express = "Express" - standard = "Standard" enterprise = "Enterprise" - web = "Web" class ScaleType(str, Enum): @@ -53,6 +50,15 @@ class SqlServerLicenseType(str, Enum): ahub = "AHUB" +class SqlImageSku(str, Enum): + + developer = "Developer" + express = "Express" + standard = "Standard" + enterprise = "Enterprise" + web = "Web" + + class DayOfWeek(str, Enum): monday = "Monday" diff --git a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/version.py b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/version.py index e0ec669828cb..9bd1dfac7ecb 100644 --- a/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/version.py +++ b/azure-mgmt-sqlvirtualmachine/azure/mgmt/sqlvirtualmachine/version.py @@ -9,5 +9,5 @@ # regenerated. # -------------------------------------------------------------------------- -VERSION = "0.1.0" +VERSION = "0.2.0" From 34453e694836000bd42f5211c42d4f654e830ab9 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Mon, 10 Dec 2018 09:45:47 -0800 Subject: [PATCH 04/12] [AutoPR] servicefabric/data-plane (#3865) * [AutoPR servicefabric/data-plane] typo: servicefabric/data-plane/Microsoft.ServiceFabric/servicefabric (#3848) * Generated from cebed9a01f5c0a1a57c6a8b4108d08e6ce853dd7 typo: servicefabric/data-plane/Microsoft.ServiceFabric/stable/6.2/servicefabric - specificed -> specified - sucessful -> successful - resturns -> returns - commited -> committed - Double word "maximum" - Double word "with" * Packaging update of azure-servicefabric * [AutoPR servicefabric/data-plane] Swagger specification for Service Fabric runtime version 6.4 (#3898) * Generated from 6415c5920fc51ac978815e71c12089643a219c49 Swagger specification for Service Fabric runtime version 6.4 * Generated from c69b3d22ae7f74ae4932d3fdce146ff567441664 fix typos specificed -> specified, sucessful -> successful, resturns -> returns, commited -> committed, Double word "maximum", Double word "with" * Generated from 494e01db96f17beb1d349ab74358274971b26d08 remove invalid character * [AutoPR servicefabric/data-plane] typo: servicefabric/data-plane/Microsoft.ServiceFabric (#4000) * Generated from 5305ee85120064c4201d196fbc1b272ea31cdd0a typo: servicefabric/data-plane/Microsoft.ServiceFabric - dataloss -> data loss - specificed -> specified - sucsessful -> successful * Generated from 5305ee85120064c4201d196fbc1b272ea31cdd0a typo: servicefabric/data-plane/Microsoft.ServiceFabric - dataloss -> data loss - specificed -> specified - sucsessful -> successful * Update HISTORY.rst * Update sdk_packaging.toml * Packaging update of azure-servicefabric --- azure-servicefabric/HISTORY.rst | 16 + azure-servicefabric/MANIFEST.in | 2 + .../azure/servicefabric/models/__init__.py | 481 +++++---- .../add_remove_replica_scaling_mechanism.py | 53 + ...dd_remove_replica_scaling_mechanism_py3.py | 53 + ...cation_container_instance_exited_event.py} | 11 +- ...on_container_instance_exited_event_py3.py} | 13 +- .../models/application_created_event.py | 3 + .../models/application_created_event_py3.py | 7 +- .../models/application_deleted_event.py | 3 + .../models/application_deleted_event_py3.py | 7 +- .../servicefabric/models/application_event.py | 25 +- .../models/application_event_py3.py | 29 +- ...application_health_report_expired_event.py | 3 + ...ication_health_report_expired_event_py3.py | 7 +- ...=> application_new_health_report_event.py} | 9 +- ...pplication_new_health_report_event_py3.py} | 11 +- ...py => application_process_exited_event.py} | 11 +- ...> application_process_exited_event_py3.py} | 13 +- .../application_resource_description.py | 71 +- .../application_resource_description_py3.py | 73 +- .../models/application_scoped_volume.py | 49 + ...ation_scoped_volume_creation_parameters.py | 46 + ...n_scoped_volume_creation_parameters_py3.py | 46 + ...n_parameters_service_fabric_volume_disk.py | 44 + ...rameters_service_fabric_volume_disk_py3.py | 44 + .../models/application_scoped_volume_py3.py | 49 + ...=> application_upgrade_completed_event.py} | 11 +- ...pplication_upgrade_completed_event_py3.py} | 13 +- ...ication_upgrade_domain_completed_event.py} | 11 +- ...ion_upgrade_domain_completed_event_py3.py} | 13 +- ...ation_upgrade_rollback_completed_event.py} | 11 +- ...n_upgrade_rollback_completed_event_py3.py} | 13 +- ...ication_upgrade_rollback_started_event.py} | 11 +- ...ion_upgrade_rollback_started_event_py3.py} | 13 +- ...y => application_upgrade_started_event.py} | 11 +- ... application_upgrade_started_event_py3.py} | 13 +- .../models/auto_scaling_mechanism.py | 42 + .../models/auto_scaling_mechanism_py3.py | 42 + .../models/auto_scaling_metric.py | 42 + .../models/auto_scaling_metric_py3.py | 42 + .../models/auto_scaling_policy.py | 46 + .../models/auto_scaling_policy_py3.py | 46 + .../models/auto_scaling_resource_metric.py | 41 + .../auto_scaling_resource_metric_py3.py | 41 + .../models/auto_scaling_trigger.py | 41 + .../models/auto_scaling_trigger_py3.py | 41 + .../models/average_load_scaling_trigger.py | 58 ++ .../average_load_scaling_trigger_py3.py | 58 ++ ...al_monitoring_pipeline_sink_description.py | 63 ++ ...onitoring_pipeline_sink_description_py3.py | 63 ++ .../servicefabric/models/backup_epoch.py | 41 - .../servicefabric/models/backup_epoch_py3.py | 41 - .../azure/servicefabric/models/backup_info.py | 9 +- .../servicefabric/models/backup_info_py3.py | 11 +- .../models/backup_policy_description.py | 6 + .../models/backup_policy_description_py3.py | 8 +- .../models/backup_progress_info.py | 4 +- .../models/backup_progress_info_py3.py | 4 +- .../basic_retention_policy_description.py | 49 + .../basic_retention_policy_description_py3.py | 49 + ...s_code_package_restart_scheduled_event.py} | 9 +- ...de_package_restart_scheduled_event_py3.py} | 11 +- ... => chaos_node_restart_scheduled_event.py} | 9 +- ...chaos_node_restart_scheduled_event_py3.py} | 11 +- ...partition_primary_move_scheduled_event.py} | 9 +- ...ition_primary_move_scheduled_event_py3.py} | 11 +- ...rtition_secondary_move_scheduled_event.py} | 9 +- ...ion_secondary_move_scheduled_event_py3.py} | 11 +- ...os_remove_replica_fault_completed_event.py | 80 -- ...emove_replica_fault_completed_event_py3.py | 80 -- ... chaos_replica_removal_scheduled_event.py} | 9 +- ...os_replica_removal_scheduled_event_py3.py} | 11 +- ... chaos_replica_restart_scheduled_event.py} | 9 +- ...os_replica_restart_scheduled_event_py3.py} | 11 +- ...tart_code_package_fault_completed_event.py | 88 -- ..._code_package_fault_completed_event_py3.py | 88 -- ...haos_restart_node_fault_completed_event.py | 66 -- ..._restart_node_fault_completed_event_py3.py | 66 -- .../models/chaos_started_event.py | 3 + .../models/chaos_started_event_py3.py | 7 +- .../models/chaos_stopped_event.py | 3 + .../models/chaos_stopped_event_py3.py | 7 +- ...uster_configuration_upgrade_description.py | 12 +- ...r_configuration_upgrade_description_py3.py | 12 +- .../servicefabric/models/cluster_event.py | 13 +- .../servicefabric/models/cluster_event_py3.py | 17 +- .../cluster_health_report_expired_event.py | 3 + ...cluster_health_report_expired_event_py3.py | 7 +- ....py => cluster_new_health_report_event.py} | 9 +- ...=> cluster_new_health_report_event_py3.py} | 11 +- ....py => cluster_upgrade_completed_event.py} | 11 +- ...=> cluster_upgrade_completed_event_py3.py} | 13 +- ...cluster_upgrade_domain_completed_event.py} | 11 +- ...ter_upgrade_domain_completed_event_py3.py} | 13 +- ...uster_upgrade_rollback_completed_event.py} | 11 +- ...r_upgrade_rollback_completed_event_py3.py} | 13 +- ...cluster_upgrade_rollback_started_event.py} | 11 +- ...ter_upgrade_rollback_started_event_py3.py} | 13 +- ...nt.py => cluster_upgrade_started_event.py} | 11 +- ...y => cluster_upgrade_started_event_py3.py} | 13 +- .../servicefabric/models/cluster_version.py | 28 + .../models/cluster_version_py3.py | 28 + .../container_code_package_properties.py | 30 +- .../container_code_package_properties_py3.py | 32 +- .../models/container_instance_event.py | 3 + .../models/container_instance_event_py3.py | 7 +- ...application_health_report_expired_event.py | 3 + ...ication_health_report_expired_event_py3.py | 7 +- ...ed_application_new_health_report_event.py} | 9 +- ...pplication_new_health_report_event_py3.py} | 11 +- ...ce_package_health_report_expired_event.py} | 19 +- ...ackage_health_report_expired_event_py3.py} | 21 +- ...ervice_package_new_health_report_event.py} | 19 +- ...ce_package_new_health_report_event_py3.py} | 21 +- .../models/diagnostics_sink_properties.py | 7 + .../models/diagnostics_sink_properties_py3.py | 7 + .../models/disable_backup_description.py | 37 + .../models/disable_backup_description_py3.py | 37 + .../servicefabric/models/endpoint_ref.py | 28 + .../servicefabric/models/endpoint_ref_py3.py | 28 + .../models/fabric_error_error.py | 3 +- .../models/fabric_error_error_py3.py | 3 +- .../servicefabric/models/fabric_event.py | 4 + .../servicefabric/models/fabric_event_py3.py | 6 +- .../models/gateway_destination.py | 45 + .../models/gateway_destination_py3.py | 45 + .../models/gateway_resource_description.py | 79 ++ .../gateway_resource_description_py3.py | 79 ++ .../servicefabric/models/health_event.py | 2 +- .../servicefabric/models/health_event_py3.py | 2 +- .../models/health_information.py | 2 +- .../models/health_information_py3.py | 2 +- .../azure/servicefabric/models/http_config.py | 46 + .../servicefabric/models/http_config_py3.py | 46 + .../servicefabric/models/http_host_config.py | 41 + .../models/http_host_config_py3.py | 41 + .../servicefabric/models/http_route_config.py | 45 + .../models/http_route_config_py3.py | 45 + .../models/http_route_match_header.py | 42 + .../models/http_route_match_header_py3.py | 42 + .../models/http_route_match_path.py | 48 + .../models/http_route_match_path_py3.py | 48 + .../models/http_route_match_rule.py | 38 + .../models/http_route_match_rule_py3.py | 38 + .../models/image_registry_credential.py | 4 +- .../models/image_registry_credential_py3.py | 4 +- ...nlined_value_secret_resource_properties.py | 59 ++ ...ed_value_secret_resource_properties_py3.py | 59 ++ .../models/load_metric_report.py | 7 +- .../models/load_metric_report_info.py | 7 +- .../models/load_metric_report_info_py3.py | 9 +- .../models/load_metric_report_py3.py | 9 +- .../local_network_resource_properties.py | 56 ++ .../local_network_resource_properties_py3.py | 56 ++ .../azure/servicefabric/models/network_ref.py | 7 +- .../servicefabric/models/network_ref_py3.py | 9 +- .../models/network_resource_description.py | 39 + .../network_resource_description_py3.py | 39 + .../models/network_resource_properties.py | 60 ++ .../network_resource_properties_base.py | 42 + .../network_resource_properties_base_py3.py | 42 + .../models/network_resource_properties_py3.py | 60 ++ .../models/node_aborted_event.py | 3 + .../models/node_aborted_event_py3.py | 7 +- .../models/node_aborting_event.py | 91 -- .../models/node_aborting_event_py3.py | 91 -- ...vent.py => node_added_to_cluster_event.py} | 9 +- ....py => node_added_to_cluster_event_py3.py} | 11 +- ...de_close_event.py => node_closed_event.py} | 15 +- ..._event_py3.py => node_closed_event_py3.py} | 17 +- .../models/node_closing_event.py | 91 -- .../models/node_closing_event_py3.py | 91 -- ....py => node_deactivate_completed_event.py} | 11 +- ...=> node_deactivate_completed_event_py3.py} | 13 +- ...nt.py => node_deactivate_started_event.py} | 11 +- ...y => node_deactivate_started_event_py3.py} | 13 +- .../servicefabric/models/node_down_event.py | 3 + .../models/node_down_event_py3.py | 7 +- .../azure/servicefabric/models/node_event.py | 16 +- .../servicefabric/models/node_event_py3.py | 20 +- .../node_health_report_expired_event.py | 3 + .../node_health_report_expired_event_py3.py | 7 +- ...ent.py => node_new_health_report_event.py} | 9 +- ...py => node_new_health_report_event_py3.py} | 11 +- .../models/node_open_failed_event.py | 3 + .../models/node_open_failed_event_py3.py | 7 +- ..._event.py => node_open_succeeded_event.py} | 11 +- ...y3.py => node_open_succeeded_event_py3.py} | 13 +- .../models/node_opened_success_event.py | 91 -- .../models/node_opening_event_py3.py | 91 -- ....py => node_removed_from_cluster_event.py} | 9 +- ...=> node_removed_from_cluster_event_py3.py} | 11 +- .../servicefabric/models/node_up_event.py | 3 + .../servicefabric/models/node_up_event_py3.py | 7 +- ..._application_resource_description_list.py} | 14 +- ...lication_resource_description_list_py3.py} | 14 +- ...paged_gateway_resource_description_list.py | 39 + ...d_gateway_resource_description_list_py3.py | 39 + ...paged_network_resource_description_list.py | 39 + ...d_network_resource_description_list_py3.py | 39 + .../paged_secret_resource_description_list.py | 39 + ...ed_secret_resource_description_list_py3.py | 39 + ..._secret_value_resource_description_list.py | 41 + ...ret_value_resource_description_list_py3.py | 41 + .../paged_service_replica_description_list.py | 40 + ...ed_service_replica_description_list_py3.py | 40 + ...paged_service_resource_description_list.py | 9 +- ...d_service_resource_description_list_py3.py | 9 +- .../paged_volume_resource_description_list.py | 39 + ...ed_volume_resource_description_list_py3.py | 39 + .../models/partition_analysis_event.py | 3 + .../models/partition_analysis_event_py3.py | 7 +- .../partition_backup_configuration_info.py | 6 +- ...partition_backup_configuration_info_py3.py | 6 +- .../models/partition_backup_entity.py | 6 +- .../models/partition_backup_entity_py3.py | 6 +- .../servicefabric/models/partition_event.py | 12 +- .../models/partition_event_py3.py | 16 +- .../partition_health_report_expired_event.py | 3 + ...rtition_health_report_expired_event_py3.py | 7 +- ...y => partition_new_health_report_event.py} | 9 +- ... partition_new_health_report_event_py3.py} | 11 +- .../partition_primary_move_analysis_event.py | 3 + ...rtition_primary_move_analysis_event_py3.py | 7 +- ...ent.py => partition_reconfigured_event.py} | 11 +- ...py => partition_reconfigured_event_py3.py} | 13 +- .../models/reliable_collections_ref.py | 42 + .../models/reliable_collections_ref_py3.py | 42 + .../servicefabric/models/replica_event.py | 13 +- .../servicefabric/models/replica_event_py3.py | 17 +- .../models/restore_progress_info.py | 4 +- .../models/restore_progress_info_py3.py | 4 +- .../models/retention_policy_description.py | 41 + .../retention_policy_description_py3.py | 41 + .../models/secret_resource_description.py | 40 + .../models/secret_resource_description_py3.py | 40 + .../models/secret_resource_properties.py | 66 ++ .../models/secret_resource_properties_base.py | 42 + .../secret_resource_properties_base_py3.py | 42 + .../models/secret_resource_properties_py3.py | 66 ++ .../servicefabric/models/secret_value.py | 28 + .../models/secret_value_properties.py | 28 + .../models/secret_value_properties_py3.py | 28 + .../servicefabric/models/secret_value_py3.py | 28 + .../secret_value_resource_description.py | 39 + .../secret_value_resource_description_py3.py | 39 + .../models/service_created_event.py | 3 + .../models/service_created_event_py3.py | 7 +- .../models/service_deleted_event.py | 3 + .../models/service_deleted_event_py3.py | 7 +- .../servicefabric/models/service_event.py | 7 +- .../servicefabric/models/service_event_py3.py | 11 +- .../service_fabric_client_ap_is_enums.py | 350 ++++--- .../service_health_report_expired_event.py | 3 + ...service_health_report_expired_event_py3.py | 7 +- ....py => service_new_health_report_event.py} | 9 +- ...=> service_new_health_report_event_py3.py} | 11 +- .../models/service_properties.py | 69 ++ .../models/service_properties_py3.py | 69 ++ ...tion.py => service_replica_description.py} | 10 +- ....py => service_replica_description_py3.py} | 10 +- .../models/service_replica_properties.py | 6 +- .../models/service_replica_properties_py3.py | 6 +- .../models/service_resource_description.py | 55 +- .../service_resource_description_py3.py | 57 +- .../models/service_type_health_policy.py | 5 +- .../models/service_type_health_policy_py3.py | 5 +- .../azure/servicefabric/models/setting.py | 4 +- .../azure/servicefabric/models/setting_py3.py | 4 +- ...ful_replica_health_report_expired_event.py | 3 + ...replica_health_report_expired_event_py3.py | 7 +- ...ateful_replica_new_health_report_event.py} | 9 +- ...ul_replica_new_health_report_event_py3.py} | 11 +- .../models/stateful_service_partition_info.py | 16 +- .../stateful_service_partition_info_py3.py | 18 +- ...ess_replica_health_report_expired_event.py | 3 + ...replica_health_report_expired_event_py3.py | 7 +- ...teless_replica_new_health_report_event.py} | 9 +- ...ss_replica_new_health_report_event_py3.py} | 11 +- .../azure/servicefabric/models/tcp_config.py | 46 + .../servicefabric/models/tcp_config_py3.py | 46 + ...ontainer_volume.py => volume_reference.py} | 8 +- ..._volume_py3.py => volume_reference_py3.py} | 8 +- .../models/volume_resource_description.py | 24 +- .../models/volume_resource_description_py3.py | 24 +- .../servicefabric/operations/__init__.py | 32 + .../operations/mesh_application_operations.py | 261 +++++ .../mesh_code_package_operations.py | 106 ++ .../operations/mesh_gateway_operations.py | 260 +++++ .../operations/mesh_network_operations.py | 263 +++++ .../operations/mesh_secret_operations.py | 260 +++++ .../mesh_secret_value_operations.py | 343 +++++++ .../operations/mesh_service_operations.py | 155 +++ .../mesh_service_replica_operations.py | 159 +++ .../operations/mesh_volume_operations.py | 257 +++++ .../service_fabric_client_ap_is.py | 914 ++++++------------ .../azure/servicefabric/version.py | 2 +- azure-servicefabric/sdk_packaging.toml | 1 + 299 files changed, 8085 insertions(+), 2769 deletions(-) create mode 100644 azure-servicefabric/azure/servicefabric/models/add_remove_replica_scaling_mechanism.py create mode 100644 azure-servicefabric/azure/servicefabric/models/add_remove_replica_scaling_mechanism_py3.py rename azure-servicefabric/azure/servicefabric/models/{container_deactivated_event.py => application_container_instance_exited_event.py} (93%) rename azure-servicefabric/azure/servicefabric/models/{container_deactivated_event_py3.py => application_container_instance_exited_event_py3.py} (90%) rename azure-servicefabric/azure/servicefabric/models/{application_health_report_created_event.py => application_new_health_report_event.py} (93%) rename azure-servicefabric/azure/servicefabric/models/{application_health_report_created_event_py3.py => application_new_health_report_event_py3.py} (89%) rename azure-servicefabric/azure/servicefabric/models/{process_deactivated_event.py => application_process_exited_event.py} (94%) rename azure-servicefabric/azure/servicefabric/models/{process_deactivated_event_py3.py => application_process_exited_event_py3.py} (90%) create mode 100644 azure-servicefabric/azure/servicefabric/models/application_scoped_volume.py create mode 100644 azure-servicefabric/azure/servicefabric/models/application_scoped_volume_creation_parameters.py create mode 100644 azure-servicefabric/azure/servicefabric/models/application_scoped_volume_creation_parameters_py3.py create mode 100644 azure-servicefabric/azure/servicefabric/models/application_scoped_volume_creation_parameters_service_fabric_volume_disk.py create mode 100644 azure-servicefabric/azure/servicefabric/models/application_scoped_volume_creation_parameters_service_fabric_volume_disk_py3.py create mode 100644 azure-servicefabric/azure/servicefabric/models/application_scoped_volume_py3.py rename azure-servicefabric/azure/servicefabric/models/{application_upgrade_complete_event.py => application_upgrade_completed_event.py} (90%) rename azure-servicefabric/azure/servicefabric/models/{application_upgrade_complete_event_py3.py => application_upgrade_completed_event_py3.py} (83%) rename azure-servicefabric/azure/servicefabric/models/{application_upgrade_domain_complete_event.py => application_upgrade_domain_completed_event.py} (91%) rename azure-servicefabric/azure/servicefabric/models/{application_upgrade_domain_complete_event_py3.py => application_upgrade_domain_completed_event_py3.py} (87%) rename azure-servicefabric/azure/servicefabric/models/{application_upgrade_rollback_complete_event.py => application_upgrade_rollback_completed_event.py} (90%) rename azure-servicefabric/azure/servicefabric/models/{application_upgrade_rollback_complete_event_py3.py => application_upgrade_rollback_completed_event_py3.py} (85%) rename azure-servicefabric/azure/servicefabric/models/{application_upgrade_rollback_start_event.py => application_upgrade_rollback_started_event.py} (91%) rename azure-servicefabric/azure/servicefabric/models/{application_upgrade_rollback_start_event_py3.py => application_upgrade_rollback_started_event_py3.py} (85%) rename azure-servicefabric/azure/servicefabric/models/{application_upgrade_start_event.py => application_upgrade_started_event.py} (92%) rename azure-servicefabric/azure/servicefabric/models/{application_upgrade_start_event_py3.py => application_upgrade_started_event_py3.py} (86%) create mode 100644 azure-servicefabric/azure/servicefabric/models/auto_scaling_mechanism.py create mode 100644 azure-servicefabric/azure/servicefabric/models/auto_scaling_mechanism_py3.py create mode 100644 azure-servicefabric/azure/servicefabric/models/auto_scaling_metric.py create mode 100644 azure-servicefabric/azure/servicefabric/models/auto_scaling_metric_py3.py create mode 100644 azure-servicefabric/azure/servicefabric/models/auto_scaling_policy.py create mode 100644 azure-servicefabric/azure/servicefabric/models/auto_scaling_policy_py3.py create mode 100644 azure-servicefabric/azure/servicefabric/models/auto_scaling_resource_metric.py create mode 100644 azure-servicefabric/azure/servicefabric/models/auto_scaling_resource_metric_py3.py create mode 100644 azure-servicefabric/azure/servicefabric/models/auto_scaling_trigger.py create mode 100644 azure-servicefabric/azure/servicefabric/models/auto_scaling_trigger_py3.py create mode 100644 azure-servicefabric/azure/servicefabric/models/average_load_scaling_trigger.py create mode 100644 azure-servicefabric/azure/servicefabric/models/average_load_scaling_trigger_py3.py create mode 100644 azure-servicefabric/azure/servicefabric/models/azure_internal_monitoring_pipeline_sink_description.py create mode 100644 azure-servicefabric/azure/servicefabric/models/azure_internal_monitoring_pipeline_sink_description_py3.py delete mode 100644 azure-servicefabric/azure/servicefabric/models/backup_epoch.py delete mode 100644 azure-servicefabric/azure/servicefabric/models/backup_epoch_py3.py create mode 100644 azure-servicefabric/azure/servicefabric/models/basic_retention_policy_description.py create mode 100644 azure-servicefabric/azure/servicefabric/models/basic_retention_policy_description_py3.py rename azure-servicefabric/azure/servicefabric/models/{chaos_restart_code_package_fault_scheduled_event.py => chaos_code_package_restart_scheduled_event.py} (92%) rename azure-servicefabric/azure/servicefabric/models/{chaos_restart_code_package_fault_scheduled_event_py3.py => chaos_code_package_restart_scheduled_event_py3.py} (87%) rename azure-servicefabric/azure/servicefabric/models/{chaos_restart_node_fault_scheduled_event.py => chaos_node_restart_scheduled_event.py} (89%) rename azure-servicefabric/azure/servicefabric/models/{chaos_restart_node_fault_scheduled_event_py3.py => chaos_node_restart_scheduled_event_py3.py} (82%) rename azure-servicefabric/azure/servicefabric/models/{chaos_move_primary_fault_scheduled_event.py => chaos_partition_primary_move_scheduled_event.py} (90%) rename azure-servicefabric/azure/servicefabric/models/{chaos_move_primary_fault_scheduled_event_py3.py => chaos_partition_primary_move_scheduled_event_py3.py} (84%) rename azure-servicefabric/azure/servicefabric/models/{chaos_move_secondary_fault_scheduled_event.py => chaos_partition_secondary_move_scheduled_event.py} (91%) rename azure-servicefabric/azure/servicefabric/models/{chaos_move_secondary_fault_scheduled_event_py3.py => chaos_partition_secondary_move_scheduled_event_py3.py} (86%) delete mode 100644 azure-servicefabric/azure/servicefabric/models/chaos_remove_replica_fault_completed_event.py delete mode 100644 azure-servicefabric/azure/servicefabric/models/chaos_remove_replica_fault_completed_event_py3.py rename azure-servicefabric/azure/servicefabric/models/{chaos_remove_replica_fault_scheduled_event.py => chaos_replica_removal_scheduled_event.py} (91%) rename azure-servicefabric/azure/servicefabric/models/{chaos_remove_replica_fault_scheduled_event_py3.py => chaos_replica_removal_scheduled_event_py3.py} (85%) rename azure-servicefabric/azure/servicefabric/models/{chaos_restart_replica_fault_scheduled_event.py => chaos_replica_restart_scheduled_event.py} (91%) rename azure-servicefabric/azure/servicefabric/models/{chaos_restart_replica_fault_scheduled_event_py3.py => chaos_replica_restart_scheduled_event_py3.py} (85%) delete mode 100644 azure-servicefabric/azure/servicefabric/models/chaos_restart_code_package_fault_completed_event.py delete mode 100644 azure-servicefabric/azure/servicefabric/models/chaos_restart_code_package_fault_completed_event_py3.py delete mode 100644 azure-servicefabric/azure/servicefabric/models/chaos_restart_node_fault_completed_event.py delete mode 100644 azure-servicefabric/azure/servicefabric/models/chaos_restart_node_fault_completed_event_py3.py rename azure-servicefabric/azure/servicefabric/models/{cluster_health_report_created_event.py => cluster_new_health_report_event.py} (92%) rename azure-servicefabric/azure/servicefabric/models/{cluster_health_report_created_event_py3.py => cluster_new_health_report_event_py3.py} (87%) rename azure-servicefabric/azure/servicefabric/models/{cluster_upgrade_complete_event.py => cluster_upgrade_completed_event.py} (87%) rename azure-servicefabric/azure/servicefabric/models/{cluster_upgrade_complete_event_py3.py => cluster_upgrade_completed_event_py3.py} (81%) rename azure-servicefabric/azure/servicefabric/models/{cluster_upgrade_domain_complete_event.py => cluster_upgrade_domain_completed_event.py} (88%) rename azure-servicefabric/azure/servicefabric/models/{cluster_upgrade_domain_complete_event_py3.py => cluster_upgrade_domain_completed_event_py3.py} (82%) rename azure-servicefabric/azure/servicefabric/models/{cluster_upgrade_rollback_start_event.py => cluster_upgrade_rollback_completed_event.py} (87%) rename azure-servicefabric/azure/servicefabric/models/{cluster_upgrade_rollback_complete_event_py3.py => cluster_upgrade_rollback_completed_event_py3.py} (81%) rename azure-servicefabric/azure/servicefabric/models/{cluster_upgrade_rollback_complete_event.py => cluster_upgrade_rollback_started_event.py} (87%) rename azure-servicefabric/azure/servicefabric/models/{cluster_upgrade_rollback_start_event_py3.py => cluster_upgrade_rollback_started_event_py3.py} (81%) rename azure-servicefabric/azure/servicefabric/models/{cluster_upgrade_start_event.py => cluster_upgrade_started_event.py} (90%) rename azure-servicefabric/azure/servicefabric/models/{cluster_upgrade_start_event_py3.py => cluster_upgrade_started_event_py3.py} (83%) create mode 100644 azure-servicefabric/azure/servicefabric/models/cluster_version.py create mode 100644 azure-servicefabric/azure/servicefabric/models/cluster_version_py3.py rename azure-servicefabric/azure/servicefabric/models/{deployed_application_health_report_created_event.py => deployed_application_new_health_report_event.py} (93%) rename azure-servicefabric/azure/servicefabric/models/{deployed_application_health_report_created_event_py3.py => deployed_application_new_health_report_event_py3.py} (89%) rename azure-servicefabric/azure/servicefabric/models/{deployed_service_health_report_expired_event.py => deployed_service_package_health_report_expired_event.py} (89%) rename azure-servicefabric/azure/servicefabric/models/{deployed_service_health_report_expired_event_py3.py => deployed_service_package_health_report_expired_event_py3.py} (84%) rename azure-servicefabric/azure/servicefabric/models/{deployed_service_health_report_created_event.py => deployed_service_package_new_health_report_event.py} (89%) rename azure-servicefabric/azure/servicefabric/models/{deployed_service_health_report_created_event_py3.py => deployed_service_package_new_health_report_event_py3.py} (84%) create mode 100644 azure-servicefabric/azure/servicefabric/models/disable_backup_description.py create mode 100644 azure-servicefabric/azure/servicefabric/models/disable_backup_description_py3.py create mode 100644 azure-servicefabric/azure/servicefabric/models/endpoint_ref.py create mode 100644 azure-servicefabric/azure/servicefabric/models/endpoint_ref_py3.py create mode 100644 azure-servicefabric/azure/servicefabric/models/gateway_destination.py create mode 100644 azure-servicefabric/azure/servicefabric/models/gateway_destination_py3.py create mode 100644 azure-servicefabric/azure/servicefabric/models/gateway_resource_description.py create mode 100644 azure-servicefabric/azure/servicefabric/models/gateway_resource_description_py3.py create mode 100644 azure-servicefabric/azure/servicefabric/models/http_config.py create mode 100644 azure-servicefabric/azure/servicefabric/models/http_config_py3.py create mode 100644 azure-servicefabric/azure/servicefabric/models/http_host_config.py create mode 100644 azure-servicefabric/azure/servicefabric/models/http_host_config_py3.py create mode 100644 azure-servicefabric/azure/servicefabric/models/http_route_config.py create mode 100644 azure-servicefabric/azure/servicefabric/models/http_route_config_py3.py create mode 100644 azure-servicefabric/azure/servicefabric/models/http_route_match_header.py create mode 100644 azure-servicefabric/azure/servicefabric/models/http_route_match_header_py3.py create mode 100644 azure-servicefabric/azure/servicefabric/models/http_route_match_path.py create mode 100644 azure-servicefabric/azure/servicefabric/models/http_route_match_path_py3.py create mode 100644 azure-servicefabric/azure/servicefabric/models/http_route_match_rule.py create mode 100644 azure-servicefabric/azure/servicefabric/models/http_route_match_rule_py3.py create mode 100644 azure-servicefabric/azure/servicefabric/models/inlined_value_secret_resource_properties.py create mode 100644 azure-servicefabric/azure/servicefabric/models/inlined_value_secret_resource_properties_py3.py create mode 100644 azure-servicefabric/azure/servicefabric/models/local_network_resource_properties.py create mode 100644 azure-servicefabric/azure/servicefabric/models/local_network_resource_properties_py3.py create mode 100644 azure-servicefabric/azure/servicefabric/models/network_resource_description.py create mode 100644 azure-servicefabric/azure/servicefabric/models/network_resource_description_py3.py create mode 100644 azure-servicefabric/azure/servicefabric/models/network_resource_properties.py create mode 100644 azure-servicefabric/azure/servicefabric/models/network_resource_properties_base.py create mode 100644 azure-servicefabric/azure/servicefabric/models/network_resource_properties_base_py3.py create mode 100644 azure-servicefabric/azure/servicefabric/models/network_resource_properties_py3.py delete mode 100644 azure-servicefabric/azure/servicefabric/models/node_aborting_event.py delete mode 100644 azure-servicefabric/azure/servicefabric/models/node_aborting_event_py3.py rename azure-servicefabric/azure/servicefabric/models/{node_added_event.py => node_added_to_cluster_event.py} (92%) rename azure-servicefabric/azure/servicefabric/models/{node_added_event_py3.py => node_added_to_cluster_event_py3.py} (86%) rename azure-servicefabric/azure/servicefabric/models/{node_close_event.py => node_closed_event.py} (85%) rename azure-servicefabric/azure/servicefabric/models/{node_close_event_py3.py => node_closed_event_py3.py} (77%) delete mode 100644 azure-servicefabric/azure/servicefabric/models/node_closing_event.py delete mode 100644 azure-servicefabric/azure/servicefabric/models/node_closing_event_py3.py rename azure-servicefabric/azure/servicefabric/models/{node_deactivate_complete_event.py => node_deactivate_completed_event.py} (89%) rename azure-servicefabric/azure/servicefabric/models/{node_deactivate_complete_event_py3.py => node_deactivate_completed_event_py3.py} (83%) rename azure-servicefabric/azure/servicefabric/models/{node_deactivate_start_event.py => node_deactivate_started_event.py} (88%) rename azure-servicefabric/azure/servicefabric/models/{node_deactivate_start_event_py3.py => node_deactivate_started_event_py3.py} (82%) rename azure-servicefabric/azure/servicefabric/models/{node_health_report_created_event.py => node_new_health_report_event.py} (93%) rename azure-servicefabric/azure/servicefabric/models/{node_health_report_created_event_py3.py => node_new_health_report_event_py3.py} (89%) rename azure-servicefabric/azure/servicefabric/models/{node_opening_event.py => node_open_succeeded_event.py} (92%) rename azure-servicefabric/azure/servicefabric/models/{node_opened_success_event_py3.py => node_open_succeeded_event_py3.py} (86%) delete mode 100644 azure-servicefabric/azure/servicefabric/models/node_opened_success_event.py delete mode 100644 azure-servicefabric/azure/servicefabric/models/node_opening_event_py3.py rename azure-servicefabric/azure/servicefabric/models/{node_removed_event.py => node_removed_from_cluster_event.py} (91%) rename azure-servicefabric/azure/servicefabric/models/{node_removed_event_py3.py => node_removed_from_cluster_event_py3.py} (86%) rename azure-servicefabric/azure/servicefabric/models/{paged_service_resource_replica_description_list.py => paged_application_resource_description_list.py} (72%) rename azure-servicefabric/azure/servicefabric/models/{paged_service_resource_replica_description_list_py3.py => paged_application_resource_description_list_py3.py} (72%) create mode 100644 azure-servicefabric/azure/servicefabric/models/paged_gateway_resource_description_list.py create mode 100644 azure-servicefabric/azure/servicefabric/models/paged_gateway_resource_description_list_py3.py create mode 100644 azure-servicefabric/azure/servicefabric/models/paged_network_resource_description_list.py create mode 100644 azure-servicefabric/azure/servicefabric/models/paged_network_resource_description_list_py3.py create mode 100644 azure-servicefabric/azure/servicefabric/models/paged_secret_resource_description_list.py create mode 100644 azure-servicefabric/azure/servicefabric/models/paged_secret_resource_description_list_py3.py create mode 100644 azure-servicefabric/azure/servicefabric/models/paged_secret_value_resource_description_list.py create mode 100644 azure-servicefabric/azure/servicefabric/models/paged_secret_value_resource_description_list_py3.py create mode 100644 azure-servicefabric/azure/servicefabric/models/paged_service_replica_description_list.py create mode 100644 azure-servicefabric/azure/servicefabric/models/paged_service_replica_description_list_py3.py create mode 100644 azure-servicefabric/azure/servicefabric/models/paged_volume_resource_description_list.py create mode 100644 azure-servicefabric/azure/servicefabric/models/paged_volume_resource_description_list_py3.py rename azure-servicefabric/azure/servicefabric/models/{partition_health_report_created_event.py => partition_new_health_report_event.py} (93%) rename azure-servicefabric/azure/servicefabric/models/{partition_health_report_created_event_py3.py => partition_new_health_report_event_py3.py} (88%) rename azure-servicefabric/azure/servicefabric/models/{partition_reconfiguration_completed_event.py => partition_reconfigured_event.py} (94%) rename azure-servicefabric/azure/servicefabric/models/{partition_reconfiguration_completed_event_py3.py => partition_reconfigured_event_py3.py} (91%) create mode 100644 azure-servicefabric/azure/servicefabric/models/reliable_collections_ref.py create mode 100644 azure-servicefabric/azure/servicefabric/models/reliable_collections_ref_py3.py create mode 100644 azure-servicefabric/azure/servicefabric/models/retention_policy_description.py create mode 100644 azure-servicefabric/azure/servicefabric/models/retention_policy_description_py3.py create mode 100644 azure-servicefabric/azure/servicefabric/models/secret_resource_description.py create mode 100644 azure-servicefabric/azure/servicefabric/models/secret_resource_description_py3.py create mode 100644 azure-servicefabric/azure/servicefabric/models/secret_resource_properties.py create mode 100644 azure-servicefabric/azure/servicefabric/models/secret_resource_properties_base.py create mode 100644 azure-servicefabric/azure/servicefabric/models/secret_resource_properties_base_py3.py create mode 100644 azure-servicefabric/azure/servicefabric/models/secret_resource_properties_py3.py create mode 100644 azure-servicefabric/azure/servicefabric/models/secret_value.py create mode 100644 azure-servicefabric/azure/servicefabric/models/secret_value_properties.py create mode 100644 azure-servicefabric/azure/servicefabric/models/secret_value_properties_py3.py create mode 100644 azure-servicefabric/azure/servicefabric/models/secret_value_py3.py create mode 100644 azure-servicefabric/azure/servicefabric/models/secret_value_resource_description.py create mode 100644 azure-servicefabric/azure/servicefabric/models/secret_value_resource_description_py3.py rename azure-servicefabric/azure/servicefabric/models/{service_health_report_created_event.py => service_new_health_report_event.py} (94%) rename azure-servicefabric/azure/servicefabric/models/{service_health_report_created_event_py3.py => service_new_health_report_event_py3.py} (90%) create mode 100644 azure-servicefabric/azure/servicefabric/models/service_properties.py create mode 100644 azure-servicefabric/azure/servicefabric/models/service_properties_py3.py rename azure-servicefabric/azure/servicefabric/models/{service_resource_replica_description.py => service_replica_description.py} (88%) rename azure-servicefabric/azure/servicefabric/models/{service_resource_replica_description_py3.py => service_replica_description_py3.py} (85%) rename azure-servicefabric/azure/servicefabric/models/{stateful_replica_health_report_created_event.py => stateful_replica_new_health_report_event.py} (94%) rename azure-servicefabric/azure/servicefabric/models/{stateful_replica_health_report_created_event_py3.py => stateful_replica_new_health_report_event_py3.py} (89%) rename azure-servicefabric/azure/servicefabric/models/{stateless_replica_health_report_created_event.py => stateless_replica_new_health_report_event.py} (93%) rename azure-servicefabric/azure/servicefabric/models/{stateless_replica_health_report_created_event_py3.py => stateless_replica_new_health_report_event_py3.py} (89%) create mode 100644 azure-servicefabric/azure/servicefabric/models/tcp_config.py create mode 100644 azure-servicefabric/azure/servicefabric/models/tcp_config_py3.py rename azure-servicefabric/azure/servicefabric/models/{container_volume.py => volume_reference.py} (87%) rename azure-servicefabric/azure/servicefabric/models/{container_volume_py3.py => volume_reference_py3.py} (87%) create mode 100644 azure-servicefabric/azure/servicefabric/operations/__init__.py create mode 100644 azure-servicefabric/azure/servicefabric/operations/mesh_application_operations.py create mode 100644 azure-servicefabric/azure/servicefabric/operations/mesh_code_package_operations.py create mode 100644 azure-servicefabric/azure/servicefabric/operations/mesh_gateway_operations.py create mode 100644 azure-servicefabric/azure/servicefabric/operations/mesh_network_operations.py create mode 100644 azure-servicefabric/azure/servicefabric/operations/mesh_secret_operations.py create mode 100644 azure-servicefabric/azure/servicefabric/operations/mesh_secret_value_operations.py create mode 100644 azure-servicefabric/azure/servicefabric/operations/mesh_service_operations.py create mode 100644 azure-servicefabric/azure/servicefabric/operations/mesh_service_replica_operations.py create mode 100644 azure-servicefabric/azure/servicefabric/operations/mesh_volume_operations.py diff --git a/azure-servicefabric/HISTORY.rst b/azure-servicefabric/HISTORY.rst index 80524bea4cbd..69077e89df1f 100644 --- a/azure-servicefabric/HISTORY.rst +++ b/azure-servicefabric/HISTORY.rst @@ -3,6 +3,22 @@ Release History =============== +6.4.0.0 (2018-12-07) +++++++++++++++++++++ + +**Bugfixes** + +- Numerous improvements to descriptions and help texts + +**Features** + +- Add command to get cluster load +- Add command to get cluster version +- Add mesh gateway support +- Add mesh support +- Add command for rolling back compose deployment upgrades +- Various new parameters added. + 6.3.0.0 (2018-07-27) ++++++++++++++++++++ diff --git a/azure-servicefabric/MANIFEST.in b/azure-servicefabric/MANIFEST.in index bb37a2723dae..73ef117329e5 100644 --- a/azure-servicefabric/MANIFEST.in +++ b/azure-servicefabric/MANIFEST.in @@ -1 +1,3 @@ include *.rst +include azure/__init__.py + diff --git a/azure-servicefabric/azure/servicefabric/models/__init__.py b/azure-servicefabric/azure/servicefabric/models/__init__.py index dc2cb2fd10fb..7ad01455809b 100644 --- a/azure-servicefabric/azure/servicefabric/models/__init__.py +++ b/azure-servicefabric/azure/servicefabric/models/__init__.py @@ -10,6 +10,9 @@ # -------------------------------------------------------------------------- try: + from .fabric_error_error_py3 import FabricErrorError + from .fabric_error_py3 import FabricError, FabricErrorException + from .container_logs_py3 import ContainerLogs from .aad_metadata_py3 import AadMetadata from .aad_metadata_object_py3 import AadMetadataObject from .analysis_event_metadata_py3 import AnalysisEventMetadata @@ -77,6 +80,7 @@ from .cluster_health_chunk_query_description_py3 import ClusterHealthChunkQueryDescription from .cluster_health_policies_py3 import ClusterHealthPolicies from .cluster_manifest_py3 import ClusterManifest + from .cluster_version_py3 import ClusterVersion from .container_api_request_body_py3 import ContainerApiRequestBody from .container_api_result_py3 import ContainerApiResult from .container_api_response_py3 import ContainerApiResponse @@ -104,13 +108,10 @@ from .entity_health_state_chunk_py3 import EntityHealthStateChunk from .entity_health_state_chunk_list_py3 import EntityHealthStateChunkList from .epoch_py3 import Epoch - from .backup_epoch_py3 import BackupEpoch from .event_health_evaluation_py3 import EventHealthEvaluation from .fabric_event_py3 import FabricEvent from .fabric_code_version_info_py3 import FabricCodeVersionInfo from .fabric_config_version_info_py3 import FabricConfigVersionInfo - from .fabric_error_error_py3 import FabricErrorError - from .fabric_error_py3 import FabricError, FabricErrorException from .cluster_configuration_upgrade_status_info_py3 import ClusterConfigurationUpgradeStatusInfo from .health_information_py3 import HealthInformation from .int64_range_partition_information_py3 import Int64RangePartitionInformation @@ -318,8 +319,11 @@ from .failed_property_batch_info_py3 import FailedPropertyBatchInfo from .backup_schedule_description_py3 import BackupScheduleDescription from .backup_storage_description_py3 import BackupStorageDescription + from .retention_policy_description_py3 import RetentionPolicyDescription from .backup_policy_description_py3 import BackupPolicyDescription from .paged_backup_policy_description_list_py3 import PagedBackupPolicyDescriptionList + from .basic_retention_policy_description_py3 import BasicRetentionPolicyDescription + from .disable_backup_description_py3 import DisableBackupDescription from .application_backup_configuration_info_py3 import ApplicationBackupConfigurationInfo from .service_backup_configuration_info_py3 import ServiceBackupConfigurationInfo from .backup_suspension_info_py3 import BackupSuspensionInfo @@ -358,80 +362,97 @@ from .upload_chunk_range_py3 import UploadChunkRange from .upload_session_info_py3 import UploadSessionInfo from .upload_session_py3 import UploadSession - from .container_logs_py3 import ContainerLogs from .average_partition_load_scaling_trigger_py3 import AveragePartitionLoadScalingTrigger from .average_service_load_scaling_trigger_py3 import AverageServiceLoadScalingTrigger from .partition_instance_count_scale_mechanism_py3 import PartitionInstanceCountScaleMechanism from .add_remove_incremental_named_partition_scaling_mechanism_py3 import AddRemoveIncrementalNamedPartitionScalingMechanism from .application_created_event_py3 import ApplicationCreatedEvent from .application_deleted_event_py3 import ApplicationDeletedEvent - from .application_health_report_created_event_py3 import ApplicationHealthReportCreatedEvent + from .application_new_health_report_event_py3 import ApplicationNewHealthReportEvent from .application_health_report_expired_event_py3 import ApplicationHealthReportExpiredEvent - from .application_upgrade_complete_event_py3 import ApplicationUpgradeCompleteEvent - from .application_upgrade_domain_complete_event_py3 import ApplicationUpgradeDomainCompleteEvent - from .application_upgrade_rollback_complete_event_py3 import ApplicationUpgradeRollbackCompleteEvent - from .application_upgrade_rollback_start_event_py3 import ApplicationUpgradeRollbackStartEvent - from .application_upgrade_start_event_py3 import ApplicationUpgradeStartEvent - from .deployed_application_health_report_created_event_py3 import DeployedApplicationHealthReportCreatedEvent + from .application_upgrade_completed_event_py3 import ApplicationUpgradeCompletedEvent + from .application_upgrade_domain_completed_event_py3 import ApplicationUpgradeDomainCompletedEvent + from .application_upgrade_rollback_completed_event_py3 import ApplicationUpgradeRollbackCompletedEvent + from .application_upgrade_rollback_started_event_py3 import ApplicationUpgradeRollbackStartedEvent + from .application_upgrade_started_event_py3 import ApplicationUpgradeStartedEvent + from .deployed_application_new_health_report_event_py3 import DeployedApplicationNewHealthReportEvent from .deployed_application_health_report_expired_event_py3 import DeployedApplicationHealthReportExpiredEvent - from .process_deactivated_event_py3 import ProcessDeactivatedEvent - from .container_deactivated_event_py3 import ContainerDeactivatedEvent + from .application_process_exited_event_py3 import ApplicationProcessExitedEvent + from .application_container_instance_exited_event_py3 import ApplicationContainerInstanceExitedEvent from .node_aborted_event_py3 import NodeAbortedEvent - from .node_aborting_event_py3 import NodeAbortingEvent - from .node_added_event_py3 import NodeAddedEvent - from .node_close_event_py3 import NodeCloseEvent - from .node_closing_event_py3 import NodeClosingEvent - from .node_deactivate_complete_event_py3 import NodeDeactivateCompleteEvent - from .node_deactivate_start_event_py3 import NodeDeactivateStartEvent + from .node_added_to_cluster_event_py3 import NodeAddedToClusterEvent + from .node_closed_event_py3 import NodeClosedEvent + from .node_deactivate_completed_event_py3 import NodeDeactivateCompletedEvent + from .node_deactivate_started_event_py3 import NodeDeactivateStartedEvent from .node_down_event_py3 import NodeDownEvent - from .node_health_report_created_event_py3 import NodeHealthReportCreatedEvent + from .node_new_health_report_event_py3 import NodeNewHealthReportEvent from .node_health_report_expired_event_py3 import NodeHealthReportExpiredEvent - from .node_opened_success_event_py3 import NodeOpenedSuccessEvent + from .node_open_succeeded_event_py3 import NodeOpenSucceededEvent from .node_open_failed_event_py3 import NodeOpenFailedEvent - from .node_opening_event_py3 import NodeOpeningEvent - from .node_removed_event_py3 import NodeRemovedEvent + from .node_removed_from_cluster_event_py3 import NodeRemovedFromClusterEvent from .node_up_event_py3 import NodeUpEvent - from .partition_health_report_created_event_py3 import PartitionHealthReportCreatedEvent + from .partition_new_health_report_event_py3 import PartitionNewHealthReportEvent from .partition_health_report_expired_event_py3 import PartitionHealthReportExpiredEvent - from .partition_reconfiguration_completed_event_py3 import PartitionReconfigurationCompletedEvent + from .partition_reconfigured_event_py3 import PartitionReconfiguredEvent from .partition_primary_move_analysis_event_py3 import PartitionPrimaryMoveAnalysisEvent from .service_created_event_py3 import ServiceCreatedEvent from .service_deleted_event_py3 import ServiceDeletedEvent - from .service_health_report_created_event_py3 import ServiceHealthReportCreatedEvent + from .service_new_health_report_event_py3 import ServiceNewHealthReportEvent from .service_health_report_expired_event_py3 import ServiceHealthReportExpiredEvent - from .deployed_service_health_report_created_event_py3 import DeployedServiceHealthReportCreatedEvent - from .deployed_service_health_report_expired_event_py3 import DeployedServiceHealthReportExpiredEvent - from .stateful_replica_health_report_created_event_py3 import StatefulReplicaHealthReportCreatedEvent + from .deployed_service_package_new_health_report_event_py3 import DeployedServicePackageNewHealthReportEvent + from .deployed_service_package_health_report_expired_event_py3 import DeployedServicePackageHealthReportExpiredEvent + from .stateful_replica_new_health_report_event_py3 import StatefulReplicaNewHealthReportEvent from .stateful_replica_health_report_expired_event_py3 import StatefulReplicaHealthReportExpiredEvent - from .stateless_replica_health_report_created_event_py3 import StatelessReplicaHealthReportCreatedEvent + from .stateless_replica_new_health_report_event_py3 import StatelessReplicaNewHealthReportEvent from .stateless_replica_health_report_expired_event_py3 import StatelessReplicaHealthReportExpiredEvent - from .cluster_health_report_created_event_py3 import ClusterHealthReportCreatedEvent + from .cluster_new_health_report_event_py3 import ClusterNewHealthReportEvent from .cluster_health_report_expired_event_py3 import ClusterHealthReportExpiredEvent - from .cluster_upgrade_complete_event_py3 import ClusterUpgradeCompleteEvent - from .cluster_upgrade_domain_complete_event_py3 import ClusterUpgradeDomainCompleteEvent - from .cluster_upgrade_rollback_complete_event_py3 import ClusterUpgradeRollbackCompleteEvent - from .cluster_upgrade_rollback_start_event_py3 import ClusterUpgradeRollbackStartEvent - from .cluster_upgrade_start_event_py3 import ClusterUpgradeStartEvent + from .cluster_upgrade_completed_event_py3 import ClusterUpgradeCompletedEvent + from .cluster_upgrade_domain_completed_event_py3 import ClusterUpgradeDomainCompletedEvent + from .cluster_upgrade_rollback_completed_event_py3 import ClusterUpgradeRollbackCompletedEvent + from .cluster_upgrade_rollback_started_event_py3 import ClusterUpgradeRollbackStartedEvent + from .cluster_upgrade_started_event_py3 import ClusterUpgradeStartedEvent from .chaos_stopped_event_py3 import ChaosStoppedEvent from .chaos_started_event_py3 import ChaosStartedEvent - from .chaos_restart_node_fault_completed_event_py3 import ChaosRestartNodeFaultCompletedEvent - from .chaos_restart_code_package_fault_scheduled_event_py3 import ChaosRestartCodePackageFaultScheduledEvent - from .chaos_restart_code_package_fault_completed_event_py3 import ChaosRestartCodePackageFaultCompletedEvent - from .chaos_remove_replica_fault_scheduled_event_py3 import ChaosRemoveReplicaFaultScheduledEvent - from .chaos_remove_replica_fault_completed_event_py3 import ChaosRemoveReplicaFaultCompletedEvent - from .chaos_move_secondary_fault_scheduled_event_py3 import ChaosMoveSecondaryFaultScheduledEvent - from .chaos_move_primary_fault_scheduled_event_py3 import ChaosMovePrimaryFaultScheduledEvent - from .chaos_restart_replica_fault_scheduled_event_py3 import ChaosRestartReplicaFaultScheduledEvent - from .chaos_restart_node_fault_scheduled_event_py3 import ChaosRestartNodeFaultScheduledEvent - from .service_resource_description_py3 import ServiceResourceDescription - from .diagnostics_sink_properties_py3 import DiagnosticsSinkProperties - from .diagnostics_description_py3 import DiagnosticsDescription - from .application_resource_description_py3 import ApplicationResourceDescription - from .paged_service_resource_description_list_py3 import PagedServiceResourceDescriptionList - from .service_resource_replica_description_py3 import ServiceResourceReplicaDescription - from .paged_service_resource_replica_description_list_py3 import PagedServiceResourceReplicaDescriptionList + from .chaos_code_package_restart_scheduled_event_py3 import ChaosCodePackageRestartScheduledEvent + from .chaos_replica_removal_scheduled_event_py3 import ChaosReplicaRemovalScheduledEvent + from .chaos_partition_secondary_move_scheduled_event_py3 import ChaosPartitionSecondaryMoveScheduledEvent + from .chaos_partition_primary_move_scheduled_event_py3 import ChaosPartitionPrimaryMoveScheduledEvent + from .chaos_replica_restart_scheduled_event_py3 import ChaosReplicaRestartScheduledEvent + from .chaos_node_restart_scheduled_event_py3 import ChaosNodeRestartScheduledEvent + from .secret_resource_properties_py3 import SecretResourceProperties + from .inlined_value_secret_resource_properties_py3 import InlinedValueSecretResourceProperties + from .secret_resource_description_py3 import SecretResourceDescription + from .paged_secret_resource_description_list_py3 import PagedSecretResourceDescriptionList + from .secret_resource_properties_base_py3 import SecretResourcePropertiesBase + from .secret_value_py3 import SecretValue + from .secret_value_properties_py3 import SecretValueProperties + from .secret_value_resource_description_py3 import SecretValueResourceDescription + from .paged_secret_value_resource_description_list_py3 import PagedSecretValueResourceDescriptionList from .volume_provider_parameters_azure_file_py3 import VolumeProviderParametersAzureFile + from .volume_reference_py3 import VolumeReference + from .application_scoped_volume_creation_parameters_py3 import ApplicationScopedVolumeCreationParameters + from .application_scoped_volume_py3 import ApplicationScopedVolume + from .application_scoped_volume_creation_parameters_service_fabric_volume_disk_py3 import ApplicationScopedVolumeCreationParametersServiceFabricVolumeDisk from .volume_resource_description_py3 import VolumeResourceDescription + from .paged_volume_resource_description_list_py3 import PagedVolumeResourceDescriptionList + from .network_resource_properties_py3 import NetworkResourceProperties + from .local_network_resource_properties_py3 import LocalNetworkResourceProperties + from .endpoint_ref_py3 import EndpointRef + from .network_ref_py3 import NetworkRef + from .network_resource_description_py3 import NetworkResourceDescription + from .network_resource_properties_base_py3 import NetworkResourcePropertiesBase + from .paged_network_resource_description_list_py3 import PagedNetworkResourceDescriptionList + from .gateway_destination_py3 import GatewayDestination + from .tcp_config_py3 import TcpConfig + from .http_route_match_path_py3 import HttpRouteMatchPath + from .http_route_match_header_py3 import HttpRouteMatchHeader + from .http_route_match_rule_py3 import HttpRouteMatchRule + from .http_route_config_py3 import HttpRouteConfig + from .http_host_config_py3 import HttpHostConfig + from .http_config_py3 import HttpConfig + from .gateway_resource_description_py3 import GatewayResourceDescription + from .paged_gateway_resource_description_list_py3 import PagedGatewayResourceDescriptionList from .image_registry_credential_py3 import ImageRegistryCredential from .environment_variable_py3 import EnvironmentVariable from .setting_py3 import Setting @@ -440,15 +461,34 @@ from .resource_requests_py3 import ResourceRequests from .resource_limits_py3 import ResourceLimits from .resource_requirements_py3 import ResourceRequirements - from .container_volume_py3 import ContainerVolume + from .diagnostics_ref_py3 import DiagnosticsRef + from .reliable_collections_ref_py3 import ReliableCollectionsRef from .container_state_py3 import ContainerState from .container_event_py3 import ContainerEvent from .container_instance_view_py3 import ContainerInstanceView - from .diagnostics_ref_py3 import DiagnosticsRef from .container_code_package_properties_py3 import ContainerCodePackageProperties - from .network_ref_py3 import NetworkRef + from .auto_scaling_trigger_py3 import AutoScalingTrigger + from .auto_scaling_mechanism_py3 import AutoScalingMechanism + from .auto_scaling_policy_py3 import AutoScalingPolicy + from .service_resource_description_py3 import ServiceResourceDescription + from .diagnostics_sink_properties_py3 import DiagnosticsSinkProperties + from .diagnostics_description_py3 import DiagnosticsDescription + from .azure_internal_monitoring_pipeline_sink_description_py3 import AzureInternalMonitoringPipelineSinkDescription + from .add_remove_replica_scaling_mechanism_py3 import AddRemoveReplicaScalingMechanism + from .auto_scaling_metric_py3 import AutoScalingMetric + from .auto_scaling_resource_metric_py3 import AutoScalingResourceMetric + from .service_properties_py3 import ServiceProperties from .service_replica_properties_py3 import ServiceReplicaProperties + from .service_replica_description_py3 import ServiceReplicaDescription + from .average_load_scaling_trigger_py3 import AverageLoadScalingTrigger + from .paged_service_resource_description_list_py3 import PagedServiceResourceDescriptionList + from .paged_service_replica_description_list_py3 import PagedServiceReplicaDescriptionList + from .application_resource_description_py3 import ApplicationResourceDescription + from .paged_application_resource_description_list_py3 import PagedApplicationResourceDescriptionList except (SyntaxError, ImportError): + from .fabric_error_error import FabricErrorError + from .fabric_error import FabricError, FabricErrorException + from .container_logs import ContainerLogs from .aad_metadata import AadMetadata from .aad_metadata_object import AadMetadataObject from .analysis_event_metadata import AnalysisEventMetadata @@ -516,6 +556,7 @@ from .cluster_health_chunk_query_description import ClusterHealthChunkQueryDescription from .cluster_health_policies import ClusterHealthPolicies from .cluster_manifest import ClusterManifest + from .cluster_version import ClusterVersion from .container_api_request_body import ContainerApiRequestBody from .container_api_result import ContainerApiResult from .container_api_response import ContainerApiResponse @@ -543,13 +584,10 @@ from .entity_health_state_chunk import EntityHealthStateChunk from .entity_health_state_chunk_list import EntityHealthStateChunkList from .epoch import Epoch - from .backup_epoch import BackupEpoch from .event_health_evaluation import EventHealthEvaluation from .fabric_event import FabricEvent from .fabric_code_version_info import FabricCodeVersionInfo from .fabric_config_version_info import FabricConfigVersionInfo - from .fabric_error_error import FabricErrorError - from .fabric_error import FabricError, FabricErrorException from .cluster_configuration_upgrade_status_info import ClusterConfigurationUpgradeStatusInfo from .health_information import HealthInformation from .int64_range_partition_information import Int64RangePartitionInformation @@ -757,8 +795,11 @@ from .failed_property_batch_info import FailedPropertyBatchInfo from .backup_schedule_description import BackupScheduleDescription from .backup_storage_description import BackupStorageDescription + from .retention_policy_description import RetentionPolicyDescription from .backup_policy_description import BackupPolicyDescription from .paged_backup_policy_description_list import PagedBackupPolicyDescriptionList + from .basic_retention_policy_description import BasicRetentionPolicyDescription + from .disable_backup_description import DisableBackupDescription from .application_backup_configuration_info import ApplicationBackupConfigurationInfo from .service_backup_configuration_info import ServiceBackupConfigurationInfo from .backup_suspension_info import BackupSuspensionInfo @@ -797,80 +838,97 @@ from .upload_chunk_range import UploadChunkRange from .upload_session_info import UploadSessionInfo from .upload_session import UploadSession - from .container_logs import ContainerLogs from .average_partition_load_scaling_trigger import AveragePartitionLoadScalingTrigger from .average_service_load_scaling_trigger import AverageServiceLoadScalingTrigger from .partition_instance_count_scale_mechanism import PartitionInstanceCountScaleMechanism from .add_remove_incremental_named_partition_scaling_mechanism import AddRemoveIncrementalNamedPartitionScalingMechanism from .application_created_event import ApplicationCreatedEvent from .application_deleted_event import ApplicationDeletedEvent - from .application_health_report_created_event import ApplicationHealthReportCreatedEvent + from .application_new_health_report_event import ApplicationNewHealthReportEvent from .application_health_report_expired_event import ApplicationHealthReportExpiredEvent - from .application_upgrade_complete_event import ApplicationUpgradeCompleteEvent - from .application_upgrade_domain_complete_event import ApplicationUpgradeDomainCompleteEvent - from .application_upgrade_rollback_complete_event import ApplicationUpgradeRollbackCompleteEvent - from .application_upgrade_rollback_start_event import ApplicationUpgradeRollbackStartEvent - from .application_upgrade_start_event import ApplicationUpgradeStartEvent - from .deployed_application_health_report_created_event import DeployedApplicationHealthReportCreatedEvent + from .application_upgrade_completed_event import ApplicationUpgradeCompletedEvent + from .application_upgrade_domain_completed_event import ApplicationUpgradeDomainCompletedEvent + from .application_upgrade_rollback_completed_event import ApplicationUpgradeRollbackCompletedEvent + from .application_upgrade_rollback_started_event import ApplicationUpgradeRollbackStartedEvent + from .application_upgrade_started_event import ApplicationUpgradeStartedEvent + from .deployed_application_new_health_report_event import DeployedApplicationNewHealthReportEvent from .deployed_application_health_report_expired_event import DeployedApplicationHealthReportExpiredEvent - from .process_deactivated_event import ProcessDeactivatedEvent - from .container_deactivated_event import ContainerDeactivatedEvent + from .application_process_exited_event import ApplicationProcessExitedEvent + from .application_container_instance_exited_event import ApplicationContainerInstanceExitedEvent from .node_aborted_event import NodeAbortedEvent - from .node_aborting_event import NodeAbortingEvent - from .node_added_event import NodeAddedEvent - from .node_close_event import NodeCloseEvent - from .node_closing_event import NodeClosingEvent - from .node_deactivate_complete_event import NodeDeactivateCompleteEvent - from .node_deactivate_start_event import NodeDeactivateStartEvent + from .node_added_to_cluster_event import NodeAddedToClusterEvent + from .node_closed_event import NodeClosedEvent + from .node_deactivate_completed_event import NodeDeactivateCompletedEvent + from .node_deactivate_started_event import NodeDeactivateStartedEvent from .node_down_event import NodeDownEvent - from .node_health_report_created_event import NodeHealthReportCreatedEvent + from .node_new_health_report_event import NodeNewHealthReportEvent from .node_health_report_expired_event import NodeHealthReportExpiredEvent - from .node_opened_success_event import NodeOpenedSuccessEvent + from .node_open_succeeded_event import NodeOpenSucceededEvent from .node_open_failed_event import NodeOpenFailedEvent - from .node_opening_event import NodeOpeningEvent - from .node_removed_event import NodeRemovedEvent + from .node_removed_from_cluster_event import NodeRemovedFromClusterEvent from .node_up_event import NodeUpEvent - from .partition_health_report_created_event import PartitionHealthReportCreatedEvent + from .partition_new_health_report_event import PartitionNewHealthReportEvent from .partition_health_report_expired_event import PartitionHealthReportExpiredEvent - from .partition_reconfiguration_completed_event import PartitionReconfigurationCompletedEvent + from .partition_reconfigured_event import PartitionReconfiguredEvent from .partition_primary_move_analysis_event import PartitionPrimaryMoveAnalysisEvent from .service_created_event import ServiceCreatedEvent from .service_deleted_event import ServiceDeletedEvent - from .service_health_report_created_event import ServiceHealthReportCreatedEvent + from .service_new_health_report_event import ServiceNewHealthReportEvent from .service_health_report_expired_event import ServiceHealthReportExpiredEvent - from .deployed_service_health_report_created_event import DeployedServiceHealthReportCreatedEvent - from .deployed_service_health_report_expired_event import DeployedServiceHealthReportExpiredEvent - from .stateful_replica_health_report_created_event import StatefulReplicaHealthReportCreatedEvent + from .deployed_service_package_new_health_report_event import DeployedServicePackageNewHealthReportEvent + from .deployed_service_package_health_report_expired_event import DeployedServicePackageHealthReportExpiredEvent + from .stateful_replica_new_health_report_event import StatefulReplicaNewHealthReportEvent from .stateful_replica_health_report_expired_event import StatefulReplicaHealthReportExpiredEvent - from .stateless_replica_health_report_created_event import StatelessReplicaHealthReportCreatedEvent + from .stateless_replica_new_health_report_event import StatelessReplicaNewHealthReportEvent from .stateless_replica_health_report_expired_event import StatelessReplicaHealthReportExpiredEvent - from .cluster_health_report_created_event import ClusterHealthReportCreatedEvent + from .cluster_new_health_report_event import ClusterNewHealthReportEvent from .cluster_health_report_expired_event import ClusterHealthReportExpiredEvent - from .cluster_upgrade_complete_event import ClusterUpgradeCompleteEvent - from .cluster_upgrade_domain_complete_event import ClusterUpgradeDomainCompleteEvent - from .cluster_upgrade_rollback_complete_event import ClusterUpgradeRollbackCompleteEvent - from .cluster_upgrade_rollback_start_event import ClusterUpgradeRollbackStartEvent - from .cluster_upgrade_start_event import ClusterUpgradeStartEvent + from .cluster_upgrade_completed_event import ClusterUpgradeCompletedEvent + from .cluster_upgrade_domain_completed_event import ClusterUpgradeDomainCompletedEvent + from .cluster_upgrade_rollback_completed_event import ClusterUpgradeRollbackCompletedEvent + from .cluster_upgrade_rollback_started_event import ClusterUpgradeRollbackStartedEvent + from .cluster_upgrade_started_event import ClusterUpgradeStartedEvent from .chaos_stopped_event import ChaosStoppedEvent from .chaos_started_event import ChaosStartedEvent - from .chaos_restart_node_fault_completed_event import ChaosRestartNodeFaultCompletedEvent - from .chaos_restart_code_package_fault_scheduled_event import ChaosRestartCodePackageFaultScheduledEvent - from .chaos_restart_code_package_fault_completed_event import ChaosRestartCodePackageFaultCompletedEvent - from .chaos_remove_replica_fault_scheduled_event import ChaosRemoveReplicaFaultScheduledEvent - from .chaos_remove_replica_fault_completed_event import ChaosRemoveReplicaFaultCompletedEvent - from .chaos_move_secondary_fault_scheduled_event import ChaosMoveSecondaryFaultScheduledEvent - from .chaos_move_primary_fault_scheduled_event import ChaosMovePrimaryFaultScheduledEvent - from .chaos_restart_replica_fault_scheduled_event import ChaosRestartReplicaFaultScheduledEvent - from .chaos_restart_node_fault_scheduled_event import ChaosRestartNodeFaultScheduledEvent - from .service_resource_description import ServiceResourceDescription - from .diagnostics_sink_properties import DiagnosticsSinkProperties - from .diagnostics_description import DiagnosticsDescription - from .application_resource_description import ApplicationResourceDescription - from .paged_service_resource_description_list import PagedServiceResourceDescriptionList - from .service_resource_replica_description import ServiceResourceReplicaDescription - from .paged_service_resource_replica_description_list import PagedServiceResourceReplicaDescriptionList + from .chaos_code_package_restart_scheduled_event import ChaosCodePackageRestartScheduledEvent + from .chaos_replica_removal_scheduled_event import ChaosReplicaRemovalScheduledEvent + from .chaos_partition_secondary_move_scheduled_event import ChaosPartitionSecondaryMoveScheduledEvent + from .chaos_partition_primary_move_scheduled_event import ChaosPartitionPrimaryMoveScheduledEvent + from .chaos_replica_restart_scheduled_event import ChaosReplicaRestartScheduledEvent + from .chaos_node_restart_scheduled_event import ChaosNodeRestartScheduledEvent + from .secret_resource_properties import SecretResourceProperties + from .inlined_value_secret_resource_properties import InlinedValueSecretResourceProperties + from .secret_resource_description import SecretResourceDescription + from .paged_secret_resource_description_list import PagedSecretResourceDescriptionList + from .secret_resource_properties_base import SecretResourcePropertiesBase + from .secret_value import SecretValue + from .secret_value_properties import SecretValueProperties + from .secret_value_resource_description import SecretValueResourceDescription + from .paged_secret_value_resource_description_list import PagedSecretValueResourceDescriptionList from .volume_provider_parameters_azure_file import VolumeProviderParametersAzureFile + from .volume_reference import VolumeReference + from .application_scoped_volume_creation_parameters import ApplicationScopedVolumeCreationParameters + from .application_scoped_volume import ApplicationScopedVolume + from .application_scoped_volume_creation_parameters_service_fabric_volume_disk import ApplicationScopedVolumeCreationParametersServiceFabricVolumeDisk from .volume_resource_description import VolumeResourceDescription + from .paged_volume_resource_description_list import PagedVolumeResourceDescriptionList + from .network_resource_properties import NetworkResourceProperties + from .local_network_resource_properties import LocalNetworkResourceProperties + from .endpoint_ref import EndpointRef + from .network_ref import NetworkRef + from .network_resource_description import NetworkResourceDescription + from .network_resource_properties_base import NetworkResourcePropertiesBase + from .paged_network_resource_description_list import PagedNetworkResourceDescriptionList + from .gateway_destination import GatewayDestination + from .tcp_config import TcpConfig + from .http_route_match_path import HttpRouteMatchPath + from .http_route_match_header import HttpRouteMatchHeader + from .http_route_match_rule import HttpRouteMatchRule + from .http_route_config import HttpRouteConfig + from .http_host_config import HttpHostConfig + from .http_config import HttpConfig + from .gateway_resource_description import GatewayResourceDescription + from .paged_gateway_resource_description_list import PagedGatewayResourceDescriptionList from .image_registry_credential import ImageRegistryCredential from .environment_variable import EnvironmentVariable from .setting import Setting @@ -879,17 +937,34 @@ from .resource_requests import ResourceRequests from .resource_limits import ResourceLimits from .resource_requirements import ResourceRequirements - from .container_volume import ContainerVolume + from .diagnostics_ref import DiagnosticsRef + from .reliable_collections_ref import ReliableCollectionsRef from .container_state import ContainerState from .container_event import ContainerEvent from .container_instance_view import ContainerInstanceView - from .diagnostics_ref import DiagnosticsRef from .container_code_package_properties import ContainerCodePackageProperties - from .network_ref import NetworkRef + from .auto_scaling_trigger import AutoScalingTrigger + from .auto_scaling_mechanism import AutoScalingMechanism + from .auto_scaling_policy import AutoScalingPolicy + from .service_resource_description import ServiceResourceDescription + from .diagnostics_sink_properties import DiagnosticsSinkProperties + from .diagnostics_description import DiagnosticsDescription + from .azure_internal_monitoring_pipeline_sink_description import AzureInternalMonitoringPipelineSinkDescription + from .add_remove_replica_scaling_mechanism import AddRemoveReplicaScalingMechanism + from .auto_scaling_metric import AutoScalingMetric + from .auto_scaling_resource_metric import AutoScalingResourceMetric + from .service_properties import ServiceProperties from .service_replica_properties import ServiceReplicaProperties + from .service_replica_description import ServiceReplicaDescription + from .average_load_scaling_trigger import AverageLoadScalingTrigger + from .paged_service_resource_description_list import PagedServiceResourceDescriptionList + from .paged_service_replica_description_list import PagedServiceReplicaDescriptionList + from .application_resource_description import ApplicationResourceDescription + from .paged_application_resource_description_list import PagedApplicationResourceDescriptionList from .service_fabric_client_ap_is_enums import ( - ApplicationDefinitionKind, HealthState, + FabricErrorCodes, + ApplicationDefinitionKind, ApplicationStatus, ApplicationPackageCleanupPolicy, ApplicationTypeDefinitionKind, @@ -908,7 +983,6 @@ ReconfigurationPhase, ReconfigurationType, EntityKind, - FabricErrorCodes, FabricEventKind, HealthEvaluationKind, NodeDeactivationIntent, @@ -951,6 +1025,7 @@ PropertyValueKind, PropertyBatchOperationKind, PropertyBatchInfoKind, + RetentionPolicyType, BackupStorageKind, BackupScheduleKind, BackupPolicyScope, @@ -969,10 +1044,19 @@ RepairTaskHealthCheckState, ScalingTriggerKind, ScalingMechanismKind, - ServiceResourceStatus, - ApplicationResourceStatus, + ResourceStatus, + SecretKind, + VolumeProvider, + SizeTypes, + ApplicationScopedVolumeKind, + NetworkKind, + HeaderMatchType, + OperatingSystemType, DiagnosticsSinkKind, - OperatingSystemTypes, + AutoScalingMechanismKind, + AutoScalingMetricKind, + AutoScalingResourceMetricName, + AutoScalingTriggerKind, NodeStatusFilter, ReplicaHealthReportServiceKind, DataLossMode, @@ -982,6 +1066,9 @@ ) __all__ = [ + 'FabricErrorError', + 'FabricError', 'FabricErrorException', + 'ContainerLogs', 'AadMetadata', 'AadMetadataObject', 'AnalysisEventMetadata', @@ -1049,6 +1136,7 @@ 'ClusterHealthChunkQueryDescription', 'ClusterHealthPolicies', 'ClusterManifest', + 'ClusterVersion', 'ContainerApiRequestBody', 'ContainerApiResult', 'ContainerApiResponse', @@ -1076,13 +1164,10 @@ 'EntityHealthStateChunk', 'EntityHealthStateChunkList', 'Epoch', - 'BackupEpoch', 'EventHealthEvaluation', 'FabricEvent', 'FabricCodeVersionInfo', 'FabricConfigVersionInfo', - 'FabricErrorError', - 'FabricError', 'FabricErrorException', 'ClusterConfigurationUpgradeStatusInfo', 'HealthInformation', 'Int64RangePartitionInformation', @@ -1290,8 +1375,11 @@ 'FailedPropertyBatchInfo', 'BackupScheduleDescription', 'BackupStorageDescription', + 'RetentionPolicyDescription', 'BackupPolicyDescription', 'PagedBackupPolicyDescriptionList', + 'BasicRetentionPolicyDescription', + 'DisableBackupDescription', 'ApplicationBackupConfigurationInfo', 'ServiceBackupConfigurationInfo', 'BackupSuspensionInfo', @@ -1330,80 +1418,97 @@ 'UploadChunkRange', 'UploadSessionInfo', 'UploadSession', - 'ContainerLogs', 'AveragePartitionLoadScalingTrigger', 'AverageServiceLoadScalingTrigger', 'PartitionInstanceCountScaleMechanism', 'AddRemoveIncrementalNamedPartitionScalingMechanism', 'ApplicationCreatedEvent', 'ApplicationDeletedEvent', - 'ApplicationHealthReportCreatedEvent', + 'ApplicationNewHealthReportEvent', 'ApplicationHealthReportExpiredEvent', - 'ApplicationUpgradeCompleteEvent', - 'ApplicationUpgradeDomainCompleteEvent', - 'ApplicationUpgradeRollbackCompleteEvent', - 'ApplicationUpgradeRollbackStartEvent', - 'ApplicationUpgradeStartEvent', - 'DeployedApplicationHealthReportCreatedEvent', + 'ApplicationUpgradeCompletedEvent', + 'ApplicationUpgradeDomainCompletedEvent', + 'ApplicationUpgradeRollbackCompletedEvent', + 'ApplicationUpgradeRollbackStartedEvent', + 'ApplicationUpgradeStartedEvent', + 'DeployedApplicationNewHealthReportEvent', 'DeployedApplicationHealthReportExpiredEvent', - 'ProcessDeactivatedEvent', - 'ContainerDeactivatedEvent', + 'ApplicationProcessExitedEvent', + 'ApplicationContainerInstanceExitedEvent', 'NodeAbortedEvent', - 'NodeAbortingEvent', - 'NodeAddedEvent', - 'NodeCloseEvent', - 'NodeClosingEvent', - 'NodeDeactivateCompleteEvent', - 'NodeDeactivateStartEvent', + 'NodeAddedToClusterEvent', + 'NodeClosedEvent', + 'NodeDeactivateCompletedEvent', + 'NodeDeactivateStartedEvent', 'NodeDownEvent', - 'NodeHealthReportCreatedEvent', + 'NodeNewHealthReportEvent', 'NodeHealthReportExpiredEvent', - 'NodeOpenedSuccessEvent', + 'NodeOpenSucceededEvent', 'NodeOpenFailedEvent', - 'NodeOpeningEvent', - 'NodeRemovedEvent', + 'NodeRemovedFromClusterEvent', 'NodeUpEvent', - 'PartitionHealthReportCreatedEvent', + 'PartitionNewHealthReportEvent', 'PartitionHealthReportExpiredEvent', - 'PartitionReconfigurationCompletedEvent', + 'PartitionReconfiguredEvent', 'PartitionPrimaryMoveAnalysisEvent', 'ServiceCreatedEvent', 'ServiceDeletedEvent', - 'ServiceHealthReportCreatedEvent', + 'ServiceNewHealthReportEvent', 'ServiceHealthReportExpiredEvent', - 'DeployedServiceHealthReportCreatedEvent', - 'DeployedServiceHealthReportExpiredEvent', - 'StatefulReplicaHealthReportCreatedEvent', + 'DeployedServicePackageNewHealthReportEvent', + 'DeployedServicePackageHealthReportExpiredEvent', + 'StatefulReplicaNewHealthReportEvent', 'StatefulReplicaHealthReportExpiredEvent', - 'StatelessReplicaHealthReportCreatedEvent', + 'StatelessReplicaNewHealthReportEvent', 'StatelessReplicaHealthReportExpiredEvent', - 'ClusterHealthReportCreatedEvent', + 'ClusterNewHealthReportEvent', 'ClusterHealthReportExpiredEvent', - 'ClusterUpgradeCompleteEvent', - 'ClusterUpgradeDomainCompleteEvent', - 'ClusterUpgradeRollbackCompleteEvent', - 'ClusterUpgradeRollbackStartEvent', - 'ClusterUpgradeStartEvent', + 'ClusterUpgradeCompletedEvent', + 'ClusterUpgradeDomainCompletedEvent', + 'ClusterUpgradeRollbackCompletedEvent', + 'ClusterUpgradeRollbackStartedEvent', + 'ClusterUpgradeStartedEvent', 'ChaosStoppedEvent', 'ChaosStartedEvent', - 'ChaosRestartNodeFaultCompletedEvent', - 'ChaosRestartCodePackageFaultScheduledEvent', - 'ChaosRestartCodePackageFaultCompletedEvent', - 'ChaosRemoveReplicaFaultScheduledEvent', - 'ChaosRemoveReplicaFaultCompletedEvent', - 'ChaosMoveSecondaryFaultScheduledEvent', - 'ChaosMovePrimaryFaultScheduledEvent', - 'ChaosRestartReplicaFaultScheduledEvent', - 'ChaosRestartNodeFaultScheduledEvent', - 'ServiceResourceDescription', - 'DiagnosticsSinkProperties', - 'DiagnosticsDescription', - 'ApplicationResourceDescription', - 'PagedServiceResourceDescriptionList', - 'ServiceResourceReplicaDescription', - 'PagedServiceResourceReplicaDescriptionList', + 'ChaosCodePackageRestartScheduledEvent', + 'ChaosReplicaRemovalScheduledEvent', + 'ChaosPartitionSecondaryMoveScheduledEvent', + 'ChaosPartitionPrimaryMoveScheduledEvent', + 'ChaosReplicaRestartScheduledEvent', + 'ChaosNodeRestartScheduledEvent', + 'SecretResourceProperties', + 'InlinedValueSecretResourceProperties', + 'SecretResourceDescription', + 'PagedSecretResourceDescriptionList', + 'SecretResourcePropertiesBase', + 'SecretValue', + 'SecretValueProperties', + 'SecretValueResourceDescription', + 'PagedSecretValueResourceDescriptionList', 'VolumeProviderParametersAzureFile', + 'VolumeReference', + 'ApplicationScopedVolumeCreationParameters', + 'ApplicationScopedVolume', + 'ApplicationScopedVolumeCreationParametersServiceFabricVolumeDisk', 'VolumeResourceDescription', + 'PagedVolumeResourceDescriptionList', + 'NetworkResourceProperties', + 'LocalNetworkResourceProperties', + 'EndpointRef', + 'NetworkRef', + 'NetworkResourceDescription', + 'NetworkResourcePropertiesBase', + 'PagedNetworkResourceDescriptionList', + 'GatewayDestination', + 'TcpConfig', + 'HttpRouteMatchPath', + 'HttpRouteMatchHeader', + 'HttpRouteMatchRule', + 'HttpRouteConfig', + 'HttpHostConfig', + 'HttpConfig', + 'GatewayResourceDescription', + 'PagedGatewayResourceDescriptionList', 'ImageRegistryCredential', 'EnvironmentVariable', 'Setting', @@ -1412,16 +1517,33 @@ 'ResourceRequests', 'ResourceLimits', 'ResourceRequirements', - 'ContainerVolume', + 'DiagnosticsRef', + 'ReliableCollectionsRef', 'ContainerState', 'ContainerEvent', 'ContainerInstanceView', - 'DiagnosticsRef', 'ContainerCodePackageProperties', - 'NetworkRef', + 'AutoScalingTrigger', + 'AutoScalingMechanism', + 'AutoScalingPolicy', + 'ServiceResourceDescription', + 'DiagnosticsSinkProperties', + 'DiagnosticsDescription', + 'AzureInternalMonitoringPipelineSinkDescription', + 'AddRemoveReplicaScalingMechanism', + 'AutoScalingMetric', + 'AutoScalingResourceMetric', + 'ServiceProperties', 'ServiceReplicaProperties', - 'ApplicationDefinitionKind', + 'ServiceReplicaDescription', + 'AverageLoadScalingTrigger', + 'PagedServiceResourceDescriptionList', + 'PagedServiceReplicaDescriptionList', + 'ApplicationResourceDescription', + 'PagedApplicationResourceDescriptionList', 'HealthState', + 'FabricErrorCodes', + 'ApplicationDefinitionKind', 'ApplicationStatus', 'ApplicationPackageCleanupPolicy', 'ApplicationTypeDefinitionKind', @@ -1440,7 +1562,6 @@ 'ReconfigurationPhase', 'ReconfigurationType', 'EntityKind', - 'FabricErrorCodes', 'FabricEventKind', 'HealthEvaluationKind', 'NodeDeactivationIntent', @@ -1483,6 +1604,7 @@ 'PropertyValueKind', 'PropertyBatchOperationKind', 'PropertyBatchInfoKind', + 'RetentionPolicyType', 'BackupStorageKind', 'BackupScheduleKind', 'BackupPolicyScope', @@ -1501,10 +1623,19 @@ 'RepairTaskHealthCheckState', 'ScalingTriggerKind', 'ScalingMechanismKind', - 'ServiceResourceStatus', - 'ApplicationResourceStatus', + 'ResourceStatus', + 'SecretKind', + 'VolumeProvider', + 'SizeTypes', + 'ApplicationScopedVolumeKind', + 'NetworkKind', + 'HeaderMatchType', + 'OperatingSystemType', 'DiagnosticsSinkKind', - 'OperatingSystemTypes', + 'AutoScalingMechanismKind', + 'AutoScalingMetricKind', + 'AutoScalingResourceMetricName', + 'AutoScalingTriggerKind', 'NodeStatusFilter', 'ReplicaHealthReportServiceKind', 'DataLossMode', diff --git a/azure-servicefabric/azure/servicefabric/models/add_remove_replica_scaling_mechanism.py b/azure-servicefabric/azure/servicefabric/models/add_remove_replica_scaling_mechanism.py new file mode 100644 index 000000000000..6332ff38fa34 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/add_remove_replica_scaling_mechanism.py @@ -0,0 +1,53 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .auto_scaling_mechanism import AutoScalingMechanism + + +class AddRemoveReplicaScalingMechanism(AutoScalingMechanism): + """Describes the horizontal auto scaling mechanism that adds or removes + replicas (containers or container groups). + + All required parameters must be populated in order to send to Azure. + + :param kind: Required. Constant filled by server. + :type kind: str + :param min_count: Required. Minimum number of containers (scale down won't + be performed below this number). + :type min_count: int + :param max_count: Required. Maximum number of containers (scale up won't + be performed above this number). + :type max_count: int + :param scale_increment: Required. Each time auto scaling is performed, + this number of containers will be added or removed. + :type scale_increment: int + """ + + _validation = { + 'kind': {'required': True}, + 'min_count': {'required': True}, + 'max_count': {'required': True}, + 'scale_increment': {'required': True}, + } + + _attribute_map = { + 'kind': {'key': 'kind', 'type': 'str'}, + 'min_count': {'key': 'minCount', 'type': 'int'}, + 'max_count': {'key': 'maxCount', 'type': 'int'}, + 'scale_increment': {'key': 'scaleIncrement', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(AddRemoveReplicaScalingMechanism, self).__init__(**kwargs) + self.min_count = kwargs.get('min_count', None) + self.max_count = kwargs.get('max_count', None) + self.scale_increment = kwargs.get('scale_increment', None) + self.kind = 'AddRemoveReplica' diff --git a/azure-servicefabric/azure/servicefabric/models/add_remove_replica_scaling_mechanism_py3.py b/azure-servicefabric/azure/servicefabric/models/add_remove_replica_scaling_mechanism_py3.py new file mode 100644 index 000000000000..ce862f88deb9 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/add_remove_replica_scaling_mechanism_py3.py @@ -0,0 +1,53 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .auto_scaling_mechanism_py3 import AutoScalingMechanism + + +class AddRemoveReplicaScalingMechanism(AutoScalingMechanism): + """Describes the horizontal auto scaling mechanism that adds or removes + replicas (containers or container groups). + + All required parameters must be populated in order to send to Azure. + + :param kind: Required. Constant filled by server. + :type kind: str + :param min_count: Required. Minimum number of containers (scale down won't + be performed below this number). + :type min_count: int + :param max_count: Required. Maximum number of containers (scale up won't + be performed above this number). + :type max_count: int + :param scale_increment: Required. Each time auto scaling is performed, + this number of containers will be added or removed. + :type scale_increment: int + """ + + _validation = { + 'kind': {'required': True}, + 'min_count': {'required': True}, + 'max_count': {'required': True}, + 'scale_increment': {'required': True}, + } + + _attribute_map = { + 'kind': {'key': 'kind', 'type': 'str'}, + 'min_count': {'key': 'minCount', 'type': 'int'}, + 'max_count': {'key': 'maxCount', 'type': 'int'}, + 'scale_increment': {'key': 'scaleIncrement', 'type': 'int'}, + } + + def __init__(self, *, min_count: int, max_count: int, scale_increment: int, **kwargs) -> None: + super(AddRemoveReplicaScalingMechanism, self).__init__(**kwargs) + self.min_count = min_count + self.max_count = max_count + self.scale_increment = scale_increment + self.kind = 'AddRemoveReplica' diff --git a/azure-servicefabric/azure/servicefabric/models/container_deactivated_event.py b/azure-servicefabric/azure/servicefabric/models/application_container_instance_exited_event.py similarity index 93% rename from azure-servicefabric/azure/servicefabric/models/container_deactivated_event.py rename to azure-servicefabric/azure/servicefabric/models/application_container_instance_exited_event.py index 4eb13b32cd63..8556c736888b 100644 --- a/azure-servicefabric/azure/servicefabric/models/container_deactivated_event.py +++ b/azure-servicefabric/azure/servicefabric/models/application_container_instance_exited_event.py @@ -12,14 +12,16 @@ from .application_event import ApplicationEvent -class ContainerDeactivatedEvent(ApplicationEvent): - """Container Deactivated event. +class ApplicationContainerInstanceExitedEvent(ApplicationEvent): + """Container Exited event. All required parameters must be populated in order to send to Azure. :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -84,6 +86,7 @@ class ContainerDeactivatedEvent(ApplicationEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -103,7 +106,7 @@ class ContainerDeactivatedEvent(ApplicationEvent): } def __init__(self, **kwargs): - super(ContainerDeactivatedEvent, self).__init__(**kwargs) + super(ApplicationContainerInstanceExitedEvent, self).__init__(**kwargs) self.service_name = kwargs.get('service_name', None) self.service_package_name = kwargs.get('service_package_name', None) self.service_package_activation_id = kwargs.get('service_package_activation_id', None) @@ -116,4 +119,4 @@ def __init__(self, **kwargs): self.exit_code = kwargs.get('exit_code', None) self.unexpected_termination = kwargs.get('unexpected_termination', None) self.start_time = kwargs.get('start_time', None) - self.kind = 'ContainerDeactivated' + self.kind = 'ApplicationContainerInstanceExited' diff --git a/azure-servicefabric/azure/servicefabric/models/container_deactivated_event_py3.py b/azure-servicefabric/azure/servicefabric/models/application_container_instance_exited_event_py3.py similarity index 90% rename from azure-servicefabric/azure/servicefabric/models/container_deactivated_event_py3.py rename to azure-servicefabric/azure/servicefabric/models/application_container_instance_exited_event_py3.py index 3c352b57c7f3..0f0451ca2485 100644 --- a/azure-servicefabric/azure/servicefabric/models/container_deactivated_event_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/application_container_instance_exited_event_py3.py @@ -12,14 +12,16 @@ from .application_event_py3 import ApplicationEvent -class ContainerDeactivatedEvent(ApplicationEvent): - """Container Deactivated event. +class ApplicationContainerInstanceExitedEvent(ApplicationEvent): + """Container Exited event. All required parameters must be populated in order to send to Azure. :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -84,6 +86,7 @@ class ContainerDeactivatedEvent(ApplicationEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -102,8 +105,8 @@ class ContainerDeactivatedEvent(ApplicationEvent): 'start_time': {'key': 'StartTime', 'type': 'iso-8601'}, } - def __init__(self, *, event_instance_id: str, time_stamp, application_id: str, service_name: str, service_package_name: str, service_package_activation_id: str, is_exclusive: bool, code_package_name: str, entry_point_type: str, image_name: str, container_name: str, host_id: str, exit_code: int, unexpected_termination: bool, start_time, has_correlated_events: bool=None, **kwargs) -> None: - super(ContainerDeactivatedEvent, self).__init__(event_instance_id=event_instance_id, time_stamp=time_stamp, has_correlated_events=has_correlated_events, application_id=application_id, **kwargs) + def __init__(self, *, event_instance_id: str, time_stamp, application_id: str, service_name: str, service_package_name: str, service_package_activation_id: str, is_exclusive: bool, code_package_name: str, entry_point_type: str, image_name: str, container_name: str, host_id: str, exit_code: int, unexpected_termination: bool, start_time, category: str=None, has_correlated_events: bool=None, **kwargs) -> None: + super(ApplicationContainerInstanceExitedEvent, self).__init__(event_instance_id=event_instance_id, category=category, time_stamp=time_stamp, has_correlated_events=has_correlated_events, application_id=application_id, **kwargs) self.service_name = service_name self.service_package_name = service_package_name self.service_package_activation_id = service_package_activation_id @@ -116,4 +119,4 @@ def __init__(self, *, event_instance_id: str, time_stamp, application_id: str, s self.exit_code = exit_code self.unexpected_termination = unexpected_termination self.start_time = start_time - self.kind = 'ContainerDeactivated' + self.kind = 'ApplicationContainerInstanceExited' diff --git a/azure-servicefabric/azure/servicefabric/models/application_created_event.py b/azure-servicefabric/azure/servicefabric/models/application_created_event.py index 6ef425b974f6..bd190e771776 100644 --- a/azure-servicefabric/azure/servicefabric/models/application_created_event.py +++ b/azure-servicefabric/azure/servicefabric/models/application_created_event.py @@ -20,6 +20,8 @@ class ApplicationCreatedEvent(ApplicationEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -55,6 +57,7 @@ class ApplicationCreatedEvent(ApplicationEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, diff --git a/azure-servicefabric/azure/servicefabric/models/application_created_event_py3.py b/azure-servicefabric/azure/servicefabric/models/application_created_event_py3.py index e9d7a11459a9..849b60bac24e 100644 --- a/azure-servicefabric/azure/servicefabric/models/application_created_event_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/application_created_event_py3.py @@ -20,6 +20,8 @@ class ApplicationCreatedEvent(ApplicationEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -55,6 +57,7 @@ class ApplicationCreatedEvent(ApplicationEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -64,8 +67,8 @@ class ApplicationCreatedEvent(ApplicationEvent): 'application_definition_kind': {'key': 'ApplicationDefinitionKind', 'type': 'str'}, } - def __init__(self, *, event_instance_id: str, time_stamp, application_id: str, application_type_name: str, application_type_version: str, application_definition_kind: str, has_correlated_events: bool=None, **kwargs) -> None: - super(ApplicationCreatedEvent, self).__init__(event_instance_id=event_instance_id, time_stamp=time_stamp, has_correlated_events=has_correlated_events, application_id=application_id, **kwargs) + def __init__(self, *, event_instance_id: str, time_stamp, application_id: str, application_type_name: str, application_type_version: str, application_definition_kind: str, category: str=None, has_correlated_events: bool=None, **kwargs) -> None: + super(ApplicationCreatedEvent, self).__init__(event_instance_id=event_instance_id, category=category, time_stamp=time_stamp, has_correlated_events=has_correlated_events, application_id=application_id, **kwargs) self.application_type_name = application_type_name self.application_type_version = application_type_version self.application_definition_kind = application_definition_kind diff --git a/azure-servicefabric/azure/servicefabric/models/application_deleted_event.py b/azure-servicefabric/azure/servicefabric/models/application_deleted_event.py index ea39af05955a..440bd67aa311 100644 --- a/azure-servicefabric/azure/servicefabric/models/application_deleted_event.py +++ b/azure-servicefabric/azure/servicefabric/models/application_deleted_event.py @@ -20,6 +20,8 @@ class ApplicationDeletedEvent(ApplicationEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -52,6 +54,7 @@ class ApplicationDeletedEvent(ApplicationEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, diff --git a/azure-servicefabric/azure/servicefabric/models/application_deleted_event_py3.py b/azure-servicefabric/azure/servicefabric/models/application_deleted_event_py3.py index 8b53a2fdc0a0..b6aba0733ef3 100644 --- a/azure-servicefabric/azure/servicefabric/models/application_deleted_event_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/application_deleted_event_py3.py @@ -20,6 +20,8 @@ class ApplicationDeletedEvent(ApplicationEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -52,6 +54,7 @@ class ApplicationDeletedEvent(ApplicationEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -60,8 +63,8 @@ class ApplicationDeletedEvent(ApplicationEvent): 'application_type_version': {'key': 'ApplicationTypeVersion', 'type': 'str'}, } - def __init__(self, *, event_instance_id: str, time_stamp, application_id: str, application_type_name: str, application_type_version: str, has_correlated_events: bool=None, **kwargs) -> None: - super(ApplicationDeletedEvent, self).__init__(event_instance_id=event_instance_id, time_stamp=time_stamp, has_correlated_events=has_correlated_events, application_id=application_id, **kwargs) + def __init__(self, *, event_instance_id: str, time_stamp, application_id: str, application_type_name: str, application_type_version: str, category: str=None, has_correlated_events: bool=None, **kwargs) -> None: + super(ApplicationDeletedEvent, self).__init__(event_instance_id=event_instance_id, category=category, time_stamp=time_stamp, has_correlated_events=has_correlated_events, application_id=application_id, **kwargs) self.application_type_name = application_type_name self.application_type_version = application_type_version self.kind = 'ApplicationDeleted' diff --git a/azure-servicefabric/azure/servicefabric/models/application_event.py b/azure-servicefabric/azure/servicefabric/models/application_event.py index 512b5552c189..d85913a077a7 100644 --- a/azure-servicefabric/azure/servicefabric/models/application_event.py +++ b/azure-servicefabric/azure/servicefabric/models/application_event.py @@ -17,22 +17,24 @@ class ApplicationEvent(FabricEvent): You probably want to use the sub-classes and not this class directly. Known sub-classes are: ApplicationCreatedEvent, ApplicationDeletedEvent, - ApplicationHealthReportCreatedEvent, ApplicationHealthReportExpiredEvent, - ApplicationUpgradeCompleteEvent, ApplicationUpgradeDomainCompleteEvent, - ApplicationUpgradeRollbackCompleteEvent, - ApplicationUpgradeRollbackStartEvent, ApplicationUpgradeStartEvent, - DeployedApplicationHealthReportCreatedEvent, - DeployedApplicationHealthReportExpiredEvent, ProcessDeactivatedEvent, - ContainerDeactivatedEvent, DeployedServiceHealthReportCreatedEvent, - DeployedServiceHealthReportExpiredEvent, - ChaosRestartCodePackageFaultScheduledEvent, - ChaosRestartCodePackageFaultCompletedEvent + ApplicationNewHealthReportEvent, ApplicationHealthReportExpiredEvent, + ApplicationUpgradeCompletedEvent, ApplicationUpgradeDomainCompletedEvent, + ApplicationUpgradeRollbackCompletedEvent, + ApplicationUpgradeRollbackStartedEvent, ApplicationUpgradeStartedEvent, + DeployedApplicationNewHealthReportEvent, + DeployedApplicationHealthReportExpiredEvent, ApplicationProcessExitedEvent, + ApplicationContainerInstanceExitedEvent, + DeployedServicePackageNewHealthReportEvent, + DeployedServicePackageHealthReportExpiredEvent, + ChaosCodePackageRestartScheduledEvent All required parameters must be populated in order to send to Azure. :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -59,6 +61,7 @@ class ApplicationEvent(FabricEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -66,7 +69,7 @@ class ApplicationEvent(FabricEvent): } _subtype_map = { - 'kind': {'ApplicationCreated': 'ApplicationCreatedEvent', 'ApplicationDeleted': 'ApplicationDeletedEvent', 'ApplicationHealthReportCreated': 'ApplicationHealthReportCreatedEvent', 'ApplicationHealthReportExpired': 'ApplicationHealthReportExpiredEvent', 'ApplicationUpgradeComplete': 'ApplicationUpgradeCompleteEvent', 'ApplicationUpgradeDomainComplete': 'ApplicationUpgradeDomainCompleteEvent', 'ApplicationUpgradeRollbackComplete': 'ApplicationUpgradeRollbackCompleteEvent', 'ApplicationUpgradeRollbackStart': 'ApplicationUpgradeRollbackStartEvent', 'ApplicationUpgradeStart': 'ApplicationUpgradeStartEvent', 'DeployedApplicationHealthReportCreated': 'DeployedApplicationHealthReportCreatedEvent', 'DeployedApplicationHealthReportExpired': 'DeployedApplicationHealthReportExpiredEvent', 'ProcessDeactivated': 'ProcessDeactivatedEvent', 'ContainerDeactivated': 'ContainerDeactivatedEvent', 'DeployedServiceHealthReportCreated': 'DeployedServiceHealthReportCreatedEvent', 'DeployedServiceHealthReportExpired': 'DeployedServiceHealthReportExpiredEvent', 'ChaosRestartCodePackageFaultScheduled': 'ChaosRestartCodePackageFaultScheduledEvent', 'ChaosRestartCodePackageFaultCompleted': 'ChaosRestartCodePackageFaultCompletedEvent'} + 'kind': {'ApplicationCreated': 'ApplicationCreatedEvent', 'ApplicationDeleted': 'ApplicationDeletedEvent', 'ApplicationNewHealthReport': 'ApplicationNewHealthReportEvent', 'ApplicationHealthReportExpired': 'ApplicationHealthReportExpiredEvent', 'ApplicationUpgradeCompleted': 'ApplicationUpgradeCompletedEvent', 'ApplicationUpgradeDomainCompleted': 'ApplicationUpgradeDomainCompletedEvent', 'ApplicationUpgradeRollbackCompleted': 'ApplicationUpgradeRollbackCompletedEvent', 'ApplicationUpgradeRollbackStarted': 'ApplicationUpgradeRollbackStartedEvent', 'ApplicationUpgradeStarted': 'ApplicationUpgradeStartedEvent', 'DeployedApplicationNewHealthReport': 'DeployedApplicationNewHealthReportEvent', 'DeployedApplicationHealthReportExpired': 'DeployedApplicationHealthReportExpiredEvent', 'ApplicationProcessExited': 'ApplicationProcessExitedEvent', 'ApplicationContainerInstanceExited': 'ApplicationContainerInstanceExitedEvent', 'DeployedServicePackageNewHealthReport': 'DeployedServicePackageNewHealthReportEvent', 'DeployedServicePackageHealthReportExpired': 'DeployedServicePackageHealthReportExpiredEvent', 'ChaosCodePackageRestartScheduled': 'ChaosCodePackageRestartScheduledEvent'} } def __init__(self, **kwargs): diff --git a/azure-servicefabric/azure/servicefabric/models/application_event_py3.py b/azure-servicefabric/azure/servicefabric/models/application_event_py3.py index 5c0f80993ae9..2383eef84059 100644 --- a/azure-servicefabric/azure/servicefabric/models/application_event_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/application_event_py3.py @@ -17,22 +17,24 @@ class ApplicationEvent(FabricEvent): You probably want to use the sub-classes and not this class directly. Known sub-classes are: ApplicationCreatedEvent, ApplicationDeletedEvent, - ApplicationHealthReportCreatedEvent, ApplicationHealthReportExpiredEvent, - ApplicationUpgradeCompleteEvent, ApplicationUpgradeDomainCompleteEvent, - ApplicationUpgradeRollbackCompleteEvent, - ApplicationUpgradeRollbackStartEvent, ApplicationUpgradeStartEvent, - DeployedApplicationHealthReportCreatedEvent, - DeployedApplicationHealthReportExpiredEvent, ProcessDeactivatedEvent, - ContainerDeactivatedEvent, DeployedServiceHealthReportCreatedEvent, - DeployedServiceHealthReportExpiredEvent, - ChaosRestartCodePackageFaultScheduledEvent, - ChaosRestartCodePackageFaultCompletedEvent + ApplicationNewHealthReportEvent, ApplicationHealthReportExpiredEvent, + ApplicationUpgradeCompletedEvent, ApplicationUpgradeDomainCompletedEvent, + ApplicationUpgradeRollbackCompletedEvent, + ApplicationUpgradeRollbackStartedEvent, ApplicationUpgradeStartedEvent, + DeployedApplicationNewHealthReportEvent, + DeployedApplicationHealthReportExpiredEvent, ApplicationProcessExitedEvent, + ApplicationContainerInstanceExitedEvent, + DeployedServicePackageNewHealthReportEvent, + DeployedServicePackageHealthReportExpiredEvent, + ChaosCodePackageRestartScheduledEvent All required parameters must be populated in order to send to Azure. :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -59,6 +61,7 @@ class ApplicationEvent(FabricEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -66,10 +69,10 @@ class ApplicationEvent(FabricEvent): } _subtype_map = { - 'kind': {'ApplicationCreated': 'ApplicationCreatedEvent', 'ApplicationDeleted': 'ApplicationDeletedEvent', 'ApplicationHealthReportCreated': 'ApplicationHealthReportCreatedEvent', 'ApplicationHealthReportExpired': 'ApplicationHealthReportExpiredEvent', 'ApplicationUpgradeComplete': 'ApplicationUpgradeCompleteEvent', 'ApplicationUpgradeDomainComplete': 'ApplicationUpgradeDomainCompleteEvent', 'ApplicationUpgradeRollbackComplete': 'ApplicationUpgradeRollbackCompleteEvent', 'ApplicationUpgradeRollbackStart': 'ApplicationUpgradeRollbackStartEvent', 'ApplicationUpgradeStart': 'ApplicationUpgradeStartEvent', 'DeployedApplicationHealthReportCreated': 'DeployedApplicationHealthReportCreatedEvent', 'DeployedApplicationHealthReportExpired': 'DeployedApplicationHealthReportExpiredEvent', 'ProcessDeactivated': 'ProcessDeactivatedEvent', 'ContainerDeactivated': 'ContainerDeactivatedEvent', 'DeployedServiceHealthReportCreated': 'DeployedServiceHealthReportCreatedEvent', 'DeployedServiceHealthReportExpired': 'DeployedServiceHealthReportExpiredEvent', 'ChaosRestartCodePackageFaultScheduled': 'ChaosRestartCodePackageFaultScheduledEvent', 'ChaosRestartCodePackageFaultCompleted': 'ChaosRestartCodePackageFaultCompletedEvent'} + 'kind': {'ApplicationCreated': 'ApplicationCreatedEvent', 'ApplicationDeleted': 'ApplicationDeletedEvent', 'ApplicationNewHealthReport': 'ApplicationNewHealthReportEvent', 'ApplicationHealthReportExpired': 'ApplicationHealthReportExpiredEvent', 'ApplicationUpgradeCompleted': 'ApplicationUpgradeCompletedEvent', 'ApplicationUpgradeDomainCompleted': 'ApplicationUpgradeDomainCompletedEvent', 'ApplicationUpgradeRollbackCompleted': 'ApplicationUpgradeRollbackCompletedEvent', 'ApplicationUpgradeRollbackStarted': 'ApplicationUpgradeRollbackStartedEvent', 'ApplicationUpgradeStarted': 'ApplicationUpgradeStartedEvent', 'DeployedApplicationNewHealthReport': 'DeployedApplicationNewHealthReportEvent', 'DeployedApplicationHealthReportExpired': 'DeployedApplicationHealthReportExpiredEvent', 'ApplicationProcessExited': 'ApplicationProcessExitedEvent', 'ApplicationContainerInstanceExited': 'ApplicationContainerInstanceExitedEvent', 'DeployedServicePackageNewHealthReport': 'DeployedServicePackageNewHealthReportEvent', 'DeployedServicePackageHealthReportExpired': 'DeployedServicePackageHealthReportExpiredEvent', 'ChaosCodePackageRestartScheduled': 'ChaosCodePackageRestartScheduledEvent'} } - def __init__(self, *, event_instance_id: str, time_stamp, application_id: str, has_correlated_events: bool=None, **kwargs) -> None: - super(ApplicationEvent, self).__init__(event_instance_id=event_instance_id, time_stamp=time_stamp, has_correlated_events=has_correlated_events, **kwargs) + def __init__(self, *, event_instance_id: str, time_stamp, application_id: str, category: str=None, has_correlated_events: bool=None, **kwargs) -> None: + super(ApplicationEvent, self).__init__(event_instance_id=event_instance_id, category=category, time_stamp=time_stamp, has_correlated_events=has_correlated_events, **kwargs) self.application_id = application_id self.kind = 'ApplicationEvent' diff --git a/azure-servicefabric/azure/servicefabric/models/application_health_report_expired_event.py b/azure-servicefabric/azure/servicefabric/models/application_health_report_expired_event.py index 24a2105ef9f5..d2771d14aeab 100644 --- a/azure-servicefabric/azure/servicefabric/models/application_health_report_expired_event.py +++ b/azure-servicefabric/azure/servicefabric/models/application_health_report_expired_event.py @@ -20,6 +20,8 @@ class ApplicationHealthReportExpiredEvent(ApplicationEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -74,6 +76,7 @@ class ApplicationHealthReportExpiredEvent(ApplicationEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, diff --git a/azure-servicefabric/azure/servicefabric/models/application_health_report_expired_event_py3.py b/azure-servicefabric/azure/servicefabric/models/application_health_report_expired_event_py3.py index 635fd274de03..f4beb2ceda7c 100644 --- a/azure-servicefabric/azure/servicefabric/models/application_health_report_expired_event_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/application_health_report_expired_event_py3.py @@ -20,6 +20,8 @@ class ApplicationHealthReportExpiredEvent(ApplicationEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -74,6 +76,7 @@ class ApplicationHealthReportExpiredEvent(ApplicationEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -89,8 +92,8 @@ class ApplicationHealthReportExpiredEvent(ApplicationEvent): 'source_utc_timestamp': {'key': 'SourceUtcTimestamp', 'type': 'iso-8601'}, } - def __init__(self, *, event_instance_id: str, time_stamp, application_id: str, application_instance_id: int, source_id: str, property: str, health_state: str, time_to_live_ms: int, sequence_number: int, description: str, remove_when_expired: bool, source_utc_timestamp, has_correlated_events: bool=None, **kwargs) -> None: - super(ApplicationHealthReportExpiredEvent, self).__init__(event_instance_id=event_instance_id, time_stamp=time_stamp, has_correlated_events=has_correlated_events, application_id=application_id, **kwargs) + def __init__(self, *, event_instance_id: str, time_stamp, application_id: str, application_instance_id: int, source_id: str, property: str, health_state: str, time_to_live_ms: int, sequence_number: int, description: str, remove_when_expired: bool, source_utc_timestamp, category: str=None, has_correlated_events: bool=None, **kwargs) -> None: + super(ApplicationHealthReportExpiredEvent, self).__init__(event_instance_id=event_instance_id, category=category, time_stamp=time_stamp, has_correlated_events=has_correlated_events, application_id=application_id, **kwargs) self.application_instance_id = application_instance_id self.source_id = source_id self.property = property diff --git a/azure-servicefabric/azure/servicefabric/models/application_health_report_created_event.py b/azure-servicefabric/azure/servicefabric/models/application_new_health_report_event.py similarity index 93% rename from azure-servicefabric/azure/servicefabric/models/application_health_report_created_event.py rename to azure-servicefabric/azure/servicefabric/models/application_new_health_report_event.py index 0f8fd5493458..e45d2b4f76ea 100644 --- a/azure-servicefabric/azure/servicefabric/models/application_health_report_created_event.py +++ b/azure-servicefabric/azure/servicefabric/models/application_new_health_report_event.py @@ -12,7 +12,7 @@ from .application_event import ApplicationEvent -class ApplicationHealthReportCreatedEvent(ApplicationEvent): +class ApplicationNewHealthReportEvent(ApplicationEvent): """Application Health Report Created event. All required parameters must be populated in order to send to Azure. @@ -20,6 +20,8 @@ class ApplicationHealthReportCreatedEvent(ApplicationEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -74,6 +76,7 @@ class ApplicationHealthReportCreatedEvent(ApplicationEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -90,7 +93,7 @@ class ApplicationHealthReportCreatedEvent(ApplicationEvent): } def __init__(self, **kwargs): - super(ApplicationHealthReportCreatedEvent, self).__init__(**kwargs) + super(ApplicationNewHealthReportEvent, self).__init__(**kwargs) self.application_instance_id = kwargs.get('application_instance_id', None) self.source_id = kwargs.get('source_id', None) self.property = kwargs.get('property', None) @@ -100,4 +103,4 @@ def __init__(self, **kwargs): self.description = kwargs.get('description', None) self.remove_when_expired = kwargs.get('remove_when_expired', None) self.source_utc_timestamp = kwargs.get('source_utc_timestamp', None) - self.kind = 'ApplicationHealthReportCreated' + self.kind = 'ApplicationNewHealthReport' diff --git a/azure-servicefabric/azure/servicefabric/models/application_health_report_created_event_py3.py b/azure-servicefabric/azure/servicefabric/models/application_new_health_report_event_py3.py similarity index 89% rename from azure-servicefabric/azure/servicefabric/models/application_health_report_created_event_py3.py rename to azure-servicefabric/azure/servicefabric/models/application_new_health_report_event_py3.py index 774b8a6f26cb..912b7d4f21d3 100644 --- a/azure-servicefabric/azure/servicefabric/models/application_health_report_created_event_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/application_new_health_report_event_py3.py @@ -12,7 +12,7 @@ from .application_event_py3 import ApplicationEvent -class ApplicationHealthReportCreatedEvent(ApplicationEvent): +class ApplicationNewHealthReportEvent(ApplicationEvent): """Application Health Report Created event. All required parameters must be populated in order to send to Azure. @@ -20,6 +20,8 @@ class ApplicationHealthReportCreatedEvent(ApplicationEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -74,6 +76,7 @@ class ApplicationHealthReportCreatedEvent(ApplicationEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -89,8 +92,8 @@ class ApplicationHealthReportCreatedEvent(ApplicationEvent): 'source_utc_timestamp': {'key': 'SourceUtcTimestamp', 'type': 'iso-8601'}, } - def __init__(self, *, event_instance_id: str, time_stamp, application_id: str, application_instance_id: int, source_id: str, property: str, health_state: str, time_to_live_ms: int, sequence_number: int, description: str, remove_when_expired: bool, source_utc_timestamp, has_correlated_events: bool=None, **kwargs) -> None: - super(ApplicationHealthReportCreatedEvent, self).__init__(event_instance_id=event_instance_id, time_stamp=time_stamp, has_correlated_events=has_correlated_events, application_id=application_id, **kwargs) + def __init__(self, *, event_instance_id: str, time_stamp, application_id: str, application_instance_id: int, source_id: str, property: str, health_state: str, time_to_live_ms: int, sequence_number: int, description: str, remove_when_expired: bool, source_utc_timestamp, category: str=None, has_correlated_events: bool=None, **kwargs) -> None: + super(ApplicationNewHealthReportEvent, self).__init__(event_instance_id=event_instance_id, category=category, time_stamp=time_stamp, has_correlated_events=has_correlated_events, application_id=application_id, **kwargs) self.application_instance_id = application_instance_id self.source_id = source_id self.property = property @@ -100,4 +103,4 @@ def __init__(self, *, event_instance_id: str, time_stamp, application_id: str, a self.description = description self.remove_when_expired = remove_when_expired self.source_utc_timestamp = source_utc_timestamp - self.kind = 'ApplicationHealthReportCreated' + self.kind = 'ApplicationNewHealthReport' diff --git a/azure-servicefabric/azure/servicefabric/models/process_deactivated_event.py b/azure-servicefabric/azure/servicefabric/models/application_process_exited_event.py similarity index 94% rename from azure-servicefabric/azure/servicefabric/models/process_deactivated_event.py rename to azure-servicefabric/azure/servicefabric/models/application_process_exited_event.py index f1b245f1d488..56578ff3ca7a 100644 --- a/azure-servicefabric/azure/servicefabric/models/process_deactivated_event.py +++ b/azure-servicefabric/azure/servicefabric/models/application_process_exited_event.py @@ -12,14 +12,16 @@ from .application_event import ApplicationEvent -class ProcessDeactivatedEvent(ApplicationEvent): - """Process Deactivated event. +class ApplicationProcessExitedEvent(ApplicationEvent): + """Process Exited event. All required parameters must be populated in order to send to Azure. :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -84,6 +86,7 @@ class ProcessDeactivatedEvent(ApplicationEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -103,7 +106,7 @@ class ProcessDeactivatedEvent(ApplicationEvent): } def __init__(self, **kwargs): - super(ProcessDeactivatedEvent, self).__init__(**kwargs) + super(ApplicationProcessExitedEvent, self).__init__(**kwargs) self.service_name = kwargs.get('service_name', None) self.service_package_name = kwargs.get('service_package_name', None) self.service_package_activation_id = kwargs.get('service_package_activation_id', None) @@ -116,4 +119,4 @@ def __init__(self, **kwargs): self.exit_code = kwargs.get('exit_code', None) self.unexpected_termination = kwargs.get('unexpected_termination', None) self.start_time = kwargs.get('start_time', None) - self.kind = 'ProcessDeactivated' + self.kind = 'ApplicationProcessExited' diff --git a/azure-servicefabric/azure/servicefabric/models/process_deactivated_event_py3.py b/azure-servicefabric/azure/servicefabric/models/application_process_exited_event_py3.py similarity index 90% rename from azure-servicefabric/azure/servicefabric/models/process_deactivated_event_py3.py rename to azure-servicefabric/azure/servicefabric/models/application_process_exited_event_py3.py index 431acd549361..26e7215fa476 100644 --- a/azure-servicefabric/azure/servicefabric/models/process_deactivated_event_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/application_process_exited_event_py3.py @@ -12,14 +12,16 @@ from .application_event_py3 import ApplicationEvent -class ProcessDeactivatedEvent(ApplicationEvent): - """Process Deactivated event. +class ApplicationProcessExitedEvent(ApplicationEvent): + """Process Exited event. All required parameters must be populated in order to send to Azure. :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -84,6 +86,7 @@ class ProcessDeactivatedEvent(ApplicationEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -102,8 +105,8 @@ class ProcessDeactivatedEvent(ApplicationEvent): 'start_time': {'key': 'StartTime', 'type': 'iso-8601'}, } - def __init__(self, *, event_instance_id: str, time_stamp, application_id: str, service_name: str, service_package_name: str, service_package_activation_id: str, is_exclusive: bool, code_package_name: str, entry_point_type: str, exe_name: str, process_id: int, host_id: str, exit_code: int, unexpected_termination: bool, start_time, has_correlated_events: bool=None, **kwargs) -> None: - super(ProcessDeactivatedEvent, self).__init__(event_instance_id=event_instance_id, time_stamp=time_stamp, has_correlated_events=has_correlated_events, application_id=application_id, **kwargs) + def __init__(self, *, event_instance_id: str, time_stamp, application_id: str, service_name: str, service_package_name: str, service_package_activation_id: str, is_exclusive: bool, code_package_name: str, entry_point_type: str, exe_name: str, process_id: int, host_id: str, exit_code: int, unexpected_termination: bool, start_time, category: str=None, has_correlated_events: bool=None, **kwargs) -> None: + super(ApplicationProcessExitedEvent, self).__init__(event_instance_id=event_instance_id, category=category, time_stamp=time_stamp, has_correlated_events=has_correlated_events, application_id=application_id, **kwargs) self.service_name = service_name self.service_package_name = service_package_name self.service_package_activation_id = service_package_activation_id @@ -116,4 +119,4 @@ def __init__(self, *, event_instance_id: str, time_stamp, application_id: str, s self.exit_code = exit_code self.unexpected_termination = unexpected_termination self.start_time = start_time - self.kind = 'ProcessDeactivated' + self.kind = 'ApplicationProcessExited' diff --git a/azure-servicefabric/azure/servicefabric/models/application_resource_description.py b/azure-servicefabric/azure/servicefabric/models/application_resource_description.py index 52b38c02c723..9515a3479ede 100644 --- a/azure-servicefabric/azure/servicefabric/models/application_resource_description.py +++ b/azure-servicefabric/azure/servicefabric/models/application_resource_description.py @@ -13,20 +13,37 @@ class ApplicationResourceDescription(Model): - """Describes a service fabric application resource. + """This type describes a application resource. Variables are only populated by the server, and will be ignored when sending a request. All required parameters must be populated in order to send to Azure. + :param name: Required. Name of the Application resource. + :type name: str :param description: User readable description of the application. :type description: str - :param debug_params: Internal use. - :type debug_params: str - :param services: describes the services in the application. + :param services: Describes the services in the application. This property + is used to create or modify services of the application. On get only the + name of the service is returned. The service description can be obtained + by querying for the service resource. :type services: list[~azure.servicefabric.models.ServiceResourceDescription] + :param diagnostics: Describes the diagnostics definition and usage for an + application resource. + :type diagnostics: ~azure.servicefabric.models.DiagnosticsDescription + :param debug_params: Internal - used by Visual Studio to setup the + debugging session on the local development environment. + :type debug_params: str + :ivar service_names: Names of the services in the application. + :vartype service_names: list[str] + :ivar status: Status of the application. Possible values include: + 'Unknown', 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed' + :vartype status: str or ~azure.servicefabric.models.ResourceStatus + :ivar status_details: Gives additional information about the current + status of the application. + :vartype status_details: str :ivar health_state: Describes the health state of an application resource. Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' :vartype health_state: str or ~azure.servicefabric.models.HealthState @@ -34,53 +51,39 @@ class ApplicationResourceDescription(Model): 'Ok', this additional details from service fabric Health Manager for the user to know why the application is marked unhealthy. :vartype unhealthy_evaluation: str - :ivar status: Status of the application resource. Possible values include: - 'Invalid', 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed' - :vartype status: str or - ~azure.servicefabric.models.ApplicationResourceStatus - :ivar status_details: Gives additional information about the current - status of the application deployment. - :vartype status_details: str - :ivar service_names: Names of the services in the application. - :vartype service_names: list[str] - :param diagnostics: Describes the diagnostics definition and usage for an - application resource. - :type diagnostics: ~azure.servicefabric.models.DiagnosticsDescription - :param name: Required. Application resource name. - :type name: str """ _validation = { - 'health_state': {'readonly': True}, - 'unhealthy_evaluation': {'readonly': True}, + 'name': {'required': True}, + 'service_names': {'readonly': True}, 'status': {'readonly': True}, 'status_details': {'readonly': True}, - 'service_names': {'readonly': True}, - 'name': {'required': True}, + 'health_state': {'readonly': True}, + 'unhealthy_evaluation': {'readonly': True}, } _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, 'description': {'key': 'properties.description', 'type': 'str'}, - 'debug_params': {'key': 'properties.debugParams', 'type': 'str'}, 'services': {'key': 'properties.services', 'type': '[ServiceResourceDescription]'}, - 'health_state': {'key': 'properties.healthState', 'type': 'str'}, - 'unhealthy_evaluation': {'key': 'properties.unhealthyEvaluation', 'type': 'str'}, + 'diagnostics': {'key': 'properties.diagnostics', 'type': 'DiagnosticsDescription'}, + 'debug_params': {'key': 'properties.debugParams', 'type': 'str'}, + 'service_names': {'key': 'properties.serviceNames', 'type': '[str]'}, 'status': {'key': 'properties.status', 'type': 'str'}, 'status_details': {'key': 'properties.statusDetails', 'type': 'str'}, - 'service_names': {'key': 'properties.serviceNames', 'type': '[str]'}, - 'diagnostics': {'key': 'properties.diagnostics', 'type': 'DiagnosticsDescription'}, - 'name': {'key': 'name', 'type': 'str'}, + 'health_state': {'key': 'properties.healthState', 'type': 'str'}, + 'unhealthy_evaluation': {'key': 'properties.unhealthyEvaluation', 'type': 'str'}, } def __init__(self, **kwargs): super(ApplicationResourceDescription, self).__init__(**kwargs) + self.name = kwargs.get('name', None) self.description = kwargs.get('description', None) - self.debug_params = kwargs.get('debug_params', None) self.services = kwargs.get('services', None) - self.health_state = None - self.unhealthy_evaluation = None + self.diagnostics = kwargs.get('diagnostics', None) + self.debug_params = kwargs.get('debug_params', None) + self.service_names = None self.status = None self.status_details = None - self.service_names = None - self.diagnostics = kwargs.get('diagnostics', None) - self.name = kwargs.get('name', None) + self.health_state = None + self.unhealthy_evaluation = None diff --git a/azure-servicefabric/azure/servicefabric/models/application_resource_description_py3.py b/azure-servicefabric/azure/servicefabric/models/application_resource_description_py3.py index 8f763cd5c83a..6fe90cd50cc7 100644 --- a/azure-servicefabric/azure/servicefabric/models/application_resource_description_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/application_resource_description_py3.py @@ -13,20 +13,37 @@ class ApplicationResourceDescription(Model): - """Describes a service fabric application resource. + """This type describes a application resource. Variables are only populated by the server, and will be ignored when sending a request. All required parameters must be populated in order to send to Azure. + :param name: Required. Name of the Application resource. + :type name: str :param description: User readable description of the application. :type description: str - :param debug_params: Internal use. - :type debug_params: str - :param services: describes the services in the application. + :param services: Describes the services in the application. This property + is used to create or modify services of the application. On get only the + name of the service is returned. The service description can be obtained + by querying for the service resource. :type services: list[~azure.servicefabric.models.ServiceResourceDescription] + :param diagnostics: Describes the diagnostics definition and usage for an + application resource. + :type diagnostics: ~azure.servicefabric.models.DiagnosticsDescription + :param debug_params: Internal - used by Visual Studio to setup the + debugging session on the local development environment. + :type debug_params: str + :ivar service_names: Names of the services in the application. + :vartype service_names: list[str] + :ivar status: Status of the application. Possible values include: + 'Unknown', 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed' + :vartype status: str or ~azure.servicefabric.models.ResourceStatus + :ivar status_details: Gives additional information about the current + status of the application. + :vartype status_details: str :ivar health_state: Describes the health state of an application resource. Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' :vartype health_state: str or ~azure.servicefabric.models.HealthState @@ -34,53 +51,39 @@ class ApplicationResourceDescription(Model): 'Ok', this additional details from service fabric Health Manager for the user to know why the application is marked unhealthy. :vartype unhealthy_evaluation: str - :ivar status: Status of the application resource. Possible values include: - 'Invalid', 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed' - :vartype status: str or - ~azure.servicefabric.models.ApplicationResourceStatus - :ivar status_details: Gives additional information about the current - status of the application deployment. - :vartype status_details: str - :ivar service_names: Names of the services in the application. - :vartype service_names: list[str] - :param diagnostics: Describes the diagnostics definition and usage for an - application resource. - :type diagnostics: ~azure.servicefabric.models.DiagnosticsDescription - :param name: Required. Application resource name. - :type name: str """ _validation = { - 'health_state': {'readonly': True}, - 'unhealthy_evaluation': {'readonly': True}, + 'name': {'required': True}, + 'service_names': {'readonly': True}, 'status': {'readonly': True}, 'status_details': {'readonly': True}, - 'service_names': {'readonly': True}, - 'name': {'required': True}, + 'health_state': {'readonly': True}, + 'unhealthy_evaluation': {'readonly': True}, } _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, 'description': {'key': 'properties.description', 'type': 'str'}, - 'debug_params': {'key': 'properties.debugParams', 'type': 'str'}, 'services': {'key': 'properties.services', 'type': '[ServiceResourceDescription]'}, - 'health_state': {'key': 'properties.healthState', 'type': 'str'}, - 'unhealthy_evaluation': {'key': 'properties.unhealthyEvaluation', 'type': 'str'}, + 'diagnostics': {'key': 'properties.diagnostics', 'type': 'DiagnosticsDescription'}, + 'debug_params': {'key': 'properties.debugParams', 'type': 'str'}, + 'service_names': {'key': 'properties.serviceNames', 'type': '[str]'}, 'status': {'key': 'properties.status', 'type': 'str'}, 'status_details': {'key': 'properties.statusDetails', 'type': 'str'}, - 'service_names': {'key': 'properties.serviceNames', 'type': '[str]'}, - 'diagnostics': {'key': 'properties.diagnostics', 'type': 'DiagnosticsDescription'}, - 'name': {'key': 'name', 'type': 'str'}, + 'health_state': {'key': 'properties.healthState', 'type': 'str'}, + 'unhealthy_evaluation': {'key': 'properties.unhealthyEvaluation', 'type': 'str'}, } - def __init__(self, *, name: str, description: str=None, debug_params: str=None, services=None, diagnostics=None, **kwargs) -> None: + def __init__(self, *, name: str, description: str=None, services=None, diagnostics=None, debug_params: str=None, **kwargs) -> None: super(ApplicationResourceDescription, self).__init__(**kwargs) + self.name = name self.description = description - self.debug_params = debug_params self.services = services - self.health_state = None - self.unhealthy_evaluation = None + self.diagnostics = diagnostics + self.debug_params = debug_params + self.service_names = None self.status = None self.status_details = None - self.service_names = None - self.diagnostics = diagnostics - self.name = name + self.health_state = None + self.unhealthy_evaluation = None diff --git a/azure-servicefabric/azure/servicefabric/models/application_scoped_volume.py b/azure-servicefabric/azure/servicefabric/models/application_scoped_volume.py new file mode 100644 index 000000000000..267c4a06d4ff --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/application_scoped_volume.py @@ -0,0 +1,49 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .volume_reference import VolumeReference + + +class ApplicationScopedVolume(VolumeReference): + """Describes a volume whose lifetime is scoped to the application's lifetime. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. Name of the volume being referenced. + :type name: str + :param read_only: The flag indicating whether the volume is read only. + Default is 'false'. + :type read_only: bool + :param destination_path: Required. The path within the container at which + the volume should be mounted. Only valid path characters are allowed. + :type destination_path: str + :param creation_parameters: Required. Describes parameters for creating + application-scoped volumes. + :type creation_parameters: + ~azure.servicefabric.models.ApplicationScopedVolumeCreationParameters + """ + + _validation = { + 'name': {'required': True}, + 'destination_path': {'required': True}, + 'creation_parameters': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'read_only': {'key': 'readOnly', 'type': 'bool'}, + 'destination_path': {'key': 'destinationPath', 'type': 'str'}, + 'creation_parameters': {'key': 'creationParameters', 'type': 'ApplicationScopedVolumeCreationParameters'}, + } + + def __init__(self, **kwargs): + super(ApplicationScopedVolume, self).__init__(**kwargs) + self.creation_parameters = kwargs.get('creation_parameters', None) diff --git a/azure-servicefabric/azure/servicefabric/models/application_scoped_volume_creation_parameters.py b/azure-servicefabric/azure/servicefabric/models/application_scoped_volume_creation_parameters.py new file mode 100644 index 000000000000..b55aeb7bfb93 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/application_scoped_volume_creation_parameters.py @@ -0,0 +1,46 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ApplicationScopedVolumeCreationParameters(Model): + """Describes parameters for creating application-scoped volumes. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: + ApplicationScopedVolumeCreationParametersServiceFabricVolumeDisk + + All required parameters must be populated in order to send to Azure. + + :param description: User readable description of the volume. + :type description: str + :param kind: Required. Constant filled by server. + :type kind: str + """ + + _validation = { + 'kind': {'required': True}, + } + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + } + + _subtype_map = { + 'kind': {'ServiceFabricVolumeDisk': 'ApplicationScopedVolumeCreationParametersServiceFabricVolumeDisk'} + } + + def __init__(self, **kwargs): + super(ApplicationScopedVolumeCreationParameters, self).__init__(**kwargs) + self.description = kwargs.get('description', None) + self.kind = None diff --git a/azure-servicefabric/azure/servicefabric/models/application_scoped_volume_creation_parameters_py3.py b/azure-servicefabric/azure/servicefabric/models/application_scoped_volume_creation_parameters_py3.py new file mode 100644 index 000000000000..27c8018f3bde --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/application_scoped_volume_creation_parameters_py3.py @@ -0,0 +1,46 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ApplicationScopedVolumeCreationParameters(Model): + """Describes parameters for creating application-scoped volumes. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: + ApplicationScopedVolumeCreationParametersServiceFabricVolumeDisk + + All required parameters must be populated in order to send to Azure. + + :param description: User readable description of the volume. + :type description: str + :param kind: Required. Constant filled by server. + :type kind: str + """ + + _validation = { + 'kind': {'required': True}, + } + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + } + + _subtype_map = { + 'kind': {'ServiceFabricVolumeDisk': 'ApplicationScopedVolumeCreationParametersServiceFabricVolumeDisk'} + } + + def __init__(self, *, description: str=None, **kwargs) -> None: + super(ApplicationScopedVolumeCreationParameters, self).__init__(**kwargs) + self.description = description + self.kind = None diff --git a/azure-servicefabric/azure/servicefabric/models/application_scoped_volume_creation_parameters_service_fabric_volume_disk.py b/azure-servicefabric/azure/servicefabric/models/application_scoped_volume_creation_parameters_service_fabric_volume_disk.py new file mode 100644 index 000000000000..945d283d39a9 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/application_scoped_volume_creation_parameters_service_fabric_volume_disk.py @@ -0,0 +1,44 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .application_scoped_volume_creation_parameters import ApplicationScopedVolumeCreationParameters + + +class ApplicationScopedVolumeCreationParametersServiceFabricVolumeDisk(ApplicationScopedVolumeCreationParameters): + """Describes parameters for creating application-scoped volumes provided by + Service Fabric Volume Disks. + + All required parameters must be populated in order to send to Azure. + + :param description: User readable description of the volume. + :type description: str + :param kind: Required. Constant filled by server. + :type kind: str + :param size_disk: Required. Volume size. Possible values include: 'Small', + 'Medium', 'Large' + :type size_disk: str or ~azure.servicefabric.models.SizeTypes + """ + + _validation = { + 'kind': {'required': True}, + 'size_disk': {'required': True}, + } + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'size_disk': {'key': 'sizeDisk', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ApplicationScopedVolumeCreationParametersServiceFabricVolumeDisk, self).__init__(**kwargs) + self.size_disk = kwargs.get('size_disk', None) + self.kind = 'ServiceFabricVolumeDisk' diff --git a/azure-servicefabric/azure/servicefabric/models/application_scoped_volume_creation_parameters_service_fabric_volume_disk_py3.py b/azure-servicefabric/azure/servicefabric/models/application_scoped_volume_creation_parameters_service_fabric_volume_disk_py3.py new file mode 100644 index 000000000000..279e036168cc --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/application_scoped_volume_creation_parameters_service_fabric_volume_disk_py3.py @@ -0,0 +1,44 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .application_scoped_volume_creation_parameters_py3 import ApplicationScopedVolumeCreationParameters + + +class ApplicationScopedVolumeCreationParametersServiceFabricVolumeDisk(ApplicationScopedVolumeCreationParameters): + """Describes parameters for creating application-scoped volumes provided by + Service Fabric Volume Disks. + + All required parameters must be populated in order to send to Azure. + + :param description: User readable description of the volume. + :type description: str + :param kind: Required. Constant filled by server. + :type kind: str + :param size_disk: Required. Volume size. Possible values include: 'Small', + 'Medium', 'Large' + :type size_disk: str or ~azure.servicefabric.models.SizeTypes + """ + + _validation = { + 'kind': {'required': True}, + 'size_disk': {'required': True}, + } + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'size_disk': {'key': 'sizeDisk', 'type': 'str'}, + } + + def __init__(self, *, size_disk, description: str=None, **kwargs) -> None: + super(ApplicationScopedVolumeCreationParametersServiceFabricVolumeDisk, self).__init__(description=description, **kwargs) + self.size_disk = size_disk + self.kind = 'ServiceFabricVolumeDisk' diff --git a/azure-servicefabric/azure/servicefabric/models/application_scoped_volume_py3.py b/azure-servicefabric/azure/servicefabric/models/application_scoped_volume_py3.py new file mode 100644 index 000000000000..0c07eaf0c9fe --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/application_scoped_volume_py3.py @@ -0,0 +1,49 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .volume_reference_py3 import VolumeReference + + +class ApplicationScopedVolume(VolumeReference): + """Describes a volume whose lifetime is scoped to the application's lifetime. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. Name of the volume being referenced. + :type name: str + :param read_only: The flag indicating whether the volume is read only. + Default is 'false'. + :type read_only: bool + :param destination_path: Required. The path within the container at which + the volume should be mounted. Only valid path characters are allowed. + :type destination_path: str + :param creation_parameters: Required. Describes parameters for creating + application-scoped volumes. + :type creation_parameters: + ~azure.servicefabric.models.ApplicationScopedVolumeCreationParameters + """ + + _validation = { + 'name': {'required': True}, + 'destination_path': {'required': True}, + 'creation_parameters': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'read_only': {'key': 'readOnly', 'type': 'bool'}, + 'destination_path': {'key': 'destinationPath', 'type': 'str'}, + 'creation_parameters': {'key': 'creationParameters', 'type': 'ApplicationScopedVolumeCreationParameters'}, + } + + def __init__(self, *, name: str, destination_path: str, creation_parameters, read_only: bool=None, **kwargs) -> None: + super(ApplicationScopedVolume, self).__init__(name=name, read_only=read_only, destination_path=destination_path, **kwargs) + self.creation_parameters = creation_parameters diff --git a/azure-servicefabric/azure/servicefabric/models/application_upgrade_complete_event.py b/azure-servicefabric/azure/servicefabric/models/application_upgrade_completed_event.py similarity index 90% rename from azure-servicefabric/azure/servicefabric/models/application_upgrade_complete_event.py rename to azure-servicefabric/azure/servicefabric/models/application_upgrade_completed_event.py index 5b6ac13a69c8..ed48f2f62cfe 100644 --- a/azure-servicefabric/azure/servicefabric/models/application_upgrade_complete_event.py +++ b/azure-servicefabric/azure/servicefabric/models/application_upgrade_completed_event.py @@ -12,14 +12,16 @@ from .application_event import ApplicationEvent -class ApplicationUpgradeCompleteEvent(ApplicationEvent): - """Application Upgrade Complete event. +class ApplicationUpgradeCompletedEvent(ApplicationEvent): + """Application Upgrade Completed event. All required parameters must be populated in order to send to Azure. :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -56,6 +58,7 @@ class ApplicationUpgradeCompleteEvent(ApplicationEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -66,8 +69,8 @@ class ApplicationUpgradeCompleteEvent(ApplicationEvent): } def __init__(self, **kwargs): - super(ApplicationUpgradeCompleteEvent, self).__init__(**kwargs) + super(ApplicationUpgradeCompletedEvent, self).__init__(**kwargs) self.application_type_name = kwargs.get('application_type_name', None) self.application_type_version = kwargs.get('application_type_version', None) self.overall_upgrade_elapsed_time_in_ms = kwargs.get('overall_upgrade_elapsed_time_in_ms', None) - self.kind = 'ApplicationUpgradeComplete' + self.kind = 'ApplicationUpgradeCompleted' diff --git a/azure-servicefabric/azure/servicefabric/models/application_upgrade_complete_event_py3.py b/azure-servicefabric/azure/servicefabric/models/application_upgrade_completed_event_py3.py similarity index 83% rename from azure-servicefabric/azure/servicefabric/models/application_upgrade_complete_event_py3.py rename to azure-servicefabric/azure/servicefabric/models/application_upgrade_completed_event_py3.py index 1df9ee3fd20c..d3a3f0a705d7 100644 --- a/azure-servicefabric/azure/servicefabric/models/application_upgrade_complete_event_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/application_upgrade_completed_event_py3.py @@ -12,14 +12,16 @@ from .application_event_py3 import ApplicationEvent -class ApplicationUpgradeCompleteEvent(ApplicationEvent): - """Application Upgrade Complete event. +class ApplicationUpgradeCompletedEvent(ApplicationEvent): + """Application Upgrade Completed event. All required parameters must be populated in order to send to Azure. :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -56,6 +58,7 @@ class ApplicationUpgradeCompleteEvent(ApplicationEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -65,9 +68,9 @@ class ApplicationUpgradeCompleteEvent(ApplicationEvent): 'overall_upgrade_elapsed_time_in_ms': {'key': 'OverallUpgradeElapsedTimeInMs', 'type': 'float'}, } - def __init__(self, *, event_instance_id: str, time_stamp, application_id: str, application_type_name: str, application_type_version: str, overall_upgrade_elapsed_time_in_ms: float, has_correlated_events: bool=None, **kwargs) -> None: - super(ApplicationUpgradeCompleteEvent, self).__init__(event_instance_id=event_instance_id, time_stamp=time_stamp, has_correlated_events=has_correlated_events, application_id=application_id, **kwargs) + def __init__(self, *, event_instance_id: str, time_stamp, application_id: str, application_type_name: str, application_type_version: str, overall_upgrade_elapsed_time_in_ms: float, category: str=None, has_correlated_events: bool=None, **kwargs) -> None: + super(ApplicationUpgradeCompletedEvent, self).__init__(event_instance_id=event_instance_id, category=category, time_stamp=time_stamp, has_correlated_events=has_correlated_events, application_id=application_id, **kwargs) self.application_type_name = application_type_name self.application_type_version = application_type_version self.overall_upgrade_elapsed_time_in_ms = overall_upgrade_elapsed_time_in_ms - self.kind = 'ApplicationUpgradeComplete' + self.kind = 'ApplicationUpgradeCompleted' diff --git a/azure-servicefabric/azure/servicefabric/models/application_upgrade_domain_complete_event.py b/azure-servicefabric/azure/servicefabric/models/application_upgrade_domain_completed_event.py similarity index 91% rename from azure-servicefabric/azure/servicefabric/models/application_upgrade_domain_complete_event.py rename to azure-servicefabric/azure/servicefabric/models/application_upgrade_domain_completed_event.py index bc8ed044f826..292ec1c86e3d 100644 --- a/azure-servicefabric/azure/servicefabric/models/application_upgrade_domain_complete_event.py +++ b/azure-servicefabric/azure/servicefabric/models/application_upgrade_domain_completed_event.py @@ -12,14 +12,16 @@ from .application_event import ApplicationEvent -class ApplicationUpgradeDomainCompleteEvent(ApplicationEvent): - """Application Upgrade Domain Complete event. +class ApplicationUpgradeDomainCompletedEvent(ApplicationEvent): + """Application Upgrade Domain Completed event. All required parameters must be populated in order to send to Azure. :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -67,6 +69,7 @@ class ApplicationUpgradeDomainCompleteEvent(ApplicationEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -80,11 +83,11 @@ class ApplicationUpgradeDomainCompleteEvent(ApplicationEvent): } def __init__(self, **kwargs): - super(ApplicationUpgradeDomainCompleteEvent, self).__init__(**kwargs) + super(ApplicationUpgradeDomainCompletedEvent, self).__init__(**kwargs) self.application_type_name = kwargs.get('application_type_name', None) self.current_application_type_version = kwargs.get('current_application_type_version', None) self.application_type_version = kwargs.get('application_type_version', None) self.upgrade_state = kwargs.get('upgrade_state', None) self.upgrade_domains = kwargs.get('upgrade_domains', None) self.upgrade_domain_elapsed_time_in_ms = kwargs.get('upgrade_domain_elapsed_time_in_ms', None) - self.kind = 'ApplicationUpgradeDomainComplete' + self.kind = 'ApplicationUpgradeDomainCompleted' diff --git a/azure-servicefabric/azure/servicefabric/models/application_upgrade_domain_complete_event_py3.py b/azure-servicefabric/azure/servicefabric/models/application_upgrade_domain_completed_event_py3.py similarity index 87% rename from azure-servicefabric/azure/servicefabric/models/application_upgrade_domain_complete_event_py3.py rename to azure-servicefabric/azure/servicefabric/models/application_upgrade_domain_completed_event_py3.py index eefdd83e9f95..eb424ead9a87 100644 --- a/azure-servicefabric/azure/servicefabric/models/application_upgrade_domain_complete_event_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/application_upgrade_domain_completed_event_py3.py @@ -12,14 +12,16 @@ from .application_event_py3 import ApplicationEvent -class ApplicationUpgradeDomainCompleteEvent(ApplicationEvent): - """Application Upgrade Domain Complete event. +class ApplicationUpgradeDomainCompletedEvent(ApplicationEvent): + """Application Upgrade Domain Completed event. All required parameters must be populated in order to send to Azure. :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -67,6 +69,7 @@ class ApplicationUpgradeDomainCompleteEvent(ApplicationEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -79,12 +82,12 @@ class ApplicationUpgradeDomainCompleteEvent(ApplicationEvent): 'upgrade_domain_elapsed_time_in_ms': {'key': 'UpgradeDomainElapsedTimeInMs', 'type': 'float'}, } - def __init__(self, *, event_instance_id: str, time_stamp, application_id: str, application_type_name: str, current_application_type_version: str, application_type_version: str, upgrade_state: str, upgrade_domains: str, upgrade_domain_elapsed_time_in_ms: float, has_correlated_events: bool=None, **kwargs) -> None: - super(ApplicationUpgradeDomainCompleteEvent, self).__init__(event_instance_id=event_instance_id, time_stamp=time_stamp, has_correlated_events=has_correlated_events, application_id=application_id, **kwargs) + def __init__(self, *, event_instance_id: str, time_stamp, application_id: str, application_type_name: str, current_application_type_version: str, application_type_version: str, upgrade_state: str, upgrade_domains: str, upgrade_domain_elapsed_time_in_ms: float, category: str=None, has_correlated_events: bool=None, **kwargs) -> None: + super(ApplicationUpgradeDomainCompletedEvent, self).__init__(event_instance_id=event_instance_id, category=category, time_stamp=time_stamp, has_correlated_events=has_correlated_events, application_id=application_id, **kwargs) self.application_type_name = application_type_name self.current_application_type_version = current_application_type_version self.application_type_version = application_type_version self.upgrade_state = upgrade_state self.upgrade_domains = upgrade_domains self.upgrade_domain_elapsed_time_in_ms = upgrade_domain_elapsed_time_in_ms - self.kind = 'ApplicationUpgradeDomainComplete' + self.kind = 'ApplicationUpgradeDomainCompleted' diff --git a/azure-servicefabric/azure/servicefabric/models/application_upgrade_rollback_complete_event.py b/azure-servicefabric/azure/servicefabric/models/application_upgrade_rollback_completed_event.py similarity index 90% rename from azure-servicefabric/azure/servicefabric/models/application_upgrade_rollback_complete_event.py rename to azure-servicefabric/azure/servicefabric/models/application_upgrade_rollback_completed_event.py index 91f8c2bf7863..a28a48ade3af 100644 --- a/azure-servicefabric/azure/servicefabric/models/application_upgrade_rollback_complete_event.py +++ b/azure-servicefabric/azure/servicefabric/models/application_upgrade_rollback_completed_event.py @@ -12,14 +12,16 @@ from .application_event import ApplicationEvent -class ApplicationUpgradeRollbackCompleteEvent(ApplicationEvent): - """Application Upgrade Rollback Complete event. +class ApplicationUpgradeRollbackCompletedEvent(ApplicationEvent): + """Application Upgrade Rollback Completed event. All required parameters must be populated in order to send to Azure. :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -59,6 +61,7 @@ class ApplicationUpgradeRollbackCompleteEvent(ApplicationEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -70,9 +73,9 @@ class ApplicationUpgradeRollbackCompleteEvent(ApplicationEvent): } def __init__(self, **kwargs): - super(ApplicationUpgradeRollbackCompleteEvent, self).__init__(**kwargs) + super(ApplicationUpgradeRollbackCompletedEvent, self).__init__(**kwargs) self.application_type_name = kwargs.get('application_type_name', None) self.application_type_version = kwargs.get('application_type_version', None) self.failure_reason = kwargs.get('failure_reason', None) self.overall_upgrade_elapsed_time_in_ms = kwargs.get('overall_upgrade_elapsed_time_in_ms', None) - self.kind = 'ApplicationUpgradeRollbackComplete' + self.kind = 'ApplicationUpgradeRollbackCompleted' diff --git a/azure-servicefabric/azure/servicefabric/models/application_upgrade_rollback_complete_event_py3.py b/azure-servicefabric/azure/servicefabric/models/application_upgrade_rollback_completed_event_py3.py similarity index 85% rename from azure-servicefabric/azure/servicefabric/models/application_upgrade_rollback_complete_event_py3.py rename to azure-servicefabric/azure/servicefabric/models/application_upgrade_rollback_completed_event_py3.py index c40f39d16f3f..2cb37f77a032 100644 --- a/azure-servicefabric/azure/servicefabric/models/application_upgrade_rollback_complete_event_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/application_upgrade_rollback_completed_event_py3.py @@ -12,14 +12,16 @@ from .application_event_py3 import ApplicationEvent -class ApplicationUpgradeRollbackCompleteEvent(ApplicationEvent): - """Application Upgrade Rollback Complete event. +class ApplicationUpgradeRollbackCompletedEvent(ApplicationEvent): + """Application Upgrade Rollback Completed event. All required parameters must be populated in order to send to Azure. :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -59,6 +61,7 @@ class ApplicationUpgradeRollbackCompleteEvent(ApplicationEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -69,10 +72,10 @@ class ApplicationUpgradeRollbackCompleteEvent(ApplicationEvent): 'overall_upgrade_elapsed_time_in_ms': {'key': 'OverallUpgradeElapsedTimeInMs', 'type': 'float'}, } - def __init__(self, *, event_instance_id: str, time_stamp, application_id: str, application_type_name: str, application_type_version: str, failure_reason: str, overall_upgrade_elapsed_time_in_ms: float, has_correlated_events: bool=None, **kwargs) -> None: - super(ApplicationUpgradeRollbackCompleteEvent, self).__init__(event_instance_id=event_instance_id, time_stamp=time_stamp, has_correlated_events=has_correlated_events, application_id=application_id, **kwargs) + def __init__(self, *, event_instance_id: str, time_stamp, application_id: str, application_type_name: str, application_type_version: str, failure_reason: str, overall_upgrade_elapsed_time_in_ms: float, category: str=None, has_correlated_events: bool=None, **kwargs) -> None: + super(ApplicationUpgradeRollbackCompletedEvent, self).__init__(event_instance_id=event_instance_id, category=category, time_stamp=time_stamp, has_correlated_events=has_correlated_events, application_id=application_id, **kwargs) self.application_type_name = application_type_name self.application_type_version = application_type_version self.failure_reason = failure_reason self.overall_upgrade_elapsed_time_in_ms = overall_upgrade_elapsed_time_in_ms - self.kind = 'ApplicationUpgradeRollbackComplete' + self.kind = 'ApplicationUpgradeRollbackCompleted' diff --git a/azure-servicefabric/azure/servicefabric/models/application_upgrade_rollback_start_event.py b/azure-servicefabric/azure/servicefabric/models/application_upgrade_rollback_started_event.py similarity index 91% rename from azure-servicefabric/azure/servicefabric/models/application_upgrade_rollback_start_event.py rename to azure-servicefabric/azure/servicefabric/models/application_upgrade_rollback_started_event.py index 8e0e1cfefe4d..23887afab208 100644 --- a/azure-servicefabric/azure/servicefabric/models/application_upgrade_rollback_start_event.py +++ b/azure-servicefabric/azure/servicefabric/models/application_upgrade_rollback_started_event.py @@ -12,14 +12,16 @@ from .application_event import ApplicationEvent -class ApplicationUpgradeRollbackStartEvent(ApplicationEvent): - """Application Upgrade Rollback Start event. +class ApplicationUpgradeRollbackStartedEvent(ApplicationEvent): + """Application Upgrade Rollback Started event. All required parameters must be populated in order to send to Azure. :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -64,6 +66,7 @@ class ApplicationUpgradeRollbackStartEvent(ApplicationEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -76,10 +79,10 @@ class ApplicationUpgradeRollbackStartEvent(ApplicationEvent): } def __init__(self, **kwargs): - super(ApplicationUpgradeRollbackStartEvent, self).__init__(**kwargs) + super(ApplicationUpgradeRollbackStartedEvent, self).__init__(**kwargs) self.application_type_name = kwargs.get('application_type_name', None) self.current_application_type_version = kwargs.get('current_application_type_version', None) self.application_type_version = kwargs.get('application_type_version', None) self.failure_reason = kwargs.get('failure_reason', None) self.overall_upgrade_elapsed_time_in_ms = kwargs.get('overall_upgrade_elapsed_time_in_ms', None) - self.kind = 'ApplicationUpgradeRollbackStart' + self.kind = 'ApplicationUpgradeRollbackStarted' diff --git a/azure-servicefabric/azure/servicefabric/models/application_upgrade_rollback_start_event_py3.py b/azure-servicefabric/azure/servicefabric/models/application_upgrade_rollback_started_event_py3.py similarity index 85% rename from azure-servicefabric/azure/servicefabric/models/application_upgrade_rollback_start_event_py3.py rename to azure-servicefabric/azure/servicefabric/models/application_upgrade_rollback_started_event_py3.py index b770876d1dd8..95488c569b80 100644 --- a/azure-servicefabric/azure/servicefabric/models/application_upgrade_rollback_start_event_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/application_upgrade_rollback_started_event_py3.py @@ -12,14 +12,16 @@ from .application_event_py3 import ApplicationEvent -class ApplicationUpgradeRollbackStartEvent(ApplicationEvent): - """Application Upgrade Rollback Start event. +class ApplicationUpgradeRollbackStartedEvent(ApplicationEvent): + """Application Upgrade Rollback Started event. All required parameters must be populated in order to send to Azure. :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -64,6 +66,7 @@ class ApplicationUpgradeRollbackStartEvent(ApplicationEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -75,11 +78,11 @@ class ApplicationUpgradeRollbackStartEvent(ApplicationEvent): 'overall_upgrade_elapsed_time_in_ms': {'key': 'OverallUpgradeElapsedTimeInMs', 'type': 'float'}, } - def __init__(self, *, event_instance_id: str, time_stamp, application_id: str, application_type_name: str, current_application_type_version: str, application_type_version: str, failure_reason: str, overall_upgrade_elapsed_time_in_ms: float, has_correlated_events: bool=None, **kwargs) -> None: - super(ApplicationUpgradeRollbackStartEvent, self).__init__(event_instance_id=event_instance_id, time_stamp=time_stamp, has_correlated_events=has_correlated_events, application_id=application_id, **kwargs) + def __init__(self, *, event_instance_id: str, time_stamp, application_id: str, application_type_name: str, current_application_type_version: str, application_type_version: str, failure_reason: str, overall_upgrade_elapsed_time_in_ms: float, category: str=None, has_correlated_events: bool=None, **kwargs) -> None: + super(ApplicationUpgradeRollbackStartedEvent, self).__init__(event_instance_id=event_instance_id, category=category, time_stamp=time_stamp, has_correlated_events=has_correlated_events, application_id=application_id, **kwargs) self.application_type_name = application_type_name self.current_application_type_version = current_application_type_version self.application_type_version = application_type_version self.failure_reason = failure_reason self.overall_upgrade_elapsed_time_in_ms = overall_upgrade_elapsed_time_in_ms - self.kind = 'ApplicationUpgradeRollbackStart' + self.kind = 'ApplicationUpgradeRollbackStarted' diff --git a/azure-servicefabric/azure/servicefabric/models/application_upgrade_start_event.py b/azure-servicefabric/azure/servicefabric/models/application_upgrade_started_event.py similarity index 92% rename from azure-servicefabric/azure/servicefabric/models/application_upgrade_start_event.py rename to azure-servicefabric/azure/servicefabric/models/application_upgrade_started_event.py index 243507c7b5a1..4b8254f786a5 100644 --- a/azure-servicefabric/azure/servicefabric/models/application_upgrade_start_event.py +++ b/azure-servicefabric/azure/servicefabric/models/application_upgrade_started_event.py @@ -12,14 +12,16 @@ from .application_event import ApplicationEvent -class ApplicationUpgradeStartEvent(ApplicationEvent): - """Application Upgrade Start event. +class ApplicationUpgradeStartedEvent(ApplicationEvent): + """Application Upgrade Started event. All required parameters must be populated in order to send to Azure. :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -66,6 +68,7 @@ class ApplicationUpgradeStartEvent(ApplicationEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -79,11 +82,11 @@ class ApplicationUpgradeStartEvent(ApplicationEvent): } def __init__(self, **kwargs): - super(ApplicationUpgradeStartEvent, self).__init__(**kwargs) + super(ApplicationUpgradeStartedEvent, self).__init__(**kwargs) self.application_type_name = kwargs.get('application_type_name', None) self.current_application_type_version = kwargs.get('current_application_type_version', None) self.application_type_version = kwargs.get('application_type_version', None) self.upgrade_type = kwargs.get('upgrade_type', None) self.rolling_upgrade_mode = kwargs.get('rolling_upgrade_mode', None) self.failure_action = kwargs.get('failure_action', None) - self.kind = 'ApplicationUpgradeStart' + self.kind = 'ApplicationUpgradeStarted' diff --git a/azure-servicefabric/azure/servicefabric/models/application_upgrade_start_event_py3.py b/azure-servicefabric/azure/servicefabric/models/application_upgrade_started_event_py3.py similarity index 86% rename from azure-servicefabric/azure/servicefabric/models/application_upgrade_start_event_py3.py rename to azure-servicefabric/azure/servicefabric/models/application_upgrade_started_event_py3.py index 7df679fc68bc..aaf80f7c6733 100644 --- a/azure-servicefabric/azure/servicefabric/models/application_upgrade_start_event_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/application_upgrade_started_event_py3.py @@ -12,14 +12,16 @@ from .application_event_py3 import ApplicationEvent -class ApplicationUpgradeStartEvent(ApplicationEvent): - """Application Upgrade Start event. +class ApplicationUpgradeStartedEvent(ApplicationEvent): + """Application Upgrade Started event. All required parameters must be populated in order to send to Azure. :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -66,6 +68,7 @@ class ApplicationUpgradeStartEvent(ApplicationEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -78,12 +81,12 @@ class ApplicationUpgradeStartEvent(ApplicationEvent): 'failure_action': {'key': 'FailureAction', 'type': 'str'}, } - def __init__(self, *, event_instance_id: str, time_stamp, application_id: str, application_type_name: str, current_application_type_version: str, application_type_version: str, upgrade_type: str, rolling_upgrade_mode: str, failure_action: str, has_correlated_events: bool=None, **kwargs) -> None: - super(ApplicationUpgradeStartEvent, self).__init__(event_instance_id=event_instance_id, time_stamp=time_stamp, has_correlated_events=has_correlated_events, application_id=application_id, **kwargs) + def __init__(self, *, event_instance_id: str, time_stamp, application_id: str, application_type_name: str, current_application_type_version: str, application_type_version: str, upgrade_type: str, rolling_upgrade_mode: str, failure_action: str, category: str=None, has_correlated_events: bool=None, **kwargs) -> None: + super(ApplicationUpgradeStartedEvent, self).__init__(event_instance_id=event_instance_id, category=category, time_stamp=time_stamp, has_correlated_events=has_correlated_events, application_id=application_id, **kwargs) self.application_type_name = application_type_name self.current_application_type_version = current_application_type_version self.application_type_version = application_type_version self.upgrade_type = upgrade_type self.rolling_upgrade_mode = rolling_upgrade_mode self.failure_action = failure_action - self.kind = 'ApplicationUpgradeStart' + self.kind = 'ApplicationUpgradeStarted' diff --git a/azure-servicefabric/azure/servicefabric/models/auto_scaling_mechanism.py b/azure-servicefabric/azure/servicefabric/models/auto_scaling_mechanism.py new file mode 100644 index 000000000000..474bcd9d338b --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/auto_scaling_mechanism.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AutoScalingMechanism(Model): + """Describes the mechanism for performing auto scaling operation. Derived + classes will describe the actual mechanism. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AddRemoveReplicaScalingMechanism + + All required parameters must be populated in order to send to Azure. + + :param kind: Required. Constant filled by server. + :type kind: str + """ + + _validation = { + 'kind': {'required': True}, + } + + _attribute_map = { + 'kind': {'key': 'kind', 'type': 'str'}, + } + + _subtype_map = { + 'kind': {'AddRemoveReplica': 'AddRemoveReplicaScalingMechanism'} + } + + def __init__(self, **kwargs): + super(AutoScalingMechanism, self).__init__(**kwargs) + self.kind = None diff --git a/azure-servicefabric/azure/servicefabric/models/auto_scaling_mechanism_py3.py b/azure-servicefabric/azure/servicefabric/models/auto_scaling_mechanism_py3.py new file mode 100644 index 000000000000..69129cbaf346 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/auto_scaling_mechanism_py3.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AutoScalingMechanism(Model): + """Describes the mechanism for performing auto scaling operation. Derived + classes will describe the actual mechanism. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AddRemoveReplicaScalingMechanism + + All required parameters must be populated in order to send to Azure. + + :param kind: Required. Constant filled by server. + :type kind: str + """ + + _validation = { + 'kind': {'required': True}, + } + + _attribute_map = { + 'kind': {'key': 'kind', 'type': 'str'}, + } + + _subtype_map = { + 'kind': {'AddRemoveReplica': 'AddRemoveReplicaScalingMechanism'} + } + + def __init__(self, **kwargs) -> None: + super(AutoScalingMechanism, self).__init__(**kwargs) + self.kind = None diff --git a/azure-servicefabric/azure/servicefabric/models/auto_scaling_metric.py b/azure-servicefabric/azure/servicefabric/models/auto_scaling_metric.py new file mode 100644 index 000000000000..c100d3c82ae3 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/auto_scaling_metric.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AutoScalingMetric(Model): + """Describes the metric that is used for triggering auto scaling operation. + Derived classes will describe resources or metrics. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AutoScalingResourceMetric + + All required parameters must be populated in order to send to Azure. + + :param kind: Required. Constant filled by server. + :type kind: str + """ + + _validation = { + 'kind': {'required': True}, + } + + _attribute_map = { + 'kind': {'key': 'kind', 'type': 'str'}, + } + + _subtype_map = { + 'kind': {'Resource': 'AutoScalingResourceMetric'} + } + + def __init__(self, **kwargs): + super(AutoScalingMetric, self).__init__(**kwargs) + self.kind = None diff --git a/azure-servicefabric/azure/servicefabric/models/auto_scaling_metric_py3.py b/azure-servicefabric/azure/servicefabric/models/auto_scaling_metric_py3.py new file mode 100644 index 000000000000..dd68e4e3447c --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/auto_scaling_metric_py3.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AutoScalingMetric(Model): + """Describes the metric that is used for triggering auto scaling operation. + Derived classes will describe resources or metrics. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AutoScalingResourceMetric + + All required parameters must be populated in order to send to Azure. + + :param kind: Required. Constant filled by server. + :type kind: str + """ + + _validation = { + 'kind': {'required': True}, + } + + _attribute_map = { + 'kind': {'key': 'kind', 'type': 'str'}, + } + + _subtype_map = { + 'kind': {'Resource': 'AutoScalingResourceMetric'} + } + + def __init__(self, **kwargs) -> None: + super(AutoScalingMetric, self).__init__(**kwargs) + self.kind = None diff --git a/azure-servicefabric/azure/servicefabric/models/auto_scaling_policy.py b/azure-servicefabric/azure/servicefabric/models/auto_scaling_policy.py new file mode 100644 index 000000000000..764f7908ef8e --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/auto_scaling_policy.py @@ -0,0 +1,46 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AutoScalingPolicy(Model): + """Describes the auto scaling policy. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The name of the auto scaling policy. + :type name: str + :param trigger: Required. Determines when auto scaling operation will be + invoked. + :type trigger: ~azure.servicefabric.models.AutoScalingTrigger + :param mechanism: Required. The mechanism that is used to scale when auto + scaling operation is invoked. + :type mechanism: ~azure.servicefabric.models.AutoScalingMechanism + """ + + _validation = { + 'name': {'required': True}, + 'trigger': {'required': True}, + 'mechanism': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'trigger': {'key': 'trigger', 'type': 'AutoScalingTrigger'}, + 'mechanism': {'key': 'mechanism', 'type': 'AutoScalingMechanism'}, + } + + def __init__(self, **kwargs): + super(AutoScalingPolicy, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.trigger = kwargs.get('trigger', None) + self.mechanism = kwargs.get('mechanism', None) diff --git a/azure-servicefabric/azure/servicefabric/models/auto_scaling_policy_py3.py b/azure-servicefabric/azure/servicefabric/models/auto_scaling_policy_py3.py new file mode 100644 index 000000000000..292c0fd50488 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/auto_scaling_policy_py3.py @@ -0,0 +1,46 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AutoScalingPolicy(Model): + """Describes the auto scaling policy. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The name of the auto scaling policy. + :type name: str + :param trigger: Required. Determines when auto scaling operation will be + invoked. + :type trigger: ~azure.servicefabric.models.AutoScalingTrigger + :param mechanism: Required. The mechanism that is used to scale when auto + scaling operation is invoked. + :type mechanism: ~azure.servicefabric.models.AutoScalingMechanism + """ + + _validation = { + 'name': {'required': True}, + 'trigger': {'required': True}, + 'mechanism': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'trigger': {'key': 'trigger', 'type': 'AutoScalingTrigger'}, + 'mechanism': {'key': 'mechanism', 'type': 'AutoScalingMechanism'}, + } + + def __init__(self, *, name: str, trigger, mechanism, **kwargs) -> None: + super(AutoScalingPolicy, self).__init__(**kwargs) + self.name = name + self.trigger = trigger + self.mechanism = mechanism diff --git a/azure-servicefabric/azure/servicefabric/models/auto_scaling_resource_metric.py b/azure-servicefabric/azure/servicefabric/models/auto_scaling_resource_metric.py new file mode 100644 index 000000000000..f853bf858c76 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/auto_scaling_resource_metric.py @@ -0,0 +1,41 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .auto_scaling_metric import AutoScalingMetric + + +class AutoScalingResourceMetric(AutoScalingMetric): + """Describes the resource that is used for triggering auto scaling. + + All required parameters must be populated in order to send to Azure. + + :param kind: Required. Constant filled by server. + :type kind: str + :param name: Required. Name of the resource. Possible values include: + 'cpu', 'memoryInGB' + :type name: str or + ~azure.servicefabric.models.AutoScalingResourceMetricName + """ + + _validation = { + 'kind': {'required': True}, + 'name': {'required': True}, + } + + _attribute_map = { + 'kind': {'key': 'kind', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AutoScalingResourceMetric, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.kind = 'Resource' diff --git a/azure-servicefabric/azure/servicefabric/models/auto_scaling_resource_metric_py3.py b/azure-servicefabric/azure/servicefabric/models/auto_scaling_resource_metric_py3.py new file mode 100644 index 000000000000..ad6ea3fab5c5 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/auto_scaling_resource_metric_py3.py @@ -0,0 +1,41 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .auto_scaling_metric_py3 import AutoScalingMetric + + +class AutoScalingResourceMetric(AutoScalingMetric): + """Describes the resource that is used for triggering auto scaling. + + All required parameters must be populated in order to send to Azure. + + :param kind: Required. Constant filled by server. + :type kind: str + :param name: Required. Name of the resource. Possible values include: + 'cpu', 'memoryInGB' + :type name: str or + ~azure.servicefabric.models.AutoScalingResourceMetricName + """ + + _validation = { + 'kind': {'required': True}, + 'name': {'required': True}, + } + + _attribute_map = { + 'kind': {'key': 'kind', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + } + + def __init__(self, *, name, **kwargs) -> None: + super(AutoScalingResourceMetric, self).__init__(**kwargs) + self.name = name + self.kind = 'Resource' diff --git a/azure-servicefabric/azure/servicefabric/models/auto_scaling_trigger.py b/azure-servicefabric/azure/servicefabric/models/auto_scaling_trigger.py new file mode 100644 index 000000000000..b3754545a214 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/auto_scaling_trigger.py @@ -0,0 +1,41 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AutoScalingTrigger(Model): + """Describes the trigger for performing auto scaling operation. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AverageLoadScalingTrigger + + All required parameters must be populated in order to send to Azure. + + :param kind: Required. Constant filled by server. + :type kind: str + """ + + _validation = { + 'kind': {'required': True}, + } + + _attribute_map = { + 'kind': {'key': 'kind', 'type': 'str'}, + } + + _subtype_map = { + 'kind': {'AverageLoad': 'AverageLoadScalingTrigger'} + } + + def __init__(self, **kwargs): + super(AutoScalingTrigger, self).__init__(**kwargs) + self.kind = None diff --git a/azure-servicefabric/azure/servicefabric/models/auto_scaling_trigger_py3.py b/azure-servicefabric/azure/servicefabric/models/auto_scaling_trigger_py3.py new file mode 100644 index 000000000000..cbf43355dbd0 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/auto_scaling_trigger_py3.py @@ -0,0 +1,41 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AutoScalingTrigger(Model): + """Describes the trigger for performing auto scaling operation. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AverageLoadScalingTrigger + + All required parameters must be populated in order to send to Azure. + + :param kind: Required. Constant filled by server. + :type kind: str + """ + + _validation = { + 'kind': {'required': True}, + } + + _attribute_map = { + 'kind': {'key': 'kind', 'type': 'str'}, + } + + _subtype_map = { + 'kind': {'AverageLoad': 'AverageLoadScalingTrigger'} + } + + def __init__(self, **kwargs) -> None: + super(AutoScalingTrigger, self).__init__(**kwargs) + self.kind = None diff --git a/azure-servicefabric/azure/servicefabric/models/average_load_scaling_trigger.py b/azure-servicefabric/azure/servicefabric/models/average_load_scaling_trigger.py new file mode 100644 index 000000000000..975597bb960d --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/average_load_scaling_trigger.py @@ -0,0 +1,58 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .auto_scaling_trigger import AutoScalingTrigger + + +class AverageLoadScalingTrigger(AutoScalingTrigger): + """Describes the average load trigger used for auto scaling. + + All required parameters must be populated in order to send to Azure. + + :param kind: Required. Constant filled by server. + :type kind: str + :param metric: Required. Description of the metric that is used for + scaling. + :type metric: ~azure.servicefabric.models.AutoScalingMetric + :param lower_load_threshold: Required. Lower load threshold (if average + load is below this threshold, service will scale down). + :type lower_load_threshold: float + :param upper_load_threshold: Required. Upper load threshold (if average + load is above this threshold, service will scale up). + :type upper_load_threshold: float + :param scale_interval_in_seconds: Required. Scale interval that indicates + how often will this trigger be checked. + :type scale_interval_in_seconds: int + """ + + _validation = { + 'kind': {'required': True}, + 'metric': {'required': True}, + 'lower_load_threshold': {'required': True}, + 'upper_load_threshold': {'required': True}, + 'scale_interval_in_seconds': {'required': True, 'minimum': 60}, + } + + _attribute_map = { + 'kind': {'key': 'kind', 'type': 'str'}, + 'metric': {'key': 'metric', 'type': 'AutoScalingMetric'}, + 'lower_load_threshold': {'key': 'lowerLoadThreshold', 'type': 'float'}, + 'upper_load_threshold': {'key': 'upperLoadThreshold', 'type': 'float'}, + 'scale_interval_in_seconds': {'key': 'scaleIntervalInSeconds', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(AverageLoadScalingTrigger, self).__init__(**kwargs) + self.metric = kwargs.get('metric', None) + self.lower_load_threshold = kwargs.get('lower_load_threshold', None) + self.upper_load_threshold = kwargs.get('upper_load_threshold', None) + self.scale_interval_in_seconds = kwargs.get('scale_interval_in_seconds', None) + self.kind = 'AverageLoad' diff --git a/azure-servicefabric/azure/servicefabric/models/average_load_scaling_trigger_py3.py b/azure-servicefabric/azure/servicefabric/models/average_load_scaling_trigger_py3.py new file mode 100644 index 000000000000..b6a20ae17a5c --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/average_load_scaling_trigger_py3.py @@ -0,0 +1,58 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .auto_scaling_trigger_py3 import AutoScalingTrigger + + +class AverageLoadScalingTrigger(AutoScalingTrigger): + """Describes the average load trigger used for auto scaling. + + All required parameters must be populated in order to send to Azure. + + :param kind: Required. Constant filled by server. + :type kind: str + :param metric: Required. Description of the metric that is used for + scaling. + :type metric: ~azure.servicefabric.models.AutoScalingMetric + :param lower_load_threshold: Required. Lower load threshold (if average + load is below this threshold, service will scale down). + :type lower_load_threshold: float + :param upper_load_threshold: Required. Upper load threshold (if average + load is above this threshold, service will scale up). + :type upper_load_threshold: float + :param scale_interval_in_seconds: Required. Scale interval that indicates + how often will this trigger be checked. + :type scale_interval_in_seconds: int + """ + + _validation = { + 'kind': {'required': True}, + 'metric': {'required': True}, + 'lower_load_threshold': {'required': True}, + 'upper_load_threshold': {'required': True}, + 'scale_interval_in_seconds': {'required': True, 'minimum': 60}, + } + + _attribute_map = { + 'kind': {'key': 'kind', 'type': 'str'}, + 'metric': {'key': 'metric', 'type': 'AutoScalingMetric'}, + 'lower_load_threshold': {'key': 'lowerLoadThreshold', 'type': 'float'}, + 'upper_load_threshold': {'key': 'upperLoadThreshold', 'type': 'float'}, + 'scale_interval_in_seconds': {'key': 'scaleIntervalInSeconds', 'type': 'int'}, + } + + def __init__(self, *, metric, lower_load_threshold: float, upper_load_threshold: float, scale_interval_in_seconds: int, **kwargs) -> None: + super(AverageLoadScalingTrigger, self).__init__(**kwargs) + self.metric = metric + self.lower_load_threshold = lower_load_threshold + self.upper_load_threshold = upper_load_threshold + self.scale_interval_in_seconds = scale_interval_in_seconds + self.kind = 'AverageLoad' diff --git a/azure-servicefabric/azure/servicefabric/models/azure_internal_monitoring_pipeline_sink_description.py b/azure-servicefabric/azure/servicefabric/models/azure_internal_monitoring_pipeline_sink_description.py new file mode 100644 index 000000000000..07ac7ed6db19 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/azure_internal_monitoring_pipeline_sink_description.py @@ -0,0 +1,63 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .diagnostics_sink_properties import DiagnosticsSinkProperties + + +class AzureInternalMonitoringPipelineSinkDescription(DiagnosticsSinkProperties): + """Diagnostics settings for Geneva. + + All required parameters must be populated in order to send to Azure. + + :param name: Name of the sink. This value is referenced by + DiagnosticsReferenceDescription + :type name: str + :param description: A description of the sink. + :type description: str + :param kind: Required. Constant filled by server. + :type kind: str + :param account_name: Azure Internal monitoring pipeline account. + :type account_name: str + :param namespace: Azure Internal monitoring pipeline account namespace. + :type namespace: str + :param ma_config_url: Azure Internal monitoring agent configuration. + :type ma_config_url: str + :param fluentd_config_url: Azure Internal monitoring agent fluentd + configuration. + :type fluentd_config_url: object + :param auto_key_config_url: Azure Internal monitoring pipeline autokey + associated with the certificate. + :type auto_key_config_url: str + """ + + _validation = { + 'kind': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'account_name': {'key': 'accountName', 'type': 'str'}, + 'namespace': {'key': 'namespace', 'type': 'str'}, + 'ma_config_url': {'key': 'maConfigUrl', 'type': 'str'}, + 'fluentd_config_url': {'key': 'fluentdConfigUrl', 'type': 'object'}, + 'auto_key_config_url': {'key': 'autoKeyConfigUrl', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AzureInternalMonitoringPipelineSinkDescription, self).__init__(**kwargs) + self.account_name = kwargs.get('account_name', None) + self.namespace = kwargs.get('namespace', None) + self.ma_config_url = kwargs.get('ma_config_url', None) + self.fluentd_config_url = kwargs.get('fluentd_config_url', None) + self.auto_key_config_url = kwargs.get('auto_key_config_url', None) + self.kind = 'AzureInternalMonitoringPipeline' diff --git a/azure-servicefabric/azure/servicefabric/models/azure_internal_monitoring_pipeline_sink_description_py3.py b/azure-servicefabric/azure/servicefabric/models/azure_internal_monitoring_pipeline_sink_description_py3.py new file mode 100644 index 000000000000..f4771409e03a --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/azure_internal_monitoring_pipeline_sink_description_py3.py @@ -0,0 +1,63 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .diagnostics_sink_properties_py3 import DiagnosticsSinkProperties + + +class AzureInternalMonitoringPipelineSinkDescription(DiagnosticsSinkProperties): + """Diagnostics settings for Geneva. + + All required parameters must be populated in order to send to Azure. + + :param name: Name of the sink. This value is referenced by + DiagnosticsReferenceDescription + :type name: str + :param description: A description of the sink. + :type description: str + :param kind: Required. Constant filled by server. + :type kind: str + :param account_name: Azure Internal monitoring pipeline account. + :type account_name: str + :param namespace: Azure Internal monitoring pipeline account namespace. + :type namespace: str + :param ma_config_url: Azure Internal monitoring agent configuration. + :type ma_config_url: str + :param fluentd_config_url: Azure Internal monitoring agent fluentd + configuration. + :type fluentd_config_url: object + :param auto_key_config_url: Azure Internal monitoring pipeline autokey + associated with the certificate. + :type auto_key_config_url: str + """ + + _validation = { + 'kind': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'kind': {'key': 'kind', 'type': 'str'}, + 'account_name': {'key': 'accountName', 'type': 'str'}, + 'namespace': {'key': 'namespace', 'type': 'str'}, + 'ma_config_url': {'key': 'maConfigUrl', 'type': 'str'}, + 'fluentd_config_url': {'key': 'fluentdConfigUrl', 'type': 'object'}, + 'auto_key_config_url': {'key': 'autoKeyConfigUrl', 'type': 'str'}, + } + + def __init__(self, *, name: str=None, description: str=None, account_name: str=None, namespace: str=None, ma_config_url: str=None, fluentd_config_url=None, auto_key_config_url: str=None, **kwargs) -> None: + super(AzureInternalMonitoringPipelineSinkDescription, self).__init__(name=name, description=description, **kwargs) + self.account_name = account_name + self.namespace = namespace + self.ma_config_url = ma_config_url + self.fluentd_config_url = fluentd_config_url + self.auto_key_config_url = auto_key_config_url + self.kind = 'AzureInternalMonitoringPipeline' diff --git a/azure-servicefabric/azure/servicefabric/models/backup_epoch.py b/azure-servicefabric/azure/servicefabric/models/backup_epoch.py deleted file mode 100644 index 3598ddb162eb..000000000000 --- a/azure-servicefabric/azure/servicefabric/models/backup_epoch.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class BackupEpoch(Model): - """An Epoch is a configuration number for the partition as a whole. When the - configuration of the replica set changes, for example when the Primary - replica changes, the operations that are replicated from the new Primary - replica are said to be a new Epoch from the ones which were sent by the old - Primary replica. - - :param configuration_number: The current configuration number of this - Epoch. The configuration number is an increasing value that is updated - whenever the configuration of this replica set changes. - :type configuration_number: str - :param data_loss_number: The current dataloss number of this Epoch. The - data loss number property is an increasing value which is updated whenever - data loss is suspected, as when loss of a quorum of replicas in the - replica set that includes the Primary replica. - :type data_loss_number: str - """ - - _attribute_map = { - 'configuration_number': {'key': 'ConfigurationNumber', 'type': 'str'}, - 'data_loss_number': {'key': 'DataLossNumber', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(BackupEpoch, self).__init__(**kwargs) - self.configuration_number = kwargs.get('configuration_number', None) - self.data_loss_number = kwargs.get('data_loss_number', None) diff --git a/azure-servicefabric/azure/servicefabric/models/backup_epoch_py3.py b/azure-servicefabric/azure/servicefabric/models/backup_epoch_py3.py deleted file mode 100644 index 9747dea89099..000000000000 --- a/azure-servicefabric/azure/servicefabric/models/backup_epoch_py3.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class BackupEpoch(Model): - """An Epoch is a configuration number for the partition as a whole. When the - configuration of the replica set changes, for example when the Primary - replica changes, the operations that are replicated from the new Primary - replica are said to be a new Epoch from the ones which were sent by the old - Primary replica. - - :param configuration_number: The current configuration number of this - Epoch. The configuration number is an increasing value that is updated - whenever the configuration of this replica set changes. - :type configuration_number: str - :param data_loss_number: The current dataloss number of this Epoch. The - data loss number property is an increasing value which is updated whenever - data loss is suspected, as when loss of a quorum of replicas in the - replica set that includes the Primary replica. - :type data_loss_number: str - """ - - _attribute_map = { - 'configuration_number': {'key': 'ConfigurationNumber', 'type': 'str'}, - 'data_loss_number': {'key': 'DataLossNumber', 'type': 'str'}, - } - - def __init__(self, *, configuration_number: str=None, data_loss_number: str=None, **kwargs) -> None: - super(BackupEpoch, self).__init__(**kwargs) - self.configuration_number = configuration_number - self.data_loss_number = data_loss_number diff --git a/azure-servicefabric/azure/servicefabric/models/backup_info.py b/azure-servicefabric/azure/servicefabric/models/backup_info.py index 239b95f95913..ca205e541a4d 100644 --- a/azure-servicefabric/azure/servicefabric/models/backup_info.py +++ b/azure-servicefabric/azure/servicefabric/models/backup_info.py @@ -39,11 +39,14 @@ class BackupInfo(Model): :type backup_type: str or ~azure.servicefabric.models.BackupType :param epoch_of_last_backup_record: Epoch of the last record in this backup. - :type epoch_of_last_backup_record: ~azure.servicefabric.models.BackupEpoch + :type epoch_of_last_backup_record: ~azure.servicefabric.models.Epoch :param lsn_of_last_backup_record: LSN of the last record in this backup. :type lsn_of_last_backup_record: str :param creation_time_utc: The date time when this backup was taken. :type creation_time_utc: datetime + :param service_manifest_version: Manifest Version of the service this + partition backup belongs to. + :type service_manifest_version: str :param failure_error: Denotes the failure encountered in getting backup point information. :type failure_error: ~azure.servicefabric.models.FabricErrorError @@ -57,9 +60,10 @@ class BackupInfo(Model): 'partition_information': {'key': 'PartitionInformation', 'type': 'PartitionInformation'}, 'backup_location': {'key': 'BackupLocation', 'type': 'str'}, 'backup_type': {'key': 'BackupType', 'type': 'str'}, - 'epoch_of_last_backup_record': {'key': 'EpochOfLastBackupRecord', 'type': 'BackupEpoch'}, + 'epoch_of_last_backup_record': {'key': 'EpochOfLastBackupRecord', 'type': 'Epoch'}, 'lsn_of_last_backup_record': {'key': 'LsnOfLastBackupRecord', 'type': 'str'}, 'creation_time_utc': {'key': 'CreationTimeUtc', 'type': 'iso-8601'}, + 'service_manifest_version': {'key': 'ServiceManifestVersion', 'type': 'str'}, 'failure_error': {'key': 'FailureError', 'type': 'FabricErrorError'}, } @@ -75,4 +79,5 @@ def __init__(self, **kwargs): self.epoch_of_last_backup_record = kwargs.get('epoch_of_last_backup_record', None) self.lsn_of_last_backup_record = kwargs.get('lsn_of_last_backup_record', None) self.creation_time_utc = kwargs.get('creation_time_utc', None) + self.service_manifest_version = kwargs.get('service_manifest_version', None) self.failure_error = kwargs.get('failure_error', None) diff --git a/azure-servicefabric/azure/servicefabric/models/backup_info_py3.py b/azure-servicefabric/azure/servicefabric/models/backup_info_py3.py index 8fed63e3ab23..61fdc445fe4b 100644 --- a/azure-servicefabric/azure/servicefabric/models/backup_info_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/backup_info_py3.py @@ -39,11 +39,14 @@ class BackupInfo(Model): :type backup_type: str or ~azure.servicefabric.models.BackupType :param epoch_of_last_backup_record: Epoch of the last record in this backup. - :type epoch_of_last_backup_record: ~azure.servicefabric.models.BackupEpoch + :type epoch_of_last_backup_record: ~azure.servicefabric.models.Epoch :param lsn_of_last_backup_record: LSN of the last record in this backup. :type lsn_of_last_backup_record: str :param creation_time_utc: The date time when this backup was taken. :type creation_time_utc: datetime + :param service_manifest_version: Manifest Version of the service this + partition backup belongs to. + :type service_manifest_version: str :param failure_error: Denotes the failure encountered in getting backup point information. :type failure_error: ~azure.servicefabric.models.FabricErrorError @@ -57,13 +60,14 @@ class BackupInfo(Model): 'partition_information': {'key': 'PartitionInformation', 'type': 'PartitionInformation'}, 'backup_location': {'key': 'BackupLocation', 'type': 'str'}, 'backup_type': {'key': 'BackupType', 'type': 'str'}, - 'epoch_of_last_backup_record': {'key': 'EpochOfLastBackupRecord', 'type': 'BackupEpoch'}, + 'epoch_of_last_backup_record': {'key': 'EpochOfLastBackupRecord', 'type': 'Epoch'}, 'lsn_of_last_backup_record': {'key': 'LsnOfLastBackupRecord', 'type': 'str'}, 'creation_time_utc': {'key': 'CreationTimeUtc', 'type': 'iso-8601'}, + 'service_manifest_version': {'key': 'ServiceManifestVersion', 'type': 'str'}, 'failure_error': {'key': 'FailureError', 'type': 'FabricErrorError'}, } - def __init__(self, *, backup_id: str=None, backup_chain_id: str=None, application_name: str=None, service_name: str=None, partition_information=None, backup_location: str=None, backup_type=None, epoch_of_last_backup_record=None, lsn_of_last_backup_record: str=None, creation_time_utc=None, failure_error=None, **kwargs) -> None: + def __init__(self, *, backup_id: str=None, backup_chain_id: str=None, application_name: str=None, service_name: str=None, partition_information=None, backup_location: str=None, backup_type=None, epoch_of_last_backup_record=None, lsn_of_last_backup_record: str=None, creation_time_utc=None, service_manifest_version: str=None, failure_error=None, **kwargs) -> None: super(BackupInfo, self).__init__(**kwargs) self.backup_id = backup_id self.backup_chain_id = backup_chain_id @@ -75,4 +79,5 @@ def __init__(self, *, backup_id: str=None, backup_chain_id: str=None, applicatio self.epoch_of_last_backup_record = epoch_of_last_backup_record self.lsn_of_last_backup_record = lsn_of_last_backup_record self.creation_time_utc = creation_time_utc + self.service_manifest_version = service_manifest_version self.failure_error = failure_error diff --git a/azure-servicefabric/azure/servicefabric/models/backup_policy_description.py b/azure-servicefabric/azure/servicefabric/models/backup_policy_description.py index 09fd9f04d97e..d87ea5769b13 100644 --- a/azure-servicefabric/azure/servicefabric/models/backup_policy_description.py +++ b/azure-servicefabric/azure/servicefabric/models/backup_policy_description.py @@ -36,6 +36,10 @@ class BackupPolicyDescription(Model): :param storage: Required. Describes the details of backup storage where to store the periodic backups. :type storage: ~azure.servicefabric.models.BackupStorageDescription + :param retention_policy: Describes the policy to retain backups in + storage. + :type retention_policy: + ~azure.servicefabric.models.RetentionPolicyDescription """ _validation = { @@ -52,6 +56,7 @@ class BackupPolicyDescription(Model): 'max_incremental_backups': {'key': 'MaxIncrementalBackups', 'type': 'int'}, 'schedule': {'key': 'Schedule', 'type': 'BackupScheduleDescription'}, 'storage': {'key': 'Storage', 'type': 'BackupStorageDescription'}, + 'retention_policy': {'key': 'RetentionPolicy', 'type': 'RetentionPolicyDescription'}, } def __init__(self, **kwargs): @@ -61,3 +66,4 @@ def __init__(self, **kwargs): self.max_incremental_backups = kwargs.get('max_incremental_backups', None) self.schedule = kwargs.get('schedule', None) self.storage = kwargs.get('storage', None) + self.retention_policy = kwargs.get('retention_policy', None) diff --git a/azure-servicefabric/azure/servicefabric/models/backup_policy_description_py3.py b/azure-servicefabric/azure/servicefabric/models/backup_policy_description_py3.py index a600851e4faf..5890d7963370 100644 --- a/azure-servicefabric/azure/servicefabric/models/backup_policy_description_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/backup_policy_description_py3.py @@ -36,6 +36,10 @@ class BackupPolicyDescription(Model): :param storage: Required. Describes the details of backup storage where to store the periodic backups. :type storage: ~azure.servicefabric.models.BackupStorageDescription + :param retention_policy: Describes the policy to retain backups in + storage. + :type retention_policy: + ~azure.servicefabric.models.RetentionPolicyDescription """ _validation = { @@ -52,12 +56,14 @@ class BackupPolicyDescription(Model): 'max_incremental_backups': {'key': 'MaxIncrementalBackups', 'type': 'int'}, 'schedule': {'key': 'Schedule', 'type': 'BackupScheduleDescription'}, 'storage': {'key': 'Storage', 'type': 'BackupStorageDescription'}, + 'retention_policy': {'key': 'RetentionPolicy', 'type': 'RetentionPolicyDescription'}, } - def __init__(self, *, name: str, auto_restore_on_data_loss: bool, max_incremental_backups: int, schedule, storage, **kwargs) -> None: + def __init__(self, *, name: str, auto_restore_on_data_loss: bool, max_incremental_backups: int, schedule, storage, retention_policy=None, **kwargs) -> None: super(BackupPolicyDescription, self).__init__(**kwargs) self.name = name self.auto_restore_on_data_loss = auto_restore_on_data_loss self.max_incremental_backups = max_incremental_backups self.schedule = schedule self.storage = storage + self.retention_policy = retention_policy diff --git a/azure-servicefabric/azure/servicefabric/models/backup_progress_info.py b/azure-servicefabric/azure/servicefabric/models/backup_progress_info.py index 2fef751c42b9..785b02ff216e 100644 --- a/azure-servicefabric/azure/servicefabric/models/backup_progress_info.py +++ b/azure-servicefabric/azure/servicefabric/models/backup_progress_info.py @@ -29,7 +29,7 @@ class BackupProgressInfo(Model): :type backup_location: str :param epoch_of_last_backup_record: Specifies the epoch of the last record included in backup. - :type epoch_of_last_backup_record: ~azure.servicefabric.models.BackupEpoch + :type epoch_of_last_backup_record: ~azure.servicefabric.models.Epoch :param lsn_of_last_backup_record: The LSN of last record included in backup. :type lsn_of_last_backup_record: str @@ -43,7 +43,7 @@ class BackupProgressInfo(Model): 'time_stamp_utc': {'key': 'TimeStampUtc', 'type': 'iso-8601'}, 'backup_id': {'key': 'BackupId', 'type': 'str'}, 'backup_location': {'key': 'BackupLocation', 'type': 'str'}, - 'epoch_of_last_backup_record': {'key': 'EpochOfLastBackupRecord', 'type': 'BackupEpoch'}, + 'epoch_of_last_backup_record': {'key': 'EpochOfLastBackupRecord', 'type': 'Epoch'}, 'lsn_of_last_backup_record': {'key': 'LsnOfLastBackupRecord', 'type': 'str'}, 'failure_error': {'key': 'FailureError', 'type': 'FabricErrorError'}, } diff --git a/azure-servicefabric/azure/servicefabric/models/backup_progress_info_py3.py b/azure-servicefabric/azure/servicefabric/models/backup_progress_info_py3.py index 71ae6cf03346..c00ce62e14d0 100644 --- a/azure-servicefabric/azure/servicefabric/models/backup_progress_info_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/backup_progress_info_py3.py @@ -29,7 +29,7 @@ class BackupProgressInfo(Model): :type backup_location: str :param epoch_of_last_backup_record: Specifies the epoch of the last record included in backup. - :type epoch_of_last_backup_record: ~azure.servicefabric.models.BackupEpoch + :type epoch_of_last_backup_record: ~azure.servicefabric.models.Epoch :param lsn_of_last_backup_record: The LSN of last record included in backup. :type lsn_of_last_backup_record: str @@ -43,7 +43,7 @@ class BackupProgressInfo(Model): 'time_stamp_utc': {'key': 'TimeStampUtc', 'type': 'iso-8601'}, 'backup_id': {'key': 'BackupId', 'type': 'str'}, 'backup_location': {'key': 'BackupLocation', 'type': 'str'}, - 'epoch_of_last_backup_record': {'key': 'EpochOfLastBackupRecord', 'type': 'BackupEpoch'}, + 'epoch_of_last_backup_record': {'key': 'EpochOfLastBackupRecord', 'type': 'Epoch'}, 'lsn_of_last_backup_record': {'key': 'LsnOfLastBackupRecord', 'type': 'str'}, 'failure_error': {'key': 'FailureError', 'type': 'FabricErrorError'}, } diff --git a/azure-servicefabric/azure/servicefabric/models/basic_retention_policy_description.py b/azure-servicefabric/azure/servicefabric/models/basic_retention_policy_description.py new file mode 100644 index 000000000000..653dec495c43 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/basic_retention_policy_description.py @@ -0,0 +1,49 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .retention_policy_description import RetentionPolicyDescription + + +class BasicRetentionPolicyDescription(RetentionPolicyDescription): + """Describes basic retention policy. + + All required parameters must be populated in order to send to Azure. + + :param retention_policy_type: Required. Constant filled by server. + :type retention_policy_type: str + :param retention_duration: Required. It is the minimum duration for which + a backup created, will remain stored in the storage and might get deleted + after that span of time. It should be specified in ISO8601 format. + :type retention_duration: timedelta + :param minimum_number_of_backups: It is the minimum number of backups to + be retained at any point of time. If specified with a non zero value, + backups will not be deleted even if the backups have gone past retention + duration and have number of backups less than or equal to it. + :type minimum_number_of_backups: int + """ + + _validation = { + 'retention_policy_type': {'required': True}, + 'retention_duration': {'required': True}, + 'minimum_number_of_backups': {'minimum': 0}, + } + + _attribute_map = { + 'retention_policy_type': {'key': 'RetentionPolicyType', 'type': 'str'}, + 'retention_duration': {'key': 'RetentionDuration', 'type': 'duration'}, + 'minimum_number_of_backups': {'key': 'MinimumNumberOfBackups', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(BasicRetentionPolicyDescription, self).__init__(**kwargs) + self.retention_duration = kwargs.get('retention_duration', None) + self.minimum_number_of_backups = kwargs.get('minimum_number_of_backups', None) + self.retention_policy_type = 'Basic' diff --git a/azure-servicefabric/azure/servicefabric/models/basic_retention_policy_description_py3.py b/azure-servicefabric/azure/servicefabric/models/basic_retention_policy_description_py3.py new file mode 100644 index 000000000000..5abb36a82dd0 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/basic_retention_policy_description_py3.py @@ -0,0 +1,49 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .retention_policy_description_py3 import RetentionPolicyDescription + + +class BasicRetentionPolicyDescription(RetentionPolicyDescription): + """Describes basic retention policy. + + All required parameters must be populated in order to send to Azure. + + :param retention_policy_type: Required. Constant filled by server. + :type retention_policy_type: str + :param retention_duration: Required. It is the minimum duration for which + a backup created, will remain stored in the storage and might get deleted + after that span of time. It should be specified in ISO8601 format. + :type retention_duration: timedelta + :param minimum_number_of_backups: It is the minimum number of backups to + be retained at any point of time. If specified with a non zero value, + backups will not be deleted even if the backups have gone past retention + duration and have number of backups less than or equal to it. + :type minimum_number_of_backups: int + """ + + _validation = { + 'retention_policy_type': {'required': True}, + 'retention_duration': {'required': True}, + 'minimum_number_of_backups': {'minimum': 0}, + } + + _attribute_map = { + 'retention_policy_type': {'key': 'RetentionPolicyType', 'type': 'str'}, + 'retention_duration': {'key': 'RetentionDuration', 'type': 'duration'}, + 'minimum_number_of_backups': {'key': 'MinimumNumberOfBackups', 'type': 'int'}, + } + + def __init__(self, *, retention_duration, minimum_number_of_backups: int=None, **kwargs) -> None: + super(BasicRetentionPolicyDescription, self).__init__(**kwargs) + self.retention_duration = retention_duration + self.minimum_number_of_backups = minimum_number_of_backups + self.retention_policy_type = 'Basic' diff --git a/azure-servicefabric/azure/servicefabric/models/chaos_restart_code_package_fault_scheduled_event.py b/azure-servicefabric/azure/servicefabric/models/chaos_code_package_restart_scheduled_event.py similarity index 92% rename from azure-servicefabric/azure/servicefabric/models/chaos_restart_code_package_fault_scheduled_event.py rename to azure-servicefabric/azure/servicefabric/models/chaos_code_package_restart_scheduled_event.py index 0ec33de8b0d6..7b4396d125e1 100644 --- a/azure-servicefabric/azure/servicefabric/models/chaos_restart_code_package_fault_scheduled_event.py +++ b/azure-servicefabric/azure/servicefabric/models/chaos_code_package_restart_scheduled_event.py @@ -12,7 +12,7 @@ from .application_event import ApplicationEvent -class ChaosRestartCodePackageFaultScheduledEvent(ApplicationEvent): +class ChaosCodePackageRestartScheduledEvent(ApplicationEvent): """Chaos Restart Code Package Fault Scheduled event. All required parameters must be populated in order to send to Azure. @@ -20,6 +20,8 @@ class ChaosRestartCodePackageFaultScheduledEvent(ApplicationEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -65,6 +67,7 @@ class ChaosRestartCodePackageFaultScheduledEvent(ApplicationEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -78,11 +81,11 @@ class ChaosRestartCodePackageFaultScheduledEvent(ApplicationEvent): } def __init__(self, **kwargs): - super(ChaosRestartCodePackageFaultScheduledEvent, self).__init__(**kwargs) + super(ChaosCodePackageRestartScheduledEvent, self).__init__(**kwargs) self.fault_group_id = kwargs.get('fault_group_id', None) self.fault_id = kwargs.get('fault_id', None) self.node_name = kwargs.get('node_name', None) self.service_manifest_name = kwargs.get('service_manifest_name', None) self.code_package_name = kwargs.get('code_package_name', None) self.service_package_activation_id = kwargs.get('service_package_activation_id', None) - self.kind = 'ChaosRestartCodePackageFaultScheduled' + self.kind = 'ChaosCodePackageRestartScheduled' diff --git a/azure-servicefabric/azure/servicefabric/models/chaos_restart_code_package_fault_scheduled_event_py3.py b/azure-servicefabric/azure/servicefabric/models/chaos_code_package_restart_scheduled_event_py3.py similarity index 87% rename from azure-servicefabric/azure/servicefabric/models/chaos_restart_code_package_fault_scheduled_event_py3.py rename to azure-servicefabric/azure/servicefabric/models/chaos_code_package_restart_scheduled_event_py3.py index 36376390d334..a9a809823688 100644 --- a/azure-servicefabric/azure/servicefabric/models/chaos_restart_code_package_fault_scheduled_event_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/chaos_code_package_restart_scheduled_event_py3.py @@ -12,7 +12,7 @@ from .application_event_py3 import ApplicationEvent -class ChaosRestartCodePackageFaultScheduledEvent(ApplicationEvent): +class ChaosCodePackageRestartScheduledEvent(ApplicationEvent): """Chaos Restart Code Package Fault Scheduled event. All required parameters must be populated in order to send to Azure. @@ -20,6 +20,8 @@ class ChaosRestartCodePackageFaultScheduledEvent(ApplicationEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -65,6 +67,7 @@ class ChaosRestartCodePackageFaultScheduledEvent(ApplicationEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -77,12 +80,12 @@ class ChaosRestartCodePackageFaultScheduledEvent(ApplicationEvent): 'service_package_activation_id': {'key': 'ServicePackageActivationId', 'type': 'str'}, } - def __init__(self, *, event_instance_id: str, time_stamp, application_id: str, fault_group_id: str, fault_id: str, node_name: str, service_manifest_name: str, code_package_name: str, service_package_activation_id: str, has_correlated_events: bool=None, **kwargs) -> None: - super(ChaosRestartCodePackageFaultScheduledEvent, self).__init__(event_instance_id=event_instance_id, time_stamp=time_stamp, has_correlated_events=has_correlated_events, application_id=application_id, **kwargs) + def __init__(self, *, event_instance_id: str, time_stamp, application_id: str, fault_group_id: str, fault_id: str, node_name: str, service_manifest_name: str, code_package_name: str, service_package_activation_id: str, category: str=None, has_correlated_events: bool=None, **kwargs) -> None: + super(ChaosCodePackageRestartScheduledEvent, self).__init__(event_instance_id=event_instance_id, category=category, time_stamp=time_stamp, has_correlated_events=has_correlated_events, application_id=application_id, **kwargs) self.fault_group_id = fault_group_id self.fault_id = fault_id self.node_name = node_name self.service_manifest_name = service_manifest_name self.code_package_name = code_package_name self.service_package_activation_id = service_package_activation_id - self.kind = 'ChaosRestartCodePackageFaultScheduled' + self.kind = 'ChaosCodePackageRestartScheduled' diff --git a/azure-servicefabric/azure/servicefabric/models/chaos_restart_node_fault_scheduled_event.py b/azure-servicefabric/azure/servicefabric/models/chaos_node_restart_scheduled_event.py similarity index 89% rename from azure-servicefabric/azure/servicefabric/models/chaos_restart_node_fault_scheduled_event.py rename to azure-servicefabric/azure/servicefabric/models/chaos_node_restart_scheduled_event.py index f29e8bfc63d4..4bbcde8fda65 100644 --- a/azure-servicefabric/azure/servicefabric/models/chaos_restart_node_fault_scheduled_event.py +++ b/azure-servicefabric/azure/servicefabric/models/chaos_node_restart_scheduled_event.py @@ -12,7 +12,7 @@ from .node_event import NodeEvent -class ChaosRestartNodeFaultScheduledEvent(NodeEvent): +class ChaosNodeRestartScheduledEvent(NodeEvent): """Chaos Restart Node Fault Scheduled event. All required parameters must be populated in order to send to Azure. @@ -20,6 +20,8 @@ class ChaosRestartNodeFaultScheduledEvent(NodeEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -49,6 +51,7 @@ class ChaosRestartNodeFaultScheduledEvent(NodeEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -59,8 +62,8 @@ class ChaosRestartNodeFaultScheduledEvent(NodeEvent): } def __init__(self, **kwargs): - super(ChaosRestartNodeFaultScheduledEvent, self).__init__(**kwargs) + super(ChaosNodeRestartScheduledEvent, self).__init__(**kwargs) self.node_instance_id = kwargs.get('node_instance_id', None) self.fault_group_id = kwargs.get('fault_group_id', None) self.fault_id = kwargs.get('fault_id', None) - self.kind = 'ChaosRestartNodeFaultScheduled' + self.kind = 'ChaosNodeRestartScheduled' diff --git a/azure-servicefabric/azure/servicefabric/models/chaos_restart_node_fault_scheduled_event_py3.py b/azure-servicefabric/azure/servicefabric/models/chaos_node_restart_scheduled_event_py3.py similarity index 82% rename from azure-servicefabric/azure/servicefabric/models/chaos_restart_node_fault_scheduled_event_py3.py rename to azure-servicefabric/azure/servicefabric/models/chaos_node_restart_scheduled_event_py3.py index 6022314b8b66..780e31f33f91 100644 --- a/azure-servicefabric/azure/servicefabric/models/chaos_restart_node_fault_scheduled_event_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/chaos_node_restart_scheduled_event_py3.py @@ -12,7 +12,7 @@ from .node_event_py3 import NodeEvent -class ChaosRestartNodeFaultScheduledEvent(NodeEvent): +class ChaosNodeRestartScheduledEvent(NodeEvent): """Chaos Restart Node Fault Scheduled event. All required parameters must be populated in order to send to Azure. @@ -20,6 +20,8 @@ class ChaosRestartNodeFaultScheduledEvent(NodeEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -49,6 +51,7 @@ class ChaosRestartNodeFaultScheduledEvent(NodeEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -58,9 +61,9 @@ class ChaosRestartNodeFaultScheduledEvent(NodeEvent): 'fault_id': {'key': 'FaultId', 'type': 'str'}, } - def __init__(self, *, event_instance_id: str, time_stamp, node_name: str, node_instance_id: int, fault_group_id: str, fault_id: str, has_correlated_events: bool=None, **kwargs) -> None: - super(ChaosRestartNodeFaultScheduledEvent, self).__init__(event_instance_id=event_instance_id, time_stamp=time_stamp, has_correlated_events=has_correlated_events, node_name=node_name, **kwargs) + def __init__(self, *, event_instance_id: str, time_stamp, node_name: str, node_instance_id: int, fault_group_id: str, fault_id: str, category: str=None, has_correlated_events: bool=None, **kwargs) -> None: + super(ChaosNodeRestartScheduledEvent, self).__init__(event_instance_id=event_instance_id, category=category, time_stamp=time_stamp, has_correlated_events=has_correlated_events, node_name=node_name, **kwargs) self.node_instance_id = node_instance_id self.fault_group_id = fault_group_id self.fault_id = fault_id - self.kind = 'ChaosRestartNodeFaultScheduled' + self.kind = 'ChaosNodeRestartScheduled' diff --git a/azure-servicefabric/azure/servicefabric/models/chaos_move_primary_fault_scheduled_event.py b/azure-servicefabric/azure/servicefabric/models/chaos_partition_primary_move_scheduled_event.py similarity index 90% rename from azure-servicefabric/azure/servicefabric/models/chaos_move_primary_fault_scheduled_event.py rename to azure-servicefabric/azure/servicefabric/models/chaos_partition_primary_move_scheduled_event.py index eb5675b3c490..2275bc00fd2d 100644 --- a/azure-servicefabric/azure/servicefabric/models/chaos_move_primary_fault_scheduled_event.py +++ b/azure-servicefabric/azure/servicefabric/models/chaos_partition_primary_move_scheduled_event.py @@ -12,7 +12,7 @@ from .partition_event import PartitionEvent -class ChaosMovePrimaryFaultScheduledEvent(PartitionEvent): +class ChaosPartitionPrimaryMoveScheduledEvent(PartitionEvent): """Chaos Move Primary Fault Scheduled event. All required parameters must be populated in order to send to Azure. @@ -20,6 +20,8 @@ class ChaosMovePrimaryFaultScheduledEvent(PartitionEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -59,6 +61,7 @@ class ChaosMovePrimaryFaultScheduledEvent(PartitionEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -71,10 +74,10 @@ class ChaosMovePrimaryFaultScheduledEvent(PartitionEvent): } def __init__(self, **kwargs): - super(ChaosMovePrimaryFaultScheduledEvent, self).__init__(**kwargs) + super(ChaosPartitionPrimaryMoveScheduledEvent, self).__init__(**kwargs) self.fault_group_id = kwargs.get('fault_group_id', None) self.fault_id = kwargs.get('fault_id', None) self.service_name = kwargs.get('service_name', None) self.node_to = kwargs.get('node_to', None) self.forced_move = kwargs.get('forced_move', None) - self.kind = 'ChaosMovePrimaryFaultScheduled' + self.kind = 'ChaosPartitionPrimaryMoveScheduled' diff --git a/azure-servicefabric/azure/servicefabric/models/chaos_move_primary_fault_scheduled_event_py3.py b/azure-servicefabric/azure/servicefabric/models/chaos_partition_primary_move_scheduled_event_py3.py similarity index 84% rename from azure-servicefabric/azure/servicefabric/models/chaos_move_primary_fault_scheduled_event_py3.py rename to azure-servicefabric/azure/servicefabric/models/chaos_partition_primary_move_scheduled_event_py3.py index 9c55970213fc..e6d714d67453 100644 --- a/azure-servicefabric/azure/servicefabric/models/chaos_move_primary_fault_scheduled_event_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/chaos_partition_primary_move_scheduled_event_py3.py @@ -12,7 +12,7 @@ from .partition_event_py3 import PartitionEvent -class ChaosMovePrimaryFaultScheduledEvent(PartitionEvent): +class ChaosPartitionPrimaryMoveScheduledEvent(PartitionEvent): """Chaos Move Primary Fault Scheduled event. All required parameters must be populated in order to send to Azure. @@ -20,6 +20,8 @@ class ChaosMovePrimaryFaultScheduledEvent(PartitionEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -59,6 +61,7 @@ class ChaosMovePrimaryFaultScheduledEvent(PartitionEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -70,11 +73,11 @@ class ChaosMovePrimaryFaultScheduledEvent(PartitionEvent): 'forced_move': {'key': 'ForcedMove', 'type': 'bool'}, } - def __init__(self, *, event_instance_id: str, time_stamp, partition_id: str, fault_group_id: str, fault_id: str, service_name: str, node_to: str, forced_move: bool, has_correlated_events: bool=None, **kwargs) -> None: - super(ChaosMovePrimaryFaultScheduledEvent, self).__init__(event_instance_id=event_instance_id, time_stamp=time_stamp, has_correlated_events=has_correlated_events, partition_id=partition_id, **kwargs) + def __init__(self, *, event_instance_id: str, time_stamp, partition_id: str, fault_group_id: str, fault_id: str, service_name: str, node_to: str, forced_move: bool, category: str=None, has_correlated_events: bool=None, **kwargs) -> None: + super(ChaosPartitionPrimaryMoveScheduledEvent, self).__init__(event_instance_id=event_instance_id, category=category, time_stamp=time_stamp, has_correlated_events=has_correlated_events, partition_id=partition_id, **kwargs) self.fault_group_id = fault_group_id self.fault_id = fault_id self.service_name = service_name self.node_to = node_to self.forced_move = forced_move - self.kind = 'ChaosMovePrimaryFaultScheduled' + self.kind = 'ChaosPartitionPrimaryMoveScheduled' diff --git a/azure-servicefabric/azure/servicefabric/models/chaos_move_secondary_fault_scheduled_event.py b/azure-servicefabric/azure/servicefabric/models/chaos_partition_secondary_move_scheduled_event.py similarity index 91% rename from azure-servicefabric/azure/servicefabric/models/chaos_move_secondary_fault_scheduled_event.py rename to azure-servicefabric/azure/servicefabric/models/chaos_partition_secondary_move_scheduled_event.py index afd2c1cb1686..89a701276f5d 100644 --- a/azure-servicefabric/azure/servicefabric/models/chaos_move_secondary_fault_scheduled_event.py +++ b/azure-servicefabric/azure/servicefabric/models/chaos_partition_secondary_move_scheduled_event.py @@ -12,7 +12,7 @@ from .partition_event import PartitionEvent -class ChaosMoveSecondaryFaultScheduledEvent(PartitionEvent): +class ChaosPartitionSecondaryMoveScheduledEvent(PartitionEvent): """Chaos Move Secondary Fault Scheduled event. All required parameters must be populated in order to send to Azure. @@ -20,6 +20,8 @@ class ChaosMoveSecondaryFaultScheduledEvent(PartitionEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -62,6 +64,7 @@ class ChaosMoveSecondaryFaultScheduledEvent(PartitionEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -75,11 +78,11 @@ class ChaosMoveSecondaryFaultScheduledEvent(PartitionEvent): } def __init__(self, **kwargs): - super(ChaosMoveSecondaryFaultScheduledEvent, self).__init__(**kwargs) + super(ChaosPartitionSecondaryMoveScheduledEvent, self).__init__(**kwargs) self.fault_group_id = kwargs.get('fault_group_id', None) self.fault_id = kwargs.get('fault_id', None) self.service_name = kwargs.get('service_name', None) self.source_node = kwargs.get('source_node', None) self.destination_node = kwargs.get('destination_node', None) self.forced_move = kwargs.get('forced_move', None) - self.kind = 'ChaosMoveSecondaryFaultScheduled' + self.kind = 'ChaosPartitionSecondaryMoveScheduled' diff --git a/azure-servicefabric/azure/servicefabric/models/chaos_move_secondary_fault_scheduled_event_py3.py b/azure-servicefabric/azure/servicefabric/models/chaos_partition_secondary_move_scheduled_event_py3.py similarity index 86% rename from azure-servicefabric/azure/servicefabric/models/chaos_move_secondary_fault_scheduled_event_py3.py rename to azure-servicefabric/azure/servicefabric/models/chaos_partition_secondary_move_scheduled_event_py3.py index fea8d3e0eacc..c385d53d3deb 100644 --- a/azure-servicefabric/azure/servicefabric/models/chaos_move_secondary_fault_scheduled_event_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/chaos_partition_secondary_move_scheduled_event_py3.py @@ -12,7 +12,7 @@ from .partition_event_py3 import PartitionEvent -class ChaosMoveSecondaryFaultScheduledEvent(PartitionEvent): +class ChaosPartitionSecondaryMoveScheduledEvent(PartitionEvent): """Chaos Move Secondary Fault Scheduled event. All required parameters must be populated in order to send to Azure. @@ -20,6 +20,8 @@ class ChaosMoveSecondaryFaultScheduledEvent(PartitionEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -62,6 +64,7 @@ class ChaosMoveSecondaryFaultScheduledEvent(PartitionEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -74,12 +77,12 @@ class ChaosMoveSecondaryFaultScheduledEvent(PartitionEvent): 'forced_move': {'key': 'ForcedMove', 'type': 'bool'}, } - def __init__(self, *, event_instance_id: str, time_stamp, partition_id: str, fault_group_id: str, fault_id: str, service_name: str, source_node: str, destination_node: str, forced_move: bool, has_correlated_events: bool=None, **kwargs) -> None: - super(ChaosMoveSecondaryFaultScheduledEvent, self).__init__(event_instance_id=event_instance_id, time_stamp=time_stamp, has_correlated_events=has_correlated_events, partition_id=partition_id, **kwargs) + def __init__(self, *, event_instance_id: str, time_stamp, partition_id: str, fault_group_id: str, fault_id: str, service_name: str, source_node: str, destination_node: str, forced_move: bool, category: str=None, has_correlated_events: bool=None, **kwargs) -> None: + super(ChaosPartitionSecondaryMoveScheduledEvent, self).__init__(event_instance_id=event_instance_id, category=category, time_stamp=time_stamp, has_correlated_events=has_correlated_events, partition_id=partition_id, **kwargs) self.fault_group_id = fault_group_id self.fault_id = fault_id self.service_name = service_name self.source_node = source_node self.destination_node = destination_node self.forced_move = forced_move - self.kind = 'ChaosMoveSecondaryFaultScheduled' + self.kind = 'ChaosPartitionSecondaryMoveScheduled' diff --git a/azure-servicefabric/azure/servicefabric/models/chaos_remove_replica_fault_completed_event.py b/azure-servicefabric/azure/servicefabric/models/chaos_remove_replica_fault_completed_event.py deleted file mode 100644 index 1cbf3fb66c33..000000000000 --- a/azure-servicefabric/azure/servicefabric/models/chaos_remove_replica_fault_completed_event.py +++ /dev/null @@ -1,80 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .replica_event import ReplicaEvent - - -class ChaosRemoveReplicaFaultCompletedEvent(ReplicaEvent): - """Chaos Remove Replica Fault Completed event. - - All required parameters must be populated in order to send to Azure. - - :param event_instance_id: Required. The identifier for the FabricEvent - instance. - :type event_instance_id: str - :param time_stamp: Required. The time event was logged. - :type time_stamp: datetime - :param has_correlated_events: Shows there is existing related events - available. - :type has_correlated_events: bool - :param kind: Required. Constant filled by server. - :type kind: str - :param partition_id: Required. An internal ID used by Service Fabric to - uniquely identify a partition. This is a randomly generated GUID when the - service was created. The partition ID is unique and does not change for - the lifetime of the service. If the same service was deleted and recreated - the IDs of its partitions would be different. - :type partition_id: str - :param replica_id: Required. Id of a stateful service replica. ReplicaId - is used by Service Fabric to uniquely identify a replica of a partition. - It is unique within a partition and does not change for the lifetime of - the replica. If a replica gets dropped and another replica gets created on - the same node for the same partition, it will get a different value for - the id. Sometimes the id of a stateless service instance is also referred - as a replica id. - :type replica_id: long - :param fault_group_id: Required. Id of fault group. - :type fault_group_id: str - :param fault_id: Required. Id of fault. - :type fault_id: str - :param service_uri: Required. Service name. - :type service_uri: str - """ - - _validation = { - 'event_instance_id': {'required': True}, - 'time_stamp': {'required': True}, - 'kind': {'required': True}, - 'partition_id': {'required': True}, - 'replica_id': {'required': True}, - 'fault_group_id': {'required': True}, - 'fault_id': {'required': True}, - 'service_uri': {'required': True}, - } - - _attribute_map = { - 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, - 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, - 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, - 'kind': {'key': 'Kind', 'type': 'str'}, - 'partition_id': {'key': 'PartitionId', 'type': 'str'}, - 'replica_id': {'key': 'ReplicaId', 'type': 'long'}, - 'fault_group_id': {'key': 'FaultGroupId', 'type': 'str'}, - 'fault_id': {'key': 'FaultId', 'type': 'str'}, - 'service_uri': {'key': 'ServiceUri', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ChaosRemoveReplicaFaultCompletedEvent, self).__init__(**kwargs) - self.fault_group_id = kwargs.get('fault_group_id', None) - self.fault_id = kwargs.get('fault_id', None) - self.service_uri = kwargs.get('service_uri', None) - self.kind = 'ChaosRemoveReplicaFaultCompleted' diff --git a/azure-servicefabric/azure/servicefabric/models/chaos_remove_replica_fault_completed_event_py3.py b/azure-servicefabric/azure/servicefabric/models/chaos_remove_replica_fault_completed_event_py3.py deleted file mode 100644 index 690903fdadd8..000000000000 --- a/azure-servicefabric/azure/servicefabric/models/chaos_remove_replica_fault_completed_event_py3.py +++ /dev/null @@ -1,80 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .replica_event_py3 import ReplicaEvent - - -class ChaosRemoveReplicaFaultCompletedEvent(ReplicaEvent): - """Chaos Remove Replica Fault Completed event. - - All required parameters must be populated in order to send to Azure. - - :param event_instance_id: Required. The identifier for the FabricEvent - instance. - :type event_instance_id: str - :param time_stamp: Required. The time event was logged. - :type time_stamp: datetime - :param has_correlated_events: Shows there is existing related events - available. - :type has_correlated_events: bool - :param kind: Required. Constant filled by server. - :type kind: str - :param partition_id: Required. An internal ID used by Service Fabric to - uniquely identify a partition. This is a randomly generated GUID when the - service was created. The partition ID is unique and does not change for - the lifetime of the service. If the same service was deleted and recreated - the IDs of its partitions would be different. - :type partition_id: str - :param replica_id: Required. Id of a stateful service replica. ReplicaId - is used by Service Fabric to uniquely identify a replica of a partition. - It is unique within a partition and does not change for the lifetime of - the replica. If a replica gets dropped and another replica gets created on - the same node for the same partition, it will get a different value for - the id. Sometimes the id of a stateless service instance is also referred - as a replica id. - :type replica_id: long - :param fault_group_id: Required. Id of fault group. - :type fault_group_id: str - :param fault_id: Required. Id of fault. - :type fault_id: str - :param service_uri: Required. Service name. - :type service_uri: str - """ - - _validation = { - 'event_instance_id': {'required': True}, - 'time_stamp': {'required': True}, - 'kind': {'required': True}, - 'partition_id': {'required': True}, - 'replica_id': {'required': True}, - 'fault_group_id': {'required': True}, - 'fault_id': {'required': True}, - 'service_uri': {'required': True}, - } - - _attribute_map = { - 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, - 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, - 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, - 'kind': {'key': 'Kind', 'type': 'str'}, - 'partition_id': {'key': 'PartitionId', 'type': 'str'}, - 'replica_id': {'key': 'ReplicaId', 'type': 'long'}, - 'fault_group_id': {'key': 'FaultGroupId', 'type': 'str'}, - 'fault_id': {'key': 'FaultId', 'type': 'str'}, - 'service_uri': {'key': 'ServiceUri', 'type': 'str'}, - } - - def __init__(self, *, event_instance_id: str, time_stamp, partition_id: str, replica_id: int, fault_group_id: str, fault_id: str, service_uri: str, has_correlated_events: bool=None, **kwargs) -> None: - super(ChaosRemoveReplicaFaultCompletedEvent, self).__init__(event_instance_id=event_instance_id, time_stamp=time_stamp, has_correlated_events=has_correlated_events, partition_id=partition_id, replica_id=replica_id, **kwargs) - self.fault_group_id = fault_group_id - self.fault_id = fault_id - self.service_uri = service_uri - self.kind = 'ChaosRemoveReplicaFaultCompleted' diff --git a/azure-servicefabric/azure/servicefabric/models/chaos_remove_replica_fault_scheduled_event.py b/azure-servicefabric/azure/servicefabric/models/chaos_replica_removal_scheduled_event.py similarity index 91% rename from azure-servicefabric/azure/servicefabric/models/chaos_remove_replica_fault_scheduled_event.py rename to azure-servicefabric/azure/servicefabric/models/chaos_replica_removal_scheduled_event.py index 534634afe17f..3ac78109e81b 100644 --- a/azure-servicefabric/azure/servicefabric/models/chaos_remove_replica_fault_scheduled_event.py +++ b/azure-servicefabric/azure/servicefabric/models/chaos_replica_removal_scheduled_event.py @@ -12,7 +12,7 @@ from .replica_event import ReplicaEvent -class ChaosRemoveReplicaFaultScheduledEvent(ReplicaEvent): +class ChaosReplicaRemovalScheduledEvent(ReplicaEvent): """Chaos Remove Replica Fault Scheduled event. All required parameters must be populated in order to send to Azure. @@ -20,6 +20,8 @@ class ChaosRemoveReplicaFaultScheduledEvent(ReplicaEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -62,6 +64,7 @@ class ChaosRemoveReplicaFaultScheduledEvent(ReplicaEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -73,8 +76,8 @@ class ChaosRemoveReplicaFaultScheduledEvent(ReplicaEvent): } def __init__(self, **kwargs): - super(ChaosRemoveReplicaFaultScheduledEvent, self).__init__(**kwargs) + super(ChaosReplicaRemovalScheduledEvent, self).__init__(**kwargs) self.fault_group_id = kwargs.get('fault_group_id', None) self.fault_id = kwargs.get('fault_id', None) self.service_uri = kwargs.get('service_uri', None) - self.kind = 'ChaosRemoveReplicaFaultScheduled' + self.kind = 'ChaosReplicaRemovalScheduled' diff --git a/azure-servicefabric/azure/servicefabric/models/chaos_remove_replica_fault_scheduled_event_py3.py b/azure-servicefabric/azure/servicefabric/models/chaos_replica_removal_scheduled_event_py3.py similarity index 85% rename from azure-servicefabric/azure/servicefabric/models/chaos_remove_replica_fault_scheduled_event_py3.py rename to azure-servicefabric/azure/servicefabric/models/chaos_replica_removal_scheduled_event_py3.py index 07a569b12ab7..81db7b079d2c 100644 --- a/azure-servicefabric/azure/servicefabric/models/chaos_remove_replica_fault_scheduled_event_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/chaos_replica_removal_scheduled_event_py3.py @@ -12,7 +12,7 @@ from .replica_event_py3 import ReplicaEvent -class ChaosRemoveReplicaFaultScheduledEvent(ReplicaEvent): +class ChaosReplicaRemovalScheduledEvent(ReplicaEvent): """Chaos Remove Replica Fault Scheduled event. All required parameters must be populated in order to send to Azure. @@ -20,6 +20,8 @@ class ChaosRemoveReplicaFaultScheduledEvent(ReplicaEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -62,6 +64,7 @@ class ChaosRemoveReplicaFaultScheduledEvent(ReplicaEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -72,9 +75,9 @@ class ChaosRemoveReplicaFaultScheduledEvent(ReplicaEvent): 'service_uri': {'key': 'ServiceUri', 'type': 'str'}, } - def __init__(self, *, event_instance_id: str, time_stamp, partition_id: str, replica_id: int, fault_group_id: str, fault_id: str, service_uri: str, has_correlated_events: bool=None, **kwargs) -> None: - super(ChaosRemoveReplicaFaultScheduledEvent, self).__init__(event_instance_id=event_instance_id, time_stamp=time_stamp, has_correlated_events=has_correlated_events, partition_id=partition_id, replica_id=replica_id, **kwargs) + def __init__(self, *, event_instance_id: str, time_stamp, partition_id: str, replica_id: int, fault_group_id: str, fault_id: str, service_uri: str, category: str=None, has_correlated_events: bool=None, **kwargs) -> None: + super(ChaosReplicaRemovalScheduledEvent, self).__init__(event_instance_id=event_instance_id, category=category, time_stamp=time_stamp, has_correlated_events=has_correlated_events, partition_id=partition_id, replica_id=replica_id, **kwargs) self.fault_group_id = fault_group_id self.fault_id = fault_id self.service_uri = service_uri - self.kind = 'ChaosRemoveReplicaFaultScheduled' + self.kind = 'ChaosReplicaRemovalScheduled' diff --git a/azure-servicefabric/azure/servicefabric/models/chaos_restart_replica_fault_scheduled_event.py b/azure-servicefabric/azure/servicefabric/models/chaos_replica_restart_scheduled_event.py similarity index 91% rename from azure-servicefabric/azure/servicefabric/models/chaos_restart_replica_fault_scheduled_event.py rename to azure-servicefabric/azure/servicefabric/models/chaos_replica_restart_scheduled_event.py index e2b1f250149e..c877e86cd411 100644 --- a/azure-servicefabric/azure/servicefabric/models/chaos_restart_replica_fault_scheduled_event.py +++ b/azure-servicefabric/azure/servicefabric/models/chaos_replica_restart_scheduled_event.py @@ -12,7 +12,7 @@ from .replica_event import ReplicaEvent -class ChaosRestartReplicaFaultScheduledEvent(ReplicaEvent): +class ChaosReplicaRestartScheduledEvent(ReplicaEvent): """Chaos Restart Replica Fault Scheduled event. All required parameters must be populated in order to send to Azure. @@ -20,6 +20,8 @@ class ChaosRestartReplicaFaultScheduledEvent(ReplicaEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -62,6 +64,7 @@ class ChaosRestartReplicaFaultScheduledEvent(ReplicaEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -73,8 +76,8 @@ class ChaosRestartReplicaFaultScheduledEvent(ReplicaEvent): } def __init__(self, **kwargs): - super(ChaosRestartReplicaFaultScheduledEvent, self).__init__(**kwargs) + super(ChaosReplicaRestartScheduledEvent, self).__init__(**kwargs) self.fault_group_id = kwargs.get('fault_group_id', None) self.fault_id = kwargs.get('fault_id', None) self.service_uri = kwargs.get('service_uri', None) - self.kind = 'ChaosRestartReplicaFaultScheduled' + self.kind = 'ChaosReplicaRestartScheduled' diff --git a/azure-servicefabric/azure/servicefabric/models/chaos_restart_replica_fault_scheduled_event_py3.py b/azure-servicefabric/azure/servicefabric/models/chaos_replica_restart_scheduled_event_py3.py similarity index 85% rename from azure-servicefabric/azure/servicefabric/models/chaos_restart_replica_fault_scheduled_event_py3.py rename to azure-servicefabric/azure/servicefabric/models/chaos_replica_restart_scheduled_event_py3.py index 81537e165e0f..f8b2cbbcf6a5 100644 --- a/azure-servicefabric/azure/servicefabric/models/chaos_restart_replica_fault_scheduled_event_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/chaos_replica_restart_scheduled_event_py3.py @@ -12,7 +12,7 @@ from .replica_event_py3 import ReplicaEvent -class ChaosRestartReplicaFaultScheduledEvent(ReplicaEvent): +class ChaosReplicaRestartScheduledEvent(ReplicaEvent): """Chaos Restart Replica Fault Scheduled event. All required parameters must be populated in order to send to Azure. @@ -20,6 +20,8 @@ class ChaosRestartReplicaFaultScheduledEvent(ReplicaEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -62,6 +64,7 @@ class ChaosRestartReplicaFaultScheduledEvent(ReplicaEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -72,9 +75,9 @@ class ChaosRestartReplicaFaultScheduledEvent(ReplicaEvent): 'service_uri': {'key': 'ServiceUri', 'type': 'str'}, } - def __init__(self, *, event_instance_id: str, time_stamp, partition_id: str, replica_id: int, fault_group_id: str, fault_id: str, service_uri: str, has_correlated_events: bool=None, **kwargs) -> None: - super(ChaosRestartReplicaFaultScheduledEvent, self).__init__(event_instance_id=event_instance_id, time_stamp=time_stamp, has_correlated_events=has_correlated_events, partition_id=partition_id, replica_id=replica_id, **kwargs) + def __init__(self, *, event_instance_id: str, time_stamp, partition_id: str, replica_id: int, fault_group_id: str, fault_id: str, service_uri: str, category: str=None, has_correlated_events: bool=None, **kwargs) -> None: + super(ChaosReplicaRestartScheduledEvent, self).__init__(event_instance_id=event_instance_id, category=category, time_stamp=time_stamp, has_correlated_events=has_correlated_events, partition_id=partition_id, replica_id=replica_id, **kwargs) self.fault_group_id = fault_group_id self.fault_id = fault_id self.service_uri = service_uri - self.kind = 'ChaosRestartReplicaFaultScheduled' + self.kind = 'ChaosReplicaRestartScheduled' diff --git a/azure-servicefabric/azure/servicefabric/models/chaos_restart_code_package_fault_completed_event.py b/azure-servicefabric/azure/servicefabric/models/chaos_restart_code_package_fault_completed_event.py deleted file mode 100644 index 2e9b56c0d7ed..000000000000 --- a/azure-servicefabric/azure/servicefabric/models/chaos_restart_code_package_fault_completed_event.py +++ /dev/null @@ -1,88 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .application_event import ApplicationEvent - - -class ChaosRestartCodePackageFaultCompletedEvent(ApplicationEvent): - """Chaos Restart Code Package Fault Completed event. - - All required parameters must be populated in order to send to Azure. - - :param event_instance_id: Required. The identifier for the FabricEvent - instance. - :type event_instance_id: str - :param time_stamp: Required. The time event was logged. - :type time_stamp: datetime - :param has_correlated_events: Shows there is existing related events - available. - :type has_correlated_events: bool - :param kind: Required. Constant filled by server. - :type kind: str - :param application_id: Required. The identity of the application. This is - an encoded representation of the application name. This is used in the - REST APIs to identify the application resource. - Starting in version 6.0, hierarchical names are delimited with the "\\~" - character. For example, if the application name is "fabric:/myapp/app1", - the application identity would be "myapp\\~app1" in 6.0+ and "myapp/app1" - in previous versions. - :type application_id: str - :param fault_group_id: Required. Id of fault group. - :type fault_group_id: str - :param fault_id: Required. Id of fault. - :type fault_id: str - :param node_name: Required. The name of a Service Fabric node. - :type node_name: str - :param service_manifest_name: Required. Service manifest name. - :type service_manifest_name: str - :param code_package_name: Required. Code package name. - :type code_package_name: str - :param service_package_activation_id: Required. Id of Service package - activation. - :type service_package_activation_id: str - """ - - _validation = { - 'event_instance_id': {'required': True}, - 'time_stamp': {'required': True}, - 'kind': {'required': True}, - 'application_id': {'required': True}, - 'fault_group_id': {'required': True}, - 'fault_id': {'required': True}, - 'node_name': {'required': True}, - 'service_manifest_name': {'required': True}, - 'code_package_name': {'required': True}, - 'service_package_activation_id': {'required': True}, - } - - _attribute_map = { - 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, - 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, - 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, - 'kind': {'key': 'Kind', 'type': 'str'}, - 'application_id': {'key': 'ApplicationId', 'type': 'str'}, - 'fault_group_id': {'key': 'FaultGroupId', 'type': 'str'}, - 'fault_id': {'key': 'FaultId', 'type': 'str'}, - 'node_name': {'key': 'NodeName', 'type': 'str'}, - 'service_manifest_name': {'key': 'ServiceManifestName', 'type': 'str'}, - 'code_package_name': {'key': 'CodePackageName', 'type': 'str'}, - 'service_package_activation_id': {'key': 'ServicePackageActivationId', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ChaosRestartCodePackageFaultCompletedEvent, self).__init__(**kwargs) - self.fault_group_id = kwargs.get('fault_group_id', None) - self.fault_id = kwargs.get('fault_id', None) - self.node_name = kwargs.get('node_name', None) - self.service_manifest_name = kwargs.get('service_manifest_name', None) - self.code_package_name = kwargs.get('code_package_name', None) - self.service_package_activation_id = kwargs.get('service_package_activation_id', None) - self.kind = 'ChaosRestartCodePackageFaultCompleted' diff --git a/azure-servicefabric/azure/servicefabric/models/chaos_restart_code_package_fault_completed_event_py3.py b/azure-servicefabric/azure/servicefabric/models/chaos_restart_code_package_fault_completed_event_py3.py deleted file mode 100644 index 4e80772c4126..000000000000 --- a/azure-servicefabric/azure/servicefabric/models/chaos_restart_code_package_fault_completed_event_py3.py +++ /dev/null @@ -1,88 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .application_event_py3 import ApplicationEvent - - -class ChaosRestartCodePackageFaultCompletedEvent(ApplicationEvent): - """Chaos Restart Code Package Fault Completed event. - - All required parameters must be populated in order to send to Azure. - - :param event_instance_id: Required. The identifier for the FabricEvent - instance. - :type event_instance_id: str - :param time_stamp: Required. The time event was logged. - :type time_stamp: datetime - :param has_correlated_events: Shows there is existing related events - available. - :type has_correlated_events: bool - :param kind: Required. Constant filled by server. - :type kind: str - :param application_id: Required. The identity of the application. This is - an encoded representation of the application name. This is used in the - REST APIs to identify the application resource. - Starting in version 6.0, hierarchical names are delimited with the "\\~" - character. For example, if the application name is "fabric:/myapp/app1", - the application identity would be "myapp\\~app1" in 6.0+ and "myapp/app1" - in previous versions. - :type application_id: str - :param fault_group_id: Required. Id of fault group. - :type fault_group_id: str - :param fault_id: Required. Id of fault. - :type fault_id: str - :param node_name: Required. The name of a Service Fabric node. - :type node_name: str - :param service_manifest_name: Required. Service manifest name. - :type service_manifest_name: str - :param code_package_name: Required. Code package name. - :type code_package_name: str - :param service_package_activation_id: Required. Id of Service package - activation. - :type service_package_activation_id: str - """ - - _validation = { - 'event_instance_id': {'required': True}, - 'time_stamp': {'required': True}, - 'kind': {'required': True}, - 'application_id': {'required': True}, - 'fault_group_id': {'required': True}, - 'fault_id': {'required': True}, - 'node_name': {'required': True}, - 'service_manifest_name': {'required': True}, - 'code_package_name': {'required': True}, - 'service_package_activation_id': {'required': True}, - } - - _attribute_map = { - 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, - 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, - 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, - 'kind': {'key': 'Kind', 'type': 'str'}, - 'application_id': {'key': 'ApplicationId', 'type': 'str'}, - 'fault_group_id': {'key': 'FaultGroupId', 'type': 'str'}, - 'fault_id': {'key': 'FaultId', 'type': 'str'}, - 'node_name': {'key': 'NodeName', 'type': 'str'}, - 'service_manifest_name': {'key': 'ServiceManifestName', 'type': 'str'}, - 'code_package_name': {'key': 'CodePackageName', 'type': 'str'}, - 'service_package_activation_id': {'key': 'ServicePackageActivationId', 'type': 'str'}, - } - - def __init__(self, *, event_instance_id: str, time_stamp, application_id: str, fault_group_id: str, fault_id: str, node_name: str, service_manifest_name: str, code_package_name: str, service_package_activation_id: str, has_correlated_events: bool=None, **kwargs) -> None: - super(ChaosRestartCodePackageFaultCompletedEvent, self).__init__(event_instance_id=event_instance_id, time_stamp=time_stamp, has_correlated_events=has_correlated_events, application_id=application_id, **kwargs) - self.fault_group_id = fault_group_id - self.fault_id = fault_id - self.node_name = node_name - self.service_manifest_name = service_manifest_name - self.code_package_name = code_package_name - self.service_package_activation_id = service_package_activation_id - self.kind = 'ChaosRestartCodePackageFaultCompleted' diff --git a/azure-servicefabric/azure/servicefabric/models/chaos_restart_node_fault_completed_event.py b/azure-servicefabric/azure/servicefabric/models/chaos_restart_node_fault_completed_event.py deleted file mode 100644 index 139fa15396df..000000000000 --- a/azure-servicefabric/azure/servicefabric/models/chaos_restart_node_fault_completed_event.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .node_event import NodeEvent - - -class ChaosRestartNodeFaultCompletedEvent(NodeEvent): - """Chaos Restart Node Fault Completed event. - - All required parameters must be populated in order to send to Azure. - - :param event_instance_id: Required. The identifier for the FabricEvent - instance. - :type event_instance_id: str - :param time_stamp: Required. The time event was logged. - :type time_stamp: datetime - :param has_correlated_events: Shows there is existing related events - available. - :type has_correlated_events: bool - :param kind: Required. Constant filled by server. - :type kind: str - :param node_name: Required. The name of a Service Fabric node. - :type node_name: str - :param node_instance_id: Required. Id of Node instance. - :type node_instance_id: long - :param fault_group_id: Required. Id of fault group. - :type fault_group_id: str - :param fault_id: Required. Id of fault. - :type fault_id: str - """ - - _validation = { - 'event_instance_id': {'required': True}, - 'time_stamp': {'required': True}, - 'kind': {'required': True}, - 'node_name': {'required': True}, - 'node_instance_id': {'required': True}, - 'fault_group_id': {'required': True}, - 'fault_id': {'required': True}, - } - - _attribute_map = { - 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, - 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, - 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, - 'kind': {'key': 'Kind', 'type': 'str'}, - 'node_name': {'key': 'NodeName', 'type': 'str'}, - 'node_instance_id': {'key': 'NodeInstanceId', 'type': 'long'}, - 'fault_group_id': {'key': 'FaultGroupId', 'type': 'str'}, - 'fault_id': {'key': 'FaultId', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ChaosRestartNodeFaultCompletedEvent, self).__init__(**kwargs) - self.node_instance_id = kwargs.get('node_instance_id', None) - self.fault_group_id = kwargs.get('fault_group_id', None) - self.fault_id = kwargs.get('fault_id', None) - self.kind = 'ChaosRestartNodeFaultCompleted' diff --git a/azure-servicefabric/azure/servicefabric/models/chaos_restart_node_fault_completed_event_py3.py b/azure-servicefabric/azure/servicefabric/models/chaos_restart_node_fault_completed_event_py3.py deleted file mode 100644 index 0960127d71a2..000000000000 --- a/azure-servicefabric/azure/servicefabric/models/chaos_restart_node_fault_completed_event_py3.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .node_event_py3 import NodeEvent - - -class ChaosRestartNodeFaultCompletedEvent(NodeEvent): - """Chaos Restart Node Fault Completed event. - - All required parameters must be populated in order to send to Azure. - - :param event_instance_id: Required. The identifier for the FabricEvent - instance. - :type event_instance_id: str - :param time_stamp: Required. The time event was logged. - :type time_stamp: datetime - :param has_correlated_events: Shows there is existing related events - available. - :type has_correlated_events: bool - :param kind: Required. Constant filled by server. - :type kind: str - :param node_name: Required. The name of a Service Fabric node. - :type node_name: str - :param node_instance_id: Required. Id of Node instance. - :type node_instance_id: long - :param fault_group_id: Required. Id of fault group. - :type fault_group_id: str - :param fault_id: Required. Id of fault. - :type fault_id: str - """ - - _validation = { - 'event_instance_id': {'required': True}, - 'time_stamp': {'required': True}, - 'kind': {'required': True}, - 'node_name': {'required': True}, - 'node_instance_id': {'required': True}, - 'fault_group_id': {'required': True}, - 'fault_id': {'required': True}, - } - - _attribute_map = { - 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, - 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, - 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, - 'kind': {'key': 'Kind', 'type': 'str'}, - 'node_name': {'key': 'NodeName', 'type': 'str'}, - 'node_instance_id': {'key': 'NodeInstanceId', 'type': 'long'}, - 'fault_group_id': {'key': 'FaultGroupId', 'type': 'str'}, - 'fault_id': {'key': 'FaultId', 'type': 'str'}, - } - - def __init__(self, *, event_instance_id: str, time_stamp, node_name: str, node_instance_id: int, fault_group_id: str, fault_id: str, has_correlated_events: bool=None, **kwargs) -> None: - super(ChaosRestartNodeFaultCompletedEvent, self).__init__(event_instance_id=event_instance_id, time_stamp=time_stamp, has_correlated_events=has_correlated_events, node_name=node_name, **kwargs) - self.node_instance_id = node_instance_id - self.fault_group_id = fault_group_id - self.fault_id = fault_id - self.kind = 'ChaosRestartNodeFaultCompleted' diff --git a/azure-servicefabric/azure/servicefabric/models/chaos_started_event.py b/azure-servicefabric/azure/servicefabric/models/chaos_started_event.py index 3e16a281a49c..92663b03baf8 100644 --- a/azure-servicefabric/azure/servicefabric/models/chaos_started_event.py +++ b/azure-servicefabric/azure/servicefabric/models/chaos_started_event.py @@ -20,6 +20,8 @@ class ChaosStartedEvent(ClusterEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -72,6 +74,7 @@ class ChaosStartedEvent(ClusterEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, diff --git a/azure-servicefabric/azure/servicefabric/models/chaos_started_event_py3.py b/azure-servicefabric/azure/servicefabric/models/chaos_started_event_py3.py index cf27a30c9cf5..f80ed93f2ff7 100644 --- a/azure-servicefabric/azure/servicefabric/models/chaos_started_event_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/chaos_started_event_py3.py @@ -20,6 +20,8 @@ class ChaosStartedEvent(ClusterEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -72,6 +74,7 @@ class ChaosStartedEvent(ClusterEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -87,8 +90,8 @@ class ChaosStartedEvent(ClusterEvent): 'chaos_context': {'key': 'ChaosContext', 'type': 'str'}, } - def __init__(self, *, event_instance_id: str, time_stamp, max_concurrent_faults: int, time_to_run_in_seconds: float, max_cluster_stabilization_timeout_in_seconds: float, wait_time_between_iterations_in_seconds: float, wait_time_between_fautls_in_seconds: float, move_replica_fault_enabled: bool, included_node_type_list: str, included_application_list: str, cluster_health_policy: str, chaos_context: str, has_correlated_events: bool=None, **kwargs) -> None: - super(ChaosStartedEvent, self).__init__(event_instance_id=event_instance_id, time_stamp=time_stamp, has_correlated_events=has_correlated_events, **kwargs) + def __init__(self, *, event_instance_id: str, time_stamp, max_concurrent_faults: int, time_to_run_in_seconds: float, max_cluster_stabilization_timeout_in_seconds: float, wait_time_between_iterations_in_seconds: float, wait_time_between_fautls_in_seconds: float, move_replica_fault_enabled: bool, included_node_type_list: str, included_application_list: str, cluster_health_policy: str, chaos_context: str, category: str=None, has_correlated_events: bool=None, **kwargs) -> None: + super(ChaosStartedEvent, self).__init__(event_instance_id=event_instance_id, category=category, time_stamp=time_stamp, has_correlated_events=has_correlated_events, **kwargs) self.max_concurrent_faults = max_concurrent_faults self.time_to_run_in_seconds = time_to_run_in_seconds self.max_cluster_stabilization_timeout_in_seconds = max_cluster_stabilization_timeout_in_seconds diff --git a/azure-servicefabric/azure/servicefabric/models/chaos_stopped_event.py b/azure-servicefabric/azure/servicefabric/models/chaos_stopped_event.py index ebd6b6e07639..744662f50b58 100644 --- a/azure-servicefabric/azure/servicefabric/models/chaos_stopped_event.py +++ b/azure-servicefabric/azure/servicefabric/models/chaos_stopped_event.py @@ -20,6 +20,8 @@ class ChaosStoppedEvent(ClusterEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -40,6 +42,7 @@ class ChaosStoppedEvent(ClusterEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, diff --git a/azure-servicefabric/azure/servicefabric/models/chaos_stopped_event_py3.py b/azure-servicefabric/azure/servicefabric/models/chaos_stopped_event_py3.py index f19520ddda11..70be550d44c3 100644 --- a/azure-servicefabric/azure/servicefabric/models/chaos_stopped_event_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/chaos_stopped_event_py3.py @@ -20,6 +20,8 @@ class ChaosStoppedEvent(ClusterEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -40,13 +42,14 @@ class ChaosStoppedEvent(ClusterEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, 'reason': {'key': 'Reason', 'type': 'str'}, } - def __init__(self, *, event_instance_id: str, time_stamp, reason: str, has_correlated_events: bool=None, **kwargs) -> None: - super(ChaosStoppedEvent, self).__init__(event_instance_id=event_instance_id, time_stamp=time_stamp, has_correlated_events=has_correlated_events, **kwargs) + def __init__(self, *, event_instance_id: str, time_stamp, reason: str, category: str=None, has_correlated_events: bool=None, **kwargs) -> None: + super(ChaosStoppedEvent, self).__init__(event_instance_id=event_instance_id, category=category, time_stamp=time_stamp, has_correlated_events=has_correlated_events, **kwargs) self.reason = reason self.kind = 'ChaosStopped' diff --git a/azure-servicefabric/azure/servicefabric/models/cluster_configuration_upgrade_description.py b/azure-servicefabric/azure/servicefabric/models/cluster_configuration_upgrade_description.py index e5599d7e52b4..699c387fb127 100644 --- a/azure-servicefabric/azure/servicefabric/models/cluster_configuration_upgrade_description.py +++ b/azure-servicefabric/azure/servicefabric/models/cluster_configuration_upgrade_description.py @@ -17,10 +17,14 @@ class ClusterConfigurationUpgradeDescription(Model): All required parameters must be populated in order to send to Azure. - :param cluster_config: Required. The cluster configuration. + :param cluster_config: Required. The cluster configuration as a JSON + string. For example, [this + file](https://github.com/Azure-Samples/service-fabric-dotnet-standalone-cluster-configuration/blob/master/Samples/ClusterConfig.Unsecure.DevCluster.json) + contains JSON describing the [nodes and other properties of the + cluster](https://docs.microsoft.com/azure/service-fabric/service-fabric-cluster-manifest). :type cluster_config: str :param health_check_retry_timeout: The length of time between attempts to - perform a health checks if the application or cluster is not healthy. + perform health checks if the application or cluster is not healthy. Default value: "PT0H0M0S" . :type health_check_retry_timeout: timedelta :param health_check_wait_duration_in_seconds: The length of time to wait @@ -28,8 +32,8 @@ class ClusterConfigurationUpgradeDescription(Model): process. Default value: "PT0H0M0S" . :type health_check_wait_duration_in_seconds: timedelta :param health_check_stable_duration_in_seconds: The length of time that - the application or cluster must remain healthy. Default value: "PT0H0M0S" - . + the application or cluster must remain healthy before the upgrade proceeds + to the next upgrade domain. Default value: "PT0H0M0S" . :type health_check_stable_duration_in_seconds: timedelta :param upgrade_domain_timeout_in_seconds: The timeout for the upgrade domain. Default value: "PT0H0M0S" . diff --git a/azure-servicefabric/azure/servicefabric/models/cluster_configuration_upgrade_description_py3.py b/azure-servicefabric/azure/servicefabric/models/cluster_configuration_upgrade_description_py3.py index 594219794d72..856bd470820d 100644 --- a/azure-servicefabric/azure/servicefabric/models/cluster_configuration_upgrade_description_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/cluster_configuration_upgrade_description_py3.py @@ -17,10 +17,14 @@ class ClusterConfigurationUpgradeDescription(Model): All required parameters must be populated in order to send to Azure. - :param cluster_config: Required. The cluster configuration. + :param cluster_config: Required. The cluster configuration as a JSON + string. For example, [this + file](https://github.com/Azure-Samples/service-fabric-dotnet-standalone-cluster-configuration/blob/master/Samples/ClusterConfig.Unsecure.DevCluster.json) + contains JSON describing the [nodes and other properties of the + cluster](https://docs.microsoft.com/azure/service-fabric/service-fabric-cluster-manifest). :type cluster_config: str :param health_check_retry_timeout: The length of time between attempts to - perform a health checks if the application or cluster is not healthy. + perform health checks if the application or cluster is not healthy. Default value: "PT0H0M0S" . :type health_check_retry_timeout: timedelta :param health_check_wait_duration_in_seconds: The length of time to wait @@ -28,8 +32,8 @@ class ClusterConfigurationUpgradeDescription(Model): process. Default value: "PT0H0M0S" . :type health_check_wait_duration_in_seconds: timedelta :param health_check_stable_duration_in_seconds: The length of time that - the application or cluster must remain healthy. Default value: "PT0H0M0S" - . + the application or cluster must remain healthy before the upgrade proceeds + to the next upgrade domain. Default value: "PT0H0M0S" . :type health_check_stable_duration_in_seconds: timedelta :param upgrade_domain_timeout_in_seconds: The timeout for the upgrade domain. Default value: "PT0H0M0S" . diff --git a/azure-servicefabric/azure/servicefabric/models/cluster_event.py b/azure-servicefabric/azure/servicefabric/models/cluster_event.py index 61c4c454d794..d4822d348c34 100644 --- a/azure-servicefabric/azure/servicefabric/models/cluster_event.py +++ b/azure-servicefabric/azure/servicefabric/models/cluster_event.py @@ -16,10 +16,10 @@ class ClusterEvent(FabricEvent): """Represents the base for all Cluster Events. You probably want to use the sub-classes and not this class directly. Known - sub-classes are: ClusterHealthReportCreatedEvent, - ClusterHealthReportExpiredEvent, ClusterUpgradeCompleteEvent, - ClusterUpgradeDomainCompleteEvent, ClusterUpgradeRollbackCompleteEvent, - ClusterUpgradeRollbackStartEvent, ClusterUpgradeStartEvent, + sub-classes are: ClusterNewHealthReportEvent, + ClusterHealthReportExpiredEvent, ClusterUpgradeCompletedEvent, + ClusterUpgradeDomainCompletedEvent, ClusterUpgradeRollbackCompletedEvent, + ClusterUpgradeRollbackStartedEvent, ClusterUpgradeStartedEvent, ChaosStoppedEvent, ChaosStartedEvent All required parameters must be populated in order to send to Azure. @@ -27,6 +27,8 @@ class ClusterEvent(FabricEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -44,13 +46,14 @@ class ClusterEvent(FabricEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, } _subtype_map = { - 'kind': {'ClusterHealthReportCreated': 'ClusterHealthReportCreatedEvent', 'ClusterHealthReportExpired': 'ClusterHealthReportExpiredEvent', 'ClusterUpgradeComplete': 'ClusterUpgradeCompleteEvent', 'ClusterUpgradeDomainComplete': 'ClusterUpgradeDomainCompleteEvent', 'ClusterUpgradeRollbackComplete': 'ClusterUpgradeRollbackCompleteEvent', 'ClusterUpgradeRollbackStart': 'ClusterUpgradeRollbackStartEvent', 'ClusterUpgradeStart': 'ClusterUpgradeStartEvent', 'ChaosStopped': 'ChaosStoppedEvent', 'ChaosStarted': 'ChaosStartedEvent'} + 'kind': {'ClusterNewHealthReport': 'ClusterNewHealthReportEvent', 'ClusterHealthReportExpired': 'ClusterHealthReportExpiredEvent', 'ClusterUpgradeCompleted': 'ClusterUpgradeCompletedEvent', 'ClusterUpgradeDomainCompleted': 'ClusterUpgradeDomainCompletedEvent', 'ClusterUpgradeRollbackCompleted': 'ClusterUpgradeRollbackCompletedEvent', 'ClusterUpgradeRollbackStarted': 'ClusterUpgradeRollbackStartedEvent', 'ClusterUpgradeStarted': 'ClusterUpgradeStartedEvent', 'ChaosStopped': 'ChaosStoppedEvent', 'ChaosStarted': 'ChaosStartedEvent'} } def __init__(self, **kwargs): diff --git a/azure-servicefabric/azure/servicefabric/models/cluster_event_py3.py b/azure-servicefabric/azure/servicefabric/models/cluster_event_py3.py index 86a036afe493..04613f0de773 100644 --- a/azure-servicefabric/azure/servicefabric/models/cluster_event_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/cluster_event_py3.py @@ -16,10 +16,10 @@ class ClusterEvent(FabricEvent): """Represents the base for all Cluster Events. You probably want to use the sub-classes and not this class directly. Known - sub-classes are: ClusterHealthReportCreatedEvent, - ClusterHealthReportExpiredEvent, ClusterUpgradeCompleteEvent, - ClusterUpgradeDomainCompleteEvent, ClusterUpgradeRollbackCompleteEvent, - ClusterUpgradeRollbackStartEvent, ClusterUpgradeStartEvent, + sub-classes are: ClusterNewHealthReportEvent, + ClusterHealthReportExpiredEvent, ClusterUpgradeCompletedEvent, + ClusterUpgradeDomainCompletedEvent, ClusterUpgradeRollbackCompletedEvent, + ClusterUpgradeRollbackStartedEvent, ClusterUpgradeStartedEvent, ChaosStoppedEvent, ChaosStartedEvent All required parameters must be populated in order to send to Azure. @@ -27,6 +27,8 @@ class ClusterEvent(FabricEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -44,15 +46,16 @@ class ClusterEvent(FabricEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, } _subtype_map = { - 'kind': {'ClusterHealthReportCreated': 'ClusterHealthReportCreatedEvent', 'ClusterHealthReportExpired': 'ClusterHealthReportExpiredEvent', 'ClusterUpgradeComplete': 'ClusterUpgradeCompleteEvent', 'ClusterUpgradeDomainComplete': 'ClusterUpgradeDomainCompleteEvent', 'ClusterUpgradeRollbackComplete': 'ClusterUpgradeRollbackCompleteEvent', 'ClusterUpgradeRollbackStart': 'ClusterUpgradeRollbackStartEvent', 'ClusterUpgradeStart': 'ClusterUpgradeStartEvent', 'ChaosStopped': 'ChaosStoppedEvent', 'ChaosStarted': 'ChaosStartedEvent'} + 'kind': {'ClusterNewHealthReport': 'ClusterNewHealthReportEvent', 'ClusterHealthReportExpired': 'ClusterHealthReportExpiredEvent', 'ClusterUpgradeCompleted': 'ClusterUpgradeCompletedEvent', 'ClusterUpgradeDomainCompleted': 'ClusterUpgradeDomainCompletedEvent', 'ClusterUpgradeRollbackCompleted': 'ClusterUpgradeRollbackCompletedEvent', 'ClusterUpgradeRollbackStarted': 'ClusterUpgradeRollbackStartedEvent', 'ClusterUpgradeStarted': 'ClusterUpgradeStartedEvent', 'ChaosStopped': 'ChaosStoppedEvent', 'ChaosStarted': 'ChaosStartedEvent'} } - def __init__(self, *, event_instance_id: str, time_stamp, has_correlated_events: bool=None, **kwargs) -> None: - super(ClusterEvent, self).__init__(event_instance_id=event_instance_id, time_stamp=time_stamp, has_correlated_events=has_correlated_events, **kwargs) + def __init__(self, *, event_instance_id: str, time_stamp, category: str=None, has_correlated_events: bool=None, **kwargs) -> None: + super(ClusterEvent, self).__init__(event_instance_id=event_instance_id, category=category, time_stamp=time_stamp, has_correlated_events=has_correlated_events, **kwargs) self.kind = 'ClusterEvent' diff --git a/azure-servicefabric/azure/servicefabric/models/cluster_health_report_expired_event.py b/azure-servicefabric/azure/servicefabric/models/cluster_health_report_expired_event.py index d09441c8e955..a714abca488f 100644 --- a/azure-servicefabric/azure/servicefabric/models/cluster_health_report_expired_event.py +++ b/azure-servicefabric/azure/servicefabric/models/cluster_health_report_expired_event.py @@ -20,6 +20,8 @@ class ClusterHealthReportExpiredEvent(ClusterEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -62,6 +64,7 @@ class ClusterHealthReportExpiredEvent(ClusterEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, diff --git a/azure-servicefabric/azure/servicefabric/models/cluster_health_report_expired_event_py3.py b/azure-servicefabric/azure/servicefabric/models/cluster_health_report_expired_event_py3.py index 8f4ac4497b86..fcef06a24166 100644 --- a/azure-servicefabric/azure/servicefabric/models/cluster_health_report_expired_event_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/cluster_health_report_expired_event_py3.py @@ -20,6 +20,8 @@ class ClusterHealthReportExpiredEvent(ClusterEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -62,6 +64,7 @@ class ClusterHealthReportExpiredEvent(ClusterEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -75,8 +78,8 @@ class ClusterHealthReportExpiredEvent(ClusterEvent): 'source_utc_timestamp': {'key': 'SourceUtcTimestamp', 'type': 'iso-8601'}, } - def __init__(self, *, event_instance_id: str, time_stamp, source_id: str, property: str, health_state: str, time_to_live_ms: int, sequence_number: int, description: str, remove_when_expired: bool, source_utc_timestamp, has_correlated_events: bool=None, **kwargs) -> None: - super(ClusterHealthReportExpiredEvent, self).__init__(event_instance_id=event_instance_id, time_stamp=time_stamp, has_correlated_events=has_correlated_events, **kwargs) + def __init__(self, *, event_instance_id: str, time_stamp, source_id: str, property: str, health_state: str, time_to_live_ms: int, sequence_number: int, description: str, remove_when_expired: bool, source_utc_timestamp, category: str=None, has_correlated_events: bool=None, **kwargs) -> None: + super(ClusterHealthReportExpiredEvent, self).__init__(event_instance_id=event_instance_id, category=category, time_stamp=time_stamp, has_correlated_events=has_correlated_events, **kwargs) self.source_id = source_id self.property = property self.health_state = health_state diff --git a/azure-servicefabric/azure/servicefabric/models/cluster_health_report_created_event.py b/azure-servicefabric/azure/servicefabric/models/cluster_new_health_report_event.py similarity index 92% rename from azure-servicefabric/azure/servicefabric/models/cluster_health_report_created_event.py rename to azure-servicefabric/azure/servicefabric/models/cluster_new_health_report_event.py index d6893b836073..3c6b2be1c8b6 100644 --- a/azure-servicefabric/azure/servicefabric/models/cluster_health_report_created_event.py +++ b/azure-servicefabric/azure/servicefabric/models/cluster_new_health_report_event.py @@ -12,7 +12,7 @@ from .cluster_event import ClusterEvent -class ClusterHealthReportCreatedEvent(ClusterEvent): +class ClusterNewHealthReportEvent(ClusterEvent): """Cluster Health Report Created event. All required parameters must be populated in order to send to Azure. @@ -20,6 +20,8 @@ class ClusterHealthReportCreatedEvent(ClusterEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -62,6 +64,7 @@ class ClusterHealthReportCreatedEvent(ClusterEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -76,7 +79,7 @@ class ClusterHealthReportCreatedEvent(ClusterEvent): } def __init__(self, **kwargs): - super(ClusterHealthReportCreatedEvent, self).__init__(**kwargs) + super(ClusterNewHealthReportEvent, self).__init__(**kwargs) self.source_id = kwargs.get('source_id', None) self.property = kwargs.get('property', None) self.health_state = kwargs.get('health_state', None) @@ -85,4 +88,4 @@ def __init__(self, **kwargs): self.description = kwargs.get('description', None) self.remove_when_expired = kwargs.get('remove_when_expired', None) self.source_utc_timestamp = kwargs.get('source_utc_timestamp', None) - self.kind = 'ClusterHealthReportCreated' + self.kind = 'ClusterNewHealthReport' diff --git a/azure-servicefabric/azure/servicefabric/models/cluster_health_report_created_event_py3.py b/azure-servicefabric/azure/servicefabric/models/cluster_new_health_report_event_py3.py similarity index 87% rename from azure-servicefabric/azure/servicefabric/models/cluster_health_report_created_event_py3.py rename to azure-servicefabric/azure/servicefabric/models/cluster_new_health_report_event_py3.py index f6c18832dde5..4f31abb55569 100644 --- a/azure-servicefabric/azure/servicefabric/models/cluster_health_report_created_event_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/cluster_new_health_report_event_py3.py @@ -12,7 +12,7 @@ from .cluster_event_py3 import ClusterEvent -class ClusterHealthReportCreatedEvent(ClusterEvent): +class ClusterNewHealthReportEvent(ClusterEvent): """Cluster Health Report Created event. All required parameters must be populated in order to send to Azure. @@ -20,6 +20,8 @@ class ClusterHealthReportCreatedEvent(ClusterEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -62,6 +64,7 @@ class ClusterHealthReportCreatedEvent(ClusterEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -75,8 +78,8 @@ class ClusterHealthReportCreatedEvent(ClusterEvent): 'source_utc_timestamp': {'key': 'SourceUtcTimestamp', 'type': 'iso-8601'}, } - def __init__(self, *, event_instance_id: str, time_stamp, source_id: str, property: str, health_state: str, time_to_live_ms: int, sequence_number: int, description: str, remove_when_expired: bool, source_utc_timestamp, has_correlated_events: bool=None, **kwargs) -> None: - super(ClusterHealthReportCreatedEvent, self).__init__(event_instance_id=event_instance_id, time_stamp=time_stamp, has_correlated_events=has_correlated_events, **kwargs) + def __init__(self, *, event_instance_id: str, time_stamp, source_id: str, property: str, health_state: str, time_to_live_ms: int, sequence_number: int, description: str, remove_when_expired: bool, source_utc_timestamp, category: str=None, has_correlated_events: bool=None, **kwargs) -> None: + super(ClusterNewHealthReportEvent, self).__init__(event_instance_id=event_instance_id, category=category, time_stamp=time_stamp, has_correlated_events=has_correlated_events, **kwargs) self.source_id = source_id self.property = property self.health_state = health_state @@ -85,4 +88,4 @@ def __init__(self, *, event_instance_id: str, time_stamp, source_id: str, proper self.description = description self.remove_when_expired = remove_when_expired self.source_utc_timestamp = source_utc_timestamp - self.kind = 'ClusterHealthReportCreated' + self.kind = 'ClusterNewHealthReport' diff --git a/azure-servicefabric/azure/servicefabric/models/cluster_upgrade_complete_event.py b/azure-servicefabric/azure/servicefabric/models/cluster_upgrade_completed_event.py similarity index 87% rename from azure-servicefabric/azure/servicefabric/models/cluster_upgrade_complete_event.py rename to azure-servicefabric/azure/servicefabric/models/cluster_upgrade_completed_event.py index d9c02c387e1d..3b75cdd10c85 100644 --- a/azure-servicefabric/azure/servicefabric/models/cluster_upgrade_complete_event.py +++ b/azure-servicefabric/azure/servicefabric/models/cluster_upgrade_completed_event.py @@ -12,14 +12,16 @@ from .cluster_event import ClusterEvent -class ClusterUpgradeCompleteEvent(ClusterEvent): - """Cluster Upgrade Complete event. +class ClusterUpgradeCompletedEvent(ClusterEvent): + """Cluster Upgrade Completed event. All required parameters must be populated in order to send to Azure. :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -44,6 +46,7 @@ class ClusterUpgradeCompleteEvent(ClusterEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -52,7 +55,7 @@ class ClusterUpgradeCompleteEvent(ClusterEvent): } def __init__(self, **kwargs): - super(ClusterUpgradeCompleteEvent, self).__init__(**kwargs) + super(ClusterUpgradeCompletedEvent, self).__init__(**kwargs) self.target_cluster_version = kwargs.get('target_cluster_version', None) self.overall_upgrade_elapsed_time_in_ms = kwargs.get('overall_upgrade_elapsed_time_in_ms', None) - self.kind = 'ClusterUpgradeComplete' + self.kind = 'ClusterUpgradeCompleted' diff --git a/azure-servicefabric/azure/servicefabric/models/cluster_upgrade_complete_event_py3.py b/azure-servicefabric/azure/servicefabric/models/cluster_upgrade_completed_event_py3.py similarity index 81% rename from azure-servicefabric/azure/servicefabric/models/cluster_upgrade_complete_event_py3.py rename to azure-servicefabric/azure/servicefabric/models/cluster_upgrade_completed_event_py3.py index 332a0f192fb5..8422f87b2c7e 100644 --- a/azure-servicefabric/azure/servicefabric/models/cluster_upgrade_complete_event_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/cluster_upgrade_completed_event_py3.py @@ -12,14 +12,16 @@ from .cluster_event_py3 import ClusterEvent -class ClusterUpgradeCompleteEvent(ClusterEvent): - """Cluster Upgrade Complete event. +class ClusterUpgradeCompletedEvent(ClusterEvent): + """Cluster Upgrade Completed event. All required parameters must be populated in order to send to Azure. :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -44,6 +46,7 @@ class ClusterUpgradeCompleteEvent(ClusterEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -51,8 +54,8 @@ class ClusterUpgradeCompleteEvent(ClusterEvent): 'overall_upgrade_elapsed_time_in_ms': {'key': 'OverallUpgradeElapsedTimeInMs', 'type': 'float'}, } - def __init__(self, *, event_instance_id: str, time_stamp, target_cluster_version: str, overall_upgrade_elapsed_time_in_ms: float, has_correlated_events: bool=None, **kwargs) -> None: - super(ClusterUpgradeCompleteEvent, self).__init__(event_instance_id=event_instance_id, time_stamp=time_stamp, has_correlated_events=has_correlated_events, **kwargs) + def __init__(self, *, event_instance_id: str, time_stamp, target_cluster_version: str, overall_upgrade_elapsed_time_in_ms: float, category: str=None, has_correlated_events: bool=None, **kwargs) -> None: + super(ClusterUpgradeCompletedEvent, self).__init__(event_instance_id=event_instance_id, category=category, time_stamp=time_stamp, has_correlated_events=has_correlated_events, **kwargs) self.target_cluster_version = target_cluster_version self.overall_upgrade_elapsed_time_in_ms = overall_upgrade_elapsed_time_in_ms - self.kind = 'ClusterUpgradeComplete' + self.kind = 'ClusterUpgradeCompleted' diff --git a/azure-servicefabric/azure/servicefabric/models/cluster_upgrade_domain_complete_event.py b/azure-servicefabric/azure/servicefabric/models/cluster_upgrade_domain_completed_event.py similarity index 88% rename from azure-servicefabric/azure/servicefabric/models/cluster_upgrade_domain_complete_event.py rename to azure-servicefabric/azure/servicefabric/models/cluster_upgrade_domain_completed_event.py index ce7d4fdeb127..42a877024969 100644 --- a/azure-servicefabric/azure/servicefabric/models/cluster_upgrade_domain_complete_event.py +++ b/azure-servicefabric/azure/servicefabric/models/cluster_upgrade_domain_completed_event.py @@ -12,14 +12,16 @@ from .cluster_event import ClusterEvent -class ClusterUpgradeDomainCompleteEvent(ClusterEvent): - """Cluster Upgrade Domain Complete event. +class ClusterUpgradeDomainCompletedEvent(ClusterEvent): + """Cluster Upgrade Domain Completed event. All required parameters must be populated in order to send to Azure. :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -50,6 +52,7 @@ class ClusterUpgradeDomainCompleteEvent(ClusterEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -60,9 +63,9 @@ class ClusterUpgradeDomainCompleteEvent(ClusterEvent): } def __init__(self, **kwargs): - super(ClusterUpgradeDomainCompleteEvent, self).__init__(**kwargs) + super(ClusterUpgradeDomainCompletedEvent, self).__init__(**kwargs) self.target_cluster_version = kwargs.get('target_cluster_version', None) self.upgrade_state = kwargs.get('upgrade_state', None) self.upgrade_domains = kwargs.get('upgrade_domains', None) self.upgrade_domain_elapsed_time_in_ms = kwargs.get('upgrade_domain_elapsed_time_in_ms', None) - self.kind = 'ClusterUpgradeDomainComplete' + self.kind = 'ClusterUpgradeDomainCompleted' diff --git a/azure-servicefabric/azure/servicefabric/models/cluster_upgrade_domain_complete_event_py3.py b/azure-servicefabric/azure/servicefabric/models/cluster_upgrade_domain_completed_event_py3.py similarity index 82% rename from azure-servicefabric/azure/servicefabric/models/cluster_upgrade_domain_complete_event_py3.py rename to azure-servicefabric/azure/servicefabric/models/cluster_upgrade_domain_completed_event_py3.py index fa13c8bbd3e4..df7ea67d1f8e 100644 --- a/azure-servicefabric/azure/servicefabric/models/cluster_upgrade_domain_complete_event_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/cluster_upgrade_domain_completed_event_py3.py @@ -12,14 +12,16 @@ from .cluster_event_py3 import ClusterEvent -class ClusterUpgradeDomainCompleteEvent(ClusterEvent): - """Cluster Upgrade Domain Complete event. +class ClusterUpgradeDomainCompletedEvent(ClusterEvent): + """Cluster Upgrade Domain Completed event. All required parameters must be populated in order to send to Azure. :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -50,6 +52,7 @@ class ClusterUpgradeDomainCompleteEvent(ClusterEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -59,10 +62,10 @@ class ClusterUpgradeDomainCompleteEvent(ClusterEvent): 'upgrade_domain_elapsed_time_in_ms': {'key': 'UpgradeDomainElapsedTimeInMs', 'type': 'float'}, } - def __init__(self, *, event_instance_id: str, time_stamp, target_cluster_version: str, upgrade_state: str, upgrade_domains: str, upgrade_domain_elapsed_time_in_ms: float, has_correlated_events: bool=None, **kwargs) -> None: - super(ClusterUpgradeDomainCompleteEvent, self).__init__(event_instance_id=event_instance_id, time_stamp=time_stamp, has_correlated_events=has_correlated_events, **kwargs) + def __init__(self, *, event_instance_id: str, time_stamp, target_cluster_version: str, upgrade_state: str, upgrade_domains: str, upgrade_domain_elapsed_time_in_ms: float, category: str=None, has_correlated_events: bool=None, **kwargs) -> None: + super(ClusterUpgradeDomainCompletedEvent, self).__init__(event_instance_id=event_instance_id, category=category, time_stamp=time_stamp, has_correlated_events=has_correlated_events, **kwargs) self.target_cluster_version = target_cluster_version self.upgrade_state = upgrade_state self.upgrade_domains = upgrade_domains self.upgrade_domain_elapsed_time_in_ms = upgrade_domain_elapsed_time_in_ms - self.kind = 'ClusterUpgradeDomainComplete' + self.kind = 'ClusterUpgradeDomainCompleted' diff --git a/azure-servicefabric/azure/servicefabric/models/cluster_upgrade_rollback_start_event.py b/azure-servicefabric/azure/servicefabric/models/cluster_upgrade_rollback_completed_event.py similarity index 87% rename from azure-servicefabric/azure/servicefabric/models/cluster_upgrade_rollback_start_event.py rename to azure-servicefabric/azure/servicefabric/models/cluster_upgrade_rollback_completed_event.py index 8753b3d223ee..a914773939c4 100644 --- a/azure-servicefabric/azure/servicefabric/models/cluster_upgrade_rollback_start_event.py +++ b/azure-servicefabric/azure/servicefabric/models/cluster_upgrade_rollback_completed_event.py @@ -12,14 +12,16 @@ from .cluster_event import ClusterEvent -class ClusterUpgradeRollbackStartEvent(ClusterEvent): - """Cluster Upgrade Rollback Start event. +class ClusterUpgradeRollbackCompletedEvent(ClusterEvent): + """Cluster Upgrade Rollback Completed event. All required parameters must be populated in order to send to Azure. :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -47,6 +49,7 @@ class ClusterUpgradeRollbackStartEvent(ClusterEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -56,8 +59,8 @@ class ClusterUpgradeRollbackStartEvent(ClusterEvent): } def __init__(self, **kwargs): - super(ClusterUpgradeRollbackStartEvent, self).__init__(**kwargs) + super(ClusterUpgradeRollbackCompletedEvent, self).__init__(**kwargs) self.target_cluster_version = kwargs.get('target_cluster_version', None) self.failure_reason = kwargs.get('failure_reason', None) self.overall_upgrade_elapsed_time_in_ms = kwargs.get('overall_upgrade_elapsed_time_in_ms', None) - self.kind = 'ClusterUpgradeRollbackStart' + self.kind = 'ClusterUpgradeRollbackCompleted' diff --git a/azure-servicefabric/azure/servicefabric/models/cluster_upgrade_rollback_complete_event_py3.py b/azure-servicefabric/azure/servicefabric/models/cluster_upgrade_rollback_completed_event_py3.py similarity index 81% rename from azure-servicefabric/azure/servicefabric/models/cluster_upgrade_rollback_complete_event_py3.py rename to azure-servicefabric/azure/servicefabric/models/cluster_upgrade_rollback_completed_event_py3.py index 608701dfb776..75e456c3e866 100644 --- a/azure-servicefabric/azure/servicefabric/models/cluster_upgrade_rollback_complete_event_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/cluster_upgrade_rollback_completed_event_py3.py @@ -12,14 +12,16 @@ from .cluster_event_py3 import ClusterEvent -class ClusterUpgradeRollbackCompleteEvent(ClusterEvent): - """Cluster Upgrade Rollback Complete event. +class ClusterUpgradeRollbackCompletedEvent(ClusterEvent): + """Cluster Upgrade Rollback Completed event. All required parameters must be populated in order to send to Azure. :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -47,6 +49,7 @@ class ClusterUpgradeRollbackCompleteEvent(ClusterEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -55,9 +58,9 @@ class ClusterUpgradeRollbackCompleteEvent(ClusterEvent): 'overall_upgrade_elapsed_time_in_ms': {'key': 'OverallUpgradeElapsedTimeInMs', 'type': 'float'}, } - def __init__(self, *, event_instance_id: str, time_stamp, target_cluster_version: str, failure_reason: str, overall_upgrade_elapsed_time_in_ms: float, has_correlated_events: bool=None, **kwargs) -> None: - super(ClusterUpgradeRollbackCompleteEvent, self).__init__(event_instance_id=event_instance_id, time_stamp=time_stamp, has_correlated_events=has_correlated_events, **kwargs) + def __init__(self, *, event_instance_id: str, time_stamp, target_cluster_version: str, failure_reason: str, overall_upgrade_elapsed_time_in_ms: float, category: str=None, has_correlated_events: bool=None, **kwargs) -> None: + super(ClusterUpgradeRollbackCompletedEvent, self).__init__(event_instance_id=event_instance_id, category=category, time_stamp=time_stamp, has_correlated_events=has_correlated_events, **kwargs) self.target_cluster_version = target_cluster_version self.failure_reason = failure_reason self.overall_upgrade_elapsed_time_in_ms = overall_upgrade_elapsed_time_in_ms - self.kind = 'ClusterUpgradeRollbackComplete' + self.kind = 'ClusterUpgradeRollbackCompleted' diff --git a/azure-servicefabric/azure/servicefabric/models/cluster_upgrade_rollback_complete_event.py b/azure-servicefabric/azure/servicefabric/models/cluster_upgrade_rollback_started_event.py similarity index 87% rename from azure-servicefabric/azure/servicefabric/models/cluster_upgrade_rollback_complete_event.py rename to azure-servicefabric/azure/servicefabric/models/cluster_upgrade_rollback_started_event.py index 968aa073f7e8..b278a7de8898 100644 --- a/azure-servicefabric/azure/servicefabric/models/cluster_upgrade_rollback_complete_event.py +++ b/azure-servicefabric/azure/servicefabric/models/cluster_upgrade_rollback_started_event.py @@ -12,14 +12,16 @@ from .cluster_event import ClusterEvent -class ClusterUpgradeRollbackCompleteEvent(ClusterEvent): - """Cluster Upgrade Rollback Complete event. +class ClusterUpgradeRollbackStartedEvent(ClusterEvent): + """Cluster Upgrade Rollback Started event. All required parameters must be populated in order to send to Azure. :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -47,6 +49,7 @@ class ClusterUpgradeRollbackCompleteEvent(ClusterEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -56,8 +59,8 @@ class ClusterUpgradeRollbackCompleteEvent(ClusterEvent): } def __init__(self, **kwargs): - super(ClusterUpgradeRollbackCompleteEvent, self).__init__(**kwargs) + super(ClusterUpgradeRollbackStartedEvent, self).__init__(**kwargs) self.target_cluster_version = kwargs.get('target_cluster_version', None) self.failure_reason = kwargs.get('failure_reason', None) self.overall_upgrade_elapsed_time_in_ms = kwargs.get('overall_upgrade_elapsed_time_in_ms', None) - self.kind = 'ClusterUpgradeRollbackComplete' + self.kind = 'ClusterUpgradeRollbackStarted' diff --git a/azure-servicefabric/azure/servicefabric/models/cluster_upgrade_rollback_start_event_py3.py b/azure-servicefabric/azure/servicefabric/models/cluster_upgrade_rollback_started_event_py3.py similarity index 81% rename from azure-servicefabric/azure/servicefabric/models/cluster_upgrade_rollback_start_event_py3.py rename to azure-servicefabric/azure/servicefabric/models/cluster_upgrade_rollback_started_event_py3.py index a38772063737..54e00da901ba 100644 --- a/azure-servicefabric/azure/servicefabric/models/cluster_upgrade_rollback_start_event_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/cluster_upgrade_rollback_started_event_py3.py @@ -12,14 +12,16 @@ from .cluster_event_py3 import ClusterEvent -class ClusterUpgradeRollbackStartEvent(ClusterEvent): - """Cluster Upgrade Rollback Start event. +class ClusterUpgradeRollbackStartedEvent(ClusterEvent): + """Cluster Upgrade Rollback Started event. All required parameters must be populated in order to send to Azure. :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -47,6 +49,7 @@ class ClusterUpgradeRollbackStartEvent(ClusterEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -55,9 +58,9 @@ class ClusterUpgradeRollbackStartEvent(ClusterEvent): 'overall_upgrade_elapsed_time_in_ms': {'key': 'OverallUpgradeElapsedTimeInMs', 'type': 'float'}, } - def __init__(self, *, event_instance_id: str, time_stamp, target_cluster_version: str, failure_reason: str, overall_upgrade_elapsed_time_in_ms: float, has_correlated_events: bool=None, **kwargs) -> None: - super(ClusterUpgradeRollbackStartEvent, self).__init__(event_instance_id=event_instance_id, time_stamp=time_stamp, has_correlated_events=has_correlated_events, **kwargs) + def __init__(self, *, event_instance_id: str, time_stamp, target_cluster_version: str, failure_reason: str, overall_upgrade_elapsed_time_in_ms: float, category: str=None, has_correlated_events: bool=None, **kwargs) -> None: + super(ClusterUpgradeRollbackStartedEvent, self).__init__(event_instance_id=event_instance_id, category=category, time_stamp=time_stamp, has_correlated_events=has_correlated_events, **kwargs) self.target_cluster_version = target_cluster_version self.failure_reason = failure_reason self.overall_upgrade_elapsed_time_in_ms = overall_upgrade_elapsed_time_in_ms - self.kind = 'ClusterUpgradeRollbackStart' + self.kind = 'ClusterUpgradeRollbackStarted' diff --git a/azure-servicefabric/azure/servicefabric/models/cluster_upgrade_start_event.py b/azure-servicefabric/azure/servicefabric/models/cluster_upgrade_started_event.py similarity index 90% rename from azure-servicefabric/azure/servicefabric/models/cluster_upgrade_start_event.py rename to azure-servicefabric/azure/servicefabric/models/cluster_upgrade_started_event.py index 9058c78dd787..7222ff3358ef 100644 --- a/azure-servicefabric/azure/servicefabric/models/cluster_upgrade_start_event.py +++ b/azure-servicefabric/azure/servicefabric/models/cluster_upgrade_started_event.py @@ -12,14 +12,16 @@ from .cluster_event import ClusterEvent -class ClusterUpgradeStartEvent(ClusterEvent): - """Cluster Upgrade Start event. +class ClusterUpgradeStartedEvent(ClusterEvent): + """Cluster Upgrade Started event. All required parameters must be populated in order to send to Azure. :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -52,6 +54,7 @@ class ClusterUpgradeStartEvent(ClusterEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -63,10 +66,10 @@ class ClusterUpgradeStartEvent(ClusterEvent): } def __init__(self, **kwargs): - super(ClusterUpgradeStartEvent, self).__init__(**kwargs) + super(ClusterUpgradeStartedEvent, self).__init__(**kwargs) self.current_cluster_version = kwargs.get('current_cluster_version', None) self.target_cluster_version = kwargs.get('target_cluster_version', None) self.upgrade_type = kwargs.get('upgrade_type', None) self.rolling_upgrade_mode = kwargs.get('rolling_upgrade_mode', None) self.failure_action = kwargs.get('failure_action', None) - self.kind = 'ClusterUpgradeStart' + self.kind = 'ClusterUpgradeStarted' diff --git a/azure-servicefabric/azure/servicefabric/models/cluster_upgrade_start_event_py3.py b/azure-servicefabric/azure/servicefabric/models/cluster_upgrade_started_event_py3.py similarity index 83% rename from azure-servicefabric/azure/servicefabric/models/cluster_upgrade_start_event_py3.py rename to azure-servicefabric/azure/servicefabric/models/cluster_upgrade_started_event_py3.py index b3c4a53469d3..e35bc36b55e6 100644 --- a/azure-servicefabric/azure/servicefabric/models/cluster_upgrade_start_event_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/cluster_upgrade_started_event_py3.py @@ -12,14 +12,16 @@ from .cluster_event_py3 import ClusterEvent -class ClusterUpgradeStartEvent(ClusterEvent): - """Cluster Upgrade Start event. +class ClusterUpgradeStartedEvent(ClusterEvent): + """Cluster Upgrade Started event. All required parameters must be populated in order to send to Azure. :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -52,6 +54,7 @@ class ClusterUpgradeStartEvent(ClusterEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -62,11 +65,11 @@ class ClusterUpgradeStartEvent(ClusterEvent): 'failure_action': {'key': 'FailureAction', 'type': 'str'}, } - def __init__(self, *, event_instance_id: str, time_stamp, current_cluster_version: str, target_cluster_version: str, upgrade_type: str, rolling_upgrade_mode: str, failure_action: str, has_correlated_events: bool=None, **kwargs) -> None: - super(ClusterUpgradeStartEvent, self).__init__(event_instance_id=event_instance_id, time_stamp=time_stamp, has_correlated_events=has_correlated_events, **kwargs) + def __init__(self, *, event_instance_id: str, time_stamp, current_cluster_version: str, target_cluster_version: str, upgrade_type: str, rolling_upgrade_mode: str, failure_action: str, category: str=None, has_correlated_events: bool=None, **kwargs) -> None: + super(ClusterUpgradeStartedEvent, self).__init__(event_instance_id=event_instance_id, category=category, time_stamp=time_stamp, has_correlated_events=has_correlated_events, **kwargs) self.current_cluster_version = current_cluster_version self.target_cluster_version = target_cluster_version self.upgrade_type = upgrade_type self.rolling_upgrade_mode = rolling_upgrade_mode self.failure_action = failure_action - self.kind = 'ClusterUpgradeStart' + self.kind = 'ClusterUpgradeStarted' diff --git a/azure-servicefabric/azure/servicefabric/models/cluster_version.py b/azure-servicefabric/azure/servicefabric/models/cluster_version.py new file mode 100644 index 000000000000..15b4fdbf77b6 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/cluster_version.py @@ -0,0 +1,28 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ClusterVersion(Model): + """The cluster version. + + :param version: The Service Fabric cluster runtime version. + :type version: str + """ + + _attribute_map = { + 'version': {'key': 'Version', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ClusterVersion, self).__init__(**kwargs) + self.version = kwargs.get('version', None) diff --git a/azure-servicefabric/azure/servicefabric/models/cluster_version_py3.py b/azure-servicefabric/azure/servicefabric/models/cluster_version_py3.py new file mode 100644 index 000000000000..fcf80889c1de --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/cluster_version_py3.py @@ -0,0 +1,28 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ClusterVersion(Model): + """The cluster version. + + :param version: The Service Fabric cluster runtime version. + :type version: str + """ + + _attribute_map = { + 'version': {'key': 'Version', 'type': 'str'}, + } + + def __init__(self, *, version: str=None, **kwargs) -> None: + super(ClusterVersion, self).__init__(**kwargs) + self.version = version diff --git a/azure-servicefabric/azure/servicefabric/models/container_code_package_properties.py b/azure-servicefabric/azure/servicefabric/models/container_code_package_properties.py index 7f9982d44792..b41fecb62b10 100644 --- a/azure-servicefabric/azure/servicefabric/models/container_code_package_properties.py +++ b/azure-servicefabric/azure/servicefabric/models/container_code_package_properties.py @@ -45,15 +45,23 @@ class ContainerCodePackageProperties(Model): :type labels: list[~azure.servicefabric.models.ContainerLabel] :param endpoints: The endpoints exposed by this container. :type endpoints: list[~azure.servicefabric.models.EndpointProperties] - :param resources: Required. This type describes the resource requirements - for a container or a service. + :param resources: Required. The resources required by this container. :type resources: ~azure.servicefabric.models.ResourceRequirements - :param volume_refs: The volumes to be attached to the container. - :type volume_refs: list[~azure.servicefabric.models.ContainerVolume] - :ivar instance_view: Runtime information of a container instance. - :vartype instance_view: ~azure.servicefabric.models.ContainerInstanceView + :param volume_refs: Volumes to be attached to the container. The lifetime + of these volumes is independent of the application's lifetime. + :type volume_refs: list[~azure.servicefabric.models.VolumeReference] + :param volumes: Volumes to be attached to the container. The lifetime of + these volumes is scoped to the application's lifetime. + :type volumes: list[~azure.servicefabric.models.ApplicationScopedVolume] :param diagnostics: Reference to sinks in DiagnosticsDescription. :type diagnostics: ~azure.servicefabric.models.DiagnosticsRef + :param reliable_collections_refs: A list of ReliableCollection resources + used by this particular code package. Please refer to + ReliablecollectionsRef for more details. + :type reliable_collections_refs: + list[~azure.servicefabric.models.ReliableCollectionsRef] + :ivar instance_view: Runtime information of a container instance. + :vartype instance_view: ~azure.servicefabric.models.ContainerInstanceView """ _validation = { @@ -74,9 +82,11 @@ class ContainerCodePackageProperties(Model): 'labels': {'key': 'labels', 'type': '[ContainerLabel]'}, 'endpoints': {'key': 'endpoints', 'type': '[EndpointProperties]'}, 'resources': {'key': 'resources', 'type': 'ResourceRequirements'}, - 'volume_refs': {'key': 'volumeRefs', 'type': '[ContainerVolume]'}, - 'instance_view': {'key': 'instanceView', 'type': 'ContainerInstanceView'}, + 'volume_refs': {'key': 'volumeRefs', 'type': '[VolumeReference]'}, + 'volumes': {'key': 'volumes', 'type': '[ApplicationScopedVolume]'}, 'diagnostics': {'key': 'diagnostics', 'type': 'DiagnosticsRef'}, + 'reliable_collections_refs': {'key': 'reliableCollectionsRefs', 'type': '[ReliableCollectionsRef]'}, + 'instance_view': {'key': 'instanceView', 'type': 'ContainerInstanceView'}, } def __init__(self, **kwargs): @@ -92,5 +102,7 @@ def __init__(self, **kwargs): self.endpoints = kwargs.get('endpoints', None) self.resources = kwargs.get('resources', None) self.volume_refs = kwargs.get('volume_refs', None) - self.instance_view = None + self.volumes = kwargs.get('volumes', None) self.diagnostics = kwargs.get('diagnostics', None) + self.reliable_collections_refs = kwargs.get('reliable_collections_refs', None) + self.instance_view = None diff --git a/azure-servicefabric/azure/servicefabric/models/container_code_package_properties_py3.py b/azure-servicefabric/azure/servicefabric/models/container_code_package_properties_py3.py index 8022d73d5487..44d6e2666dc1 100644 --- a/azure-servicefabric/azure/servicefabric/models/container_code_package_properties_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/container_code_package_properties_py3.py @@ -45,15 +45,23 @@ class ContainerCodePackageProperties(Model): :type labels: list[~azure.servicefabric.models.ContainerLabel] :param endpoints: The endpoints exposed by this container. :type endpoints: list[~azure.servicefabric.models.EndpointProperties] - :param resources: Required. This type describes the resource requirements - for a container or a service. + :param resources: Required. The resources required by this container. :type resources: ~azure.servicefabric.models.ResourceRequirements - :param volume_refs: The volumes to be attached to the container. - :type volume_refs: list[~azure.servicefabric.models.ContainerVolume] - :ivar instance_view: Runtime information of a container instance. - :vartype instance_view: ~azure.servicefabric.models.ContainerInstanceView + :param volume_refs: Volumes to be attached to the container. The lifetime + of these volumes is independent of the application's lifetime. + :type volume_refs: list[~azure.servicefabric.models.VolumeReference] + :param volumes: Volumes to be attached to the container. The lifetime of + these volumes is scoped to the application's lifetime. + :type volumes: list[~azure.servicefabric.models.ApplicationScopedVolume] :param diagnostics: Reference to sinks in DiagnosticsDescription. :type diagnostics: ~azure.servicefabric.models.DiagnosticsRef + :param reliable_collections_refs: A list of ReliableCollection resources + used by this particular code package. Please refer to + ReliablecollectionsRef for more details. + :type reliable_collections_refs: + list[~azure.servicefabric.models.ReliableCollectionsRef] + :ivar instance_view: Runtime information of a container instance. + :vartype instance_view: ~azure.servicefabric.models.ContainerInstanceView """ _validation = { @@ -74,12 +82,14 @@ class ContainerCodePackageProperties(Model): 'labels': {'key': 'labels', 'type': '[ContainerLabel]'}, 'endpoints': {'key': 'endpoints', 'type': '[EndpointProperties]'}, 'resources': {'key': 'resources', 'type': 'ResourceRequirements'}, - 'volume_refs': {'key': 'volumeRefs', 'type': '[ContainerVolume]'}, - 'instance_view': {'key': 'instanceView', 'type': 'ContainerInstanceView'}, + 'volume_refs': {'key': 'volumeRefs', 'type': '[VolumeReference]'}, + 'volumes': {'key': 'volumes', 'type': '[ApplicationScopedVolume]'}, 'diagnostics': {'key': 'diagnostics', 'type': 'DiagnosticsRef'}, + 'reliable_collections_refs': {'key': 'reliableCollectionsRefs', 'type': '[ReliableCollectionsRef]'}, + 'instance_view': {'key': 'instanceView', 'type': 'ContainerInstanceView'}, } - def __init__(self, *, name: str, image: str, resources, image_registry_credential=None, entrypoint: str=None, commands=None, environment_variables=None, settings=None, labels=None, endpoints=None, volume_refs=None, diagnostics=None, **kwargs) -> None: + def __init__(self, *, name: str, image: str, resources, image_registry_credential=None, entrypoint: str=None, commands=None, environment_variables=None, settings=None, labels=None, endpoints=None, volume_refs=None, volumes=None, diagnostics=None, reliable_collections_refs=None, **kwargs) -> None: super(ContainerCodePackageProperties, self).__init__(**kwargs) self.name = name self.image = image @@ -92,5 +102,7 @@ def __init__(self, *, name: str, image: str, resources, image_registry_credentia self.endpoints = endpoints self.resources = resources self.volume_refs = volume_refs - self.instance_view = None + self.volumes = volumes self.diagnostics = diagnostics + self.reliable_collections_refs = reliable_collections_refs + self.instance_view = None diff --git a/azure-servicefabric/azure/servicefabric/models/container_instance_event.py b/azure-servicefabric/azure/servicefabric/models/container_instance_event.py index 9b67613e8c40..1796cecba7ad 100644 --- a/azure-servicefabric/azure/servicefabric/models/container_instance_event.py +++ b/azure-servicefabric/azure/servicefabric/models/container_instance_event.py @@ -20,6 +20,8 @@ class ContainerInstanceEvent(FabricEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -37,6 +39,7 @@ class ContainerInstanceEvent(FabricEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, diff --git a/azure-servicefabric/azure/servicefabric/models/container_instance_event_py3.py b/azure-servicefabric/azure/servicefabric/models/container_instance_event_py3.py index 964cfb2cf087..82e227c10b6a 100644 --- a/azure-servicefabric/azure/servicefabric/models/container_instance_event_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/container_instance_event_py3.py @@ -20,6 +20,8 @@ class ContainerInstanceEvent(FabricEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -37,11 +39,12 @@ class ContainerInstanceEvent(FabricEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, } - def __init__(self, *, event_instance_id: str, time_stamp, has_correlated_events: bool=None, **kwargs) -> None: - super(ContainerInstanceEvent, self).__init__(event_instance_id=event_instance_id, time_stamp=time_stamp, has_correlated_events=has_correlated_events, **kwargs) + def __init__(self, *, event_instance_id: str, time_stamp, category: str=None, has_correlated_events: bool=None, **kwargs) -> None: + super(ContainerInstanceEvent, self).__init__(event_instance_id=event_instance_id, category=category, time_stamp=time_stamp, has_correlated_events=has_correlated_events, **kwargs) self.kind = 'ContainerInstanceEvent' diff --git a/azure-servicefabric/azure/servicefabric/models/deployed_application_health_report_expired_event.py b/azure-servicefabric/azure/servicefabric/models/deployed_application_health_report_expired_event.py index 49a5ba601c26..5646f2d6d6b6 100644 --- a/azure-servicefabric/azure/servicefabric/models/deployed_application_health_report_expired_event.py +++ b/azure-servicefabric/azure/servicefabric/models/deployed_application_health_report_expired_event.py @@ -20,6 +20,8 @@ class DeployedApplicationHealthReportExpiredEvent(ApplicationEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -77,6 +79,7 @@ class DeployedApplicationHealthReportExpiredEvent(ApplicationEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, diff --git a/azure-servicefabric/azure/servicefabric/models/deployed_application_health_report_expired_event_py3.py b/azure-servicefabric/azure/servicefabric/models/deployed_application_health_report_expired_event_py3.py index 2a4e7960cea8..29489b61dac0 100644 --- a/azure-servicefabric/azure/servicefabric/models/deployed_application_health_report_expired_event_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/deployed_application_health_report_expired_event_py3.py @@ -20,6 +20,8 @@ class DeployedApplicationHealthReportExpiredEvent(ApplicationEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -77,6 +79,7 @@ class DeployedApplicationHealthReportExpiredEvent(ApplicationEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -93,8 +96,8 @@ class DeployedApplicationHealthReportExpiredEvent(ApplicationEvent): 'source_utc_timestamp': {'key': 'SourceUtcTimestamp', 'type': 'iso-8601'}, } - def __init__(self, *, event_instance_id: str, time_stamp, application_id: str, application_instance_id: int, node_name: str, source_id: str, property: str, health_state: str, time_to_live_ms: int, sequence_number: int, description: str, remove_when_expired: bool, source_utc_timestamp, has_correlated_events: bool=None, **kwargs) -> None: - super(DeployedApplicationHealthReportExpiredEvent, self).__init__(event_instance_id=event_instance_id, time_stamp=time_stamp, has_correlated_events=has_correlated_events, application_id=application_id, **kwargs) + def __init__(self, *, event_instance_id: str, time_stamp, application_id: str, application_instance_id: int, node_name: str, source_id: str, property: str, health_state: str, time_to_live_ms: int, sequence_number: int, description: str, remove_when_expired: bool, source_utc_timestamp, category: str=None, has_correlated_events: bool=None, **kwargs) -> None: + super(DeployedApplicationHealthReportExpiredEvent, self).__init__(event_instance_id=event_instance_id, category=category, time_stamp=time_stamp, has_correlated_events=has_correlated_events, application_id=application_id, **kwargs) self.application_instance_id = application_instance_id self.node_name = node_name self.source_id = source_id diff --git a/azure-servicefabric/azure/servicefabric/models/deployed_application_health_report_created_event.py b/azure-servicefabric/azure/servicefabric/models/deployed_application_new_health_report_event.py similarity index 93% rename from azure-servicefabric/azure/servicefabric/models/deployed_application_health_report_created_event.py rename to azure-servicefabric/azure/servicefabric/models/deployed_application_new_health_report_event.py index 287298f3e914..297abe18034b 100644 --- a/azure-servicefabric/azure/servicefabric/models/deployed_application_health_report_created_event.py +++ b/azure-servicefabric/azure/servicefabric/models/deployed_application_new_health_report_event.py @@ -12,7 +12,7 @@ from .application_event import ApplicationEvent -class DeployedApplicationHealthReportCreatedEvent(ApplicationEvent): +class DeployedApplicationNewHealthReportEvent(ApplicationEvent): """Deployed Application Health Report Created event. All required parameters must be populated in order to send to Azure. @@ -20,6 +20,8 @@ class DeployedApplicationHealthReportCreatedEvent(ApplicationEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -77,6 +79,7 @@ class DeployedApplicationHealthReportCreatedEvent(ApplicationEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -94,7 +97,7 @@ class DeployedApplicationHealthReportCreatedEvent(ApplicationEvent): } def __init__(self, **kwargs): - super(DeployedApplicationHealthReportCreatedEvent, self).__init__(**kwargs) + super(DeployedApplicationNewHealthReportEvent, self).__init__(**kwargs) self.application_instance_id = kwargs.get('application_instance_id', None) self.node_name = kwargs.get('node_name', None) self.source_id = kwargs.get('source_id', None) @@ -105,4 +108,4 @@ def __init__(self, **kwargs): self.description = kwargs.get('description', None) self.remove_when_expired = kwargs.get('remove_when_expired', None) self.source_utc_timestamp = kwargs.get('source_utc_timestamp', None) - self.kind = 'DeployedApplicationHealthReportCreated' + self.kind = 'DeployedApplicationNewHealthReport' diff --git a/azure-servicefabric/azure/servicefabric/models/deployed_application_health_report_created_event_py3.py b/azure-servicefabric/azure/servicefabric/models/deployed_application_new_health_report_event_py3.py similarity index 89% rename from azure-servicefabric/azure/servicefabric/models/deployed_application_health_report_created_event_py3.py rename to azure-servicefabric/azure/servicefabric/models/deployed_application_new_health_report_event_py3.py index 440d679eb2e1..7f837853194f 100644 --- a/azure-servicefabric/azure/servicefabric/models/deployed_application_health_report_created_event_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/deployed_application_new_health_report_event_py3.py @@ -12,7 +12,7 @@ from .application_event_py3 import ApplicationEvent -class DeployedApplicationHealthReportCreatedEvent(ApplicationEvent): +class DeployedApplicationNewHealthReportEvent(ApplicationEvent): """Deployed Application Health Report Created event. All required parameters must be populated in order to send to Azure. @@ -20,6 +20,8 @@ class DeployedApplicationHealthReportCreatedEvent(ApplicationEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -77,6 +79,7 @@ class DeployedApplicationHealthReportCreatedEvent(ApplicationEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -93,8 +96,8 @@ class DeployedApplicationHealthReportCreatedEvent(ApplicationEvent): 'source_utc_timestamp': {'key': 'SourceUtcTimestamp', 'type': 'iso-8601'}, } - def __init__(self, *, event_instance_id: str, time_stamp, application_id: str, application_instance_id: int, node_name: str, source_id: str, property: str, health_state: str, time_to_live_ms: int, sequence_number: int, description: str, remove_when_expired: bool, source_utc_timestamp, has_correlated_events: bool=None, **kwargs) -> None: - super(DeployedApplicationHealthReportCreatedEvent, self).__init__(event_instance_id=event_instance_id, time_stamp=time_stamp, has_correlated_events=has_correlated_events, application_id=application_id, **kwargs) + def __init__(self, *, event_instance_id: str, time_stamp, application_id: str, application_instance_id: int, node_name: str, source_id: str, property: str, health_state: str, time_to_live_ms: int, sequence_number: int, description: str, remove_when_expired: bool, source_utc_timestamp, category: str=None, has_correlated_events: bool=None, **kwargs) -> None: + super(DeployedApplicationNewHealthReportEvent, self).__init__(event_instance_id=event_instance_id, category=category, time_stamp=time_stamp, has_correlated_events=has_correlated_events, application_id=application_id, **kwargs) self.application_instance_id = application_instance_id self.node_name = node_name self.source_id = source_id @@ -105,4 +108,4 @@ def __init__(self, *, event_instance_id: str, time_stamp, application_id: str, a self.description = description self.remove_when_expired = remove_when_expired self.source_utc_timestamp = source_utc_timestamp - self.kind = 'DeployedApplicationHealthReportCreated' + self.kind = 'DeployedApplicationNewHealthReport' diff --git a/azure-servicefabric/azure/servicefabric/models/deployed_service_health_report_expired_event.py b/azure-servicefabric/azure/servicefabric/models/deployed_service_package_health_report_expired_event.py similarity index 89% rename from azure-servicefabric/azure/servicefabric/models/deployed_service_health_report_expired_event.py rename to azure-servicefabric/azure/servicefabric/models/deployed_service_package_health_report_expired_event.py index 8620c7d627d6..b8af144a0bcb 100644 --- a/azure-servicefabric/azure/servicefabric/models/deployed_service_health_report_expired_event.py +++ b/azure-servicefabric/azure/servicefabric/models/deployed_service_package_health_report_expired_event.py @@ -12,7 +12,7 @@ from .application_event import ApplicationEvent -class DeployedServiceHealthReportExpiredEvent(ApplicationEvent): +class DeployedServicePackageHealthReportExpiredEvent(ApplicationEvent): """Deployed Service Health Report Expired event. All required parameters must be populated in order to send to Azure. @@ -20,6 +20,8 @@ class DeployedServiceHealthReportExpiredEvent(ApplicationEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -51,8 +53,8 @@ class DeployedServiceHealthReportExpiredEvent(ApplicationEvent): :type property: str :param health_state: Required. Describes the property health state. :type health_state: str - :param ttl_timespan: Required. Time to live in milli-seconds. - :type ttl_timespan: long + :param time_to_live_ms: Required. Time to live in milli-seconds. + :type time_to_live_ms: long :param sequence_number: Required. Sequence number of report. :type sequence_number: long :param description: Required. Description of report. @@ -76,7 +78,7 @@ class DeployedServiceHealthReportExpiredEvent(ApplicationEvent): 'source_id': {'required': True}, 'property': {'required': True}, 'health_state': {'required': True}, - 'ttl_timespan': {'required': True}, + 'time_to_live_ms': {'required': True}, 'sequence_number': {'required': True}, 'description': {'required': True}, 'remove_when_expired': {'required': True}, @@ -85,6 +87,7 @@ class DeployedServiceHealthReportExpiredEvent(ApplicationEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -96,7 +99,7 @@ class DeployedServiceHealthReportExpiredEvent(ApplicationEvent): 'source_id': {'key': 'SourceId', 'type': 'str'}, 'property': {'key': 'Property', 'type': 'str'}, 'health_state': {'key': 'HealthState', 'type': 'str'}, - 'ttl_timespan': {'key': 'TTLTimespan', 'type': 'long'}, + 'time_to_live_ms': {'key': 'TimeToLiveMs', 'type': 'long'}, 'sequence_number': {'key': 'SequenceNumber', 'type': 'long'}, 'description': {'key': 'Description', 'type': 'str'}, 'remove_when_expired': {'key': 'RemoveWhenExpired', 'type': 'bool'}, @@ -104,7 +107,7 @@ class DeployedServiceHealthReportExpiredEvent(ApplicationEvent): } def __init__(self, **kwargs): - super(DeployedServiceHealthReportExpiredEvent, self).__init__(**kwargs) + super(DeployedServicePackageHealthReportExpiredEvent, self).__init__(**kwargs) self.service_manifest = kwargs.get('service_manifest', None) self.service_package_instance_id = kwargs.get('service_package_instance_id', None) self.service_package_activation_id = kwargs.get('service_package_activation_id', None) @@ -112,9 +115,9 @@ def __init__(self, **kwargs): self.source_id = kwargs.get('source_id', None) self.property = kwargs.get('property', None) self.health_state = kwargs.get('health_state', None) - self.ttl_timespan = kwargs.get('ttl_timespan', None) + self.time_to_live_ms = kwargs.get('time_to_live_ms', None) self.sequence_number = kwargs.get('sequence_number', None) self.description = kwargs.get('description', None) self.remove_when_expired = kwargs.get('remove_when_expired', None) self.source_utc_timestamp = kwargs.get('source_utc_timestamp', None) - self.kind = 'DeployedServiceHealthReportExpired' + self.kind = 'DeployedServicePackageHealthReportExpired' diff --git a/azure-servicefabric/azure/servicefabric/models/deployed_service_health_report_expired_event_py3.py b/azure-servicefabric/azure/servicefabric/models/deployed_service_package_health_report_expired_event_py3.py similarity index 84% rename from azure-servicefabric/azure/servicefabric/models/deployed_service_health_report_expired_event_py3.py rename to azure-servicefabric/azure/servicefabric/models/deployed_service_package_health_report_expired_event_py3.py index 1180d24139e2..28e8f9d8c564 100644 --- a/azure-servicefabric/azure/servicefabric/models/deployed_service_health_report_expired_event_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/deployed_service_package_health_report_expired_event_py3.py @@ -12,7 +12,7 @@ from .application_event_py3 import ApplicationEvent -class DeployedServiceHealthReportExpiredEvent(ApplicationEvent): +class DeployedServicePackageHealthReportExpiredEvent(ApplicationEvent): """Deployed Service Health Report Expired event. All required parameters must be populated in order to send to Azure. @@ -20,6 +20,8 @@ class DeployedServiceHealthReportExpiredEvent(ApplicationEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -51,8 +53,8 @@ class DeployedServiceHealthReportExpiredEvent(ApplicationEvent): :type property: str :param health_state: Required. Describes the property health state. :type health_state: str - :param ttl_timespan: Required. Time to live in milli-seconds. - :type ttl_timespan: long + :param time_to_live_ms: Required. Time to live in milli-seconds. + :type time_to_live_ms: long :param sequence_number: Required. Sequence number of report. :type sequence_number: long :param description: Required. Description of report. @@ -76,7 +78,7 @@ class DeployedServiceHealthReportExpiredEvent(ApplicationEvent): 'source_id': {'required': True}, 'property': {'required': True}, 'health_state': {'required': True}, - 'ttl_timespan': {'required': True}, + 'time_to_live_ms': {'required': True}, 'sequence_number': {'required': True}, 'description': {'required': True}, 'remove_when_expired': {'required': True}, @@ -85,6 +87,7 @@ class DeployedServiceHealthReportExpiredEvent(ApplicationEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -96,15 +99,15 @@ class DeployedServiceHealthReportExpiredEvent(ApplicationEvent): 'source_id': {'key': 'SourceId', 'type': 'str'}, 'property': {'key': 'Property', 'type': 'str'}, 'health_state': {'key': 'HealthState', 'type': 'str'}, - 'ttl_timespan': {'key': 'TTLTimespan', 'type': 'long'}, + 'time_to_live_ms': {'key': 'TimeToLiveMs', 'type': 'long'}, 'sequence_number': {'key': 'SequenceNumber', 'type': 'long'}, 'description': {'key': 'Description', 'type': 'str'}, 'remove_when_expired': {'key': 'RemoveWhenExpired', 'type': 'bool'}, 'source_utc_timestamp': {'key': 'SourceUtcTimestamp', 'type': 'iso-8601'}, } - def __init__(self, *, event_instance_id: str, time_stamp, application_id: str, service_manifest: str, service_package_instance_id: int, service_package_activation_id: str, node_name: str, source_id: str, property: str, health_state: str, ttl_timespan: int, sequence_number: int, description: str, remove_when_expired: bool, source_utc_timestamp, has_correlated_events: bool=None, **kwargs) -> None: - super(DeployedServiceHealthReportExpiredEvent, self).__init__(event_instance_id=event_instance_id, time_stamp=time_stamp, has_correlated_events=has_correlated_events, application_id=application_id, **kwargs) + def __init__(self, *, event_instance_id: str, time_stamp, application_id: str, service_manifest: str, service_package_instance_id: int, service_package_activation_id: str, node_name: str, source_id: str, property: str, health_state: str, time_to_live_ms: int, sequence_number: int, description: str, remove_when_expired: bool, source_utc_timestamp, category: str=None, has_correlated_events: bool=None, **kwargs) -> None: + super(DeployedServicePackageHealthReportExpiredEvent, self).__init__(event_instance_id=event_instance_id, category=category, time_stamp=time_stamp, has_correlated_events=has_correlated_events, application_id=application_id, **kwargs) self.service_manifest = service_manifest self.service_package_instance_id = service_package_instance_id self.service_package_activation_id = service_package_activation_id @@ -112,9 +115,9 @@ def __init__(self, *, event_instance_id: str, time_stamp, application_id: str, s self.source_id = source_id self.property = property self.health_state = health_state - self.ttl_timespan = ttl_timespan + self.time_to_live_ms = time_to_live_ms self.sequence_number = sequence_number self.description = description self.remove_when_expired = remove_when_expired self.source_utc_timestamp = source_utc_timestamp - self.kind = 'DeployedServiceHealthReportExpired' + self.kind = 'DeployedServicePackageHealthReportExpired' diff --git a/azure-servicefabric/azure/servicefabric/models/deployed_service_health_report_created_event.py b/azure-servicefabric/azure/servicefabric/models/deployed_service_package_new_health_report_event.py similarity index 89% rename from azure-servicefabric/azure/servicefabric/models/deployed_service_health_report_created_event.py rename to azure-servicefabric/azure/servicefabric/models/deployed_service_package_new_health_report_event.py index 7b333aa48fbb..744978800f73 100644 --- a/azure-servicefabric/azure/servicefabric/models/deployed_service_health_report_created_event.py +++ b/azure-servicefabric/azure/servicefabric/models/deployed_service_package_new_health_report_event.py @@ -12,7 +12,7 @@ from .application_event import ApplicationEvent -class DeployedServiceHealthReportCreatedEvent(ApplicationEvent): +class DeployedServicePackageNewHealthReportEvent(ApplicationEvent): """Deployed Service Health Report Created event. All required parameters must be populated in order to send to Azure. @@ -20,6 +20,8 @@ class DeployedServiceHealthReportCreatedEvent(ApplicationEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -51,8 +53,8 @@ class DeployedServiceHealthReportCreatedEvent(ApplicationEvent): :type property: str :param health_state: Required. Describes the property health state. :type health_state: str - :param ttl_timespan: Required. Time to live in milli-seconds. - :type ttl_timespan: long + :param time_to_live_ms: Required. Time to live in milli-seconds. + :type time_to_live_ms: long :param sequence_number: Required. Sequence number of report. :type sequence_number: long :param description: Required. Description of report. @@ -76,7 +78,7 @@ class DeployedServiceHealthReportCreatedEvent(ApplicationEvent): 'source_id': {'required': True}, 'property': {'required': True}, 'health_state': {'required': True}, - 'ttl_timespan': {'required': True}, + 'time_to_live_ms': {'required': True}, 'sequence_number': {'required': True}, 'description': {'required': True}, 'remove_when_expired': {'required': True}, @@ -85,6 +87,7 @@ class DeployedServiceHealthReportCreatedEvent(ApplicationEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -96,7 +99,7 @@ class DeployedServiceHealthReportCreatedEvent(ApplicationEvent): 'source_id': {'key': 'SourceId', 'type': 'str'}, 'property': {'key': 'Property', 'type': 'str'}, 'health_state': {'key': 'HealthState', 'type': 'str'}, - 'ttl_timespan': {'key': 'TTLTimespan', 'type': 'long'}, + 'time_to_live_ms': {'key': 'TimeToLiveMs', 'type': 'long'}, 'sequence_number': {'key': 'SequenceNumber', 'type': 'long'}, 'description': {'key': 'Description', 'type': 'str'}, 'remove_when_expired': {'key': 'RemoveWhenExpired', 'type': 'bool'}, @@ -104,7 +107,7 @@ class DeployedServiceHealthReportCreatedEvent(ApplicationEvent): } def __init__(self, **kwargs): - super(DeployedServiceHealthReportCreatedEvent, self).__init__(**kwargs) + super(DeployedServicePackageNewHealthReportEvent, self).__init__(**kwargs) self.service_manifest_name = kwargs.get('service_manifest_name', None) self.service_package_instance_id = kwargs.get('service_package_instance_id', None) self.service_package_activation_id = kwargs.get('service_package_activation_id', None) @@ -112,9 +115,9 @@ def __init__(self, **kwargs): self.source_id = kwargs.get('source_id', None) self.property = kwargs.get('property', None) self.health_state = kwargs.get('health_state', None) - self.ttl_timespan = kwargs.get('ttl_timespan', None) + self.time_to_live_ms = kwargs.get('time_to_live_ms', None) self.sequence_number = kwargs.get('sequence_number', None) self.description = kwargs.get('description', None) self.remove_when_expired = kwargs.get('remove_when_expired', None) self.source_utc_timestamp = kwargs.get('source_utc_timestamp', None) - self.kind = 'DeployedServiceHealthReportCreated' + self.kind = 'DeployedServicePackageNewHealthReport' diff --git a/azure-servicefabric/azure/servicefabric/models/deployed_service_health_report_created_event_py3.py b/azure-servicefabric/azure/servicefabric/models/deployed_service_package_new_health_report_event_py3.py similarity index 84% rename from azure-servicefabric/azure/servicefabric/models/deployed_service_health_report_created_event_py3.py rename to azure-servicefabric/azure/servicefabric/models/deployed_service_package_new_health_report_event_py3.py index be41c0c0c6c0..487a29575491 100644 --- a/azure-servicefabric/azure/servicefabric/models/deployed_service_health_report_created_event_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/deployed_service_package_new_health_report_event_py3.py @@ -12,7 +12,7 @@ from .application_event_py3 import ApplicationEvent -class DeployedServiceHealthReportCreatedEvent(ApplicationEvent): +class DeployedServicePackageNewHealthReportEvent(ApplicationEvent): """Deployed Service Health Report Created event. All required parameters must be populated in order to send to Azure. @@ -20,6 +20,8 @@ class DeployedServiceHealthReportCreatedEvent(ApplicationEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -51,8 +53,8 @@ class DeployedServiceHealthReportCreatedEvent(ApplicationEvent): :type property: str :param health_state: Required. Describes the property health state. :type health_state: str - :param ttl_timespan: Required. Time to live in milli-seconds. - :type ttl_timespan: long + :param time_to_live_ms: Required. Time to live in milli-seconds. + :type time_to_live_ms: long :param sequence_number: Required. Sequence number of report. :type sequence_number: long :param description: Required. Description of report. @@ -76,7 +78,7 @@ class DeployedServiceHealthReportCreatedEvent(ApplicationEvent): 'source_id': {'required': True}, 'property': {'required': True}, 'health_state': {'required': True}, - 'ttl_timespan': {'required': True}, + 'time_to_live_ms': {'required': True}, 'sequence_number': {'required': True}, 'description': {'required': True}, 'remove_when_expired': {'required': True}, @@ -85,6 +87,7 @@ class DeployedServiceHealthReportCreatedEvent(ApplicationEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -96,15 +99,15 @@ class DeployedServiceHealthReportCreatedEvent(ApplicationEvent): 'source_id': {'key': 'SourceId', 'type': 'str'}, 'property': {'key': 'Property', 'type': 'str'}, 'health_state': {'key': 'HealthState', 'type': 'str'}, - 'ttl_timespan': {'key': 'TTLTimespan', 'type': 'long'}, + 'time_to_live_ms': {'key': 'TimeToLiveMs', 'type': 'long'}, 'sequence_number': {'key': 'SequenceNumber', 'type': 'long'}, 'description': {'key': 'Description', 'type': 'str'}, 'remove_when_expired': {'key': 'RemoveWhenExpired', 'type': 'bool'}, 'source_utc_timestamp': {'key': 'SourceUtcTimestamp', 'type': 'iso-8601'}, } - def __init__(self, *, event_instance_id: str, time_stamp, application_id: str, service_manifest_name: str, service_package_instance_id: int, service_package_activation_id: str, node_name: str, source_id: str, property: str, health_state: str, ttl_timespan: int, sequence_number: int, description: str, remove_when_expired: bool, source_utc_timestamp, has_correlated_events: bool=None, **kwargs) -> None: - super(DeployedServiceHealthReportCreatedEvent, self).__init__(event_instance_id=event_instance_id, time_stamp=time_stamp, has_correlated_events=has_correlated_events, application_id=application_id, **kwargs) + def __init__(self, *, event_instance_id: str, time_stamp, application_id: str, service_manifest_name: str, service_package_instance_id: int, service_package_activation_id: str, node_name: str, source_id: str, property: str, health_state: str, time_to_live_ms: int, sequence_number: int, description: str, remove_when_expired: bool, source_utc_timestamp, category: str=None, has_correlated_events: bool=None, **kwargs) -> None: + super(DeployedServicePackageNewHealthReportEvent, self).__init__(event_instance_id=event_instance_id, category=category, time_stamp=time_stamp, has_correlated_events=has_correlated_events, application_id=application_id, **kwargs) self.service_manifest_name = service_manifest_name self.service_package_instance_id = service_package_instance_id self.service_package_activation_id = service_package_activation_id @@ -112,9 +115,9 @@ def __init__(self, *, event_instance_id: str, time_stamp, application_id: str, s self.source_id = source_id self.property = property self.health_state = health_state - self.ttl_timespan = ttl_timespan + self.time_to_live_ms = time_to_live_ms self.sequence_number = sequence_number self.description = description self.remove_when_expired = remove_when_expired self.source_utc_timestamp = source_utc_timestamp - self.kind = 'DeployedServiceHealthReportCreated' + self.kind = 'DeployedServicePackageNewHealthReport' diff --git a/azure-servicefabric/azure/servicefabric/models/diagnostics_sink_properties.py b/azure-servicefabric/azure/servicefabric/models/diagnostics_sink_properties.py index 0f92568c3b43..63da00fe00b8 100644 --- a/azure-servicefabric/azure/servicefabric/models/diagnostics_sink_properties.py +++ b/azure-servicefabric/azure/servicefabric/models/diagnostics_sink_properties.py @@ -15,6 +15,9 @@ class DiagnosticsSinkProperties(Model): """Properties of a DiagnosticsSink. + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AzureInternalMonitoringPipelineSinkDescription + All required parameters must be populated in order to send to Azure. :param name: Name of the sink. This value is referenced by @@ -36,6 +39,10 @@ class DiagnosticsSinkProperties(Model): 'kind': {'key': 'kind', 'type': 'str'}, } + _subtype_map = { + 'kind': {'AzureInternalMonitoringPipeline': 'AzureInternalMonitoringPipelineSinkDescription'} + } + def __init__(self, **kwargs): super(DiagnosticsSinkProperties, self).__init__(**kwargs) self.name = kwargs.get('name', None) diff --git a/azure-servicefabric/azure/servicefabric/models/diagnostics_sink_properties_py3.py b/azure-servicefabric/azure/servicefabric/models/diagnostics_sink_properties_py3.py index a127b1a8af5c..123512a45456 100644 --- a/azure-servicefabric/azure/servicefabric/models/diagnostics_sink_properties_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/diagnostics_sink_properties_py3.py @@ -15,6 +15,9 @@ class DiagnosticsSinkProperties(Model): """Properties of a DiagnosticsSink. + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: AzureInternalMonitoringPipelineSinkDescription + All required parameters must be populated in order to send to Azure. :param name: Name of the sink. This value is referenced by @@ -36,6 +39,10 @@ class DiagnosticsSinkProperties(Model): 'kind': {'key': 'kind', 'type': 'str'}, } + _subtype_map = { + 'kind': {'AzureInternalMonitoringPipeline': 'AzureInternalMonitoringPipelineSinkDescription'} + } + def __init__(self, *, name: str=None, description: str=None, **kwargs) -> None: super(DiagnosticsSinkProperties, self).__init__(**kwargs) self.name = name diff --git a/azure-servicefabric/azure/servicefabric/models/disable_backup_description.py b/azure-servicefabric/azure/servicefabric/models/disable_backup_description.py new file mode 100644 index 000000000000..3834793e3065 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/disable_backup_description.py @@ -0,0 +1,37 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class DisableBackupDescription(Model): + """It describes the body parameters while disabling backup of a backup + entity(Application/Service/Partition). + + All required parameters must be populated in order to send to Azure. + + :param clean_backup: Required. Boolean flag to delete backups. It can be + set to true for deleting all the backups which were created for the backup + entity that is getting disabled for backup. + :type clean_backup: bool + """ + + _validation = { + 'clean_backup': {'required': True}, + } + + _attribute_map = { + 'clean_backup': {'key': 'CleanBackup', 'type': 'bool'}, + } + + def __init__(self, **kwargs): + super(DisableBackupDescription, self).__init__(**kwargs) + self.clean_backup = kwargs.get('clean_backup', None) diff --git a/azure-servicefabric/azure/servicefabric/models/disable_backup_description_py3.py b/azure-servicefabric/azure/servicefabric/models/disable_backup_description_py3.py new file mode 100644 index 000000000000..ad03ecd784e2 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/disable_backup_description_py3.py @@ -0,0 +1,37 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class DisableBackupDescription(Model): + """It describes the body parameters while disabling backup of a backup + entity(Application/Service/Partition). + + All required parameters must be populated in order to send to Azure. + + :param clean_backup: Required. Boolean flag to delete backups. It can be + set to true for deleting all the backups which were created for the backup + entity that is getting disabled for backup. + :type clean_backup: bool + """ + + _validation = { + 'clean_backup': {'required': True}, + } + + _attribute_map = { + 'clean_backup': {'key': 'CleanBackup', 'type': 'bool'}, + } + + def __init__(self, *, clean_backup: bool, **kwargs) -> None: + super(DisableBackupDescription, self).__init__(**kwargs) + self.clean_backup = clean_backup diff --git a/azure-servicefabric/azure/servicefabric/models/endpoint_ref.py b/azure-servicefabric/azure/servicefabric/models/endpoint_ref.py new file mode 100644 index 000000000000..3740b8c79fa7 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/endpoint_ref.py @@ -0,0 +1,28 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class EndpointRef(Model): + """Describes a reference to a service endpoint. + + :param name: Name of the endpoint. + :type name: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(EndpointRef, self).__init__(**kwargs) + self.name = kwargs.get('name', None) diff --git a/azure-servicefabric/azure/servicefabric/models/endpoint_ref_py3.py b/azure-servicefabric/azure/servicefabric/models/endpoint_ref_py3.py new file mode 100644 index 000000000000..28999f87ccaa --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/endpoint_ref_py3.py @@ -0,0 +1,28 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class EndpointRef(Model): + """Describes a reference to a service endpoint. + + :param name: Name of the endpoint. + :type name: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + } + + def __init__(self, *, name: str=None, **kwargs) -> None: + super(EndpointRef, self).__init__(**kwargs) + self.name = name diff --git a/azure-servicefabric/azure/servicefabric/models/fabric_error_error.py b/azure-servicefabric/azure/servicefabric/models/fabric_error_error.py index 62007b111bb4..411a5a13797e 100644 --- a/azure-servicefabric/azure/servicefabric/models/fabric_error_error.py +++ b/azure-servicefabric/azure/servicefabric/models/fabric_error_error.py @@ -65,6 +65,7 @@ class FabricErrorError(Model): - "FABRIC_E_BACKUP_NOT_ENABLED" - "FABRIC_E_BACKUP_POLICY_NOT_EXISTING" - "FABRIC_E_FAULT_ANALYSIS_SERVICE_NOT_EXISTING" + - "FABRIC_E_IMAGEBUILDER_RESERVED_DIRECTORY_ERROR" - Possible values of the error code for HTTP status code 409 (Conflict) - "FABRIC_E_APPLICATION_TYPE_ALREADY_EXISTS" - "FABRIC_E_APPLICATION_ALREADY_EXISTS" @@ -171,7 +172,7 @@ class FabricErrorError(Model): 'FABRIC_E_SINGLE_INSTANCE_APPLICATION_ALREADY_EXISTS', 'FABRIC_E_SINGLE_INSTANCE_APPLICATION_NOT_FOUND', 'FABRIC_E_VOLUME_ALREADY_EXISTS', 'FABRIC_E_VOLUME_NOT_FOUND', - 'SerializationError' + 'SerializationError', 'FABRIC_E_IMAGEBUILDER_RESERVED_DIRECTORY_ERROR' :type code: str or ~azure.servicefabric.models.FabricErrorCodes :param message: Error message. :type message: str diff --git a/azure-servicefabric/azure/servicefabric/models/fabric_error_error_py3.py b/azure-servicefabric/azure/servicefabric/models/fabric_error_error_py3.py index 981f5bc7d10e..b7e9b89d1dcb 100644 --- a/azure-servicefabric/azure/servicefabric/models/fabric_error_error_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/fabric_error_error_py3.py @@ -65,6 +65,7 @@ class FabricErrorError(Model): - "FABRIC_E_BACKUP_NOT_ENABLED" - "FABRIC_E_BACKUP_POLICY_NOT_EXISTING" - "FABRIC_E_FAULT_ANALYSIS_SERVICE_NOT_EXISTING" + - "FABRIC_E_IMAGEBUILDER_RESERVED_DIRECTORY_ERROR" - Possible values of the error code for HTTP status code 409 (Conflict) - "FABRIC_E_APPLICATION_TYPE_ALREADY_EXISTS" - "FABRIC_E_APPLICATION_ALREADY_EXISTS" @@ -171,7 +172,7 @@ class FabricErrorError(Model): 'FABRIC_E_SINGLE_INSTANCE_APPLICATION_ALREADY_EXISTS', 'FABRIC_E_SINGLE_INSTANCE_APPLICATION_NOT_FOUND', 'FABRIC_E_VOLUME_ALREADY_EXISTS', 'FABRIC_E_VOLUME_NOT_FOUND', - 'SerializationError' + 'SerializationError', 'FABRIC_E_IMAGEBUILDER_RESERVED_DIRECTORY_ERROR' :type code: str or ~azure.servicefabric.models.FabricErrorCodes :param message: Error message. :type message: str diff --git a/azure-servicefabric/azure/servicefabric/models/fabric_event.py b/azure-servicefabric/azure/servicefabric/models/fabric_event.py index 02c065a4e892..6c15194c1f9b 100644 --- a/azure-servicefabric/azure/servicefabric/models/fabric_event.py +++ b/azure-servicefabric/azure/servicefabric/models/fabric_event.py @@ -24,6 +24,8 @@ class FabricEvent(Model): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -41,6 +43,7 @@ class FabricEvent(Model): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -53,6 +56,7 @@ class FabricEvent(Model): def __init__(self, **kwargs): super(FabricEvent, self).__init__(**kwargs) self.event_instance_id = kwargs.get('event_instance_id', None) + self.category = kwargs.get('category', None) self.time_stamp = kwargs.get('time_stamp', None) self.has_correlated_events = kwargs.get('has_correlated_events', None) self.kind = None diff --git a/azure-servicefabric/azure/servicefabric/models/fabric_event_py3.py b/azure-servicefabric/azure/servicefabric/models/fabric_event_py3.py index 3d69ee6a26b2..118bce4243fc 100644 --- a/azure-servicefabric/azure/servicefabric/models/fabric_event_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/fabric_event_py3.py @@ -24,6 +24,8 @@ class FabricEvent(Model): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -41,6 +43,7 @@ class FabricEvent(Model): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -50,9 +53,10 @@ class FabricEvent(Model): 'kind': {'ApplicationEvent': 'ApplicationEvent', 'ClusterEvent': 'ClusterEvent', 'ContainerInstanceEvent': 'ContainerInstanceEvent', 'NodeEvent': 'NodeEvent', 'PartitionEvent': 'PartitionEvent', 'ReplicaEvent': 'ReplicaEvent', 'ServiceEvent': 'ServiceEvent'} } - def __init__(self, *, event_instance_id: str, time_stamp, has_correlated_events: bool=None, **kwargs) -> None: + def __init__(self, *, event_instance_id: str, time_stamp, category: str=None, has_correlated_events: bool=None, **kwargs) -> None: super(FabricEvent, self).__init__(**kwargs) self.event_instance_id = event_instance_id + self.category = category self.time_stamp = time_stamp self.has_correlated_events = has_correlated_events self.kind = None diff --git a/azure-servicefabric/azure/servicefabric/models/gateway_destination.py b/azure-servicefabric/azure/servicefabric/models/gateway_destination.py new file mode 100644 index 000000000000..5c2162747085 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/gateway_destination.py @@ -0,0 +1,45 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class GatewayDestination(Model): + """Describes destination endpoint for routing traffic. + + All required parameters must be populated in order to send to Azure. + + :param application_name: Required. Name of the service fabric Mesh + application. + :type application_name: str + :param service_name: Required. service that contains the endpoint. + :type service_name: str + :param endpoint_name: Required. name of the endpoint in the service. + :type endpoint_name: str + """ + + _validation = { + 'application_name': {'required': True}, + 'service_name': {'required': True}, + 'endpoint_name': {'required': True}, + } + + _attribute_map = { + 'application_name': {'key': 'applicationName', 'type': 'str'}, + 'service_name': {'key': 'serviceName', 'type': 'str'}, + 'endpoint_name': {'key': 'endpointName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(GatewayDestination, self).__init__(**kwargs) + self.application_name = kwargs.get('application_name', None) + self.service_name = kwargs.get('service_name', None) + self.endpoint_name = kwargs.get('endpoint_name', None) diff --git a/azure-servicefabric/azure/servicefabric/models/gateway_destination_py3.py b/azure-servicefabric/azure/servicefabric/models/gateway_destination_py3.py new file mode 100644 index 000000000000..7819e3ecd02f --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/gateway_destination_py3.py @@ -0,0 +1,45 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class GatewayDestination(Model): + """Describes destination endpoint for routing traffic. + + All required parameters must be populated in order to send to Azure. + + :param application_name: Required. Name of the service fabric Mesh + application. + :type application_name: str + :param service_name: Required. service that contains the endpoint. + :type service_name: str + :param endpoint_name: Required. name of the endpoint in the service. + :type endpoint_name: str + """ + + _validation = { + 'application_name': {'required': True}, + 'service_name': {'required': True}, + 'endpoint_name': {'required': True}, + } + + _attribute_map = { + 'application_name': {'key': 'applicationName', 'type': 'str'}, + 'service_name': {'key': 'serviceName', 'type': 'str'}, + 'endpoint_name': {'key': 'endpointName', 'type': 'str'}, + } + + def __init__(self, *, application_name: str, service_name: str, endpoint_name: str, **kwargs) -> None: + super(GatewayDestination, self).__init__(**kwargs) + self.application_name = application_name + self.service_name = service_name + self.endpoint_name = endpoint_name diff --git a/azure-servicefabric/azure/servicefabric/models/gateway_resource_description.py b/azure-servicefabric/azure/servicefabric/models/gateway_resource_description.py new file mode 100644 index 000000000000..ad9d4e3f6b7d --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/gateway_resource_description.py @@ -0,0 +1,79 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class GatewayResourceDescription(Model): + """This type describes a gateway resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. Name of the Gateway resource. + :type name: str + :param description: User readable description of the gateway. + :type description: str + :param source_network: Required. Network the gateway should listen on for + requests. + :type source_network: ~azure.servicefabric.models.NetworkRef + :param destination_network: Required. Network that the Application is + using. + :type destination_network: ~azure.servicefabric.models.NetworkRef + :param tcp: Configuration for tcp connectivity for this gateway. + :type tcp: list[~azure.servicefabric.models.TcpConfig] + :param http: Configuration for http connectivity for this gateway. + :type http: list[~azure.servicefabric.models.HttpConfig] + :ivar status: Status of the resource. Possible values include: 'Unknown', + 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed' + :vartype status: str or ~azure.servicefabric.models.ResourceStatus + :ivar status_details: Gives additional information about the current + status of the gateway. + :vartype status_details: str + :ivar ip_address: IP address of the gateway. This is populated in the + response and is ignored for incoming requests. + :vartype ip_address: str + """ + + _validation = { + 'name': {'required': True}, + 'source_network': {'required': True}, + 'destination_network': {'required': True}, + 'status': {'readonly': True}, + 'status_details': {'readonly': True}, + 'ip_address': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'source_network': {'key': 'properties.sourceNetwork', 'type': 'NetworkRef'}, + 'destination_network': {'key': 'properties.destinationNetwork', 'type': 'NetworkRef'}, + 'tcp': {'key': 'properties.tcp', 'type': '[TcpConfig]'}, + 'http': {'key': 'properties.http', 'type': '[HttpConfig]'}, + 'status': {'key': 'properties.status', 'type': 'str'}, + 'status_details': {'key': 'properties.statusDetails', 'type': 'str'}, + 'ip_address': {'key': 'properties.ipAddress', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(GatewayResourceDescription, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.description = kwargs.get('description', None) + self.source_network = kwargs.get('source_network', None) + self.destination_network = kwargs.get('destination_network', None) + self.tcp = kwargs.get('tcp', None) + self.http = kwargs.get('http', None) + self.status = None + self.status_details = None + self.ip_address = None diff --git a/azure-servicefabric/azure/servicefabric/models/gateway_resource_description_py3.py b/azure-servicefabric/azure/servicefabric/models/gateway_resource_description_py3.py new file mode 100644 index 000000000000..ddc77adae335 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/gateway_resource_description_py3.py @@ -0,0 +1,79 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class GatewayResourceDescription(Model): + """This type describes a gateway resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. Name of the Gateway resource. + :type name: str + :param description: User readable description of the gateway. + :type description: str + :param source_network: Required. Network the gateway should listen on for + requests. + :type source_network: ~azure.servicefabric.models.NetworkRef + :param destination_network: Required. Network that the Application is + using. + :type destination_network: ~azure.servicefabric.models.NetworkRef + :param tcp: Configuration for tcp connectivity for this gateway. + :type tcp: list[~azure.servicefabric.models.TcpConfig] + :param http: Configuration for http connectivity for this gateway. + :type http: list[~azure.servicefabric.models.HttpConfig] + :ivar status: Status of the resource. Possible values include: 'Unknown', + 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed' + :vartype status: str or ~azure.servicefabric.models.ResourceStatus + :ivar status_details: Gives additional information about the current + status of the gateway. + :vartype status_details: str + :ivar ip_address: IP address of the gateway. This is populated in the + response and is ignored for incoming requests. + :vartype ip_address: str + """ + + _validation = { + 'name': {'required': True}, + 'source_network': {'required': True}, + 'destination_network': {'required': True}, + 'status': {'readonly': True}, + 'status_details': {'readonly': True}, + 'ip_address': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'description': {'key': 'properties.description', 'type': 'str'}, + 'source_network': {'key': 'properties.sourceNetwork', 'type': 'NetworkRef'}, + 'destination_network': {'key': 'properties.destinationNetwork', 'type': 'NetworkRef'}, + 'tcp': {'key': 'properties.tcp', 'type': '[TcpConfig]'}, + 'http': {'key': 'properties.http', 'type': '[HttpConfig]'}, + 'status': {'key': 'properties.status', 'type': 'str'}, + 'status_details': {'key': 'properties.statusDetails', 'type': 'str'}, + 'ip_address': {'key': 'properties.ipAddress', 'type': 'str'}, + } + + def __init__(self, *, name: str, source_network, destination_network, description: str=None, tcp=None, http=None, **kwargs) -> None: + super(GatewayResourceDescription, self).__init__(**kwargs) + self.name = name + self.description = description + self.source_network = source_network + self.destination_network = destination_network + self.tcp = tcp + self.http = http + self.status = None + self.status_details = None + self.ip_address = None diff --git a/azure-servicefabric/azure/servicefabric/models/health_event.py b/azure-servicefabric/azure/servicefabric/models/health_event.py index cc865612cc31..43dd1bbd395e 100644 --- a/azure-servicefabric/azure/servicefabric/models/health_event.py +++ b/azure-servicefabric/azure/servicefabric/models/health_event.py @@ -78,7 +78,7 @@ class HealthEvent(HealthInformation): of this property is false by default. When clients report periodically, they should set RemoveWhenExpired false (default). - This way, is the reporter has issues (eg. deadlock) and can't report, the + This way, if the reporter has issues (e.g. deadlock) and can't report, the entity is evaluated at error when the health report expires. This flags the entity as being in Error health state. :type remove_when_expired: bool diff --git a/azure-servicefabric/azure/servicefabric/models/health_event_py3.py b/azure-servicefabric/azure/servicefabric/models/health_event_py3.py index 5ea857d34c74..675a74a98563 100644 --- a/azure-servicefabric/azure/servicefabric/models/health_event_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/health_event_py3.py @@ -78,7 +78,7 @@ class HealthEvent(HealthInformation): of this property is false by default. When clients report periodically, they should set RemoveWhenExpired false (default). - This way, is the reporter has issues (eg. deadlock) and can't report, the + This way, if the reporter has issues (e.g. deadlock) and can't report, the entity is evaluated at error when the health report expires. This flags the entity as being in Error health state. :type remove_when_expired: bool diff --git a/azure-servicefabric/azure/servicefabric/models/health_information.py b/azure-servicefabric/azure/servicefabric/models/health_information.py index 86501bb5b65c..133086a1b639 100644 --- a/azure-servicefabric/azure/servicefabric/models/health_information.py +++ b/azure-servicefabric/azure/servicefabric/models/health_information.py @@ -79,7 +79,7 @@ class HealthInformation(Model): of this property is false by default. When clients report periodically, they should set RemoveWhenExpired false (default). - This way, is the reporter has issues (eg. deadlock) and can't report, the + This way, if the reporter has issues (e.g. deadlock) and can't report, the entity is evaluated at error when the health report expires. This flags the entity as being in Error health state. :type remove_when_expired: bool diff --git a/azure-servicefabric/azure/servicefabric/models/health_information_py3.py b/azure-servicefabric/azure/servicefabric/models/health_information_py3.py index 1c7878e09687..070bc398e32e 100644 --- a/azure-servicefabric/azure/servicefabric/models/health_information_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/health_information_py3.py @@ -79,7 +79,7 @@ class HealthInformation(Model): of this property is false by default. When clients report periodically, they should set RemoveWhenExpired false (default). - This way, is the reporter has issues (eg. deadlock) and can't report, the + This way, if the reporter has issues (e.g. deadlock) and can't report, the entity is evaluated at error when the health report expires. This flags the entity as being in Error health state. :type remove_when_expired: bool diff --git a/azure-servicefabric/azure/servicefabric/models/http_config.py b/azure-servicefabric/azure/servicefabric/models/http_config.py new file mode 100644 index 000000000000..d52565f3bc8b --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/http_config.py @@ -0,0 +1,46 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class HttpConfig(Model): + """Describes the http configuration for external connectivity for this + network. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. http gateway config name. + :type name: str + :param port: Required. Specifies the port at which the service endpoint + below needs to be exposed. + :type port: int + :param hosts: Required. description for routing. + :type hosts: list[~azure.servicefabric.models.HttpHostConfig] + """ + + _validation = { + 'name': {'required': True}, + 'port': {'required': True}, + 'hosts': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'port': {'key': 'port', 'type': 'int'}, + 'hosts': {'key': 'hosts', 'type': '[HttpHostConfig]'}, + } + + def __init__(self, **kwargs): + super(HttpConfig, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.port = kwargs.get('port', None) + self.hosts = kwargs.get('hosts', None) diff --git a/azure-servicefabric/azure/servicefabric/models/http_config_py3.py b/azure-servicefabric/azure/servicefabric/models/http_config_py3.py new file mode 100644 index 000000000000..3f353d1630e2 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/http_config_py3.py @@ -0,0 +1,46 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class HttpConfig(Model): + """Describes the http configuration for external connectivity for this + network. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. http gateway config name. + :type name: str + :param port: Required. Specifies the port at which the service endpoint + below needs to be exposed. + :type port: int + :param hosts: Required. description for routing. + :type hosts: list[~azure.servicefabric.models.HttpHostConfig] + """ + + _validation = { + 'name': {'required': True}, + 'port': {'required': True}, + 'hosts': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'port': {'key': 'port', 'type': 'int'}, + 'hosts': {'key': 'hosts', 'type': '[HttpHostConfig]'}, + } + + def __init__(self, *, name: str, port: int, hosts, **kwargs) -> None: + super(HttpConfig, self).__init__(**kwargs) + self.name = name + self.port = port + self.hosts = hosts diff --git a/azure-servicefabric/azure/servicefabric/models/http_host_config.py b/azure-servicefabric/azure/servicefabric/models/http_host_config.py new file mode 100644 index 000000000000..8b090774d835 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/http_host_config.py @@ -0,0 +1,41 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class HttpHostConfig(Model): + """Describes the hostname properties for http routing. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. http hostname config name. + :type name: str + :param routes: Required. Route information to use for routing. Routes are + processed in the order they are specified. Specify routes that are more + specific before routes that can hamdle general cases. + :type routes: list[~azure.servicefabric.models.HttpRouteConfig] + """ + + _validation = { + 'name': {'required': True}, + 'routes': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'routes': {'key': 'routes', 'type': '[HttpRouteConfig]'}, + } + + def __init__(self, **kwargs): + super(HttpHostConfig, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.routes = kwargs.get('routes', None) diff --git a/azure-servicefabric/azure/servicefabric/models/http_host_config_py3.py b/azure-servicefabric/azure/servicefabric/models/http_host_config_py3.py new file mode 100644 index 000000000000..7e266b729dce --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/http_host_config_py3.py @@ -0,0 +1,41 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class HttpHostConfig(Model): + """Describes the hostname properties for http routing. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. http hostname config name. + :type name: str + :param routes: Required. Route information to use for routing. Routes are + processed in the order they are specified. Specify routes that are more + specific before routes that can hamdle general cases. + :type routes: list[~azure.servicefabric.models.HttpRouteConfig] + """ + + _validation = { + 'name': {'required': True}, + 'routes': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'routes': {'key': 'routes', 'type': '[HttpRouteConfig]'}, + } + + def __init__(self, *, name: str, routes, **kwargs) -> None: + super(HttpHostConfig, self).__init__(**kwargs) + self.name = name + self.routes = routes diff --git a/azure-servicefabric/azure/servicefabric/models/http_route_config.py b/azure-servicefabric/azure/servicefabric/models/http_route_config.py new file mode 100644 index 000000000000..f21ddccd9e46 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/http_route_config.py @@ -0,0 +1,45 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class HttpRouteConfig(Model): + """Describes the hostname properties for http routing. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. http route name. + :type name: str + :param match: Required. Describes a rule for http route matching. + :type match: ~azure.servicefabric.models.HttpRouteMatchRule + :param destination: Required. Describes destination endpoint for routing + traffic. + :type destination: ~azure.servicefabric.models.GatewayDestination + """ + + _validation = { + 'name': {'required': True}, + 'match': {'required': True}, + 'destination': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'match': {'key': 'match', 'type': 'HttpRouteMatchRule'}, + 'destination': {'key': 'destination', 'type': 'GatewayDestination'}, + } + + def __init__(self, **kwargs): + super(HttpRouteConfig, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.match = kwargs.get('match', None) + self.destination = kwargs.get('destination', None) diff --git a/azure-servicefabric/azure/servicefabric/models/http_route_config_py3.py b/azure-servicefabric/azure/servicefabric/models/http_route_config_py3.py new file mode 100644 index 000000000000..442ffb827f4f --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/http_route_config_py3.py @@ -0,0 +1,45 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class HttpRouteConfig(Model): + """Describes the hostname properties for http routing. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. http route name. + :type name: str + :param match: Required. Describes a rule for http route matching. + :type match: ~azure.servicefabric.models.HttpRouteMatchRule + :param destination: Required. Describes destination endpoint for routing + traffic. + :type destination: ~azure.servicefabric.models.GatewayDestination + """ + + _validation = { + 'name': {'required': True}, + 'match': {'required': True}, + 'destination': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'match': {'key': 'match', 'type': 'HttpRouteMatchRule'}, + 'destination': {'key': 'destination', 'type': 'GatewayDestination'}, + } + + def __init__(self, *, name: str, match, destination, **kwargs) -> None: + super(HttpRouteConfig, self).__init__(**kwargs) + self.name = name + self.match = match + self.destination = destination diff --git a/azure-servicefabric/azure/servicefabric/models/http_route_match_header.py b/azure-servicefabric/azure/servicefabric/models/http_route_match_header.py new file mode 100644 index 000000000000..54fbdd6069f5 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/http_route_match_header.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class HttpRouteMatchHeader(Model): + """Describes header information for http route matching. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. Name of header to match in request. + :type name: str + :param value: Value of header to match in request. + :type value: str + :param type: how to match header value. Possible values include: 'exact' + :type type: str or ~azure.servicefabric.models.HeaderMatchType + """ + + _validation = { + 'name': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(HttpRouteMatchHeader, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.value = kwargs.get('value', None) + self.type = kwargs.get('type', None) diff --git a/azure-servicefabric/azure/servicefabric/models/http_route_match_header_py3.py b/azure-servicefabric/azure/servicefabric/models/http_route_match_header_py3.py new file mode 100644 index 000000000000..ffb10df957f8 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/http_route_match_header_py3.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class HttpRouteMatchHeader(Model): + """Describes header information for http route matching. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. Name of header to match in request. + :type name: str + :param value: Value of header to match in request. + :type value: str + :param type: how to match header value. Possible values include: 'exact' + :type type: str or ~azure.servicefabric.models.HeaderMatchType + """ + + _validation = { + 'name': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, *, name: str, value: str=None, type=None, **kwargs) -> None: + super(HttpRouteMatchHeader, self).__init__(**kwargs) + self.name = name + self.value = value + self.type = type diff --git a/azure-servicefabric/azure/servicefabric/models/http_route_match_path.py b/azure-servicefabric/azure/servicefabric/models/http_route_match_path.py new file mode 100644 index 000000000000..fa7b45f88cd7 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/http_route_match_path.py @@ -0,0 +1,48 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class HttpRouteMatchPath(Model): + """Path to match for routing. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param value: Required. Uri path to match for request. + :type value: str + :param rewrite: replacement string for matched part of the Uri. + :type rewrite: str + :ivar type: Required. how to match value in the Uri. Default value: + "prefix" . + :vartype type: str + """ + + _validation = { + 'value': {'required': True}, + 'type': {'required': True, 'constant': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': 'str'}, + 'rewrite': {'key': 'rewrite', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + type = "prefix" + + def __init__(self, **kwargs): + super(HttpRouteMatchPath, self).__init__(**kwargs) + self.value = kwargs.get('value', None) + self.rewrite = kwargs.get('rewrite', None) diff --git a/azure-servicefabric/azure/servicefabric/models/http_route_match_path_py3.py b/azure-servicefabric/azure/servicefabric/models/http_route_match_path_py3.py new file mode 100644 index 000000000000..075b226e6ad7 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/http_route_match_path_py3.py @@ -0,0 +1,48 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class HttpRouteMatchPath(Model): + """Path to match for routing. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param value: Required. Uri path to match for request. + :type value: str + :param rewrite: replacement string for matched part of the Uri. + :type rewrite: str + :ivar type: Required. how to match value in the Uri. Default value: + "prefix" . + :vartype type: str + """ + + _validation = { + 'value': {'required': True}, + 'type': {'required': True, 'constant': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': 'str'}, + 'rewrite': {'key': 'rewrite', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + type = "prefix" + + def __init__(self, *, value: str, rewrite: str=None, **kwargs) -> None: + super(HttpRouteMatchPath, self).__init__(**kwargs) + self.value = value + self.rewrite = rewrite diff --git a/azure-servicefabric/azure/servicefabric/models/http_route_match_rule.py b/azure-servicefabric/azure/servicefabric/models/http_route_match_rule.py new file mode 100644 index 000000000000..d09c2ea20987 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/http_route_match_rule.py @@ -0,0 +1,38 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class HttpRouteMatchRule(Model): + """Describes a rule for http route matching. + + All required parameters must be populated in order to send to Azure. + + :param path: Required. Path to match for routing. + :type path: ~azure.servicefabric.models.HttpRouteMatchPath + :param headers: headers and their values to match in request. + :type headers: list[~azure.servicefabric.models.HttpRouteMatchHeader] + """ + + _validation = { + 'path': {'required': True}, + } + + _attribute_map = { + 'path': {'key': 'path', 'type': 'HttpRouteMatchPath'}, + 'headers': {'key': 'headers', 'type': '[HttpRouteMatchHeader]'}, + } + + def __init__(self, **kwargs): + super(HttpRouteMatchRule, self).__init__(**kwargs) + self.path = kwargs.get('path', None) + self.headers = kwargs.get('headers', None) diff --git a/azure-servicefabric/azure/servicefabric/models/http_route_match_rule_py3.py b/azure-servicefabric/azure/servicefabric/models/http_route_match_rule_py3.py new file mode 100644 index 000000000000..61561bf4ad8b --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/http_route_match_rule_py3.py @@ -0,0 +1,38 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class HttpRouteMatchRule(Model): + """Describes a rule for http route matching. + + All required parameters must be populated in order to send to Azure. + + :param path: Required. Path to match for routing. + :type path: ~azure.servicefabric.models.HttpRouteMatchPath + :param headers: headers and their values to match in request. + :type headers: list[~azure.servicefabric.models.HttpRouteMatchHeader] + """ + + _validation = { + 'path': {'required': True}, + } + + _attribute_map = { + 'path': {'key': 'path', 'type': 'HttpRouteMatchPath'}, + 'headers': {'key': 'headers', 'type': '[HttpRouteMatchHeader]'}, + } + + def __init__(self, *, path, headers=None, **kwargs) -> None: + super(HttpRouteMatchRule, self).__init__(**kwargs) + self.path = path + self.headers = headers diff --git a/azure-servicefabric/azure/servicefabric/models/image_registry_credential.py b/azure-servicefabric/azure/servicefabric/models/image_registry_credential.py index 4a31577dad55..95aac323f274 100644 --- a/azure-servicefabric/azure/servicefabric/models/image_registry_credential.py +++ b/azure-servicefabric/azure/servicefabric/models/image_registry_credential.py @@ -22,7 +22,9 @@ class ImageRegistryCredential(Model): :type server: str :param username: Required. The username for the private registry. :type username: str - :param password: The password for the private registry. + :param password: The password for the private registry. The password is + required for create or update operations, however it is not returned in + the get or list operations. :type password: str """ diff --git a/azure-servicefabric/azure/servicefabric/models/image_registry_credential_py3.py b/azure-servicefabric/azure/servicefabric/models/image_registry_credential_py3.py index d189db0f0041..8d60c62a43ee 100644 --- a/azure-servicefabric/azure/servicefabric/models/image_registry_credential_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/image_registry_credential_py3.py @@ -22,7 +22,9 @@ class ImageRegistryCredential(Model): :type server: str :param username: Required. The username for the private registry. :type username: str - :param password: The password for the private registry. + :param password: The password for the private registry. The password is + required for create or update operations, however it is not returned in + the get or list operations. :type password: str """ diff --git a/azure-servicefabric/azure/servicefabric/models/inlined_value_secret_resource_properties.py b/azure-servicefabric/azure/servicefabric/models/inlined_value_secret_resource_properties.py new file mode 100644 index 000000000000..03ec2fb60bea --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/inlined_value_secret_resource_properties.py @@ -0,0 +1,59 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .secret_resource_properties import SecretResourceProperties + + +class InlinedValueSecretResourceProperties(SecretResourceProperties): + """Describes the properties of a secret resource whose value is provided + explicitly as plaintext. The secret resource may have multiple values, each + being uniquely versioned. The secret value of each version is stored + encrypted, and delivered as plaintext into the context of applications + referencing it. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param kind: Required. Constant filled by server. + :type kind: str + :param description: User readable description of the secret. + :type description: str + :ivar status: Status of the resource. Possible values include: 'Unknown', + 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed' + :vartype status: str or ~azure.servicefabric.models.ResourceStatus + :ivar status_details: Gives additional information about the current + status of the secret. + :vartype status_details: str + :param content_type: The type of the content stored in the secret value. + The value of this property is opaque to Service Fabric. Once set, the + value of this property cannot be changed. + :type content_type: str + """ + + _validation = { + 'kind': {'required': True}, + 'status': {'readonly': True}, + 'status_details': {'readonly': True}, + } + + _attribute_map = { + 'kind': {'key': 'kind', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'status_details': {'key': 'statusDetails', 'type': 'str'}, + 'content_type': {'key': 'contentType', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(InlinedValueSecretResourceProperties, self).__init__(**kwargs) + self.kind = 'inlinedValue' diff --git a/azure-servicefabric/azure/servicefabric/models/inlined_value_secret_resource_properties_py3.py b/azure-servicefabric/azure/servicefabric/models/inlined_value_secret_resource_properties_py3.py new file mode 100644 index 000000000000..ab7b72136b84 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/inlined_value_secret_resource_properties_py3.py @@ -0,0 +1,59 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .secret_resource_properties_py3 import SecretResourceProperties + + +class InlinedValueSecretResourceProperties(SecretResourceProperties): + """Describes the properties of a secret resource whose value is provided + explicitly as plaintext. The secret resource may have multiple values, each + being uniquely versioned. The secret value of each version is stored + encrypted, and delivered as plaintext into the context of applications + referencing it. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param kind: Required. Constant filled by server. + :type kind: str + :param description: User readable description of the secret. + :type description: str + :ivar status: Status of the resource. Possible values include: 'Unknown', + 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed' + :vartype status: str or ~azure.servicefabric.models.ResourceStatus + :ivar status_details: Gives additional information about the current + status of the secret. + :vartype status_details: str + :param content_type: The type of the content stored in the secret value. + The value of this property is opaque to Service Fabric. Once set, the + value of this property cannot be changed. + :type content_type: str + """ + + _validation = { + 'kind': {'required': True}, + 'status': {'readonly': True}, + 'status_details': {'readonly': True}, + } + + _attribute_map = { + 'kind': {'key': 'kind', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'status_details': {'key': 'statusDetails', 'type': 'str'}, + 'content_type': {'key': 'contentType', 'type': 'str'}, + } + + def __init__(self, *, description: str=None, content_type: str=None, **kwargs) -> None: + super(InlinedValueSecretResourceProperties, self).__init__(description=description, content_type=content_type, **kwargs) + self.kind = 'inlinedValue' diff --git a/azure-servicefabric/azure/servicefabric/models/load_metric_report.py b/azure-servicefabric/azure/servicefabric/models/load_metric_report.py index 2f061fd5cc8b..2e7e321ce3bb 100644 --- a/azure-servicefabric/azure/servicefabric/models/load_metric_report.py +++ b/azure-servicefabric/azure/servicefabric/models/load_metric_report.py @@ -20,14 +20,18 @@ class LoadMetricReport(Model): :type last_reported_utc: datetime :param name: The name of the load metric. :type name: str - :param value: The value of the load metric. + :param value: The value of the load metric. In future releases of Service + Fabric this parameter will be deprecated in favor of CurrentValue. :type value: str + :param current_value: The value of the load metric. + :type current_value: str """ _attribute_map = { 'last_reported_utc': {'key': 'LastReportedUtc', 'type': 'iso-8601'}, 'name': {'key': 'Name', 'type': 'str'}, 'value': {'key': 'Value', 'type': 'str'}, + 'current_value': {'key': 'CurrentValue', 'type': 'str'}, } def __init__(self, **kwargs): @@ -35,3 +39,4 @@ def __init__(self, **kwargs): self.last_reported_utc = kwargs.get('last_reported_utc', None) self.name = kwargs.get('name', None) self.value = kwargs.get('value', None) + self.current_value = kwargs.get('current_value', None) diff --git a/azure-servicefabric/azure/servicefabric/models/load_metric_report_info.py b/azure-servicefabric/azure/servicefabric/models/load_metric_report_info.py index a7c9c56764e5..93fd4a457be7 100644 --- a/azure-servicefabric/azure/servicefabric/models/load_metric_report_info.py +++ b/azure-servicefabric/azure/servicefabric/models/load_metric_report_info.py @@ -17,8 +17,11 @@ class LoadMetricReportInfo(Model): :param name: The name of the metric. :type name: str - :param value: The value of the load for the metric.. + :param value: The value of the load for the metric. In future releases of + Service Fabric this parameter will be deprecated in favor of CurrentValue. :type value: int + :param current_value: The double value of the load for the metric. + :type current_value: str :param last_reported_utc: The UTC time when the load is reported. :type last_reported_utc: datetime """ @@ -26,6 +29,7 @@ class LoadMetricReportInfo(Model): _attribute_map = { 'name': {'key': 'Name', 'type': 'str'}, 'value': {'key': 'Value', 'type': 'int'}, + 'current_value': {'key': 'CurrentValue', 'type': 'str'}, 'last_reported_utc': {'key': 'LastReportedUtc', 'type': 'iso-8601'}, } @@ -33,4 +37,5 @@ def __init__(self, **kwargs): super(LoadMetricReportInfo, self).__init__(**kwargs) self.name = kwargs.get('name', None) self.value = kwargs.get('value', None) + self.current_value = kwargs.get('current_value', None) self.last_reported_utc = kwargs.get('last_reported_utc', None) diff --git a/azure-servicefabric/azure/servicefabric/models/load_metric_report_info_py3.py b/azure-servicefabric/azure/servicefabric/models/load_metric_report_info_py3.py index 965f30c28231..2401392951ac 100644 --- a/azure-servicefabric/azure/servicefabric/models/load_metric_report_info_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/load_metric_report_info_py3.py @@ -17,8 +17,11 @@ class LoadMetricReportInfo(Model): :param name: The name of the metric. :type name: str - :param value: The value of the load for the metric.. + :param value: The value of the load for the metric. In future releases of + Service Fabric this parameter will be deprecated in favor of CurrentValue. :type value: int + :param current_value: The double value of the load for the metric. + :type current_value: str :param last_reported_utc: The UTC time when the load is reported. :type last_reported_utc: datetime """ @@ -26,11 +29,13 @@ class LoadMetricReportInfo(Model): _attribute_map = { 'name': {'key': 'Name', 'type': 'str'}, 'value': {'key': 'Value', 'type': 'int'}, + 'current_value': {'key': 'CurrentValue', 'type': 'str'}, 'last_reported_utc': {'key': 'LastReportedUtc', 'type': 'iso-8601'}, } - def __init__(self, *, name: str=None, value: int=None, last_reported_utc=None, **kwargs) -> None: + def __init__(self, *, name: str=None, value: int=None, current_value: str=None, last_reported_utc=None, **kwargs) -> None: super(LoadMetricReportInfo, self).__init__(**kwargs) self.name = name self.value = value + self.current_value = current_value self.last_reported_utc = last_reported_utc diff --git a/azure-servicefabric/azure/servicefabric/models/load_metric_report_py3.py b/azure-servicefabric/azure/servicefabric/models/load_metric_report_py3.py index c1b5ef538451..e8aec5b59bcc 100644 --- a/azure-servicefabric/azure/servicefabric/models/load_metric_report_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/load_metric_report_py3.py @@ -20,18 +20,23 @@ class LoadMetricReport(Model): :type last_reported_utc: datetime :param name: The name of the load metric. :type name: str - :param value: The value of the load metric. + :param value: The value of the load metric. In future releases of Service + Fabric this parameter will be deprecated in favor of CurrentValue. :type value: str + :param current_value: The value of the load metric. + :type current_value: str """ _attribute_map = { 'last_reported_utc': {'key': 'LastReportedUtc', 'type': 'iso-8601'}, 'name': {'key': 'Name', 'type': 'str'}, 'value': {'key': 'Value', 'type': 'str'}, + 'current_value': {'key': 'CurrentValue', 'type': 'str'}, } - def __init__(self, *, last_reported_utc=None, name: str=None, value: str=None, **kwargs) -> None: + def __init__(self, *, last_reported_utc=None, name: str=None, value: str=None, current_value: str=None, **kwargs) -> None: super(LoadMetricReport, self).__init__(**kwargs) self.last_reported_utc = last_reported_utc self.name = name self.value = value + self.current_value = current_value diff --git a/azure-servicefabric/azure/servicefabric/models/local_network_resource_properties.py b/azure-servicefabric/azure/servicefabric/models/local_network_resource_properties.py new file mode 100644 index 000000000000..98eddf5dbeed --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/local_network_resource_properties.py @@ -0,0 +1,56 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .network_resource_properties import NetworkResourceProperties + + +class LocalNetworkResourceProperties(NetworkResourceProperties): + """Information about a Service Fabric container network local to a single + Service Fabric cluster. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param kind: Required. Constant filled by server. + :type kind: str + :param description: User readable description of the network. + :type description: str + :ivar status: Status of the network. Possible values include: 'Unknown', + 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed' + :vartype status: str or ~azure.servicefabric.models.ResourceStatus + :ivar status_details: Gives additional information about the current + status of the network. + :vartype status_details: str + :param network_address_prefix: Address space for the local container + network. + :type network_address_prefix: str + """ + + _validation = { + 'kind': {'required': True}, + 'status': {'readonly': True}, + 'status_details': {'readonly': True}, + } + + _attribute_map = { + 'kind': {'key': 'kind', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'status_details': {'key': 'statusDetails', 'type': 'str'}, + 'network_address_prefix': {'key': 'networkAddressPrefix', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(LocalNetworkResourceProperties, self).__init__(**kwargs) + self.network_address_prefix = kwargs.get('network_address_prefix', None) + self.kind = 'Local' diff --git a/azure-servicefabric/azure/servicefabric/models/local_network_resource_properties_py3.py b/azure-servicefabric/azure/servicefabric/models/local_network_resource_properties_py3.py new file mode 100644 index 000000000000..6578e59b2c3f --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/local_network_resource_properties_py3.py @@ -0,0 +1,56 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .network_resource_properties_py3 import NetworkResourceProperties + + +class LocalNetworkResourceProperties(NetworkResourceProperties): + """Information about a Service Fabric container network local to a single + Service Fabric cluster. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param kind: Required. Constant filled by server. + :type kind: str + :param description: User readable description of the network. + :type description: str + :ivar status: Status of the network. Possible values include: 'Unknown', + 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed' + :vartype status: str or ~azure.servicefabric.models.ResourceStatus + :ivar status_details: Gives additional information about the current + status of the network. + :vartype status_details: str + :param network_address_prefix: Address space for the local container + network. + :type network_address_prefix: str + """ + + _validation = { + 'kind': {'required': True}, + 'status': {'readonly': True}, + 'status_details': {'readonly': True}, + } + + _attribute_map = { + 'kind': {'key': 'kind', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'status_details': {'key': 'statusDetails', 'type': 'str'}, + 'network_address_prefix': {'key': 'networkAddressPrefix', 'type': 'str'}, + } + + def __init__(self, *, description: str=None, network_address_prefix: str=None, **kwargs) -> None: + super(LocalNetworkResourceProperties, self).__init__(description=description, **kwargs) + self.network_address_prefix = network_address_prefix + self.kind = 'Local' diff --git a/azure-servicefabric/azure/servicefabric/models/network_ref.py b/azure-servicefabric/azure/servicefabric/models/network_ref.py index b86c10253c0f..7c811e73629e 100644 --- a/azure-servicefabric/azure/servicefabric/models/network_ref.py +++ b/azure-servicefabric/azure/servicefabric/models/network_ref.py @@ -15,14 +15,19 @@ class NetworkRef(Model): """Describes a network reference in a service. - :param name: Name of the network. + :param name: Name of the network :type name: str + :param endpoint_refs: A list of endpoints that are exposed on this + network. + :type endpoint_refs: list[~azure.servicefabric.models.EndpointRef] """ _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, + 'endpoint_refs': {'key': 'endpointRefs', 'type': '[EndpointRef]'}, } def __init__(self, **kwargs): super(NetworkRef, self).__init__(**kwargs) self.name = kwargs.get('name', None) + self.endpoint_refs = kwargs.get('endpoint_refs', None) diff --git a/azure-servicefabric/azure/servicefabric/models/network_ref_py3.py b/azure-servicefabric/azure/servicefabric/models/network_ref_py3.py index 45e5d333f747..9cb21573bccc 100644 --- a/azure-servicefabric/azure/servicefabric/models/network_ref_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/network_ref_py3.py @@ -15,14 +15,19 @@ class NetworkRef(Model): """Describes a network reference in a service. - :param name: Name of the network. + :param name: Name of the network :type name: str + :param endpoint_refs: A list of endpoints that are exposed on this + network. + :type endpoint_refs: list[~azure.servicefabric.models.EndpointRef] """ _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, + 'endpoint_refs': {'key': 'endpointRefs', 'type': '[EndpointRef]'}, } - def __init__(self, *, name: str=None, **kwargs) -> None: + def __init__(self, *, name: str=None, endpoint_refs=None, **kwargs) -> None: super(NetworkRef, self).__init__(**kwargs) self.name = name + self.endpoint_refs = endpoint_refs diff --git a/azure-servicefabric/azure/servicefabric/models/network_resource_description.py b/azure-servicefabric/azure/servicefabric/models/network_resource_description.py new file mode 100644 index 000000000000..56a03e76e1ae --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/network_resource_description.py @@ -0,0 +1,39 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class NetworkResourceDescription(Model): + """This type describes a network resource. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. Name of the Network resource. + :type name: str + :param properties: Required. Describes properties of a network resource. + :type properties: ~azure.servicefabric.models.NetworkResourceProperties + """ + + _validation = { + 'name': {'required': True}, + 'properties': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'NetworkResourceProperties'}, + } + + def __init__(self, **kwargs): + super(NetworkResourceDescription, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.properties = kwargs.get('properties', None) diff --git a/azure-servicefabric/azure/servicefabric/models/network_resource_description_py3.py b/azure-servicefabric/azure/servicefabric/models/network_resource_description_py3.py new file mode 100644 index 000000000000..c812b39c47aa --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/network_resource_description_py3.py @@ -0,0 +1,39 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class NetworkResourceDescription(Model): + """This type describes a network resource. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. Name of the Network resource. + :type name: str + :param properties: Required. Describes properties of a network resource. + :type properties: ~azure.servicefabric.models.NetworkResourceProperties + """ + + _validation = { + 'name': {'required': True}, + 'properties': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'NetworkResourceProperties'}, + } + + def __init__(self, *, name: str, properties, **kwargs) -> None: + super(NetworkResourceDescription, self).__init__(**kwargs) + self.name = name + self.properties = properties diff --git a/azure-servicefabric/azure/servicefabric/models/network_resource_properties.py b/azure-servicefabric/azure/servicefabric/models/network_resource_properties.py new file mode 100644 index 000000000000..bca9a90f94fc --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/network_resource_properties.py @@ -0,0 +1,60 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .network_resource_properties_base import NetworkResourcePropertiesBase + + +class NetworkResourceProperties(NetworkResourcePropertiesBase): + """Describes properties of a network resource. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: LocalNetworkResourceProperties + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param kind: Required. Constant filled by server. + :type kind: str + :param description: User readable description of the network. + :type description: str + :ivar status: Status of the network. Possible values include: 'Unknown', + 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed' + :vartype status: str or ~azure.servicefabric.models.ResourceStatus + :ivar status_details: Gives additional information about the current + status of the network. + :vartype status_details: str + """ + + _validation = { + 'kind': {'required': True}, + 'status': {'readonly': True}, + 'status_details': {'readonly': True}, + } + + _attribute_map = { + 'kind': {'key': 'kind', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'status_details': {'key': 'statusDetails', 'type': 'str'}, + } + + _subtype_map = { + 'kind': {'Local': 'LocalNetworkResourceProperties'} + } + + def __init__(self, **kwargs): + super(NetworkResourceProperties, self).__init__(**kwargs) + self.description = kwargs.get('description', None) + self.status = None + self.status_details = None + self.kind = 'NetworkResourceProperties' diff --git a/azure-servicefabric/azure/servicefabric/models/network_resource_properties_base.py b/azure-servicefabric/azure/servicefabric/models/network_resource_properties_base.py new file mode 100644 index 000000000000..d0ecd3ae3f00 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/network_resource_properties_base.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class NetworkResourcePropertiesBase(Model): + """This type describes the properties of a network resource, including its + kind. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: NetworkResourceProperties + + All required parameters must be populated in order to send to Azure. + + :param kind: Required. Constant filled by server. + :type kind: str + """ + + _validation = { + 'kind': {'required': True}, + } + + _attribute_map = { + 'kind': {'key': 'kind', 'type': 'str'}, + } + + _subtype_map = { + 'kind': {'NetworkResourceProperties': 'NetworkResourceProperties'} + } + + def __init__(self, **kwargs): + super(NetworkResourcePropertiesBase, self).__init__(**kwargs) + self.kind = None diff --git a/azure-servicefabric/azure/servicefabric/models/network_resource_properties_base_py3.py b/azure-servicefabric/azure/servicefabric/models/network_resource_properties_base_py3.py new file mode 100644 index 000000000000..6410aae6145c --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/network_resource_properties_base_py3.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class NetworkResourcePropertiesBase(Model): + """This type describes the properties of a network resource, including its + kind. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: NetworkResourceProperties + + All required parameters must be populated in order to send to Azure. + + :param kind: Required. Constant filled by server. + :type kind: str + """ + + _validation = { + 'kind': {'required': True}, + } + + _attribute_map = { + 'kind': {'key': 'kind', 'type': 'str'}, + } + + _subtype_map = { + 'kind': {'NetworkResourceProperties': 'NetworkResourceProperties'} + } + + def __init__(self, **kwargs) -> None: + super(NetworkResourcePropertiesBase, self).__init__(**kwargs) + self.kind = None diff --git a/azure-servicefabric/azure/servicefabric/models/network_resource_properties_py3.py b/azure-servicefabric/azure/servicefabric/models/network_resource_properties_py3.py new file mode 100644 index 000000000000..0fce38298c8a --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/network_resource_properties_py3.py @@ -0,0 +1,60 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .network_resource_properties_base_py3 import NetworkResourcePropertiesBase + + +class NetworkResourceProperties(NetworkResourcePropertiesBase): + """Describes properties of a network resource. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: LocalNetworkResourceProperties + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param kind: Required. Constant filled by server. + :type kind: str + :param description: User readable description of the network. + :type description: str + :ivar status: Status of the network. Possible values include: 'Unknown', + 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed' + :vartype status: str or ~azure.servicefabric.models.ResourceStatus + :ivar status_details: Gives additional information about the current + status of the network. + :vartype status_details: str + """ + + _validation = { + 'kind': {'required': True}, + 'status': {'readonly': True}, + 'status_details': {'readonly': True}, + } + + _attribute_map = { + 'kind': {'key': 'kind', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'status_details': {'key': 'statusDetails', 'type': 'str'}, + } + + _subtype_map = { + 'kind': {'Local': 'LocalNetworkResourceProperties'} + } + + def __init__(self, *, description: str=None, **kwargs) -> None: + super(NetworkResourceProperties, self).__init__(**kwargs) + self.description = description + self.status = None + self.status_details = None + self.kind = 'NetworkResourceProperties' diff --git a/azure-servicefabric/azure/servicefabric/models/node_aborted_event.py b/azure-servicefabric/azure/servicefabric/models/node_aborted_event.py index e55742ce2c28..744a8feee1de 100644 --- a/azure-servicefabric/azure/servicefabric/models/node_aborted_event.py +++ b/azure-servicefabric/azure/servicefabric/models/node_aborted_event.py @@ -20,6 +20,8 @@ class NodeAbortedEvent(NodeEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -64,6 +66,7 @@ class NodeAbortedEvent(NodeEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, diff --git a/azure-servicefabric/azure/servicefabric/models/node_aborted_event_py3.py b/azure-servicefabric/azure/servicefabric/models/node_aborted_event_py3.py index f38a98f53035..9b51fbd20c5e 100644 --- a/azure-servicefabric/azure/servicefabric/models/node_aborted_event_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/node_aborted_event_py3.py @@ -20,6 +20,8 @@ class NodeAbortedEvent(NodeEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -64,6 +66,7 @@ class NodeAbortedEvent(NodeEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -78,8 +81,8 @@ class NodeAbortedEvent(NodeEvent): 'node_version': {'key': 'NodeVersion', 'type': 'str'}, } - def __init__(self, *, event_instance_id: str, time_stamp, node_name: str, node_instance: int, node_id: str, upgrade_domain: str, fault_domain: str, ip_address_or_fqdn: str, hostname: str, is_seed_node: bool, node_version: str, has_correlated_events: bool=None, **kwargs) -> None: - super(NodeAbortedEvent, self).__init__(event_instance_id=event_instance_id, time_stamp=time_stamp, has_correlated_events=has_correlated_events, node_name=node_name, **kwargs) + def __init__(self, *, event_instance_id: str, time_stamp, node_name: str, node_instance: int, node_id: str, upgrade_domain: str, fault_domain: str, ip_address_or_fqdn: str, hostname: str, is_seed_node: bool, node_version: str, category: str=None, has_correlated_events: bool=None, **kwargs) -> None: + super(NodeAbortedEvent, self).__init__(event_instance_id=event_instance_id, category=category, time_stamp=time_stamp, has_correlated_events=has_correlated_events, node_name=node_name, **kwargs) self.node_instance = node_instance self.node_id = node_id self.upgrade_domain = upgrade_domain diff --git a/azure-servicefabric/azure/servicefabric/models/node_aborting_event.py b/azure-servicefabric/azure/servicefabric/models/node_aborting_event.py deleted file mode 100644 index 6e39ee04d8ff..000000000000 --- a/azure-servicefabric/azure/servicefabric/models/node_aborting_event.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .node_event import NodeEvent - - -class NodeAbortingEvent(NodeEvent): - """Node Aborting event. - - All required parameters must be populated in order to send to Azure. - - :param event_instance_id: Required. The identifier for the FabricEvent - instance. - :type event_instance_id: str - :param time_stamp: Required. The time event was logged. - :type time_stamp: datetime - :param has_correlated_events: Shows there is existing related events - available. - :type has_correlated_events: bool - :param kind: Required. Constant filled by server. - :type kind: str - :param node_name: Required. The name of a Service Fabric node. - :type node_name: str - :param node_instance: Required. Id of Node instance. - :type node_instance: long - :param node_id: Required. Id of Node. - :type node_id: str - :param upgrade_domain: Required. Upgrade domain of Node. - :type upgrade_domain: str - :param fault_domain: Required. Fault domain of Node. - :type fault_domain: str - :param ip_address_or_fqdn: Required. IP address or FQDN. - :type ip_address_or_fqdn: str - :param hostname: Required. Name of Host. - :type hostname: str - :param is_seed_node: Required. Indicates if it is seed node. - :type is_seed_node: bool - :param node_version: Required. Version of Node. - :type node_version: str - """ - - _validation = { - 'event_instance_id': {'required': True}, - 'time_stamp': {'required': True}, - 'kind': {'required': True}, - 'node_name': {'required': True}, - 'node_instance': {'required': True}, - 'node_id': {'required': True}, - 'upgrade_domain': {'required': True}, - 'fault_domain': {'required': True}, - 'ip_address_or_fqdn': {'required': True}, - 'hostname': {'required': True}, - 'is_seed_node': {'required': True}, - 'node_version': {'required': True}, - } - - _attribute_map = { - 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, - 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, - 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, - 'kind': {'key': 'Kind', 'type': 'str'}, - 'node_name': {'key': 'NodeName', 'type': 'str'}, - 'node_instance': {'key': 'NodeInstance', 'type': 'long'}, - 'node_id': {'key': 'NodeId', 'type': 'str'}, - 'upgrade_domain': {'key': 'UpgradeDomain', 'type': 'str'}, - 'fault_domain': {'key': 'FaultDomain', 'type': 'str'}, - 'ip_address_or_fqdn': {'key': 'IpAddressOrFQDN', 'type': 'str'}, - 'hostname': {'key': 'Hostname', 'type': 'str'}, - 'is_seed_node': {'key': 'IsSeedNode', 'type': 'bool'}, - 'node_version': {'key': 'NodeVersion', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(NodeAbortingEvent, self).__init__(**kwargs) - self.node_instance = kwargs.get('node_instance', None) - self.node_id = kwargs.get('node_id', None) - self.upgrade_domain = kwargs.get('upgrade_domain', None) - self.fault_domain = kwargs.get('fault_domain', None) - self.ip_address_or_fqdn = kwargs.get('ip_address_or_fqdn', None) - self.hostname = kwargs.get('hostname', None) - self.is_seed_node = kwargs.get('is_seed_node', None) - self.node_version = kwargs.get('node_version', None) - self.kind = 'NodeAborting' diff --git a/azure-servicefabric/azure/servicefabric/models/node_aborting_event_py3.py b/azure-servicefabric/azure/servicefabric/models/node_aborting_event_py3.py deleted file mode 100644 index 6fe81b78e2d6..000000000000 --- a/azure-servicefabric/azure/servicefabric/models/node_aborting_event_py3.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .node_event_py3 import NodeEvent - - -class NodeAbortingEvent(NodeEvent): - """Node Aborting event. - - All required parameters must be populated in order to send to Azure. - - :param event_instance_id: Required. The identifier for the FabricEvent - instance. - :type event_instance_id: str - :param time_stamp: Required. The time event was logged. - :type time_stamp: datetime - :param has_correlated_events: Shows there is existing related events - available. - :type has_correlated_events: bool - :param kind: Required. Constant filled by server. - :type kind: str - :param node_name: Required. The name of a Service Fabric node. - :type node_name: str - :param node_instance: Required. Id of Node instance. - :type node_instance: long - :param node_id: Required. Id of Node. - :type node_id: str - :param upgrade_domain: Required. Upgrade domain of Node. - :type upgrade_domain: str - :param fault_domain: Required. Fault domain of Node. - :type fault_domain: str - :param ip_address_or_fqdn: Required. IP address or FQDN. - :type ip_address_or_fqdn: str - :param hostname: Required. Name of Host. - :type hostname: str - :param is_seed_node: Required. Indicates if it is seed node. - :type is_seed_node: bool - :param node_version: Required. Version of Node. - :type node_version: str - """ - - _validation = { - 'event_instance_id': {'required': True}, - 'time_stamp': {'required': True}, - 'kind': {'required': True}, - 'node_name': {'required': True}, - 'node_instance': {'required': True}, - 'node_id': {'required': True}, - 'upgrade_domain': {'required': True}, - 'fault_domain': {'required': True}, - 'ip_address_or_fqdn': {'required': True}, - 'hostname': {'required': True}, - 'is_seed_node': {'required': True}, - 'node_version': {'required': True}, - } - - _attribute_map = { - 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, - 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, - 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, - 'kind': {'key': 'Kind', 'type': 'str'}, - 'node_name': {'key': 'NodeName', 'type': 'str'}, - 'node_instance': {'key': 'NodeInstance', 'type': 'long'}, - 'node_id': {'key': 'NodeId', 'type': 'str'}, - 'upgrade_domain': {'key': 'UpgradeDomain', 'type': 'str'}, - 'fault_domain': {'key': 'FaultDomain', 'type': 'str'}, - 'ip_address_or_fqdn': {'key': 'IpAddressOrFQDN', 'type': 'str'}, - 'hostname': {'key': 'Hostname', 'type': 'str'}, - 'is_seed_node': {'key': 'IsSeedNode', 'type': 'bool'}, - 'node_version': {'key': 'NodeVersion', 'type': 'str'}, - } - - def __init__(self, *, event_instance_id: str, time_stamp, node_name: str, node_instance: int, node_id: str, upgrade_domain: str, fault_domain: str, ip_address_or_fqdn: str, hostname: str, is_seed_node: bool, node_version: str, has_correlated_events: bool=None, **kwargs) -> None: - super(NodeAbortingEvent, self).__init__(event_instance_id=event_instance_id, time_stamp=time_stamp, has_correlated_events=has_correlated_events, node_name=node_name, **kwargs) - self.node_instance = node_instance - self.node_id = node_id - self.upgrade_domain = upgrade_domain - self.fault_domain = fault_domain - self.ip_address_or_fqdn = ip_address_or_fqdn - self.hostname = hostname - self.is_seed_node = is_seed_node - self.node_version = node_version - self.kind = 'NodeAborting' diff --git a/azure-servicefabric/azure/servicefabric/models/node_added_event.py b/azure-servicefabric/azure/servicefabric/models/node_added_to_cluster_event.py similarity index 92% rename from azure-servicefabric/azure/servicefabric/models/node_added_event.py rename to azure-servicefabric/azure/servicefabric/models/node_added_to_cluster_event.py index be138ba7b7e7..3c55e7b217d4 100644 --- a/azure-servicefabric/azure/servicefabric/models/node_added_event.py +++ b/azure-servicefabric/azure/servicefabric/models/node_added_to_cluster_event.py @@ -12,7 +12,7 @@ from .node_event import NodeEvent -class NodeAddedEvent(NodeEvent): +class NodeAddedToClusterEvent(NodeEvent): """Node Added event. All required parameters must be populated in order to send to Azure. @@ -20,6 +20,8 @@ class NodeAddedEvent(NodeEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -58,6 +60,7 @@ class NodeAddedEvent(NodeEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -71,11 +74,11 @@ class NodeAddedEvent(NodeEvent): } def __init__(self, **kwargs): - super(NodeAddedEvent, self).__init__(**kwargs) + super(NodeAddedToClusterEvent, self).__init__(**kwargs) self.node_id = kwargs.get('node_id', None) self.node_instance = kwargs.get('node_instance', None) self.node_type = kwargs.get('node_type', None) self.fabric_version = kwargs.get('fabric_version', None) self.ip_address_or_fqdn = kwargs.get('ip_address_or_fqdn', None) self.node_capacities = kwargs.get('node_capacities', None) - self.kind = 'NodeAdded' + self.kind = 'NodeAddedToCluster' diff --git a/azure-servicefabric/azure/servicefabric/models/node_added_event_py3.py b/azure-servicefabric/azure/servicefabric/models/node_added_to_cluster_event_py3.py similarity index 86% rename from azure-servicefabric/azure/servicefabric/models/node_added_event_py3.py rename to azure-servicefabric/azure/servicefabric/models/node_added_to_cluster_event_py3.py index 8813b0cca696..617803762beb 100644 --- a/azure-servicefabric/azure/servicefabric/models/node_added_event_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/node_added_to_cluster_event_py3.py @@ -12,7 +12,7 @@ from .node_event_py3 import NodeEvent -class NodeAddedEvent(NodeEvent): +class NodeAddedToClusterEvent(NodeEvent): """Node Added event. All required parameters must be populated in order to send to Azure. @@ -20,6 +20,8 @@ class NodeAddedEvent(NodeEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -58,6 +60,7 @@ class NodeAddedEvent(NodeEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -70,12 +73,12 @@ class NodeAddedEvent(NodeEvent): 'node_capacities': {'key': 'NodeCapacities', 'type': 'str'}, } - def __init__(self, *, event_instance_id: str, time_stamp, node_name: str, node_id: str, node_instance: int, node_type: str, fabric_version: str, ip_address_or_fqdn: str, node_capacities: str, has_correlated_events: bool=None, **kwargs) -> None: - super(NodeAddedEvent, self).__init__(event_instance_id=event_instance_id, time_stamp=time_stamp, has_correlated_events=has_correlated_events, node_name=node_name, **kwargs) + def __init__(self, *, event_instance_id: str, time_stamp, node_name: str, node_id: str, node_instance: int, node_type: str, fabric_version: str, ip_address_or_fqdn: str, node_capacities: str, category: str=None, has_correlated_events: bool=None, **kwargs) -> None: + super(NodeAddedToClusterEvent, self).__init__(event_instance_id=event_instance_id, category=category, time_stamp=time_stamp, has_correlated_events=has_correlated_events, node_name=node_name, **kwargs) self.node_id = node_id self.node_instance = node_instance self.node_type = node_type self.fabric_version = fabric_version self.ip_address_or_fqdn = ip_address_or_fqdn self.node_capacities = node_capacities - self.kind = 'NodeAdded' + self.kind = 'NodeAddedToCluster' diff --git a/azure-servicefabric/azure/servicefabric/models/node_close_event.py b/azure-servicefabric/azure/servicefabric/models/node_closed_event.py similarity index 85% rename from azure-servicefabric/azure/servicefabric/models/node_close_event.py rename to azure-servicefabric/azure/servicefabric/models/node_closed_event.py index 11c4d88bcc67..d9abbee9e812 100644 --- a/azure-servicefabric/azure/servicefabric/models/node_close_event.py +++ b/azure-servicefabric/azure/servicefabric/models/node_closed_event.py @@ -12,14 +12,16 @@ from .node_event import NodeEvent -class NodeCloseEvent(NodeEvent): - """Node Close event. +class NodeClosedEvent(NodeEvent): + """Node Closed event. All required parameters must be populated in order to send to Azure. :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -32,7 +34,7 @@ class NodeCloseEvent(NodeEvent): :param node_id: Required. Id of Node. :type node_id: str :param node_instance: Required. Id of Node instance. - :type node_instance: str + :type node_instance: long :param error: Required. Describes error. :type error: str """ @@ -49,18 +51,19 @@ class NodeCloseEvent(NodeEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, 'node_name': {'key': 'NodeName', 'type': 'str'}, 'node_id': {'key': 'NodeId', 'type': 'str'}, - 'node_instance': {'key': 'NodeInstance', 'type': 'str'}, + 'node_instance': {'key': 'NodeInstance', 'type': 'long'}, 'error': {'key': 'Error', 'type': 'str'}, } def __init__(self, **kwargs): - super(NodeCloseEvent, self).__init__(**kwargs) + super(NodeClosedEvent, self).__init__(**kwargs) self.node_id = kwargs.get('node_id', None) self.node_instance = kwargs.get('node_instance', None) self.error = kwargs.get('error', None) - self.kind = 'NodeClose' + self.kind = 'NodeClosed' diff --git a/azure-servicefabric/azure/servicefabric/models/node_close_event_py3.py b/azure-servicefabric/azure/servicefabric/models/node_closed_event_py3.py similarity index 77% rename from azure-servicefabric/azure/servicefabric/models/node_close_event_py3.py rename to azure-servicefabric/azure/servicefabric/models/node_closed_event_py3.py index f6725025866f..e655d3d2dfc8 100644 --- a/azure-servicefabric/azure/servicefabric/models/node_close_event_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/node_closed_event_py3.py @@ -12,14 +12,16 @@ from .node_event_py3 import NodeEvent -class NodeCloseEvent(NodeEvent): - """Node Close event. +class NodeClosedEvent(NodeEvent): + """Node Closed event. All required parameters must be populated in order to send to Azure. :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -32,7 +34,7 @@ class NodeCloseEvent(NodeEvent): :param node_id: Required. Id of Node. :type node_id: str :param node_instance: Required. Id of Node instance. - :type node_instance: str + :type node_instance: long :param error: Required. Describes error. :type error: str """ @@ -49,18 +51,19 @@ class NodeCloseEvent(NodeEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, 'node_name': {'key': 'NodeName', 'type': 'str'}, 'node_id': {'key': 'NodeId', 'type': 'str'}, - 'node_instance': {'key': 'NodeInstance', 'type': 'str'}, + 'node_instance': {'key': 'NodeInstance', 'type': 'long'}, 'error': {'key': 'Error', 'type': 'str'}, } - def __init__(self, *, event_instance_id: str, time_stamp, node_name: str, node_id: str, node_instance: str, error: str, has_correlated_events: bool=None, **kwargs) -> None: - super(NodeCloseEvent, self).__init__(event_instance_id=event_instance_id, time_stamp=time_stamp, has_correlated_events=has_correlated_events, node_name=node_name, **kwargs) + def __init__(self, *, event_instance_id: str, time_stamp, node_name: str, node_id: str, node_instance: int, error: str, category: str=None, has_correlated_events: bool=None, **kwargs) -> None: + super(NodeClosedEvent, self).__init__(event_instance_id=event_instance_id, category=category, time_stamp=time_stamp, has_correlated_events=has_correlated_events, node_name=node_name, **kwargs) self.node_id = node_id self.node_instance = node_instance self.error = error - self.kind = 'NodeClose' + self.kind = 'NodeClosed' diff --git a/azure-servicefabric/azure/servicefabric/models/node_closing_event.py b/azure-servicefabric/azure/servicefabric/models/node_closing_event.py deleted file mode 100644 index 6a3c5af744fa..000000000000 --- a/azure-servicefabric/azure/servicefabric/models/node_closing_event.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .node_event import NodeEvent - - -class NodeClosingEvent(NodeEvent): - """Node Closing event. - - All required parameters must be populated in order to send to Azure. - - :param event_instance_id: Required. The identifier for the FabricEvent - instance. - :type event_instance_id: str - :param time_stamp: Required. The time event was logged. - :type time_stamp: datetime - :param has_correlated_events: Shows there is existing related events - available. - :type has_correlated_events: bool - :param kind: Required. Constant filled by server. - :type kind: str - :param node_name: Required. The name of a Service Fabric node. - :type node_name: str - :param node_instance: Required. Id of Node instance. - :type node_instance: long - :param node_id: Required. Id of Node. - :type node_id: str - :param upgrade_domain: Required. Upgrade domain of Node. - :type upgrade_domain: str - :param fault_domain: Required. Fault domain of Node. - :type fault_domain: str - :param ip_address_or_fqdn: Required. IP address or FQDN. - :type ip_address_or_fqdn: str - :param hostname: Required. Name of Host. - :type hostname: str - :param is_seed_node: Required. Indicates if it is seed node. - :type is_seed_node: bool - :param node_version: Required. Version of Node. - :type node_version: str - """ - - _validation = { - 'event_instance_id': {'required': True}, - 'time_stamp': {'required': True}, - 'kind': {'required': True}, - 'node_name': {'required': True}, - 'node_instance': {'required': True}, - 'node_id': {'required': True}, - 'upgrade_domain': {'required': True}, - 'fault_domain': {'required': True}, - 'ip_address_or_fqdn': {'required': True}, - 'hostname': {'required': True}, - 'is_seed_node': {'required': True}, - 'node_version': {'required': True}, - } - - _attribute_map = { - 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, - 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, - 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, - 'kind': {'key': 'Kind', 'type': 'str'}, - 'node_name': {'key': 'NodeName', 'type': 'str'}, - 'node_instance': {'key': 'NodeInstance', 'type': 'long'}, - 'node_id': {'key': 'NodeId', 'type': 'str'}, - 'upgrade_domain': {'key': 'UpgradeDomain', 'type': 'str'}, - 'fault_domain': {'key': 'FaultDomain', 'type': 'str'}, - 'ip_address_or_fqdn': {'key': 'IpAddressOrFQDN', 'type': 'str'}, - 'hostname': {'key': 'Hostname', 'type': 'str'}, - 'is_seed_node': {'key': 'IsSeedNode', 'type': 'bool'}, - 'node_version': {'key': 'NodeVersion', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(NodeClosingEvent, self).__init__(**kwargs) - self.node_instance = kwargs.get('node_instance', None) - self.node_id = kwargs.get('node_id', None) - self.upgrade_domain = kwargs.get('upgrade_domain', None) - self.fault_domain = kwargs.get('fault_domain', None) - self.ip_address_or_fqdn = kwargs.get('ip_address_or_fqdn', None) - self.hostname = kwargs.get('hostname', None) - self.is_seed_node = kwargs.get('is_seed_node', None) - self.node_version = kwargs.get('node_version', None) - self.kind = 'NodeClosing' diff --git a/azure-servicefabric/azure/servicefabric/models/node_closing_event_py3.py b/azure-servicefabric/azure/servicefabric/models/node_closing_event_py3.py deleted file mode 100644 index 217865660754..000000000000 --- a/azure-servicefabric/azure/servicefabric/models/node_closing_event_py3.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .node_event_py3 import NodeEvent - - -class NodeClosingEvent(NodeEvent): - """Node Closing event. - - All required parameters must be populated in order to send to Azure. - - :param event_instance_id: Required. The identifier for the FabricEvent - instance. - :type event_instance_id: str - :param time_stamp: Required. The time event was logged. - :type time_stamp: datetime - :param has_correlated_events: Shows there is existing related events - available. - :type has_correlated_events: bool - :param kind: Required. Constant filled by server. - :type kind: str - :param node_name: Required. The name of a Service Fabric node. - :type node_name: str - :param node_instance: Required. Id of Node instance. - :type node_instance: long - :param node_id: Required. Id of Node. - :type node_id: str - :param upgrade_domain: Required. Upgrade domain of Node. - :type upgrade_domain: str - :param fault_domain: Required. Fault domain of Node. - :type fault_domain: str - :param ip_address_or_fqdn: Required. IP address or FQDN. - :type ip_address_or_fqdn: str - :param hostname: Required. Name of Host. - :type hostname: str - :param is_seed_node: Required. Indicates if it is seed node. - :type is_seed_node: bool - :param node_version: Required. Version of Node. - :type node_version: str - """ - - _validation = { - 'event_instance_id': {'required': True}, - 'time_stamp': {'required': True}, - 'kind': {'required': True}, - 'node_name': {'required': True}, - 'node_instance': {'required': True}, - 'node_id': {'required': True}, - 'upgrade_domain': {'required': True}, - 'fault_domain': {'required': True}, - 'ip_address_or_fqdn': {'required': True}, - 'hostname': {'required': True}, - 'is_seed_node': {'required': True}, - 'node_version': {'required': True}, - } - - _attribute_map = { - 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, - 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, - 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, - 'kind': {'key': 'Kind', 'type': 'str'}, - 'node_name': {'key': 'NodeName', 'type': 'str'}, - 'node_instance': {'key': 'NodeInstance', 'type': 'long'}, - 'node_id': {'key': 'NodeId', 'type': 'str'}, - 'upgrade_domain': {'key': 'UpgradeDomain', 'type': 'str'}, - 'fault_domain': {'key': 'FaultDomain', 'type': 'str'}, - 'ip_address_or_fqdn': {'key': 'IpAddressOrFQDN', 'type': 'str'}, - 'hostname': {'key': 'Hostname', 'type': 'str'}, - 'is_seed_node': {'key': 'IsSeedNode', 'type': 'bool'}, - 'node_version': {'key': 'NodeVersion', 'type': 'str'}, - } - - def __init__(self, *, event_instance_id: str, time_stamp, node_name: str, node_instance: int, node_id: str, upgrade_domain: str, fault_domain: str, ip_address_or_fqdn: str, hostname: str, is_seed_node: bool, node_version: str, has_correlated_events: bool=None, **kwargs) -> None: - super(NodeClosingEvent, self).__init__(event_instance_id=event_instance_id, time_stamp=time_stamp, has_correlated_events=has_correlated_events, node_name=node_name, **kwargs) - self.node_instance = node_instance - self.node_id = node_id - self.upgrade_domain = upgrade_domain - self.fault_domain = fault_domain - self.ip_address_or_fqdn = ip_address_or_fqdn - self.hostname = hostname - self.is_seed_node = is_seed_node - self.node_version = node_version - self.kind = 'NodeClosing' diff --git a/azure-servicefabric/azure/servicefabric/models/node_deactivate_complete_event.py b/azure-servicefabric/azure/servicefabric/models/node_deactivate_completed_event.py similarity index 89% rename from azure-servicefabric/azure/servicefabric/models/node_deactivate_complete_event.py rename to azure-servicefabric/azure/servicefabric/models/node_deactivate_completed_event.py index 4856dc7873e4..9e20d52b544e 100644 --- a/azure-servicefabric/azure/servicefabric/models/node_deactivate_complete_event.py +++ b/azure-servicefabric/azure/servicefabric/models/node_deactivate_completed_event.py @@ -12,14 +12,16 @@ from .node_event import NodeEvent -class NodeDeactivateCompleteEvent(NodeEvent): - """Node Deactivate Complete event. +class NodeDeactivateCompletedEvent(NodeEvent): + """Node Deactivate Completed event. All required parameters must be populated in order to send to Azure. :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -52,6 +54,7 @@ class NodeDeactivateCompleteEvent(NodeEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -63,9 +66,9 @@ class NodeDeactivateCompleteEvent(NodeEvent): } def __init__(self, **kwargs): - super(NodeDeactivateCompleteEvent, self).__init__(**kwargs) + super(NodeDeactivateCompletedEvent, self).__init__(**kwargs) self.node_instance = kwargs.get('node_instance', None) self.effective_deactivate_intent = kwargs.get('effective_deactivate_intent', None) self.batch_ids_with_deactivate_intent = kwargs.get('batch_ids_with_deactivate_intent', None) self.start_time = kwargs.get('start_time', None) - self.kind = 'NodeDeactivateComplete' + self.kind = 'NodeDeactivateCompleted' diff --git a/azure-servicefabric/azure/servicefabric/models/node_deactivate_complete_event_py3.py b/azure-servicefabric/azure/servicefabric/models/node_deactivate_completed_event_py3.py similarity index 83% rename from azure-servicefabric/azure/servicefabric/models/node_deactivate_complete_event_py3.py rename to azure-servicefabric/azure/servicefabric/models/node_deactivate_completed_event_py3.py index 1e077364a6cd..d78dbcef6921 100644 --- a/azure-servicefabric/azure/servicefabric/models/node_deactivate_complete_event_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/node_deactivate_completed_event_py3.py @@ -12,14 +12,16 @@ from .node_event_py3 import NodeEvent -class NodeDeactivateCompleteEvent(NodeEvent): - """Node Deactivate Complete event. +class NodeDeactivateCompletedEvent(NodeEvent): + """Node Deactivate Completed event. All required parameters must be populated in order to send to Azure. :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -52,6 +54,7 @@ class NodeDeactivateCompleteEvent(NodeEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -62,10 +65,10 @@ class NodeDeactivateCompleteEvent(NodeEvent): 'start_time': {'key': 'StartTime', 'type': 'iso-8601'}, } - def __init__(self, *, event_instance_id: str, time_stamp, node_name: str, node_instance: int, effective_deactivate_intent: str, batch_ids_with_deactivate_intent: str, start_time, has_correlated_events: bool=None, **kwargs) -> None: - super(NodeDeactivateCompleteEvent, self).__init__(event_instance_id=event_instance_id, time_stamp=time_stamp, has_correlated_events=has_correlated_events, node_name=node_name, **kwargs) + def __init__(self, *, event_instance_id: str, time_stamp, node_name: str, node_instance: int, effective_deactivate_intent: str, batch_ids_with_deactivate_intent: str, start_time, category: str=None, has_correlated_events: bool=None, **kwargs) -> None: + super(NodeDeactivateCompletedEvent, self).__init__(event_instance_id=event_instance_id, category=category, time_stamp=time_stamp, has_correlated_events=has_correlated_events, node_name=node_name, **kwargs) self.node_instance = node_instance self.effective_deactivate_intent = effective_deactivate_intent self.batch_ids_with_deactivate_intent = batch_ids_with_deactivate_intent self.start_time = start_time - self.kind = 'NodeDeactivateComplete' + self.kind = 'NodeDeactivateCompleted' diff --git a/azure-servicefabric/azure/servicefabric/models/node_deactivate_start_event.py b/azure-servicefabric/azure/servicefabric/models/node_deactivate_started_event.py similarity index 88% rename from azure-servicefabric/azure/servicefabric/models/node_deactivate_start_event.py rename to azure-servicefabric/azure/servicefabric/models/node_deactivate_started_event.py index 9c0a25df7294..7cf057fc516c 100644 --- a/azure-servicefabric/azure/servicefabric/models/node_deactivate_start_event.py +++ b/azure-servicefabric/azure/servicefabric/models/node_deactivate_started_event.py @@ -12,14 +12,16 @@ from .node_event import NodeEvent -class NodeDeactivateStartEvent(NodeEvent): - """Node Deactivate Start event. +class NodeDeactivateStartedEvent(NodeEvent): + """Node Deactivate Started event. All required parameters must be populated in order to send to Azure. :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -49,6 +51,7 @@ class NodeDeactivateStartEvent(NodeEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -59,8 +62,8 @@ class NodeDeactivateStartEvent(NodeEvent): } def __init__(self, **kwargs): - super(NodeDeactivateStartEvent, self).__init__(**kwargs) + super(NodeDeactivateStartedEvent, self).__init__(**kwargs) self.node_instance = kwargs.get('node_instance', None) self.batch_id = kwargs.get('batch_id', None) self.deactivate_intent = kwargs.get('deactivate_intent', None) - self.kind = 'NodeDeactivateStart' + self.kind = 'NodeDeactivateStarted' diff --git a/azure-servicefabric/azure/servicefabric/models/node_deactivate_start_event_py3.py b/azure-servicefabric/azure/servicefabric/models/node_deactivate_started_event_py3.py similarity index 82% rename from azure-servicefabric/azure/servicefabric/models/node_deactivate_start_event_py3.py rename to azure-servicefabric/azure/servicefabric/models/node_deactivate_started_event_py3.py index 8722fdd9ef0b..30c39037040c 100644 --- a/azure-servicefabric/azure/servicefabric/models/node_deactivate_start_event_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/node_deactivate_started_event_py3.py @@ -12,14 +12,16 @@ from .node_event_py3 import NodeEvent -class NodeDeactivateStartEvent(NodeEvent): - """Node Deactivate Start event. +class NodeDeactivateStartedEvent(NodeEvent): + """Node Deactivate Started event. All required parameters must be populated in order to send to Azure. :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -49,6 +51,7 @@ class NodeDeactivateStartEvent(NodeEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -58,9 +61,9 @@ class NodeDeactivateStartEvent(NodeEvent): 'deactivate_intent': {'key': 'DeactivateIntent', 'type': 'str'}, } - def __init__(self, *, event_instance_id: str, time_stamp, node_name: str, node_instance: int, batch_id: str, deactivate_intent: str, has_correlated_events: bool=None, **kwargs) -> None: - super(NodeDeactivateStartEvent, self).__init__(event_instance_id=event_instance_id, time_stamp=time_stamp, has_correlated_events=has_correlated_events, node_name=node_name, **kwargs) + def __init__(self, *, event_instance_id: str, time_stamp, node_name: str, node_instance: int, batch_id: str, deactivate_intent: str, category: str=None, has_correlated_events: bool=None, **kwargs) -> None: + super(NodeDeactivateStartedEvent, self).__init__(event_instance_id=event_instance_id, category=category, time_stamp=time_stamp, has_correlated_events=has_correlated_events, node_name=node_name, **kwargs) self.node_instance = node_instance self.batch_id = batch_id self.deactivate_intent = deactivate_intent - self.kind = 'NodeDeactivateStart' + self.kind = 'NodeDeactivateStarted' diff --git a/azure-servicefabric/azure/servicefabric/models/node_down_event.py b/azure-servicefabric/azure/servicefabric/models/node_down_event.py index 0807efd1966f..b20b3d4baada 100644 --- a/azure-servicefabric/azure/servicefabric/models/node_down_event.py +++ b/azure-servicefabric/azure/servicefabric/models/node_down_event.py @@ -20,6 +20,8 @@ class NodeDownEvent(NodeEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -46,6 +48,7 @@ class NodeDownEvent(NodeEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, diff --git a/azure-servicefabric/azure/servicefabric/models/node_down_event_py3.py b/azure-servicefabric/azure/servicefabric/models/node_down_event_py3.py index 0400d49454c1..7702aee91966 100644 --- a/azure-servicefabric/azure/servicefabric/models/node_down_event_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/node_down_event_py3.py @@ -20,6 +20,8 @@ class NodeDownEvent(NodeEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -46,6 +48,7 @@ class NodeDownEvent(NodeEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -54,8 +57,8 @@ class NodeDownEvent(NodeEvent): 'last_node_up_at': {'key': 'LastNodeUpAt', 'type': 'iso-8601'}, } - def __init__(self, *, event_instance_id: str, time_stamp, node_name: str, node_instance: int, last_node_up_at, has_correlated_events: bool=None, **kwargs) -> None: - super(NodeDownEvent, self).__init__(event_instance_id=event_instance_id, time_stamp=time_stamp, has_correlated_events=has_correlated_events, node_name=node_name, **kwargs) + def __init__(self, *, event_instance_id: str, time_stamp, node_name: str, node_instance: int, last_node_up_at, category: str=None, has_correlated_events: bool=None, **kwargs) -> None: + super(NodeDownEvent, self).__init__(event_instance_id=event_instance_id, category=category, time_stamp=time_stamp, has_correlated_events=has_correlated_events, node_name=node_name, **kwargs) self.node_instance = node_instance self.last_node_up_at = last_node_up_at self.kind = 'NodeDown' diff --git a/azure-servicefabric/azure/servicefabric/models/node_event.py b/azure-servicefabric/azure/servicefabric/models/node_event.py index b383f75cfbb2..b10fa82f0057 100644 --- a/azure-servicefabric/azure/servicefabric/models/node_event.py +++ b/azure-servicefabric/azure/servicefabric/models/node_event.py @@ -16,18 +16,19 @@ class NodeEvent(FabricEvent): """Represents the base for all Node Events. You probably want to use the sub-classes and not this class directly. Known - sub-classes are: NodeAbortedEvent, NodeAbortingEvent, NodeAddedEvent, - NodeCloseEvent, NodeClosingEvent, NodeDeactivateCompleteEvent, - NodeDeactivateStartEvent, NodeDownEvent, NodeHealthReportCreatedEvent, - NodeHealthReportExpiredEvent, NodeOpenedSuccessEvent, NodeOpenFailedEvent, - NodeOpeningEvent, NodeRemovedEvent, NodeUpEvent, - ChaosRestartNodeFaultCompletedEvent, ChaosRestartNodeFaultScheduledEvent + sub-classes are: NodeAbortedEvent, NodeAddedToClusterEvent, + NodeClosedEvent, NodeDeactivateCompletedEvent, NodeDeactivateStartedEvent, + NodeDownEvent, NodeNewHealthReportEvent, NodeHealthReportExpiredEvent, + NodeOpenSucceededEvent, NodeOpenFailedEvent, NodeRemovedFromClusterEvent, + NodeUpEvent, ChaosNodeRestartScheduledEvent All required parameters must be populated in order to send to Azure. :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -48,6 +49,7 @@ class NodeEvent(FabricEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -55,7 +57,7 @@ class NodeEvent(FabricEvent): } _subtype_map = { - 'kind': {'NodeAborted': 'NodeAbortedEvent', 'NodeAborting': 'NodeAbortingEvent', 'NodeAdded': 'NodeAddedEvent', 'NodeClose': 'NodeCloseEvent', 'NodeClosing': 'NodeClosingEvent', 'NodeDeactivateComplete': 'NodeDeactivateCompleteEvent', 'NodeDeactivateStart': 'NodeDeactivateStartEvent', 'NodeDown': 'NodeDownEvent', 'NodeHealthReportCreated': 'NodeHealthReportCreatedEvent', 'NodeHealthReportExpired': 'NodeHealthReportExpiredEvent', 'NodeOpenedSuccess': 'NodeOpenedSuccessEvent', 'NodeOpenFailed': 'NodeOpenFailedEvent', 'NodeOpening': 'NodeOpeningEvent', 'NodeRemoved': 'NodeRemovedEvent', 'NodeUp': 'NodeUpEvent', 'ChaosRestartNodeFaultCompleted': 'ChaosRestartNodeFaultCompletedEvent', 'ChaosRestartNodeFaultScheduled': 'ChaosRestartNodeFaultScheduledEvent'} + 'kind': {'NodeAborted': 'NodeAbortedEvent', 'NodeAddedToCluster': 'NodeAddedToClusterEvent', 'NodeClosed': 'NodeClosedEvent', 'NodeDeactivateCompleted': 'NodeDeactivateCompletedEvent', 'NodeDeactivateStarted': 'NodeDeactivateStartedEvent', 'NodeDown': 'NodeDownEvent', 'NodeNewHealthReport': 'NodeNewHealthReportEvent', 'NodeHealthReportExpired': 'NodeHealthReportExpiredEvent', 'NodeOpenSucceeded': 'NodeOpenSucceededEvent', 'NodeOpenFailed': 'NodeOpenFailedEvent', 'NodeRemovedFromCluster': 'NodeRemovedFromClusterEvent', 'NodeUp': 'NodeUpEvent', 'ChaosNodeRestartScheduled': 'ChaosNodeRestartScheduledEvent'} } def __init__(self, **kwargs): diff --git a/azure-servicefabric/azure/servicefabric/models/node_event_py3.py b/azure-servicefabric/azure/servicefabric/models/node_event_py3.py index 09d9d378c6b5..1fd27413a593 100644 --- a/azure-servicefabric/azure/servicefabric/models/node_event_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/node_event_py3.py @@ -16,18 +16,19 @@ class NodeEvent(FabricEvent): """Represents the base for all Node Events. You probably want to use the sub-classes and not this class directly. Known - sub-classes are: NodeAbortedEvent, NodeAbortingEvent, NodeAddedEvent, - NodeCloseEvent, NodeClosingEvent, NodeDeactivateCompleteEvent, - NodeDeactivateStartEvent, NodeDownEvent, NodeHealthReportCreatedEvent, - NodeHealthReportExpiredEvent, NodeOpenedSuccessEvent, NodeOpenFailedEvent, - NodeOpeningEvent, NodeRemovedEvent, NodeUpEvent, - ChaosRestartNodeFaultCompletedEvent, ChaosRestartNodeFaultScheduledEvent + sub-classes are: NodeAbortedEvent, NodeAddedToClusterEvent, + NodeClosedEvent, NodeDeactivateCompletedEvent, NodeDeactivateStartedEvent, + NodeDownEvent, NodeNewHealthReportEvent, NodeHealthReportExpiredEvent, + NodeOpenSucceededEvent, NodeOpenFailedEvent, NodeRemovedFromClusterEvent, + NodeUpEvent, ChaosNodeRestartScheduledEvent All required parameters must be populated in order to send to Azure. :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -48,6 +49,7 @@ class NodeEvent(FabricEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -55,10 +57,10 @@ class NodeEvent(FabricEvent): } _subtype_map = { - 'kind': {'NodeAborted': 'NodeAbortedEvent', 'NodeAborting': 'NodeAbortingEvent', 'NodeAdded': 'NodeAddedEvent', 'NodeClose': 'NodeCloseEvent', 'NodeClosing': 'NodeClosingEvent', 'NodeDeactivateComplete': 'NodeDeactivateCompleteEvent', 'NodeDeactivateStart': 'NodeDeactivateStartEvent', 'NodeDown': 'NodeDownEvent', 'NodeHealthReportCreated': 'NodeHealthReportCreatedEvent', 'NodeHealthReportExpired': 'NodeHealthReportExpiredEvent', 'NodeOpenedSuccess': 'NodeOpenedSuccessEvent', 'NodeOpenFailed': 'NodeOpenFailedEvent', 'NodeOpening': 'NodeOpeningEvent', 'NodeRemoved': 'NodeRemovedEvent', 'NodeUp': 'NodeUpEvent', 'ChaosRestartNodeFaultCompleted': 'ChaosRestartNodeFaultCompletedEvent', 'ChaosRestartNodeFaultScheduled': 'ChaosRestartNodeFaultScheduledEvent'} + 'kind': {'NodeAborted': 'NodeAbortedEvent', 'NodeAddedToCluster': 'NodeAddedToClusterEvent', 'NodeClosed': 'NodeClosedEvent', 'NodeDeactivateCompleted': 'NodeDeactivateCompletedEvent', 'NodeDeactivateStarted': 'NodeDeactivateStartedEvent', 'NodeDown': 'NodeDownEvent', 'NodeNewHealthReport': 'NodeNewHealthReportEvent', 'NodeHealthReportExpired': 'NodeHealthReportExpiredEvent', 'NodeOpenSucceeded': 'NodeOpenSucceededEvent', 'NodeOpenFailed': 'NodeOpenFailedEvent', 'NodeRemovedFromCluster': 'NodeRemovedFromClusterEvent', 'NodeUp': 'NodeUpEvent', 'ChaosNodeRestartScheduled': 'ChaosNodeRestartScheduledEvent'} } - def __init__(self, *, event_instance_id: str, time_stamp, node_name: str, has_correlated_events: bool=None, **kwargs) -> None: - super(NodeEvent, self).__init__(event_instance_id=event_instance_id, time_stamp=time_stamp, has_correlated_events=has_correlated_events, **kwargs) + def __init__(self, *, event_instance_id: str, time_stamp, node_name: str, category: str=None, has_correlated_events: bool=None, **kwargs) -> None: + super(NodeEvent, self).__init__(event_instance_id=event_instance_id, category=category, time_stamp=time_stamp, has_correlated_events=has_correlated_events, **kwargs) self.node_name = node_name self.kind = 'NodeEvent' diff --git a/azure-servicefabric/azure/servicefabric/models/node_health_report_expired_event.py b/azure-servicefabric/azure/servicefabric/models/node_health_report_expired_event.py index 6aee39026383..961324f6fe0e 100644 --- a/azure-servicefabric/azure/servicefabric/models/node_health_report_expired_event.py +++ b/azure-servicefabric/azure/servicefabric/models/node_health_report_expired_event.py @@ -20,6 +20,8 @@ class NodeHealthReportExpiredEvent(NodeEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -68,6 +70,7 @@ class NodeHealthReportExpiredEvent(NodeEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, diff --git a/azure-servicefabric/azure/servicefabric/models/node_health_report_expired_event_py3.py b/azure-servicefabric/azure/servicefabric/models/node_health_report_expired_event_py3.py index 6e186c2f62fe..8012e4bc284c 100644 --- a/azure-servicefabric/azure/servicefabric/models/node_health_report_expired_event_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/node_health_report_expired_event_py3.py @@ -20,6 +20,8 @@ class NodeHealthReportExpiredEvent(NodeEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -68,6 +70,7 @@ class NodeHealthReportExpiredEvent(NodeEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -83,8 +86,8 @@ class NodeHealthReportExpiredEvent(NodeEvent): 'source_utc_timestamp': {'key': 'SourceUtcTimestamp', 'type': 'iso-8601'}, } - def __init__(self, *, event_instance_id: str, time_stamp, node_name: str, node_instance_id: int, source_id: str, property: str, health_state: str, time_to_live_ms: int, sequence_number: int, description: str, remove_when_expired: bool, source_utc_timestamp, has_correlated_events: bool=None, **kwargs) -> None: - super(NodeHealthReportExpiredEvent, self).__init__(event_instance_id=event_instance_id, time_stamp=time_stamp, has_correlated_events=has_correlated_events, node_name=node_name, **kwargs) + def __init__(self, *, event_instance_id: str, time_stamp, node_name: str, node_instance_id: int, source_id: str, property: str, health_state: str, time_to_live_ms: int, sequence_number: int, description: str, remove_when_expired: bool, source_utc_timestamp, category: str=None, has_correlated_events: bool=None, **kwargs) -> None: + super(NodeHealthReportExpiredEvent, self).__init__(event_instance_id=event_instance_id, category=category, time_stamp=time_stamp, has_correlated_events=has_correlated_events, node_name=node_name, **kwargs) self.node_instance_id = node_instance_id self.source_id = source_id self.property = property diff --git a/azure-servicefabric/azure/servicefabric/models/node_health_report_created_event.py b/azure-servicefabric/azure/servicefabric/models/node_new_health_report_event.py similarity index 93% rename from azure-servicefabric/azure/servicefabric/models/node_health_report_created_event.py rename to azure-servicefabric/azure/servicefabric/models/node_new_health_report_event.py index d8ff5a432b67..d8f835a0bbf1 100644 --- a/azure-servicefabric/azure/servicefabric/models/node_health_report_created_event.py +++ b/azure-servicefabric/azure/servicefabric/models/node_new_health_report_event.py @@ -12,7 +12,7 @@ from .node_event import NodeEvent -class NodeHealthReportCreatedEvent(NodeEvent): +class NodeNewHealthReportEvent(NodeEvent): """Node Health Report Created event. All required parameters must be populated in order to send to Azure. @@ -20,6 +20,8 @@ class NodeHealthReportCreatedEvent(NodeEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -68,6 +70,7 @@ class NodeHealthReportCreatedEvent(NodeEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -84,7 +87,7 @@ class NodeHealthReportCreatedEvent(NodeEvent): } def __init__(self, **kwargs): - super(NodeHealthReportCreatedEvent, self).__init__(**kwargs) + super(NodeNewHealthReportEvent, self).__init__(**kwargs) self.node_instance_id = kwargs.get('node_instance_id', None) self.source_id = kwargs.get('source_id', None) self.property = kwargs.get('property', None) @@ -94,4 +97,4 @@ def __init__(self, **kwargs): self.description = kwargs.get('description', None) self.remove_when_expired = kwargs.get('remove_when_expired', None) self.source_utc_timestamp = kwargs.get('source_utc_timestamp', None) - self.kind = 'NodeHealthReportCreated' + self.kind = 'NodeNewHealthReport' diff --git a/azure-servicefabric/azure/servicefabric/models/node_health_report_created_event_py3.py b/azure-servicefabric/azure/servicefabric/models/node_new_health_report_event_py3.py similarity index 89% rename from azure-servicefabric/azure/servicefabric/models/node_health_report_created_event_py3.py rename to azure-servicefabric/azure/servicefabric/models/node_new_health_report_event_py3.py index 09fbe55018fa..bf7a0effaecb 100644 --- a/azure-servicefabric/azure/servicefabric/models/node_health_report_created_event_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/node_new_health_report_event_py3.py @@ -12,7 +12,7 @@ from .node_event_py3 import NodeEvent -class NodeHealthReportCreatedEvent(NodeEvent): +class NodeNewHealthReportEvent(NodeEvent): """Node Health Report Created event. All required parameters must be populated in order to send to Azure. @@ -20,6 +20,8 @@ class NodeHealthReportCreatedEvent(NodeEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -68,6 +70,7 @@ class NodeHealthReportCreatedEvent(NodeEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -83,8 +86,8 @@ class NodeHealthReportCreatedEvent(NodeEvent): 'source_utc_timestamp': {'key': 'SourceUtcTimestamp', 'type': 'iso-8601'}, } - def __init__(self, *, event_instance_id: str, time_stamp, node_name: str, node_instance_id: int, source_id: str, property: str, health_state: str, time_to_live_ms: int, sequence_number: int, description: str, remove_when_expired: bool, source_utc_timestamp, has_correlated_events: bool=None, **kwargs) -> None: - super(NodeHealthReportCreatedEvent, self).__init__(event_instance_id=event_instance_id, time_stamp=time_stamp, has_correlated_events=has_correlated_events, node_name=node_name, **kwargs) + def __init__(self, *, event_instance_id: str, time_stamp, node_name: str, node_instance_id: int, source_id: str, property: str, health_state: str, time_to_live_ms: int, sequence_number: int, description: str, remove_when_expired: bool, source_utc_timestamp, category: str=None, has_correlated_events: bool=None, **kwargs) -> None: + super(NodeNewHealthReportEvent, self).__init__(event_instance_id=event_instance_id, category=category, time_stamp=time_stamp, has_correlated_events=has_correlated_events, node_name=node_name, **kwargs) self.node_instance_id = node_instance_id self.source_id = source_id self.property = property @@ -94,4 +97,4 @@ def __init__(self, *, event_instance_id: str, time_stamp, node_name: str, node_i self.description = description self.remove_when_expired = remove_when_expired self.source_utc_timestamp = source_utc_timestamp - self.kind = 'NodeHealthReportCreated' + self.kind = 'NodeNewHealthReport' diff --git a/azure-servicefabric/azure/servicefabric/models/node_open_failed_event.py b/azure-servicefabric/azure/servicefabric/models/node_open_failed_event.py index 66a9802b7351..e7fb8fbefa3f 100644 --- a/azure-servicefabric/azure/servicefabric/models/node_open_failed_event.py +++ b/azure-servicefabric/azure/servicefabric/models/node_open_failed_event.py @@ -20,6 +20,8 @@ class NodeOpenFailedEvent(NodeEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -67,6 +69,7 @@ class NodeOpenFailedEvent(NodeEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, diff --git a/azure-servicefabric/azure/servicefabric/models/node_open_failed_event_py3.py b/azure-servicefabric/azure/servicefabric/models/node_open_failed_event_py3.py index 9bfb09d9f0e2..8f9e240fccaa 100644 --- a/azure-servicefabric/azure/servicefabric/models/node_open_failed_event_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/node_open_failed_event_py3.py @@ -20,6 +20,8 @@ class NodeOpenFailedEvent(NodeEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -67,6 +69,7 @@ class NodeOpenFailedEvent(NodeEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -82,8 +85,8 @@ class NodeOpenFailedEvent(NodeEvent): 'error': {'key': 'Error', 'type': 'str'}, } - def __init__(self, *, event_instance_id: str, time_stamp, node_name: str, node_instance: int, node_id: str, upgrade_domain: str, fault_domain: str, ip_address_or_fqdn: str, hostname: str, is_seed_node: bool, node_version: str, error: str, has_correlated_events: bool=None, **kwargs) -> None: - super(NodeOpenFailedEvent, self).__init__(event_instance_id=event_instance_id, time_stamp=time_stamp, has_correlated_events=has_correlated_events, node_name=node_name, **kwargs) + def __init__(self, *, event_instance_id: str, time_stamp, node_name: str, node_instance: int, node_id: str, upgrade_domain: str, fault_domain: str, ip_address_or_fqdn: str, hostname: str, is_seed_node: bool, node_version: str, error: str, category: str=None, has_correlated_events: bool=None, **kwargs) -> None: + super(NodeOpenFailedEvent, self).__init__(event_instance_id=event_instance_id, category=category, time_stamp=time_stamp, has_correlated_events=has_correlated_events, node_name=node_name, **kwargs) self.node_instance = node_instance self.node_id = node_id self.upgrade_domain = upgrade_domain diff --git a/azure-servicefabric/azure/servicefabric/models/node_opening_event.py b/azure-servicefabric/azure/servicefabric/models/node_open_succeeded_event.py similarity index 92% rename from azure-servicefabric/azure/servicefabric/models/node_opening_event.py rename to azure-servicefabric/azure/servicefabric/models/node_open_succeeded_event.py index 1ea9b262df07..a0ab8edcb288 100644 --- a/azure-servicefabric/azure/servicefabric/models/node_opening_event.py +++ b/azure-servicefabric/azure/servicefabric/models/node_open_succeeded_event.py @@ -12,14 +12,16 @@ from .node_event import NodeEvent -class NodeOpeningEvent(NodeEvent): - """Node Opening event. +class NodeOpenSucceededEvent(NodeEvent): + """Node Opened Succeeded event. All required parameters must be populated in order to send to Azure. :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -64,6 +66,7 @@ class NodeOpeningEvent(NodeEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -79,7 +82,7 @@ class NodeOpeningEvent(NodeEvent): } def __init__(self, **kwargs): - super(NodeOpeningEvent, self).__init__(**kwargs) + super(NodeOpenSucceededEvent, self).__init__(**kwargs) self.node_instance = kwargs.get('node_instance', None) self.node_id = kwargs.get('node_id', None) self.upgrade_domain = kwargs.get('upgrade_domain', None) @@ -88,4 +91,4 @@ def __init__(self, **kwargs): self.hostname = kwargs.get('hostname', None) self.is_seed_node = kwargs.get('is_seed_node', None) self.node_version = kwargs.get('node_version', None) - self.kind = 'NodeOpening' + self.kind = 'NodeOpenSucceeded' diff --git a/azure-servicefabric/azure/servicefabric/models/node_opened_success_event_py3.py b/azure-servicefabric/azure/servicefabric/models/node_open_succeeded_event_py3.py similarity index 86% rename from azure-servicefabric/azure/servicefabric/models/node_opened_success_event_py3.py rename to azure-servicefabric/azure/servicefabric/models/node_open_succeeded_event_py3.py index 5e297bfad8b5..e29ba22fa256 100644 --- a/azure-servicefabric/azure/servicefabric/models/node_opened_success_event_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/node_open_succeeded_event_py3.py @@ -12,14 +12,16 @@ from .node_event_py3 import NodeEvent -class NodeOpenedSuccessEvent(NodeEvent): - """Node Opened Success event. +class NodeOpenSucceededEvent(NodeEvent): + """Node Opened Succeeded event. All required parameters must be populated in order to send to Azure. :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -64,6 +66,7 @@ class NodeOpenedSuccessEvent(NodeEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -78,8 +81,8 @@ class NodeOpenedSuccessEvent(NodeEvent): 'node_version': {'key': 'NodeVersion', 'type': 'str'}, } - def __init__(self, *, event_instance_id: str, time_stamp, node_name: str, node_instance: int, node_id: str, upgrade_domain: str, fault_domain: str, ip_address_or_fqdn: str, hostname: str, is_seed_node: bool, node_version: str, has_correlated_events: bool=None, **kwargs) -> None: - super(NodeOpenedSuccessEvent, self).__init__(event_instance_id=event_instance_id, time_stamp=time_stamp, has_correlated_events=has_correlated_events, node_name=node_name, **kwargs) + def __init__(self, *, event_instance_id: str, time_stamp, node_name: str, node_instance: int, node_id: str, upgrade_domain: str, fault_domain: str, ip_address_or_fqdn: str, hostname: str, is_seed_node: bool, node_version: str, category: str=None, has_correlated_events: bool=None, **kwargs) -> None: + super(NodeOpenSucceededEvent, self).__init__(event_instance_id=event_instance_id, category=category, time_stamp=time_stamp, has_correlated_events=has_correlated_events, node_name=node_name, **kwargs) self.node_instance = node_instance self.node_id = node_id self.upgrade_domain = upgrade_domain @@ -88,4 +91,4 @@ def __init__(self, *, event_instance_id: str, time_stamp, node_name: str, node_i self.hostname = hostname self.is_seed_node = is_seed_node self.node_version = node_version - self.kind = 'NodeOpenedSuccess' + self.kind = 'NodeOpenSucceeded' diff --git a/azure-servicefabric/azure/servicefabric/models/node_opened_success_event.py b/azure-servicefabric/azure/servicefabric/models/node_opened_success_event.py deleted file mode 100644 index 3ed453c7fec0..000000000000 --- a/azure-servicefabric/azure/servicefabric/models/node_opened_success_event.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .node_event import NodeEvent - - -class NodeOpenedSuccessEvent(NodeEvent): - """Node Opened Success event. - - All required parameters must be populated in order to send to Azure. - - :param event_instance_id: Required. The identifier for the FabricEvent - instance. - :type event_instance_id: str - :param time_stamp: Required. The time event was logged. - :type time_stamp: datetime - :param has_correlated_events: Shows there is existing related events - available. - :type has_correlated_events: bool - :param kind: Required. Constant filled by server. - :type kind: str - :param node_name: Required. The name of a Service Fabric node. - :type node_name: str - :param node_instance: Required. Id of Node instance. - :type node_instance: long - :param node_id: Required. Id of Node. - :type node_id: str - :param upgrade_domain: Required. Upgrade domain of Node. - :type upgrade_domain: str - :param fault_domain: Required. Fault domain of Node. - :type fault_domain: str - :param ip_address_or_fqdn: Required. IP address or FQDN. - :type ip_address_or_fqdn: str - :param hostname: Required. Name of Host. - :type hostname: str - :param is_seed_node: Required. Indicates if it is seed node. - :type is_seed_node: bool - :param node_version: Required. Version of Node. - :type node_version: str - """ - - _validation = { - 'event_instance_id': {'required': True}, - 'time_stamp': {'required': True}, - 'kind': {'required': True}, - 'node_name': {'required': True}, - 'node_instance': {'required': True}, - 'node_id': {'required': True}, - 'upgrade_domain': {'required': True}, - 'fault_domain': {'required': True}, - 'ip_address_or_fqdn': {'required': True}, - 'hostname': {'required': True}, - 'is_seed_node': {'required': True}, - 'node_version': {'required': True}, - } - - _attribute_map = { - 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, - 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, - 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, - 'kind': {'key': 'Kind', 'type': 'str'}, - 'node_name': {'key': 'NodeName', 'type': 'str'}, - 'node_instance': {'key': 'NodeInstance', 'type': 'long'}, - 'node_id': {'key': 'NodeId', 'type': 'str'}, - 'upgrade_domain': {'key': 'UpgradeDomain', 'type': 'str'}, - 'fault_domain': {'key': 'FaultDomain', 'type': 'str'}, - 'ip_address_or_fqdn': {'key': 'IpAddressOrFQDN', 'type': 'str'}, - 'hostname': {'key': 'Hostname', 'type': 'str'}, - 'is_seed_node': {'key': 'IsSeedNode', 'type': 'bool'}, - 'node_version': {'key': 'NodeVersion', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(NodeOpenedSuccessEvent, self).__init__(**kwargs) - self.node_instance = kwargs.get('node_instance', None) - self.node_id = kwargs.get('node_id', None) - self.upgrade_domain = kwargs.get('upgrade_domain', None) - self.fault_domain = kwargs.get('fault_domain', None) - self.ip_address_or_fqdn = kwargs.get('ip_address_or_fqdn', None) - self.hostname = kwargs.get('hostname', None) - self.is_seed_node = kwargs.get('is_seed_node', None) - self.node_version = kwargs.get('node_version', None) - self.kind = 'NodeOpenedSuccess' diff --git a/azure-servicefabric/azure/servicefabric/models/node_opening_event_py3.py b/azure-servicefabric/azure/servicefabric/models/node_opening_event_py3.py deleted file mode 100644 index c16e8c965a44..000000000000 --- a/azure-servicefabric/azure/servicefabric/models/node_opening_event_py3.py +++ /dev/null @@ -1,91 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .node_event_py3 import NodeEvent - - -class NodeOpeningEvent(NodeEvent): - """Node Opening event. - - All required parameters must be populated in order to send to Azure. - - :param event_instance_id: Required. The identifier for the FabricEvent - instance. - :type event_instance_id: str - :param time_stamp: Required. The time event was logged. - :type time_stamp: datetime - :param has_correlated_events: Shows there is existing related events - available. - :type has_correlated_events: bool - :param kind: Required. Constant filled by server. - :type kind: str - :param node_name: Required. The name of a Service Fabric node. - :type node_name: str - :param node_instance: Required. Id of Node instance. - :type node_instance: long - :param node_id: Required. Id of Node. - :type node_id: str - :param upgrade_domain: Required. Upgrade domain of Node. - :type upgrade_domain: str - :param fault_domain: Required. Fault domain of Node. - :type fault_domain: str - :param ip_address_or_fqdn: Required. IP address or FQDN. - :type ip_address_or_fqdn: str - :param hostname: Required. Name of Host. - :type hostname: str - :param is_seed_node: Required. Indicates if it is seed node. - :type is_seed_node: bool - :param node_version: Required. Version of Node. - :type node_version: str - """ - - _validation = { - 'event_instance_id': {'required': True}, - 'time_stamp': {'required': True}, - 'kind': {'required': True}, - 'node_name': {'required': True}, - 'node_instance': {'required': True}, - 'node_id': {'required': True}, - 'upgrade_domain': {'required': True}, - 'fault_domain': {'required': True}, - 'ip_address_or_fqdn': {'required': True}, - 'hostname': {'required': True}, - 'is_seed_node': {'required': True}, - 'node_version': {'required': True}, - } - - _attribute_map = { - 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, - 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, - 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, - 'kind': {'key': 'Kind', 'type': 'str'}, - 'node_name': {'key': 'NodeName', 'type': 'str'}, - 'node_instance': {'key': 'NodeInstance', 'type': 'long'}, - 'node_id': {'key': 'NodeId', 'type': 'str'}, - 'upgrade_domain': {'key': 'UpgradeDomain', 'type': 'str'}, - 'fault_domain': {'key': 'FaultDomain', 'type': 'str'}, - 'ip_address_or_fqdn': {'key': 'IpAddressOrFQDN', 'type': 'str'}, - 'hostname': {'key': 'Hostname', 'type': 'str'}, - 'is_seed_node': {'key': 'IsSeedNode', 'type': 'bool'}, - 'node_version': {'key': 'NodeVersion', 'type': 'str'}, - } - - def __init__(self, *, event_instance_id: str, time_stamp, node_name: str, node_instance: int, node_id: str, upgrade_domain: str, fault_domain: str, ip_address_or_fqdn: str, hostname: str, is_seed_node: bool, node_version: str, has_correlated_events: bool=None, **kwargs) -> None: - super(NodeOpeningEvent, self).__init__(event_instance_id=event_instance_id, time_stamp=time_stamp, has_correlated_events=has_correlated_events, node_name=node_name, **kwargs) - self.node_instance = node_instance - self.node_id = node_id - self.upgrade_domain = upgrade_domain - self.fault_domain = fault_domain - self.ip_address_or_fqdn = ip_address_or_fqdn - self.hostname = hostname - self.is_seed_node = is_seed_node - self.node_version = node_version - self.kind = 'NodeOpening' diff --git a/azure-servicefabric/azure/servicefabric/models/node_removed_event.py b/azure-servicefabric/azure/servicefabric/models/node_removed_from_cluster_event.py similarity index 91% rename from azure-servicefabric/azure/servicefabric/models/node_removed_event.py rename to azure-servicefabric/azure/servicefabric/models/node_removed_from_cluster_event.py index f37cab9d905d..651954f94078 100644 --- a/azure-servicefabric/azure/servicefabric/models/node_removed_event.py +++ b/azure-servicefabric/azure/servicefabric/models/node_removed_from_cluster_event.py @@ -12,7 +12,7 @@ from .node_event import NodeEvent -class NodeRemovedEvent(NodeEvent): +class NodeRemovedFromClusterEvent(NodeEvent): """Node Removed event. All required parameters must be populated in order to send to Azure. @@ -20,6 +20,8 @@ class NodeRemovedEvent(NodeEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -58,6 +60,7 @@ class NodeRemovedEvent(NodeEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -71,11 +74,11 @@ class NodeRemovedEvent(NodeEvent): } def __init__(self, **kwargs): - super(NodeRemovedEvent, self).__init__(**kwargs) + super(NodeRemovedFromClusterEvent, self).__init__(**kwargs) self.node_id = kwargs.get('node_id', None) self.node_instance = kwargs.get('node_instance', None) self.node_type = kwargs.get('node_type', None) self.fabric_version = kwargs.get('fabric_version', None) self.ip_address_or_fqdn = kwargs.get('ip_address_or_fqdn', None) self.node_capacities = kwargs.get('node_capacities', None) - self.kind = 'NodeRemoved' + self.kind = 'NodeRemovedFromCluster' diff --git a/azure-servicefabric/azure/servicefabric/models/node_removed_event_py3.py b/azure-servicefabric/azure/servicefabric/models/node_removed_from_cluster_event_py3.py similarity index 86% rename from azure-servicefabric/azure/servicefabric/models/node_removed_event_py3.py rename to azure-servicefabric/azure/servicefabric/models/node_removed_from_cluster_event_py3.py index ff3dbcb6fb7e..dfbf977f2496 100644 --- a/azure-servicefabric/azure/servicefabric/models/node_removed_event_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/node_removed_from_cluster_event_py3.py @@ -12,7 +12,7 @@ from .node_event_py3 import NodeEvent -class NodeRemovedEvent(NodeEvent): +class NodeRemovedFromClusterEvent(NodeEvent): """Node Removed event. All required parameters must be populated in order to send to Azure. @@ -20,6 +20,8 @@ class NodeRemovedEvent(NodeEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -58,6 +60,7 @@ class NodeRemovedEvent(NodeEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -70,12 +73,12 @@ class NodeRemovedEvent(NodeEvent): 'node_capacities': {'key': 'NodeCapacities', 'type': 'str'}, } - def __init__(self, *, event_instance_id: str, time_stamp, node_name: str, node_id: str, node_instance: int, node_type: str, fabric_version: str, ip_address_or_fqdn: str, node_capacities: str, has_correlated_events: bool=None, **kwargs) -> None: - super(NodeRemovedEvent, self).__init__(event_instance_id=event_instance_id, time_stamp=time_stamp, has_correlated_events=has_correlated_events, node_name=node_name, **kwargs) + def __init__(self, *, event_instance_id: str, time_stamp, node_name: str, node_id: str, node_instance: int, node_type: str, fabric_version: str, ip_address_or_fqdn: str, node_capacities: str, category: str=None, has_correlated_events: bool=None, **kwargs) -> None: + super(NodeRemovedFromClusterEvent, self).__init__(event_instance_id=event_instance_id, category=category, time_stamp=time_stamp, has_correlated_events=has_correlated_events, node_name=node_name, **kwargs) self.node_id = node_id self.node_instance = node_instance self.node_type = node_type self.fabric_version = fabric_version self.ip_address_or_fqdn = ip_address_or_fqdn self.node_capacities = node_capacities - self.kind = 'NodeRemoved' + self.kind = 'NodeRemovedFromCluster' diff --git a/azure-servicefabric/azure/servicefabric/models/node_up_event.py b/azure-servicefabric/azure/servicefabric/models/node_up_event.py index bbe4ec65f7cd..bcacf73a8285 100644 --- a/azure-servicefabric/azure/servicefabric/models/node_up_event.py +++ b/azure-servicefabric/azure/servicefabric/models/node_up_event.py @@ -20,6 +20,8 @@ class NodeUpEvent(NodeEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -46,6 +48,7 @@ class NodeUpEvent(NodeEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, diff --git a/azure-servicefabric/azure/servicefabric/models/node_up_event_py3.py b/azure-servicefabric/azure/servicefabric/models/node_up_event_py3.py index c8d920f069a9..4b02f97cdca6 100644 --- a/azure-servicefabric/azure/servicefabric/models/node_up_event_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/node_up_event_py3.py @@ -20,6 +20,8 @@ class NodeUpEvent(NodeEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -46,6 +48,7 @@ class NodeUpEvent(NodeEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -54,8 +57,8 @@ class NodeUpEvent(NodeEvent): 'last_node_down_at': {'key': 'LastNodeDownAt', 'type': 'iso-8601'}, } - def __init__(self, *, event_instance_id: str, time_stamp, node_name: str, node_instance: int, last_node_down_at, has_correlated_events: bool=None, **kwargs) -> None: - super(NodeUpEvent, self).__init__(event_instance_id=event_instance_id, time_stamp=time_stamp, has_correlated_events=has_correlated_events, node_name=node_name, **kwargs) + def __init__(self, *, event_instance_id: str, time_stamp, node_name: str, node_instance: int, last_node_down_at, category: str=None, has_correlated_events: bool=None, **kwargs) -> None: + super(NodeUpEvent, self).__init__(event_instance_id=event_instance_id, category=category, time_stamp=time_stamp, has_correlated_events=has_correlated_events, node_name=node_name, **kwargs) self.node_instance = node_instance self.last_node_down_at = last_node_down_at self.kind = 'NodeUp' diff --git a/azure-servicefabric/azure/servicefabric/models/paged_service_resource_replica_description_list.py b/azure-servicefabric/azure/servicefabric/models/paged_application_resource_description_list.py similarity index 72% rename from azure-servicefabric/azure/servicefabric/models/paged_service_resource_replica_description_list.py rename to azure-servicefabric/azure/servicefabric/models/paged_application_resource_description_list.py index 59965287ec2a..bda03402c2bc 100644 --- a/azure-servicefabric/azure/servicefabric/models/paged_service_resource_replica_description_list.py +++ b/azure-servicefabric/azure/servicefabric/models/paged_application_resource_description_list.py @@ -12,9 +12,9 @@ from msrest.serialization import Model -class PagedServiceResourceReplicaDescriptionList(Model): - """The list of service resources in the cluster. The list is paged when all of - the results cannot fit in a single message. The next set of results can be +class PagedApplicationResourceDescriptionList(Model): + """The list of application resources. The list is paged when all of the + results cannot fit in a single message. The next set of results can be obtained by executing the same query with the continuation token provided in this list. @@ -25,17 +25,17 @@ class PagedServiceResourceReplicaDescriptionList(Model): returns next set of results. If there are no further results, then the continuation token is not included in the response. :type continuation_token: str - :param items: List of service resource description. + :param items: One page of the list. :type items: - list[~azure.servicefabric.models.ServiceResourceReplicaDescription] + list[~azure.servicefabric.models.ApplicationResourceDescription] """ _attribute_map = { 'continuation_token': {'key': 'ContinuationToken', 'type': 'str'}, - 'items': {'key': 'Items', 'type': '[ServiceResourceReplicaDescription]'}, + 'items': {'key': 'Items', 'type': '[ApplicationResourceDescription]'}, } def __init__(self, **kwargs): - super(PagedServiceResourceReplicaDescriptionList, self).__init__(**kwargs) + super(PagedApplicationResourceDescriptionList, self).__init__(**kwargs) self.continuation_token = kwargs.get('continuation_token', None) self.items = kwargs.get('items', None) diff --git a/azure-servicefabric/azure/servicefabric/models/paged_service_resource_replica_description_list_py3.py b/azure-servicefabric/azure/servicefabric/models/paged_application_resource_description_list_py3.py similarity index 72% rename from azure-servicefabric/azure/servicefabric/models/paged_service_resource_replica_description_list_py3.py rename to azure-servicefabric/azure/servicefabric/models/paged_application_resource_description_list_py3.py index 3336e5559b8e..bc5bd4690f1c 100644 --- a/azure-servicefabric/azure/servicefabric/models/paged_service_resource_replica_description_list_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/paged_application_resource_description_list_py3.py @@ -12,9 +12,9 @@ from msrest.serialization import Model -class PagedServiceResourceReplicaDescriptionList(Model): - """The list of service resources in the cluster. The list is paged when all of - the results cannot fit in a single message. The next set of results can be +class PagedApplicationResourceDescriptionList(Model): + """The list of application resources. The list is paged when all of the + results cannot fit in a single message. The next set of results can be obtained by executing the same query with the continuation token provided in this list. @@ -25,17 +25,17 @@ class PagedServiceResourceReplicaDescriptionList(Model): returns next set of results. If there are no further results, then the continuation token is not included in the response. :type continuation_token: str - :param items: List of service resource description. + :param items: One page of the list. :type items: - list[~azure.servicefabric.models.ServiceResourceReplicaDescription] + list[~azure.servicefabric.models.ApplicationResourceDescription] """ _attribute_map = { 'continuation_token': {'key': 'ContinuationToken', 'type': 'str'}, - 'items': {'key': 'Items', 'type': '[ServiceResourceReplicaDescription]'}, + 'items': {'key': 'Items', 'type': '[ApplicationResourceDescription]'}, } def __init__(self, *, continuation_token: str=None, items=None, **kwargs) -> None: - super(PagedServiceResourceReplicaDescriptionList, self).__init__(**kwargs) + super(PagedApplicationResourceDescriptionList, self).__init__(**kwargs) self.continuation_token = continuation_token self.items = items diff --git a/azure-servicefabric/azure/servicefabric/models/paged_gateway_resource_description_list.py b/azure-servicefabric/azure/servicefabric/models/paged_gateway_resource_description_list.py new file mode 100644 index 000000000000..4c415664302a --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/paged_gateway_resource_description_list.py @@ -0,0 +1,39 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class PagedGatewayResourceDescriptionList(Model): + """The list of gateway resources. The list is paged when all of the results + cannot fit in a single message. The next set of results can be obtained by + executing the same query with the continuation token provided in this list. + + :param continuation_token: The continuation token parameter is used to + obtain next set of results. The continuation token is included in the + response of the API when the results from the system do not fit in a + single response. When this value is passed to the next API call, the API + returns next set of results. If there are no further results, then the + continuation token is not included in the response. + :type continuation_token: str + :param items: One page of the list. + :type items: list[~azure.servicefabric.models.GatewayResourceDescription] + """ + + _attribute_map = { + 'continuation_token': {'key': 'ContinuationToken', 'type': 'str'}, + 'items': {'key': 'Items', 'type': '[GatewayResourceDescription]'}, + } + + def __init__(self, **kwargs): + super(PagedGatewayResourceDescriptionList, self).__init__(**kwargs) + self.continuation_token = kwargs.get('continuation_token', None) + self.items = kwargs.get('items', None) diff --git a/azure-servicefabric/azure/servicefabric/models/paged_gateway_resource_description_list_py3.py b/azure-servicefabric/azure/servicefabric/models/paged_gateway_resource_description_list_py3.py new file mode 100644 index 000000000000..b4a5cbe08f41 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/paged_gateway_resource_description_list_py3.py @@ -0,0 +1,39 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class PagedGatewayResourceDescriptionList(Model): + """The list of gateway resources. The list is paged when all of the results + cannot fit in a single message. The next set of results can be obtained by + executing the same query with the continuation token provided in this list. + + :param continuation_token: The continuation token parameter is used to + obtain next set of results. The continuation token is included in the + response of the API when the results from the system do not fit in a + single response. When this value is passed to the next API call, the API + returns next set of results. If there are no further results, then the + continuation token is not included in the response. + :type continuation_token: str + :param items: One page of the list. + :type items: list[~azure.servicefabric.models.GatewayResourceDescription] + """ + + _attribute_map = { + 'continuation_token': {'key': 'ContinuationToken', 'type': 'str'}, + 'items': {'key': 'Items', 'type': '[GatewayResourceDescription]'}, + } + + def __init__(self, *, continuation_token: str=None, items=None, **kwargs) -> None: + super(PagedGatewayResourceDescriptionList, self).__init__(**kwargs) + self.continuation_token = continuation_token + self.items = items diff --git a/azure-servicefabric/azure/servicefabric/models/paged_network_resource_description_list.py b/azure-servicefabric/azure/servicefabric/models/paged_network_resource_description_list.py new file mode 100644 index 000000000000..9391a3aa8d55 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/paged_network_resource_description_list.py @@ -0,0 +1,39 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class PagedNetworkResourceDescriptionList(Model): + """The list of network resources. The list is paged when all of the results + cannot fit in a single message. The next set of results can be obtained by + executing the same query with the continuation token provided in this list. + + :param continuation_token: The continuation token parameter is used to + obtain next set of results. The continuation token is included in the + response of the API when the results from the system do not fit in a + single response. When this value is passed to the next API call, the API + returns next set of results. If there are no further results, then the + continuation token is not included in the response. + :type continuation_token: str + :param items: One page of the list. + :type items: list[~azure.servicefabric.models.NetworkResourceDescription] + """ + + _attribute_map = { + 'continuation_token': {'key': 'ContinuationToken', 'type': 'str'}, + 'items': {'key': 'Items', 'type': '[NetworkResourceDescription]'}, + } + + def __init__(self, **kwargs): + super(PagedNetworkResourceDescriptionList, self).__init__(**kwargs) + self.continuation_token = kwargs.get('continuation_token', None) + self.items = kwargs.get('items', None) diff --git a/azure-servicefabric/azure/servicefabric/models/paged_network_resource_description_list_py3.py b/azure-servicefabric/azure/servicefabric/models/paged_network_resource_description_list_py3.py new file mode 100644 index 000000000000..729aeed28bde --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/paged_network_resource_description_list_py3.py @@ -0,0 +1,39 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class PagedNetworkResourceDescriptionList(Model): + """The list of network resources. The list is paged when all of the results + cannot fit in a single message. The next set of results can be obtained by + executing the same query with the continuation token provided in this list. + + :param continuation_token: The continuation token parameter is used to + obtain next set of results. The continuation token is included in the + response of the API when the results from the system do not fit in a + single response. When this value is passed to the next API call, the API + returns next set of results. If there are no further results, then the + continuation token is not included in the response. + :type continuation_token: str + :param items: One page of the list. + :type items: list[~azure.servicefabric.models.NetworkResourceDescription] + """ + + _attribute_map = { + 'continuation_token': {'key': 'ContinuationToken', 'type': 'str'}, + 'items': {'key': 'Items', 'type': '[NetworkResourceDescription]'}, + } + + def __init__(self, *, continuation_token: str=None, items=None, **kwargs) -> None: + super(PagedNetworkResourceDescriptionList, self).__init__(**kwargs) + self.continuation_token = continuation_token + self.items = items diff --git a/azure-servicefabric/azure/servicefabric/models/paged_secret_resource_description_list.py b/azure-servicefabric/azure/servicefabric/models/paged_secret_resource_description_list.py new file mode 100644 index 000000000000..8ec32f9fc767 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/paged_secret_resource_description_list.py @@ -0,0 +1,39 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class PagedSecretResourceDescriptionList(Model): + """The list of secret resources. The list is paged when all of the results + cannot fit in a single message. The next set of results can be obtained by + executing the same query with the continuation token provided in this list. + + :param continuation_token: The continuation token parameter is used to + obtain next set of results. The continuation token is included in the + response of the API when the results from the system do not fit in a + single response. When this value is passed to the next API call, the API + returns next set of results. If there are no further results, then the + continuation token is not included in the response. + :type continuation_token: str + :param items: One page of the list. + :type items: list[~azure.servicefabric.models.SecretResourceDescription] + """ + + _attribute_map = { + 'continuation_token': {'key': 'ContinuationToken', 'type': 'str'}, + 'items': {'key': 'Items', 'type': '[SecretResourceDescription]'}, + } + + def __init__(self, **kwargs): + super(PagedSecretResourceDescriptionList, self).__init__(**kwargs) + self.continuation_token = kwargs.get('continuation_token', None) + self.items = kwargs.get('items', None) diff --git a/azure-servicefabric/azure/servicefabric/models/paged_secret_resource_description_list_py3.py b/azure-servicefabric/azure/servicefabric/models/paged_secret_resource_description_list_py3.py new file mode 100644 index 000000000000..6c02124ff12a --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/paged_secret_resource_description_list_py3.py @@ -0,0 +1,39 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class PagedSecretResourceDescriptionList(Model): + """The list of secret resources. The list is paged when all of the results + cannot fit in a single message. The next set of results can be obtained by + executing the same query with the continuation token provided in this list. + + :param continuation_token: The continuation token parameter is used to + obtain next set of results. The continuation token is included in the + response of the API when the results from the system do not fit in a + single response. When this value is passed to the next API call, the API + returns next set of results. If there are no further results, then the + continuation token is not included in the response. + :type continuation_token: str + :param items: One page of the list. + :type items: list[~azure.servicefabric.models.SecretResourceDescription] + """ + + _attribute_map = { + 'continuation_token': {'key': 'ContinuationToken', 'type': 'str'}, + 'items': {'key': 'Items', 'type': '[SecretResourceDescription]'}, + } + + def __init__(self, *, continuation_token: str=None, items=None, **kwargs) -> None: + super(PagedSecretResourceDescriptionList, self).__init__(**kwargs) + self.continuation_token = continuation_token + self.items = items diff --git a/azure-servicefabric/azure/servicefabric/models/paged_secret_value_resource_description_list.py b/azure-servicefabric/azure/servicefabric/models/paged_secret_value_resource_description_list.py new file mode 100644 index 000000000000..927c0fd85d7d --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/paged_secret_value_resource_description_list.py @@ -0,0 +1,41 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class PagedSecretValueResourceDescriptionList(Model): + """The list of values of a secret resource, paged if the number of results + exceeds the limits of a single message. The next set of results can be + obtained by executing the same query with the continuation token provided + in the previous page. + + :param continuation_token: The continuation token parameter is used to + obtain next set of results. The continuation token is included in the + response of the API when the results from the system do not fit in a + single response. When this value is passed to the next API call, the API + returns next set of results. If there are no further results, then the + continuation token is not included in the response. + :type continuation_token: str + :param items: One page of the list. + :type items: + list[~azure.servicefabric.models.SecretValueResourceDescription] + """ + + _attribute_map = { + 'continuation_token': {'key': 'ContinuationToken', 'type': 'str'}, + 'items': {'key': 'Items', 'type': '[SecretValueResourceDescription]'}, + } + + def __init__(self, **kwargs): + super(PagedSecretValueResourceDescriptionList, self).__init__(**kwargs) + self.continuation_token = kwargs.get('continuation_token', None) + self.items = kwargs.get('items', None) diff --git a/azure-servicefabric/azure/servicefabric/models/paged_secret_value_resource_description_list_py3.py b/azure-servicefabric/azure/servicefabric/models/paged_secret_value_resource_description_list_py3.py new file mode 100644 index 000000000000..683d5a382d58 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/paged_secret_value_resource_description_list_py3.py @@ -0,0 +1,41 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class PagedSecretValueResourceDescriptionList(Model): + """The list of values of a secret resource, paged if the number of results + exceeds the limits of a single message. The next set of results can be + obtained by executing the same query with the continuation token provided + in the previous page. + + :param continuation_token: The continuation token parameter is used to + obtain next set of results. The continuation token is included in the + response of the API when the results from the system do not fit in a + single response. When this value is passed to the next API call, the API + returns next set of results. If there are no further results, then the + continuation token is not included in the response. + :type continuation_token: str + :param items: One page of the list. + :type items: + list[~azure.servicefabric.models.SecretValueResourceDescription] + """ + + _attribute_map = { + 'continuation_token': {'key': 'ContinuationToken', 'type': 'str'}, + 'items': {'key': 'Items', 'type': '[SecretValueResourceDescription]'}, + } + + def __init__(self, *, continuation_token: str=None, items=None, **kwargs) -> None: + super(PagedSecretValueResourceDescriptionList, self).__init__(**kwargs) + self.continuation_token = continuation_token + self.items = items diff --git a/azure-servicefabric/azure/servicefabric/models/paged_service_replica_description_list.py b/azure-servicefabric/azure/servicefabric/models/paged_service_replica_description_list.py new file mode 100644 index 000000000000..94956f063de4 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/paged_service_replica_description_list.py @@ -0,0 +1,40 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class PagedServiceReplicaDescriptionList(Model): + """The list of service resource replicas in the cluster. The list is paged + when all of the results cannot fit in a single message. The next set of + results can be obtained by executing the same query with the continuation + token provided in this list. + + :param continuation_token: The continuation token parameter is used to + obtain next set of results. The continuation token is included in the + response of the API when the results from the system do not fit in a + single response. When this value is passed to the next API call, the API + returns next set of results. If there are no further results, then the + continuation token is not included in the response. + :type continuation_token: str + :param items: List of service resource replica description. + :type items: list[~azure.servicefabric.models.ServiceReplicaDescription] + """ + + _attribute_map = { + 'continuation_token': {'key': 'ContinuationToken', 'type': 'str'}, + 'items': {'key': 'Items', 'type': '[ServiceReplicaDescription]'}, + } + + def __init__(self, **kwargs): + super(PagedServiceReplicaDescriptionList, self).__init__(**kwargs) + self.continuation_token = kwargs.get('continuation_token', None) + self.items = kwargs.get('items', None) diff --git a/azure-servicefabric/azure/servicefabric/models/paged_service_replica_description_list_py3.py b/azure-servicefabric/azure/servicefabric/models/paged_service_replica_description_list_py3.py new file mode 100644 index 000000000000..ad77f539351b --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/paged_service_replica_description_list_py3.py @@ -0,0 +1,40 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class PagedServiceReplicaDescriptionList(Model): + """The list of service resource replicas in the cluster. The list is paged + when all of the results cannot fit in a single message. The next set of + results can be obtained by executing the same query with the continuation + token provided in this list. + + :param continuation_token: The continuation token parameter is used to + obtain next set of results. The continuation token is included in the + response of the API when the results from the system do not fit in a + single response. When this value is passed to the next API call, the API + returns next set of results. If there are no further results, then the + continuation token is not included in the response. + :type continuation_token: str + :param items: List of service resource replica description. + :type items: list[~azure.servicefabric.models.ServiceReplicaDescription] + """ + + _attribute_map = { + 'continuation_token': {'key': 'ContinuationToken', 'type': 'str'}, + 'items': {'key': 'Items', 'type': '[ServiceReplicaDescription]'}, + } + + def __init__(self, *, continuation_token: str=None, items=None, **kwargs) -> None: + super(PagedServiceReplicaDescriptionList, self).__init__(**kwargs) + self.continuation_token = continuation_token + self.items = items diff --git a/azure-servicefabric/azure/servicefabric/models/paged_service_resource_description_list.py b/azure-servicefabric/azure/servicefabric/models/paged_service_resource_description_list.py index 004ad553d81e..76591cdc5e7d 100644 --- a/azure-servicefabric/azure/servicefabric/models/paged_service_resource_description_list.py +++ b/azure-servicefabric/azure/servicefabric/models/paged_service_resource_description_list.py @@ -13,10 +13,9 @@ class PagedServiceResourceDescriptionList(Model): - """The list of service resources in the cluster. The list is paged when all of - the results cannot fit in a single message. The next set of results can be - obtained by executing the same query with the continuation token provided - in this list. + """The list of service resources. The list is paged when all of the results + cannot fit in a single message. The next set of results can be obtained by + executing the same query with the continuation token provided in this list. :param continuation_token: The continuation token parameter is used to obtain next set of results. The continuation token is included in the @@ -25,7 +24,7 @@ class PagedServiceResourceDescriptionList(Model): returns next set of results. If there are no further results, then the continuation token is not included in the response. :type continuation_token: str - :param items: List of service resource description. + :param items: One page of the list. :type items: list[~azure.servicefabric.models.ServiceResourceDescription] """ diff --git a/azure-servicefabric/azure/servicefabric/models/paged_service_resource_description_list_py3.py b/azure-servicefabric/azure/servicefabric/models/paged_service_resource_description_list_py3.py index 03c2ef9a5404..0d17ddbdc884 100644 --- a/azure-servicefabric/azure/servicefabric/models/paged_service_resource_description_list_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/paged_service_resource_description_list_py3.py @@ -13,10 +13,9 @@ class PagedServiceResourceDescriptionList(Model): - """The list of service resources in the cluster. The list is paged when all of - the results cannot fit in a single message. The next set of results can be - obtained by executing the same query with the continuation token provided - in this list. + """The list of service resources. The list is paged when all of the results + cannot fit in a single message. The next set of results can be obtained by + executing the same query with the continuation token provided in this list. :param continuation_token: The continuation token parameter is used to obtain next set of results. The continuation token is included in the @@ -25,7 +24,7 @@ class PagedServiceResourceDescriptionList(Model): returns next set of results. If there are no further results, then the continuation token is not included in the response. :type continuation_token: str - :param items: List of service resource description. + :param items: One page of the list. :type items: list[~azure.servicefabric.models.ServiceResourceDescription] """ diff --git a/azure-servicefabric/azure/servicefabric/models/paged_volume_resource_description_list.py b/azure-servicefabric/azure/servicefabric/models/paged_volume_resource_description_list.py new file mode 100644 index 000000000000..96f1ac5597bd --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/paged_volume_resource_description_list.py @@ -0,0 +1,39 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class PagedVolumeResourceDescriptionList(Model): + """The list of volume resources. The list is paged when all of the results + cannot fit in a single message. The next set of results can be obtained by + executing the same query with the continuation token provided in this list. + + :param continuation_token: The continuation token parameter is used to + obtain next set of results. The continuation token is included in the + response of the API when the results from the system do not fit in a + single response. When this value is passed to the next API call, the API + returns next set of results. If there are no further results, then the + continuation token is not included in the response. + :type continuation_token: str + :param items: One page of the list. + :type items: list[~azure.servicefabric.models.VolumeResourceDescription] + """ + + _attribute_map = { + 'continuation_token': {'key': 'ContinuationToken', 'type': 'str'}, + 'items': {'key': 'Items', 'type': '[VolumeResourceDescription]'}, + } + + def __init__(self, **kwargs): + super(PagedVolumeResourceDescriptionList, self).__init__(**kwargs) + self.continuation_token = kwargs.get('continuation_token', None) + self.items = kwargs.get('items', None) diff --git a/azure-servicefabric/azure/servicefabric/models/paged_volume_resource_description_list_py3.py b/azure-servicefabric/azure/servicefabric/models/paged_volume_resource_description_list_py3.py new file mode 100644 index 000000000000..a72a818e5ef7 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/paged_volume_resource_description_list_py3.py @@ -0,0 +1,39 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class PagedVolumeResourceDescriptionList(Model): + """The list of volume resources. The list is paged when all of the results + cannot fit in a single message. The next set of results can be obtained by + executing the same query with the continuation token provided in this list. + + :param continuation_token: The continuation token parameter is used to + obtain next set of results. The continuation token is included in the + response of the API when the results from the system do not fit in a + single response. When this value is passed to the next API call, the API + returns next set of results. If there are no further results, then the + continuation token is not included in the response. + :type continuation_token: str + :param items: One page of the list. + :type items: list[~azure.servicefabric.models.VolumeResourceDescription] + """ + + _attribute_map = { + 'continuation_token': {'key': 'ContinuationToken', 'type': 'str'}, + 'items': {'key': 'Items', 'type': '[VolumeResourceDescription]'}, + } + + def __init__(self, *, continuation_token: str=None, items=None, **kwargs) -> None: + super(PagedVolumeResourceDescriptionList, self).__init__(**kwargs) + self.continuation_token = continuation_token + self.items = items diff --git a/azure-servicefabric/azure/servicefabric/models/partition_analysis_event.py b/azure-servicefabric/azure/servicefabric/models/partition_analysis_event.py index 5cfd8a5ec0b0..1bd12aebebea 100644 --- a/azure-servicefabric/azure/servicefabric/models/partition_analysis_event.py +++ b/azure-servicefabric/azure/servicefabric/models/partition_analysis_event.py @@ -23,6 +23,8 @@ class PartitionAnalysisEvent(PartitionEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -50,6 +52,7 @@ class PartitionAnalysisEvent(PartitionEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, diff --git a/azure-servicefabric/azure/servicefabric/models/partition_analysis_event_py3.py b/azure-servicefabric/azure/servicefabric/models/partition_analysis_event_py3.py index 91bdb627b784..b864bde3a847 100644 --- a/azure-servicefabric/azure/servicefabric/models/partition_analysis_event_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/partition_analysis_event_py3.py @@ -23,6 +23,8 @@ class PartitionAnalysisEvent(PartitionEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -50,6 +52,7 @@ class PartitionAnalysisEvent(PartitionEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -61,7 +64,7 @@ class PartitionAnalysisEvent(PartitionEvent): 'kind': {'PartitionPrimaryMoveAnalysis': 'PartitionPrimaryMoveAnalysisEvent'} } - def __init__(self, *, event_instance_id: str, time_stamp, partition_id: str, metadata, has_correlated_events: bool=None, **kwargs) -> None: - super(PartitionAnalysisEvent, self).__init__(event_instance_id=event_instance_id, time_stamp=time_stamp, has_correlated_events=has_correlated_events, partition_id=partition_id, **kwargs) + def __init__(self, *, event_instance_id: str, time_stamp, partition_id: str, metadata, category: str=None, has_correlated_events: bool=None, **kwargs) -> None: + super(PartitionAnalysisEvent, self).__init__(event_instance_id=event_instance_id, category=category, time_stamp=time_stamp, has_correlated_events=has_correlated_events, partition_id=partition_id, **kwargs) self.metadata = metadata self.kind = 'PartitionAnalysisEvent' diff --git a/azure-servicefabric/azure/servicefabric/models/partition_backup_configuration_info.py b/azure-servicefabric/azure/servicefabric/models/partition_backup_configuration_info.py index 803db32008bd..a78e8f8e094c 100644 --- a/azure-servicefabric/azure/servicefabric/models/partition_backup_configuration_info.py +++ b/azure-servicefabric/azure/servicefabric/models/partition_backup_configuration_info.py @@ -33,11 +33,7 @@ class PartitionBackupConfigurationInfo(BackupConfigurationInfo): :param service_name: The full name of the service with 'fabric:' URI scheme. :type service_name: str - :param partition_id: An internal ID used by Service Fabric to uniquely - identify a partition. This is a randomly generated GUID when the service - was created. The partition ID is unique and does not change for the - lifetime of the service. If the same service was deleted and recreated the - IDs of its partitions would be different. + :param partition_id: The partition ID indentifying the partition. :type partition_id: str """ diff --git a/azure-servicefabric/azure/servicefabric/models/partition_backup_configuration_info_py3.py b/azure-servicefabric/azure/servicefabric/models/partition_backup_configuration_info_py3.py index b23c637916a6..f0f73352ad29 100644 --- a/azure-servicefabric/azure/servicefabric/models/partition_backup_configuration_info_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/partition_backup_configuration_info_py3.py @@ -33,11 +33,7 @@ class PartitionBackupConfigurationInfo(BackupConfigurationInfo): :param service_name: The full name of the service with 'fabric:' URI scheme. :type service_name: str - :param partition_id: An internal ID used by Service Fabric to uniquely - identify a partition. This is a randomly generated GUID when the service - was created. The partition ID is unique and does not change for the - lifetime of the service. If the same service was deleted and recreated the - IDs of its partitions would be different. + :param partition_id: The partition ID indentifying the partition. :type partition_id: str """ diff --git a/azure-servicefabric/azure/servicefabric/models/partition_backup_entity.py b/azure-servicefabric/azure/servicefabric/models/partition_backup_entity.py index ba25e0443e45..b53c33d02871 100644 --- a/azure-servicefabric/azure/servicefabric/models/partition_backup_entity.py +++ b/azure-servicefabric/azure/servicefabric/models/partition_backup_entity.py @@ -22,11 +22,7 @@ class PartitionBackupEntity(BackupEntity): :param service_name: The full name of the service with 'fabric:' URI scheme. :type service_name: str - :param partition_id: An internal ID used by Service Fabric to uniquely - identify a partition. This is a randomly generated GUID when the service - was created. The partition ID is unique and does not change for the - lifetime of the service. If the same service was deleted and recreated the - IDs of its partitions would be different. + :param partition_id: The partition ID indentifying the partition. :type partition_id: str """ diff --git a/azure-servicefabric/azure/servicefabric/models/partition_backup_entity_py3.py b/azure-servicefabric/azure/servicefabric/models/partition_backup_entity_py3.py index 806668396429..7d5658732337 100644 --- a/azure-servicefabric/azure/servicefabric/models/partition_backup_entity_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/partition_backup_entity_py3.py @@ -22,11 +22,7 @@ class PartitionBackupEntity(BackupEntity): :param service_name: The full name of the service with 'fabric:' URI scheme. :type service_name: str - :param partition_id: An internal ID used by Service Fabric to uniquely - identify a partition. This is a randomly generated GUID when the service - was created. The partition ID is unique and does not change for the - lifetime of the service. If the same service was deleted and recreated the - IDs of its partitions would be different. + :param partition_id: The partition ID indentifying the partition. :type partition_id: str """ diff --git a/azure-servicefabric/azure/servicefabric/models/partition_event.py b/azure-servicefabric/azure/servicefabric/models/partition_event.py index 9bdc6dbce7ce..9ab8f5e8173a 100644 --- a/azure-servicefabric/azure/servicefabric/models/partition_event.py +++ b/azure-servicefabric/azure/servicefabric/models/partition_event.py @@ -16,15 +16,18 @@ class PartitionEvent(FabricEvent): """Represents the base for all Partition Events. You probably want to use the sub-classes and not this class directly. Known - sub-classes are: PartitionAnalysisEvent, PartitionHealthReportCreatedEvent, - PartitionHealthReportExpiredEvent, PartitionReconfigurationCompletedEvent, - ChaosMoveSecondaryFaultScheduledEvent, ChaosMovePrimaryFaultScheduledEvent + sub-classes are: PartitionAnalysisEvent, PartitionNewHealthReportEvent, + PartitionHealthReportExpiredEvent, PartitionReconfiguredEvent, + ChaosPartitionSecondaryMoveScheduledEvent, + ChaosPartitionPrimaryMoveScheduledEvent All required parameters must be populated in order to send to Azure. :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -49,6 +52,7 @@ class PartitionEvent(FabricEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -56,7 +60,7 @@ class PartitionEvent(FabricEvent): } _subtype_map = { - 'kind': {'PartitionAnalysisEvent': 'PartitionAnalysisEvent', 'PartitionHealthReportCreated': 'PartitionHealthReportCreatedEvent', 'PartitionHealthReportExpired': 'PartitionHealthReportExpiredEvent', 'PartitionReconfigurationCompleted': 'PartitionReconfigurationCompletedEvent', 'ChaosMoveSecondaryFaultScheduled': 'ChaosMoveSecondaryFaultScheduledEvent', 'ChaosMovePrimaryFaultScheduled': 'ChaosMovePrimaryFaultScheduledEvent'} + 'kind': {'PartitionAnalysisEvent': 'PartitionAnalysisEvent', 'PartitionNewHealthReport': 'PartitionNewHealthReportEvent', 'PartitionHealthReportExpired': 'PartitionHealthReportExpiredEvent', 'PartitionReconfigured': 'PartitionReconfiguredEvent', 'ChaosPartitionSecondaryMoveScheduled': 'ChaosPartitionSecondaryMoveScheduledEvent', 'ChaosPartitionPrimaryMoveScheduled': 'ChaosPartitionPrimaryMoveScheduledEvent'} } def __init__(self, **kwargs): diff --git a/azure-servicefabric/azure/servicefabric/models/partition_event_py3.py b/azure-servicefabric/azure/servicefabric/models/partition_event_py3.py index c4f66b909bcd..dc3cdd9fc4b5 100644 --- a/azure-servicefabric/azure/servicefabric/models/partition_event_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/partition_event_py3.py @@ -16,15 +16,18 @@ class PartitionEvent(FabricEvent): """Represents the base for all Partition Events. You probably want to use the sub-classes and not this class directly. Known - sub-classes are: PartitionAnalysisEvent, PartitionHealthReportCreatedEvent, - PartitionHealthReportExpiredEvent, PartitionReconfigurationCompletedEvent, - ChaosMoveSecondaryFaultScheduledEvent, ChaosMovePrimaryFaultScheduledEvent + sub-classes are: PartitionAnalysisEvent, PartitionNewHealthReportEvent, + PartitionHealthReportExpiredEvent, PartitionReconfiguredEvent, + ChaosPartitionSecondaryMoveScheduledEvent, + ChaosPartitionPrimaryMoveScheduledEvent All required parameters must be populated in order to send to Azure. :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -49,6 +52,7 @@ class PartitionEvent(FabricEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -56,10 +60,10 @@ class PartitionEvent(FabricEvent): } _subtype_map = { - 'kind': {'PartitionAnalysisEvent': 'PartitionAnalysisEvent', 'PartitionHealthReportCreated': 'PartitionHealthReportCreatedEvent', 'PartitionHealthReportExpired': 'PartitionHealthReportExpiredEvent', 'PartitionReconfigurationCompleted': 'PartitionReconfigurationCompletedEvent', 'ChaosMoveSecondaryFaultScheduled': 'ChaosMoveSecondaryFaultScheduledEvent', 'ChaosMovePrimaryFaultScheduled': 'ChaosMovePrimaryFaultScheduledEvent'} + 'kind': {'PartitionAnalysisEvent': 'PartitionAnalysisEvent', 'PartitionNewHealthReport': 'PartitionNewHealthReportEvent', 'PartitionHealthReportExpired': 'PartitionHealthReportExpiredEvent', 'PartitionReconfigured': 'PartitionReconfiguredEvent', 'ChaosPartitionSecondaryMoveScheduled': 'ChaosPartitionSecondaryMoveScheduledEvent', 'ChaosPartitionPrimaryMoveScheduled': 'ChaosPartitionPrimaryMoveScheduledEvent'} } - def __init__(self, *, event_instance_id: str, time_stamp, partition_id: str, has_correlated_events: bool=None, **kwargs) -> None: - super(PartitionEvent, self).__init__(event_instance_id=event_instance_id, time_stamp=time_stamp, has_correlated_events=has_correlated_events, **kwargs) + def __init__(self, *, event_instance_id: str, time_stamp, partition_id: str, category: str=None, has_correlated_events: bool=None, **kwargs) -> None: + super(PartitionEvent, self).__init__(event_instance_id=event_instance_id, category=category, time_stamp=time_stamp, has_correlated_events=has_correlated_events, **kwargs) self.partition_id = partition_id self.kind = 'PartitionEvent' diff --git a/azure-servicefabric/azure/servicefabric/models/partition_health_report_expired_event.py b/azure-servicefabric/azure/servicefabric/models/partition_health_report_expired_event.py index a7129a1f0fd4..3f6144ef284a 100644 --- a/azure-servicefabric/azure/servicefabric/models/partition_health_report_expired_event.py +++ b/azure-servicefabric/azure/servicefabric/models/partition_health_report_expired_event.py @@ -20,6 +20,8 @@ class PartitionHealthReportExpiredEvent(PartitionEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -69,6 +71,7 @@ class PartitionHealthReportExpiredEvent(PartitionEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, diff --git a/azure-servicefabric/azure/servicefabric/models/partition_health_report_expired_event_py3.py b/azure-servicefabric/azure/servicefabric/models/partition_health_report_expired_event_py3.py index 175c3fe16f12..69430a961d1d 100644 --- a/azure-servicefabric/azure/servicefabric/models/partition_health_report_expired_event_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/partition_health_report_expired_event_py3.py @@ -20,6 +20,8 @@ class PartitionHealthReportExpiredEvent(PartitionEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -69,6 +71,7 @@ class PartitionHealthReportExpiredEvent(PartitionEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -83,8 +86,8 @@ class PartitionHealthReportExpiredEvent(PartitionEvent): 'source_utc_timestamp': {'key': 'SourceUtcTimestamp', 'type': 'iso-8601'}, } - def __init__(self, *, event_instance_id: str, time_stamp, partition_id: str, source_id: str, property: str, health_state: str, time_to_live_ms: int, sequence_number: int, description: str, remove_when_expired: bool, source_utc_timestamp, has_correlated_events: bool=None, **kwargs) -> None: - super(PartitionHealthReportExpiredEvent, self).__init__(event_instance_id=event_instance_id, time_stamp=time_stamp, has_correlated_events=has_correlated_events, partition_id=partition_id, **kwargs) + def __init__(self, *, event_instance_id: str, time_stamp, partition_id: str, source_id: str, property: str, health_state: str, time_to_live_ms: int, sequence_number: int, description: str, remove_when_expired: bool, source_utc_timestamp, category: str=None, has_correlated_events: bool=None, **kwargs) -> None: + super(PartitionHealthReportExpiredEvent, self).__init__(event_instance_id=event_instance_id, category=category, time_stamp=time_stamp, has_correlated_events=has_correlated_events, partition_id=partition_id, **kwargs) self.source_id = source_id self.property = property self.health_state = health_state diff --git a/azure-servicefabric/azure/servicefabric/models/partition_health_report_created_event.py b/azure-servicefabric/azure/servicefabric/models/partition_new_health_report_event.py similarity index 93% rename from azure-servicefabric/azure/servicefabric/models/partition_health_report_created_event.py rename to azure-servicefabric/azure/servicefabric/models/partition_new_health_report_event.py index 5a33ab9e0a06..b51931d36f4a 100644 --- a/azure-servicefabric/azure/servicefabric/models/partition_health_report_created_event.py +++ b/azure-servicefabric/azure/servicefabric/models/partition_new_health_report_event.py @@ -12,7 +12,7 @@ from .partition_event import PartitionEvent -class PartitionHealthReportCreatedEvent(PartitionEvent): +class PartitionNewHealthReportEvent(PartitionEvent): """Partition Health Report Created event. All required parameters must be populated in order to send to Azure. @@ -20,6 +20,8 @@ class PartitionHealthReportCreatedEvent(PartitionEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -69,6 +71,7 @@ class PartitionHealthReportCreatedEvent(PartitionEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -84,7 +87,7 @@ class PartitionHealthReportCreatedEvent(PartitionEvent): } def __init__(self, **kwargs): - super(PartitionHealthReportCreatedEvent, self).__init__(**kwargs) + super(PartitionNewHealthReportEvent, self).__init__(**kwargs) self.source_id = kwargs.get('source_id', None) self.property = kwargs.get('property', None) self.health_state = kwargs.get('health_state', None) @@ -93,4 +96,4 @@ def __init__(self, **kwargs): self.description = kwargs.get('description', None) self.remove_when_expired = kwargs.get('remove_when_expired', None) self.source_utc_timestamp = kwargs.get('source_utc_timestamp', None) - self.kind = 'PartitionHealthReportCreated' + self.kind = 'PartitionNewHealthReport' diff --git a/azure-servicefabric/azure/servicefabric/models/partition_health_report_created_event_py3.py b/azure-servicefabric/azure/servicefabric/models/partition_new_health_report_event_py3.py similarity index 88% rename from azure-servicefabric/azure/servicefabric/models/partition_health_report_created_event_py3.py rename to azure-servicefabric/azure/servicefabric/models/partition_new_health_report_event_py3.py index 0327534671c9..e03c92aad9b1 100644 --- a/azure-servicefabric/azure/servicefabric/models/partition_health_report_created_event_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/partition_new_health_report_event_py3.py @@ -12,7 +12,7 @@ from .partition_event_py3 import PartitionEvent -class PartitionHealthReportCreatedEvent(PartitionEvent): +class PartitionNewHealthReportEvent(PartitionEvent): """Partition Health Report Created event. All required parameters must be populated in order to send to Azure. @@ -20,6 +20,8 @@ class PartitionHealthReportCreatedEvent(PartitionEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -69,6 +71,7 @@ class PartitionHealthReportCreatedEvent(PartitionEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -83,8 +86,8 @@ class PartitionHealthReportCreatedEvent(PartitionEvent): 'source_utc_timestamp': {'key': 'SourceUtcTimestamp', 'type': 'iso-8601'}, } - def __init__(self, *, event_instance_id: str, time_stamp, partition_id: str, source_id: str, property: str, health_state: str, time_to_live_ms: int, sequence_number: int, description: str, remove_when_expired: bool, source_utc_timestamp, has_correlated_events: bool=None, **kwargs) -> None: - super(PartitionHealthReportCreatedEvent, self).__init__(event_instance_id=event_instance_id, time_stamp=time_stamp, has_correlated_events=has_correlated_events, partition_id=partition_id, **kwargs) + def __init__(self, *, event_instance_id: str, time_stamp, partition_id: str, source_id: str, property: str, health_state: str, time_to_live_ms: int, sequence_number: int, description: str, remove_when_expired: bool, source_utc_timestamp, category: str=None, has_correlated_events: bool=None, **kwargs) -> None: + super(PartitionNewHealthReportEvent, self).__init__(event_instance_id=event_instance_id, category=category, time_stamp=time_stamp, has_correlated_events=has_correlated_events, partition_id=partition_id, **kwargs) self.source_id = source_id self.property = property self.health_state = health_state @@ -93,4 +96,4 @@ def __init__(self, *, event_instance_id: str, time_stamp, partition_id: str, sou self.description = description self.remove_when_expired = remove_when_expired self.source_utc_timestamp = source_utc_timestamp - self.kind = 'PartitionHealthReportCreated' + self.kind = 'PartitionNewHealthReport' diff --git a/azure-servicefabric/azure/servicefabric/models/partition_primary_move_analysis_event.py b/azure-servicefabric/azure/servicefabric/models/partition_primary_move_analysis_event.py index 414e39f34ebe..e6aefebd260d 100644 --- a/azure-servicefabric/azure/servicefabric/models/partition_primary_move_analysis_event.py +++ b/azure-servicefabric/azure/servicefabric/models/partition_primary_move_analysis_event.py @@ -20,6 +20,8 @@ class PartitionPrimaryMoveAnalysisEvent(PartitionAnalysisEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -62,6 +64,7 @@ class PartitionPrimaryMoveAnalysisEvent(PartitionAnalysisEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, diff --git a/azure-servicefabric/azure/servicefabric/models/partition_primary_move_analysis_event_py3.py b/azure-servicefabric/azure/servicefabric/models/partition_primary_move_analysis_event_py3.py index 673562923e5b..a537c9501904 100644 --- a/azure-servicefabric/azure/servicefabric/models/partition_primary_move_analysis_event_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/partition_primary_move_analysis_event_py3.py @@ -20,6 +20,8 @@ class PartitionPrimaryMoveAnalysisEvent(PartitionAnalysisEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -62,6 +64,7 @@ class PartitionPrimaryMoveAnalysisEvent(PartitionAnalysisEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -74,8 +77,8 @@ class PartitionPrimaryMoveAnalysisEvent(PartitionAnalysisEvent): 'relevant_traces': {'key': 'RelevantTraces', 'type': 'str'}, } - def __init__(self, *, event_instance_id: str, time_stamp, partition_id: str, metadata, when_move_completed, previous_node: str, current_node: str, move_reason: str, relevant_traces: str, has_correlated_events: bool=None, **kwargs) -> None: - super(PartitionPrimaryMoveAnalysisEvent, self).__init__(event_instance_id=event_instance_id, time_stamp=time_stamp, has_correlated_events=has_correlated_events, partition_id=partition_id, metadata=metadata, **kwargs) + def __init__(self, *, event_instance_id: str, time_stamp, partition_id: str, metadata, when_move_completed, previous_node: str, current_node: str, move_reason: str, relevant_traces: str, category: str=None, has_correlated_events: bool=None, **kwargs) -> None: + super(PartitionPrimaryMoveAnalysisEvent, self).__init__(event_instance_id=event_instance_id, category=category, time_stamp=time_stamp, has_correlated_events=has_correlated_events, partition_id=partition_id, metadata=metadata, **kwargs) self.when_move_completed = when_move_completed self.previous_node = previous_node self.current_node = current_node diff --git a/azure-servicefabric/azure/servicefabric/models/partition_reconfiguration_completed_event.py b/azure-servicefabric/azure/servicefabric/models/partition_reconfigured_event.py similarity index 94% rename from azure-servicefabric/azure/servicefabric/models/partition_reconfiguration_completed_event.py rename to azure-servicefabric/azure/servicefabric/models/partition_reconfigured_event.py index 36b890b365e4..94dd7abdabb0 100644 --- a/azure-servicefabric/azure/servicefabric/models/partition_reconfiguration_completed_event.py +++ b/azure-servicefabric/azure/servicefabric/models/partition_reconfigured_event.py @@ -12,14 +12,16 @@ from .partition_event import PartitionEvent -class PartitionReconfigurationCompletedEvent(PartitionEvent): - """Partition Reconfiguration Completed event. +class PartitionReconfiguredEvent(PartitionEvent): + """Partition Reconfiguration event. All required parameters must be populated in order to send to Azure. :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -83,6 +85,7 @@ class PartitionReconfigurationCompletedEvent(PartitionEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -103,7 +106,7 @@ class PartitionReconfigurationCompletedEvent(PartitionEvent): } def __init__(self, **kwargs): - super(PartitionReconfigurationCompletedEvent, self).__init__(**kwargs) + super(PartitionReconfiguredEvent, self).__init__(**kwargs) self.node_name = kwargs.get('node_name', None) self.node_instance_id = kwargs.get('node_instance_id', None) self.service_type = kwargs.get('service_type', None) @@ -117,4 +120,4 @@ def __init__(self, **kwargs): self.phase3_duration_ms = kwargs.get('phase3_duration_ms', None) self.phase4_duration_ms = kwargs.get('phase4_duration_ms', None) self.total_duration_ms = kwargs.get('total_duration_ms', None) - self.kind = 'PartitionReconfigurationCompleted' + self.kind = 'PartitionReconfigured' diff --git a/azure-servicefabric/azure/servicefabric/models/partition_reconfiguration_completed_event_py3.py b/azure-servicefabric/azure/servicefabric/models/partition_reconfigured_event_py3.py similarity index 91% rename from azure-servicefabric/azure/servicefabric/models/partition_reconfiguration_completed_event_py3.py rename to azure-servicefabric/azure/servicefabric/models/partition_reconfigured_event_py3.py index 3a72ca7a93aa..d414c34438a4 100644 --- a/azure-servicefabric/azure/servicefabric/models/partition_reconfiguration_completed_event_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/partition_reconfigured_event_py3.py @@ -12,14 +12,16 @@ from .partition_event_py3 import PartitionEvent -class PartitionReconfigurationCompletedEvent(PartitionEvent): - """Partition Reconfiguration Completed event. +class PartitionReconfiguredEvent(PartitionEvent): + """Partition Reconfiguration event. All required parameters must be populated in order to send to Azure. :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -83,6 +85,7 @@ class PartitionReconfigurationCompletedEvent(PartitionEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -102,8 +105,8 @@ class PartitionReconfigurationCompletedEvent(PartitionEvent): 'total_duration_ms': {'key': 'TotalDurationMs', 'type': 'float'}, } - def __init__(self, *, event_instance_id: str, time_stamp, partition_id: str, node_name: str, node_instance_id: str, service_type: str, cc_epoch_data_loss_version: int, cc_epoch_config_version: int, reconfig_type: str, result: str, phase0_duration_ms: float, phase1_duration_ms: float, phase2_duration_ms: float, phase3_duration_ms: float, phase4_duration_ms: float, total_duration_ms: float, has_correlated_events: bool=None, **kwargs) -> None: - super(PartitionReconfigurationCompletedEvent, self).__init__(event_instance_id=event_instance_id, time_stamp=time_stamp, has_correlated_events=has_correlated_events, partition_id=partition_id, **kwargs) + def __init__(self, *, event_instance_id: str, time_stamp, partition_id: str, node_name: str, node_instance_id: str, service_type: str, cc_epoch_data_loss_version: int, cc_epoch_config_version: int, reconfig_type: str, result: str, phase0_duration_ms: float, phase1_duration_ms: float, phase2_duration_ms: float, phase3_duration_ms: float, phase4_duration_ms: float, total_duration_ms: float, category: str=None, has_correlated_events: bool=None, **kwargs) -> None: + super(PartitionReconfiguredEvent, self).__init__(event_instance_id=event_instance_id, category=category, time_stamp=time_stamp, has_correlated_events=has_correlated_events, partition_id=partition_id, **kwargs) self.node_name = node_name self.node_instance_id = node_instance_id self.service_type = service_type @@ -117,4 +120,4 @@ def __init__(self, *, event_instance_id: str, time_stamp, partition_id: str, nod self.phase3_duration_ms = phase3_duration_ms self.phase4_duration_ms = phase4_duration_ms self.total_duration_ms = total_duration_ms - self.kind = 'PartitionReconfigurationCompleted' + self.kind = 'PartitionReconfigured' diff --git a/azure-servicefabric/azure/servicefabric/models/reliable_collections_ref.py b/azure-servicefabric/azure/servicefabric/models/reliable_collections_ref.py new file mode 100644 index 000000000000..0bdbaa8515d5 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/reliable_collections_ref.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ReliableCollectionsRef(Model): + """Specifying this parameter adds support for reliable collections. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. Name of ReliableCollection resource. Right now it's + not used and you can use any string. + :type name: str + :param do_not_persist_state: False (the default) if ReliableCollections + state is persisted to disk as usual. True if you do not want to persist + state, in which case replication is still enabled and you can use + ReliableCollections as distributed cache. + :type do_not_persist_state: bool + """ + + _validation = { + 'name': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'do_not_persist_state': {'key': 'doNotPersistState', 'type': 'bool'}, + } + + def __init__(self, **kwargs): + super(ReliableCollectionsRef, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.do_not_persist_state = kwargs.get('do_not_persist_state', None) diff --git a/azure-servicefabric/azure/servicefabric/models/reliable_collections_ref_py3.py b/azure-servicefabric/azure/servicefabric/models/reliable_collections_ref_py3.py new file mode 100644 index 000000000000..c517f34c0b8a --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/reliable_collections_ref_py3.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ReliableCollectionsRef(Model): + """Specifying this parameter adds support for reliable collections. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. Name of ReliableCollection resource. Right now it's + not used and you can use any string. + :type name: str + :param do_not_persist_state: False (the default) if ReliableCollections + state is persisted to disk as usual. True if you do not want to persist + state, in which case replication is still enabled and you can use + ReliableCollections as distributed cache. + :type do_not_persist_state: bool + """ + + _validation = { + 'name': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'do_not_persist_state': {'key': 'doNotPersistState', 'type': 'bool'}, + } + + def __init__(self, *, name: str, do_not_persist_state: bool=None, **kwargs) -> None: + super(ReliableCollectionsRef, self).__init__(**kwargs) + self.name = name + self.do_not_persist_state = do_not_persist_state diff --git a/azure-servicefabric/azure/servicefabric/models/replica_event.py b/azure-servicefabric/azure/servicefabric/models/replica_event.py index b05166ea6630..62dbd958df29 100644 --- a/azure-servicefabric/azure/servicefabric/models/replica_event.py +++ b/azure-servicefabric/azure/servicefabric/models/replica_event.py @@ -16,19 +16,19 @@ class ReplicaEvent(FabricEvent): """Represents the base for all Replica Events. You probably want to use the sub-classes and not this class directly. Known - sub-classes are: StatefulReplicaHealthReportCreatedEvent, + sub-classes are: StatefulReplicaNewHealthReportEvent, StatefulReplicaHealthReportExpiredEvent, - StatelessReplicaHealthReportCreatedEvent, + StatelessReplicaNewHealthReportEvent, StatelessReplicaHealthReportExpiredEvent, - ChaosRemoveReplicaFaultScheduledEvent, - ChaosRemoveReplicaFaultCompletedEvent, - ChaosRestartReplicaFaultScheduledEvent + ChaosReplicaRemovalScheduledEvent, ChaosReplicaRestartScheduledEvent All required parameters must be populated in order to send to Azure. :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -62,6 +62,7 @@ class ReplicaEvent(FabricEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -70,7 +71,7 @@ class ReplicaEvent(FabricEvent): } _subtype_map = { - 'kind': {'StatefulReplicaHealthReportCreated': 'StatefulReplicaHealthReportCreatedEvent', 'StatefulReplicaHealthReportExpired': 'StatefulReplicaHealthReportExpiredEvent', 'StatelessReplicaHealthReportCreated': 'StatelessReplicaHealthReportCreatedEvent', 'StatelessReplicaHealthReportExpired': 'StatelessReplicaHealthReportExpiredEvent', 'ChaosRemoveReplicaFaultScheduled': 'ChaosRemoveReplicaFaultScheduledEvent', 'ChaosRemoveReplicaFaultCompleted': 'ChaosRemoveReplicaFaultCompletedEvent', 'ChaosRestartReplicaFaultScheduled': 'ChaosRestartReplicaFaultScheduledEvent'} + 'kind': {'StatefulReplicaNewHealthReport': 'StatefulReplicaNewHealthReportEvent', 'StatefulReplicaHealthReportExpired': 'StatefulReplicaHealthReportExpiredEvent', 'StatelessReplicaNewHealthReport': 'StatelessReplicaNewHealthReportEvent', 'StatelessReplicaHealthReportExpired': 'StatelessReplicaHealthReportExpiredEvent', 'ChaosReplicaRemovalScheduled': 'ChaosReplicaRemovalScheduledEvent', 'ChaosReplicaRestartScheduled': 'ChaosReplicaRestartScheduledEvent'} } def __init__(self, **kwargs): diff --git a/azure-servicefabric/azure/servicefabric/models/replica_event_py3.py b/azure-servicefabric/azure/servicefabric/models/replica_event_py3.py index d5fc9a5fe2f1..e9f534258750 100644 --- a/azure-servicefabric/azure/servicefabric/models/replica_event_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/replica_event_py3.py @@ -16,19 +16,19 @@ class ReplicaEvent(FabricEvent): """Represents the base for all Replica Events. You probably want to use the sub-classes and not this class directly. Known - sub-classes are: StatefulReplicaHealthReportCreatedEvent, + sub-classes are: StatefulReplicaNewHealthReportEvent, StatefulReplicaHealthReportExpiredEvent, - StatelessReplicaHealthReportCreatedEvent, + StatelessReplicaNewHealthReportEvent, StatelessReplicaHealthReportExpiredEvent, - ChaosRemoveReplicaFaultScheduledEvent, - ChaosRemoveReplicaFaultCompletedEvent, - ChaosRestartReplicaFaultScheduledEvent + ChaosReplicaRemovalScheduledEvent, ChaosReplicaRestartScheduledEvent All required parameters must be populated in order to send to Azure. :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -62,6 +62,7 @@ class ReplicaEvent(FabricEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -70,11 +71,11 @@ class ReplicaEvent(FabricEvent): } _subtype_map = { - 'kind': {'StatefulReplicaHealthReportCreated': 'StatefulReplicaHealthReportCreatedEvent', 'StatefulReplicaHealthReportExpired': 'StatefulReplicaHealthReportExpiredEvent', 'StatelessReplicaHealthReportCreated': 'StatelessReplicaHealthReportCreatedEvent', 'StatelessReplicaHealthReportExpired': 'StatelessReplicaHealthReportExpiredEvent', 'ChaosRemoveReplicaFaultScheduled': 'ChaosRemoveReplicaFaultScheduledEvent', 'ChaosRemoveReplicaFaultCompleted': 'ChaosRemoveReplicaFaultCompletedEvent', 'ChaosRestartReplicaFaultScheduled': 'ChaosRestartReplicaFaultScheduledEvent'} + 'kind': {'StatefulReplicaNewHealthReport': 'StatefulReplicaNewHealthReportEvent', 'StatefulReplicaHealthReportExpired': 'StatefulReplicaHealthReportExpiredEvent', 'StatelessReplicaNewHealthReport': 'StatelessReplicaNewHealthReportEvent', 'StatelessReplicaHealthReportExpired': 'StatelessReplicaHealthReportExpiredEvent', 'ChaosReplicaRemovalScheduled': 'ChaosReplicaRemovalScheduledEvent', 'ChaosReplicaRestartScheduled': 'ChaosReplicaRestartScheduledEvent'} } - def __init__(self, *, event_instance_id: str, time_stamp, partition_id: str, replica_id: int, has_correlated_events: bool=None, **kwargs) -> None: - super(ReplicaEvent, self).__init__(event_instance_id=event_instance_id, time_stamp=time_stamp, has_correlated_events=has_correlated_events, **kwargs) + def __init__(self, *, event_instance_id: str, time_stamp, partition_id: str, replica_id: int, category: str=None, has_correlated_events: bool=None, **kwargs) -> None: + super(ReplicaEvent, self).__init__(event_instance_id=event_instance_id, category=category, time_stamp=time_stamp, has_correlated_events=has_correlated_events, **kwargs) self.partition_id = partition_id self.replica_id = replica_id self.kind = 'ReplicaEvent' diff --git a/azure-servicefabric/azure/servicefabric/models/restore_progress_info.py b/azure-servicefabric/azure/servicefabric/models/restore_progress_info.py index 8f893348ff67..9d6319252f5e 100644 --- a/azure-servicefabric/azure/servicefabric/models/restore_progress_info.py +++ b/azure-servicefabric/azure/servicefabric/models/restore_progress_info.py @@ -23,7 +23,7 @@ class RestoreProgressInfo(Model): :type time_stamp_utc: datetime :param restored_epoch: Describes the epoch at which the partition is restored. - :type restored_epoch: ~azure.servicefabric.models.BackupEpoch + :type restored_epoch: ~azure.servicefabric.models.Epoch :param restored_lsn: Restored LSN. :type restored_lsn: str :param failure_error: Denotes the failure encountered in performing @@ -34,7 +34,7 @@ class RestoreProgressInfo(Model): _attribute_map = { 'restore_state': {'key': 'RestoreState', 'type': 'str'}, 'time_stamp_utc': {'key': 'TimeStampUtc', 'type': 'iso-8601'}, - 'restored_epoch': {'key': 'RestoredEpoch', 'type': 'BackupEpoch'}, + 'restored_epoch': {'key': 'RestoredEpoch', 'type': 'Epoch'}, 'restored_lsn': {'key': 'RestoredLsn', 'type': 'str'}, 'failure_error': {'key': 'FailureError', 'type': 'FabricErrorError'}, } diff --git a/azure-servicefabric/azure/servicefabric/models/restore_progress_info_py3.py b/azure-servicefabric/azure/servicefabric/models/restore_progress_info_py3.py index ec761d523099..2274e6bd3450 100644 --- a/azure-servicefabric/azure/servicefabric/models/restore_progress_info_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/restore_progress_info_py3.py @@ -23,7 +23,7 @@ class RestoreProgressInfo(Model): :type time_stamp_utc: datetime :param restored_epoch: Describes the epoch at which the partition is restored. - :type restored_epoch: ~azure.servicefabric.models.BackupEpoch + :type restored_epoch: ~azure.servicefabric.models.Epoch :param restored_lsn: Restored LSN. :type restored_lsn: str :param failure_error: Denotes the failure encountered in performing @@ -34,7 +34,7 @@ class RestoreProgressInfo(Model): _attribute_map = { 'restore_state': {'key': 'RestoreState', 'type': 'str'}, 'time_stamp_utc': {'key': 'TimeStampUtc', 'type': 'iso-8601'}, - 'restored_epoch': {'key': 'RestoredEpoch', 'type': 'BackupEpoch'}, + 'restored_epoch': {'key': 'RestoredEpoch', 'type': 'Epoch'}, 'restored_lsn': {'key': 'RestoredLsn', 'type': 'str'}, 'failure_error': {'key': 'FailureError', 'type': 'FabricErrorError'}, } diff --git a/azure-servicefabric/azure/servicefabric/models/retention_policy_description.py b/azure-servicefabric/azure/servicefabric/models/retention_policy_description.py new file mode 100644 index 000000000000..b1a6a7dfa5b2 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/retention_policy_description.py @@ -0,0 +1,41 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class RetentionPolicyDescription(Model): + """Describes the retention policy configured. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: BasicRetentionPolicyDescription + + All required parameters must be populated in order to send to Azure. + + :param retention_policy_type: Required. Constant filled by server. + :type retention_policy_type: str + """ + + _validation = { + 'retention_policy_type': {'required': True}, + } + + _attribute_map = { + 'retention_policy_type': {'key': 'RetentionPolicyType', 'type': 'str'}, + } + + _subtype_map = { + 'retention_policy_type': {'Basic': 'BasicRetentionPolicyDescription'} + } + + def __init__(self, **kwargs): + super(RetentionPolicyDescription, self).__init__(**kwargs) + self.retention_policy_type = None diff --git a/azure-servicefabric/azure/servicefabric/models/retention_policy_description_py3.py b/azure-servicefabric/azure/servicefabric/models/retention_policy_description_py3.py new file mode 100644 index 000000000000..6f775cf7d94a --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/retention_policy_description_py3.py @@ -0,0 +1,41 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class RetentionPolicyDescription(Model): + """Describes the retention policy configured. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: BasicRetentionPolicyDescription + + All required parameters must be populated in order to send to Azure. + + :param retention_policy_type: Required. Constant filled by server. + :type retention_policy_type: str + """ + + _validation = { + 'retention_policy_type': {'required': True}, + } + + _attribute_map = { + 'retention_policy_type': {'key': 'RetentionPolicyType', 'type': 'str'}, + } + + _subtype_map = { + 'retention_policy_type': {'Basic': 'BasicRetentionPolicyDescription'} + } + + def __init__(self, **kwargs) -> None: + super(RetentionPolicyDescription, self).__init__(**kwargs) + self.retention_policy_type = None diff --git a/azure-servicefabric/azure/servicefabric/models/secret_resource_description.py b/azure-servicefabric/azure/servicefabric/models/secret_resource_description.py new file mode 100644 index 000000000000..a4e4101293fd --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/secret_resource_description.py @@ -0,0 +1,40 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class SecretResourceDescription(Model): + """This type describes a secret resource. + + All required parameters must be populated in order to send to Azure. + + :param properties: Required. Describes the properties of a secret + resource. + :type properties: ~azure.servicefabric.models.SecretResourceProperties + :param name: Required. Name of the Secret resource. + :type name: str + """ + + _validation = { + 'properties': {'required': True}, + 'name': {'required': True}, + } + + _attribute_map = { + 'properties': {'key': 'properties', 'type': 'SecretResourceProperties'}, + 'name': {'key': 'name', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(SecretResourceDescription, self).__init__(**kwargs) + self.properties = kwargs.get('properties', None) + self.name = kwargs.get('name', None) diff --git a/azure-servicefabric/azure/servicefabric/models/secret_resource_description_py3.py b/azure-servicefabric/azure/servicefabric/models/secret_resource_description_py3.py new file mode 100644 index 000000000000..c31454aa2e21 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/secret_resource_description_py3.py @@ -0,0 +1,40 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class SecretResourceDescription(Model): + """This type describes a secret resource. + + All required parameters must be populated in order to send to Azure. + + :param properties: Required. Describes the properties of a secret + resource. + :type properties: ~azure.servicefabric.models.SecretResourceProperties + :param name: Required. Name of the Secret resource. + :type name: str + """ + + _validation = { + 'properties': {'required': True}, + 'name': {'required': True}, + } + + _attribute_map = { + 'properties': {'key': 'properties', 'type': 'SecretResourceProperties'}, + 'name': {'key': 'name', 'type': 'str'}, + } + + def __init__(self, *, properties, name: str, **kwargs) -> None: + super(SecretResourceDescription, self).__init__(**kwargs) + self.properties = properties + self.name = name diff --git a/azure-servicefabric/azure/servicefabric/models/secret_resource_properties.py b/azure-servicefabric/azure/servicefabric/models/secret_resource_properties.py new file mode 100644 index 000000000000..84868c395086 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/secret_resource_properties.py @@ -0,0 +1,66 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .secret_resource_properties_base import SecretResourcePropertiesBase + + +class SecretResourceProperties(SecretResourcePropertiesBase): + """Describes the properties of a secret resource. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: InlinedValueSecretResourceProperties + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param kind: Required. Constant filled by server. + :type kind: str + :param description: User readable description of the secret. + :type description: str + :ivar status: Status of the resource. Possible values include: 'Unknown', + 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed' + :vartype status: str or ~azure.servicefabric.models.ResourceStatus + :ivar status_details: Gives additional information about the current + status of the secret. + :vartype status_details: str + :param content_type: The type of the content stored in the secret value. + The value of this property is opaque to Service Fabric. Once set, the + value of this property cannot be changed. + :type content_type: str + """ + + _validation = { + 'kind': {'required': True}, + 'status': {'readonly': True}, + 'status_details': {'readonly': True}, + } + + _attribute_map = { + 'kind': {'key': 'kind', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'status_details': {'key': 'statusDetails', 'type': 'str'}, + 'content_type': {'key': 'contentType', 'type': 'str'}, + } + + _subtype_map = { + 'kind': {'inlinedValue': 'InlinedValueSecretResourceProperties'} + } + + def __init__(self, **kwargs): + super(SecretResourceProperties, self).__init__(**kwargs) + self.description = kwargs.get('description', None) + self.status = None + self.status_details = None + self.content_type = kwargs.get('content_type', None) + self.kind = 'SecretResourceProperties' diff --git a/azure-servicefabric/azure/servicefabric/models/secret_resource_properties_base.py b/azure-servicefabric/azure/servicefabric/models/secret_resource_properties_base.py new file mode 100644 index 000000000000..ac72b82dbc82 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/secret_resource_properties_base.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class SecretResourcePropertiesBase(Model): + """This type describes the properties of a secret resource, including its + kind. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: SecretResourceProperties + + All required parameters must be populated in order to send to Azure. + + :param kind: Required. Constant filled by server. + :type kind: str + """ + + _validation = { + 'kind': {'required': True}, + } + + _attribute_map = { + 'kind': {'key': 'kind', 'type': 'str'}, + } + + _subtype_map = { + 'kind': {'SecretResourceProperties': 'SecretResourceProperties'} + } + + def __init__(self, **kwargs): + super(SecretResourcePropertiesBase, self).__init__(**kwargs) + self.kind = None diff --git a/azure-servicefabric/azure/servicefabric/models/secret_resource_properties_base_py3.py b/azure-servicefabric/azure/servicefabric/models/secret_resource_properties_base_py3.py new file mode 100644 index 000000000000..d0044f2ebcf4 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/secret_resource_properties_base_py3.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class SecretResourcePropertiesBase(Model): + """This type describes the properties of a secret resource, including its + kind. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: SecretResourceProperties + + All required parameters must be populated in order to send to Azure. + + :param kind: Required. Constant filled by server. + :type kind: str + """ + + _validation = { + 'kind': {'required': True}, + } + + _attribute_map = { + 'kind': {'key': 'kind', 'type': 'str'}, + } + + _subtype_map = { + 'kind': {'SecretResourceProperties': 'SecretResourceProperties'} + } + + def __init__(self, **kwargs) -> None: + super(SecretResourcePropertiesBase, self).__init__(**kwargs) + self.kind = None diff --git a/azure-servicefabric/azure/servicefabric/models/secret_resource_properties_py3.py b/azure-servicefabric/azure/servicefabric/models/secret_resource_properties_py3.py new file mode 100644 index 000000000000..f49f34420981 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/secret_resource_properties_py3.py @@ -0,0 +1,66 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .secret_resource_properties_base_py3 import SecretResourcePropertiesBase + + +class SecretResourceProperties(SecretResourcePropertiesBase): + """Describes the properties of a secret resource. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: InlinedValueSecretResourceProperties + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param kind: Required. Constant filled by server. + :type kind: str + :param description: User readable description of the secret. + :type description: str + :ivar status: Status of the resource. Possible values include: 'Unknown', + 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed' + :vartype status: str or ~azure.servicefabric.models.ResourceStatus + :ivar status_details: Gives additional information about the current + status of the secret. + :vartype status_details: str + :param content_type: The type of the content stored in the secret value. + The value of this property is opaque to Service Fabric. Once set, the + value of this property cannot be changed. + :type content_type: str + """ + + _validation = { + 'kind': {'required': True}, + 'status': {'readonly': True}, + 'status_details': {'readonly': True}, + } + + _attribute_map = { + 'kind': {'key': 'kind', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'status_details': {'key': 'statusDetails', 'type': 'str'}, + 'content_type': {'key': 'contentType', 'type': 'str'}, + } + + _subtype_map = { + 'kind': {'inlinedValue': 'InlinedValueSecretResourceProperties'} + } + + def __init__(self, *, description: str=None, content_type: str=None, **kwargs) -> None: + super(SecretResourceProperties, self).__init__(**kwargs) + self.description = description + self.status = None + self.status_details = None + self.content_type = content_type + self.kind = 'SecretResourceProperties' diff --git a/azure-servicefabric/azure/servicefabric/models/secret_value.py b/azure-servicefabric/azure/servicefabric/models/secret_value.py new file mode 100644 index 000000000000..d7f632582e37 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/secret_value.py @@ -0,0 +1,28 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class SecretValue(Model): + """This type represents the unencrypted value of the secret. + + :param value: The actual value of the secret. + :type value: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(SecretValue, self).__init__(**kwargs) + self.value = kwargs.get('value', None) diff --git a/azure-servicefabric/azure/servicefabric/models/secret_value_properties.py b/azure-servicefabric/azure/servicefabric/models/secret_value_properties.py new file mode 100644 index 000000000000..2d26acf9d5db --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/secret_value_properties.py @@ -0,0 +1,28 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class SecretValueProperties(Model): + """This type describes properties of secret value resource. + + :param value: The actual value of the secret. + :type value: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(SecretValueProperties, self).__init__(**kwargs) + self.value = kwargs.get('value', None) diff --git a/azure-servicefabric/azure/servicefabric/models/secret_value_properties_py3.py b/azure-servicefabric/azure/servicefabric/models/secret_value_properties_py3.py new file mode 100644 index 000000000000..4b422eb9a5a7 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/secret_value_properties_py3.py @@ -0,0 +1,28 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class SecretValueProperties(Model): + """This type describes properties of secret value resource. + + :param value: The actual value of the secret. + :type value: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__(self, *, value: str=None, **kwargs) -> None: + super(SecretValueProperties, self).__init__(**kwargs) + self.value = value diff --git a/azure-servicefabric/azure/servicefabric/models/secret_value_py3.py b/azure-servicefabric/azure/servicefabric/models/secret_value_py3.py new file mode 100644 index 000000000000..d196402e5fb7 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/secret_value_py3.py @@ -0,0 +1,28 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class SecretValue(Model): + """This type represents the unencrypted value of the secret. + + :param value: The actual value of the secret. + :type value: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__(self, *, value: str=None, **kwargs) -> None: + super(SecretValue, self).__init__(**kwargs) + self.value = value diff --git a/azure-servicefabric/azure/servicefabric/models/secret_value_resource_description.py b/azure-servicefabric/azure/servicefabric/models/secret_value_resource_description.py new file mode 100644 index 000000000000..35809565f0ca --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/secret_value_resource_description.py @@ -0,0 +1,39 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class SecretValueResourceDescription(Model): + """This type describes a value of a secret resource. The name of this resource + is the version identifier corresponding to this secret value. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. Version identifier of the secret value. + :type name: str + :param value: The actual value of the secret. + :type value: str + """ + + _validation = { + 'name': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'properties.value', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(SecretValueResourceDescription, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.value = kwargs.get('value', None) diff --git a/azure-servicefabric/azure/servicefabric/models/secret_value_resource_description_py3.py b/azure-servicefabric/azure/servicefabric/models/secret_value_resource_description_py3.py new file mode 100644 index 000000000000..70866a9369ac --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/secret_value_resource_description_py3.py @@ -0,0 +1,39 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class SecretValueResourceDescription(Model): + """This type describes a value of a secret resource. The name of this resource + is the version identifier corresponding to this secret value. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. Version identifier of the secret value. + :type name: str + :param value: The actual value of the secret. + :type value: str + """ + + _validation = { + 'name': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'properties.value', 'type': 'str'}, + } + + def __init__(self, *, name: str, value: str=None, **kwargs) -> None: + super(SecretValueResourceDescription, self).__init__(**kwargs) + self.name = name + self.value = value diff --git a/azure-servicefabric/azure/servicefabric/models/service_created_event.py b/azure-servicefabric/azure/servicefabric/models/service_created_event.py index 41507f2da246..33d46d28d090 100644 --- a/azure-servicefabric/azure/servicefabric/models/service_created_event.py +++ b/azure-servicefabric/azure/servicefabric/models/service_created_event.py @@ -20,6 +20,8 @@ class ServiceCreatedEvent(ServiceEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -80,6 +82,7 @@ class ServiceCreatedEvent(ServiceEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, diff --git a/azure-servicefabric/azure/servicefabric/models/service_created_event_py3.py b/azure-servicefabric/azure/servicefabric/models/service_created_event_py3.py index 85da62411112..1843c8595026 100644 --- a/azure-servicefabric/azure/servicefabric/models/service_created_event_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/service_created_event_py3.py @@ -20,6 +20,8 @@ class ServiceCreatedEvent(ServiceEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -80,6 +82,7 @@ class ServiceCreatedEvent(ServiceEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -96,8 +99,8 @@ class ServiceCreatedEvent(ServiceEvent): 'partition_id': {'key': 'PartitionId', 'type': 'str'}, } - def __init__(self, *, event_instance_id: str, time_stamp, service_id: str, service_type_name: str, application_name: str, application_type_name: str, service_instance: int, is_stateful: bool, partition_count: int, target_replica_set_size: int, min_replica_set_size: int, service_package_version: str, partition_id: str, has_correlated_events: bool=None, **kwargs) -> None: - super(ServiceCreatedEvent, self).__init__(event_instance_id=event_instance_id, time_stamp=time_stamp, has_correlated_events=has_correlated_events, service_id=service_id, **kwargs) + def __init__(self, *, event_instance_id: str, time_stamp, service_id: str, service_type_name: str, application_name: str, application_type_name: str, service_instance: int, is_stateful: bool, partition_count: int, target_replica_set_size: int, min_replica_set_size: int, service_package_version: str, partition_id: str, category: str=None, has_correlated_events: bool=None, **kwargs) -> None: + super(ServiceCreatedEvent, self).__init__(event_instance_id=event_instance_id, category=category, time_stamp=time_stamp, has_correlated_events=has_correlated_events, service_id=service_id, **kwargs) self.service_type_name = service_type_name self.application_name = application_name self.application_type_name = application_type_name diff --git a/azure-servicefabric/azure/servicefabric/models/service_deleted_event.py b/azure-servicefabric/azure/servicefabric/models/service_deleted_event.py index fa14df02ecee..7b7642f8fbf0 100644 --- a/azure-servicefabric/azure/servicefabric/models/service_deleted_event.py +++ b/azure-servicefabric/azure/servicefabric/models/service_deleted_event.py @@ -20,6 +20,8 @@ class ServiceDeletedEvent(ServiceEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -73,6 +75,7 @@ class ServiceDeletedEvent(ServiceEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, diff --git a/azure-servicefabric/azure/servicefabric/models/service_deleted_event_py3.py b/azure-servicefabric/azure/servicefabric/models/service_deleted_event_py3.py index 4bada4904170..58357e388118 100644 --- a/azure-servicefabric/azure/servicefabric/models/service_deleted_event_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/service_deleted_event_py3.py @@ -20,6 +20,8 @@ class ServiceDeletedEvent(ServiceEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -73,6 +75,7 @@ class ServiceDeletedEvent(ServiceEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -88,8 +91,8 @@ class ServiceDeletedEvent(ServiceEvent): 'service_package_version': {'key': 'ServicePackageVersion', 'type': 'str'}, } - def __init__(self, *, event_instance_id: str, time_stamp, service_id: str, service_type_name: str, application_name: str, application_type_name: str, service_instance: int, is_stateful: bool, partition_count: int, target_replica_set_size: int, min_replica_set_size: int, service_package_version: str, has_correlated_events: bool=None, **kwargs) -> None: - super(ServiceDeletedEvent, self).__init__(event_instance_id=event_instance_id, time_stamp=time_stamp, has_correlated_events=has_correlated_events, service_id=service_id, **kwargs) + def __init__(self, *, event_instance_id: str, time_stamp, service_id: str, service_type_name: str, application_name: str, application_type_name: str, service_instance: int, is_stateful: bool, partition_count: int, target_replica_set_size: int, min_replica_set_size: int, service_package_version: str, category: str=None, has_correlated_events: bool=None, **kwargs) -> None: + super(ServiceDeletedEvent, self).__init__(event_instance_id=event_instance_id, category=category, time_stamp=time_stamp, has_correlated_events=has_correlated_events, service_id=service_id, **kwargs) self.service_type_name = service_type_name self.application_name = application_name self.application_type_name = application_type_name diff --git a/azure-servicefabric/azure/servicefabric/models/service_event.py b/azure-servicefabric/azure/servicefabric/models/service_event.py index 8c7937b204c5..8babe820978f 100644 --- a/azure-servicefabric/azure/servicefabric/models/service_event.py +++ b/azure-servicefabric/azure/servicefabric/models/service_event.py @@ -17,13 +17,15 @@ class ServiceEvent(FabricEvent): You probably want to use the sub-classes and not this class directly. Known sub-classes are: ServiceCreatedEvent, ServiceDeletedEvent, - ServiceHealthReportCreatedEvent, ServiceHealthReportExpiredEvent + ServiceNewHealthReportEvent, ServiceHealthReportExpiredEvent All required parameters must be populated in order to send to Azure. :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -50,6 +52,7 @@ class ServiceEvent(FabricEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -57,7 +60,7 @@ class ServiceEvent(FabricEvent): } _subtype_map = { - 'kind': {'ServiceCreated': 'ServiceCreatedEvent', 'ServiceDeleted': 'ServiceDeletedEvent', 'ServiceHealthReportCreated': 'ServiceHealthReportCreatedEvent', 'ServiceHealthReportExpired': 'ServiceHealthReportExpiredEvent'} + 'kind': {'ServiceCreated': 'ServiceCreatedEvent', 'ServiceDeleted': 'ServiceDeletedEvent', 'ServiceNewHealthReport': 'ServiceNewHealthReportEvent', 'ServiceHealthReportExpired': 'ServiceHealthReportExpiredEvent'} } def __init__(self, **kwargs): diff --git a/azure-servicefabric/azure/servicefabric/models/service_event_py3.py b/azure-servicefabric/azure/servicefabric/models/service_event_py3.py index 1be7606566c1..da126aba2326 100644 --- a/azure-servicefabric/azure/servicefabric/models/service_event_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/service_event_py3.py @@ -17,13 +17,15 @@ class ServiceEvent(FabricEvent): You probably want to use the sub-classes and not this class directly. Known sub-classes are: ServiceCreatedEvent, ServiceDeletedEvent, - ServiceHealthReportCreatedEvent, ServiceHealthReportExpiredEvent + ServiceNewHealthReportEvent, ServiceHealthReportExpiredEvent All required parameters must be populated in order to send to Azure. :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -50,6 +52,7 @@ class ServiceEvent(FabricEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -57,10 +60,10 @@ class ServiceEvent(FabricEvent): } _subtype_map = { - 'kind': {'ServiceCreated': 'ServiceCreatedEvent', 'ServiceDeleted': 'ServiceDeletedEvent', 'ServiceHealthReportCreated': 'ServiceHealthReportCreatedEvent', 'ServiceHealthReportExpired': 'ServiceHealthReportExpiredEvent'} + 'kind': {'ServiceCreated': 'ServiceCreatedEvent', 'ServiceDeleted': 'ServiceDeletedEvent', 'ServiceNewHealthReport': 'ServiceNewHealthReportEvent', 'ServiceHealthReportExpired': 'ServiceHealthReportExpiredEvent'} } - def __init__(self, *, event_instance_id: str, time_stamp, service_id: str, has_correlated_events: bool=None, **kwargs) -> None: - super(ServiceEvent, self).__init__(event_instance_id=event_instance_id, time_stamp=time_stamp, has_correlated_events=has_correlated_events, **kwargs) + def __init__(self, *, event_instance_id: str, time_stamp, service_id: str, category: str=None, has_correlated_events: bool=None, **kwargs) -> None: + super(ServiceEvent, self).__init__(event_instance_id=event_instance_id, category=category, time_stamp=time_stamp, has_correlated_events=has_correlated_events, **kwargs) self.service_id = service_id self.kind = 'ServiceEvent' diff --git a/azure-servicefabric/azure/servicefabric/models/service_fabric_client_ap_is_enums.py b/azure-servicefabric/azure/servicefabric/models/service_fabric_client_ap_is_enums.py index 95f1696c8ce1..cbbe829e16e8 100644 --- a/azure-servicefabric/azure/servicefabric/models/service_fabric_client_ap_is_enums.py +++ b/azure-servicefabric/azure/servicefabric/models/service_fabric_client_ap_is_enums.py @@ -12,13 +12,6 @@ from enum import Enum -class ApplicationDefinitionKind(str, Enum): - - invalid = "Invalid" #: Indicates the application definition kind is invalid. All Service Fabric enumerations have the invalid type. The value is 65535. - service_fabric_application_description = "ServiceFabricApplicationDescription" #: Indicates the application is defined by a Service Fabric application description. The value is 0. - compose = "Compose" #: Indicates the application is defined by compose file(s). The value is 1. - - class HealthState(str, Enum): invalid = "Invalid" #: Indicates an invalid health state. All Service Fabric enumerations have the invalid type. The value is zero. @@ -28,6 +21,101 @@ class HealthState(str, Enum): unknown = "Unknown" #: Indicates an unknown health status. The value is 65535. +class FabricErrorCodes(str, Enum): + + fabric_e_invalid_partition_key = "FABRIC_E_INVALID_PARTITION_KEY" + fabric_e_imagebuilder_validation_error = "FABRIC_E_IMAGEBUILDER_VALIDATION_ERROR" + fabric_e_invalid_address = "FABRIC_E_INVALID_ADDRESS" + fabric_e_application_not_upgrading = "FABRIC_E_APPLICATION_NOT_UPGRADING" + fabric_e_application_upgrade_validation_error = "FABRIC_E_APPLICATION_UPGRADE_VALIDATION_ERROR" + fabric_e_fabric_not_upgrading = "FABRIC_E_FABRIC_NOT_UPGRADING" + fabric_e_fabric_upgrade_validation_error = "FABRIC_E_FABRIC_UPGRADE_VALIDATION_ERROR" + fabric_e_invalid_configuration = "FABRIC_E_INVALID_CONFIGURATION" + fabric_e_invalid_name_uri = "FABRIC_E_INVALID_NAME_URI" + fabric_e_path_too_long = "FABRIC_E_PATH_TOO_LONG" + fabric_e_key_too_large = "FABRIC_E_KEY_TOO_LARGE" + fabric_e_service_affinity_chain_not_supported = "FABRIC_E_SERVICE_AFFINITY_CHAIN_NOT_SUPPORTED" + fabric_e_invalid_atomic_group = "FABRIC_E_INVALID_ATOMIC_GROUP" + fabric_e_value_empty = "FABRIC_E_VALUE_EMPTY" + fabric_e_node_not_found = "FABRIC_E_NODE_NOT_FOUND" + fabric_e_application_type_not_found = "FABRIC_E_APPLICATION_TYPE_NOT_FOUND" + fabric_e_application_not_found = "FABRIC_E_APPLICATION_NOT_FOUND" + fabric_e_service_type_not_found = "FABRIC_E_SERVICE_TYPE_NOT_FOUND" + fabric_e_service_does_not_exist = "FABRIC_E_SERVICE_DOES_NOT_EXIST" + fabric_e_service_type_template_not_found = "FABRIC_E_SERVICE_TYPE_TEMPLATE_NOT_FOUND" + fabric_e_configuration_section_not_found = "FABRIC_E_CONFIGURATION_SECTION_NOT_FOUND" + fabric_e_partition_not_found = "FABRIC_E_PARTITION_NOT_FOUND" + fabric_e_replica_does_not_exist = "FABRIC_E_REPLICA_DOES_NOT_EXIST" + fabric_e_service_group_does_not_exist = "FABRIC_E_SERVICE_GROUP_DOES_NOT_EXIST" + fabric_e_configuration_parameter_not_found = "FABRIC_E_CONFIGURATION_PARAMETER_NOT_FOUND" + fabric_e_directory_not_found = "FABRIC_E_DIRECTORY_NOT_FOUND" + fabric_e_fabric_version_not_found = "FABRIC_E_FABRIC_VERSION_NOT_FOUND" + fabric_e_file_not_found = "FABRIC_E_FILE_NOT_FOUND" + fabric_e_name_does_not_exist = "FABRIC_E_NAME_DOES_NOT_EXIST" + fabric_e_property_does_not_exist = "FABRIC_E_PROPERTY_DOES_NOT_EXIST" + fabric_e_enumeration_completed = "FABRIC_E_ENUMERATION_COMPLETED" + fabric_e_service_manifest_not_found = "FABRIC_E_SERVICE_MANIFEST_NOT_FOUND" + fabric_e_key_not_found = "FABRIC_E_KEY_NOT_FOUND" + fabric_e_health_entity_not_found = "FABRIC_E_HEALTH_ENTITY_NOT_FOUND" + fabric_e_application_type_already_exists = "FABRIC_E_APPLICATION_TYPE_ALREADY_EXISTS" + fabric_e_application_already_exists = "FABRIC_E_APPLICATION_ALREADY_EXISTS" + fabric_e_application_already_in_target_version = "FABRIC_E_APPLICATION_ALREADY_IN_TARGET_VERSION" + fabric_e_application_type_provision_in_progress = "FABRIC_E_APPLICATION_TYPE_PROVISION_IN_PROGRESS" + fabric_e_application_upgrade_in_progress = "FABRIC_E_APPLICATION_UPGRADE_IN_PROGRESS" + fabric_e_service_already_exists = "FABRIC_E_SERVICE_ALREADY_EXISTS" + fabric_e_service_group_already_exists = "FABRIC_E_SERVICE_GROUP_ALREADY_EXISTS" + fabric_e_application_type_in_use = "FABRIC_E_APPLICATION_TYPE_IN_USE" + fabric_e_fabric_already_in_target_version = "FABRIC_E_FABRIC_ALREADY_IN_TARGET_VERSION" + fabric_e_fabric_version_already_exists = "FABRIC_E_FABRIC_VERSION_ALREADY_EXISTS" + fabric_e_fabric_version_in_use = "FABRIC_E_FABRIC_VERSION_IN_USE" + fabric_e_fabric_upgrade_in_progress = "FABRIC_E_FABRIC_UPGRADE_IN_PROGRESS" + fabric_e_name_already_exists = "FABRIC_E_NAME_ALREADY_EXISTS" + fabric_e_name_not_empty = "FABRIC_E_NAME_NOT_EMPTY" + fabric_e_property_check_failed = "FABRIC_E_PROPERTY_CHECK_FAILED" + fabric_e_service_metadata_mismatch = "FABRIC_E_SERVICE_METADATA_MISMATCH" + fabric_e_service_type_mismatch = "FABRIC_E_SERVICE_TYPE_MISMATCH" + fabric_e_health_stale_report = "FABRIC_E_HEALTH_STALE_REPORT" + fabric_e_sequence_number_check_failed = "FABRIC_E_SEQUENCE_NUMBER_CHECK_FAILED" + fabric_e_node_has_not_stopped_yet = "FABRIC_E_NODE_HAS_NOT_STOPPED_YET" + fabric_e_instance_id_mismatch = "FABRIC_E_INSTANCE_ID_MISMATCH" + fabric_e_value_too_large = "FABRIC_E_VALUE_TOO_LARGE" + fabric_e_no_write_quorum = "FABRIC_E_NO_WRITE_QUORUM" + fabric_e_not_primary = "FABRIC_E_NOT_PRIMARY" + fabric_e_not_ready = "FABRIC_E_NOT_READY" + fabric_e_reconfiguration_pending = "FABRIC_E_RECONFIGURATION_PENDING" + fabric_e_service_offline = "FABRIC_E_SERVICE_OFFLINE" + e_abort = "E_ABORT" + fabric_e_communication_error = "FABRIC_E_COMMUNICATION_ERROR" + fabric_e_operation_not_complete = "FABRIC_E_OPERATION_NOT_COMPLETE" + fabric_e_timeout = "FABRIC_E_TIMEOUT" + fabric_e_node_is_up = "FABRIC_E_NODE_IS_UP" + e_fail = "E_FAIL" + fabric_e_backup_is_enabled = "FABRIC_E_BACKUP_IS_ENABLED" + fabric_e_restore_source_target_partition_mismatch = "FABRIC_E_RESTORE_SOURCE_TARGET_PARTITION_MISMATCH" + fabric_e_invalid_for_stateless_services = "FABRIC_E_INVALID_FOR_STATELESS_SERVICES" + fabric_e_backup_not_enabled = "FABRIC_E_BACKUP_NOT_ENABLED" + fabric_e_backup_policy_not_existing = "FABRIC_E_BACKUP_POLICY_NOT_EXISTING" + fabric_e_fault_analysis_service_not_existing = "FABRIC_E_FAULT_ANALYSIS_SERVICE_NOT_EXISTING" + fabric_e_backup_in_progress = "FABRIC_E_BACKUP_IN_PROGRESS" + fabric_e_restore_in_progress = "FABRIC_E_RESTORE_IN_PROGRESS" + fabric_e_backup_policy_already_existing = "FABRIC_E_BACKUP_POLICY_ALREADY_EXISTING" + fabric_e_invalid_service_scaling_policy = "FABRIC_E_INVALID_SERVICE_SCALING_POLICY" + e_invalidarg = "E_INVALIDARG" + fabric_e_single_instance_application_already_exists = "FABRIC_E_SINGLE_INSTANCE_APPLICATION_ALREADY_EXISTS" + fabric_e_single_instance_application_not_found = "FABRIC_E_SINGLE_INSTANCE_APPLICATION_NOT_FOUND" + fabric_e_volume_already_exists = "FABRIC_E_VOLUME_ALREADY_EXISTS" + fabric_e_volume_not_found = "FABRIC_E_VOLUME_NOT_FOUND" + serialization_error = "SerializationError" + fabric_e_imagebuilder_reserved_directory_error = "FABRIC_E_IMAGEBUILDER_RESERVED_DIRECTORY_ERROR" + + +class ApplicationDefinitionKind(str, Enum): + + invalid = "Invalid" #: Indicates the application definition kind is invalid. All Service Fabric enumerations have the invalid type. The value is 65535. + service_fabric_application_description = "ServiceFabricApplicationDescription" #: Indicates the application is defined by a Service Fabric application description. The value is 0. + compose = "Compose" #: Indicates the application is defined by compose file(s). The value is 1. + + class ApplicationStatus(str, Enum): invalid = "Invalid" #: Indicates the application status is invalid. All Service Fabric enumerations have the invalid type. The value is zero. @@ -188,93 +276,6 @@ class EntityKind(str, Enum): cluster = "Cluster" #: Indicates the entity is a Service Fabric cluster. The value is 8. -class FabricErrorCodes(str, Enum): - - fabric_e_invalid_partition_key = "FABRIC_E_INVALID_PARTITION_KEY" - fabric_e_imagebuilder_validation_error = "FABRIC_E_IMAGEBUILDER_VALIDATION_ERROR" - fabric_e_invalid_address = "FABRIC_E_INVALID_ADDRESS" - fabric_e_application_not_upgrading = "FABRIC_E_APPLICATION_NOT_UPGRADING" - fabric_e_application_upgrade_validation_error = "FABRIC_E_APPLICATION_UPGRADE_VALIDATION_ERROR" - fabric_e_fabric_not_upgrading = "FABRIC_E_FABRIC_NOT_UPGRADING" - fabric_e_fabric_upgrade_validation_error = "FABRIC_E_FABRIC_UPGRADE_VALIDATION_ERROR" - fabric_e_invalid_configuration = "FABRIC_E_INVALID_CONFIGURATION" - fabric_e_invalid_name_uri = "FABRIC_E_INVALID_NAME_URI" - fabric_e_path_too_long = "FABRIC_E_PATH_TOO_LONG" - fabric_e_key_too_large = "FABRIC_E_KEY_TOO_LARGE" - fabric_e_service_affinity_chain_not_supported = "FABRIC_E_SERVICE_AFFINITY_CHAIN_NOT_SUPPORTED" - fabric_e_invalid_atomic_group = "FABRIC_E_INVALID_ATOMIC_GROUP" - fabric_e_value_empty = "FABRIC_E_VALUE_EMPTY" - fabric_e_node_not_found = "FABRIC_E_NODE_NOT_FOUND" - fabric_e_application_type_not_found = "FABRIC_E_APPLICATION_TYPE_NOT_FOUND" - fabric_e_application_not_found = "FABRIC_E_APPLICATION_NOT_FOUND" - fabric_e_service_type_not_found = "FABRIC_E_SERVICE_TYPE_NOT_FOUND" - fabric_e_service_does_not_exist = "FABRIC_E_SERVICE_DOES_NOT_EXIST" - fabric_e_service_type_template_not_found = "FABRIC_E_SERVICE_TYPE_TEMPLATE_NOT_FOUND" - fabric_e_configuration_section_not_found = "FABRIC_E_CONFIGURATION_SECTION_NOT_FOUND" - fabric_e_partition_not_found = "FABRIC_E_PARTITION_NOT_FOUND" - fabric_e_replica_does_not_exist = "FABRIC_E_REPLICA_DOES_NOT_EXIST" - fabric_e_service_group_does_not_exist = "FABRIC_E_SERVICE_GROUP_DOES_NOT_EXIST" - fabric_e_configuration_parameter_not_found = "FABRIC_E_CONFIGURATION_PARAMETER_NOT_FOUND" - fabric_e_directory_not_found = "FABRIC_E_DIRECTORY_NOT_FOUND" - fabric_e_fabric_version_not_found = "FABRIC_E_FABRIC_VERSION_NOT_FOUND" - fabric_e_file_not_found = "FABRIC_E_FILE_NOT_FOUND" - fabric_e_name_does_not_exist = "FABRIC_E_NAME_DOES_NOT_EXIST" - fabric_e_property_does_not_exist = "FABRIC_E_PROPERTY_DOES_NOT_EXIST" - fabric_e_enumeration_completed = "FABRIC_E_ENUMERATION_COMPLETED" - fabric_e_service_manifest_not_found = "FABRIC_E_SERVICE_MANIFEST_NOT_FOUND" - fabric_e_key_not_found = "FABRIC_E_KEY_NOT_FOUND" - fabric_e_health_entity_not_found = "FABRIC_E_HEALTH_ENTITY_NOT_FOUND" - fabric_e_application_type_already_exists = "FABRIC_E_APPLICATION_TYPE_ALREADY_EXISTS" - fabric_e_application_already_exists = "FABRIC_E_APPLICATION_ALREADY_EXISTS" - fabric_e_application_already_in_target_version = "FABRIC_E_APPLICATION_ALREADY_IN_TARGET_VERSION" - fabric_e_application_type_provision_in_progress = "FABRIC_E_APPLICATION_TYPE_PROVISION_IN_PROGRESS" - fabric_e_application_upgrade_in_progress = "FABRIC_E_APPLICATION_UPGRADE_IN_PROGRESS" - fabric_e_service_already_exists = "FABRIC_E_SERVICE_ALREADY_EXISTS" - fabric_e_service_group_already_exists = "FABRIC_E_SERVICE_GROUP_ALREADY_EXISTS" - fabric_e_application_type_in_use = "FABRIC_E_APPLICATION_TYPE_IN_USE" - fabric_e_fabric_already_in_target_version = "FABRIC_E_FABRIC_ALREADY_IN_TARGET_VERSION" - fabric_e_fabric_version_already_exists = "FABRIC_E_FABRIC_VERSION_ALREADY_EXISTS" - fabric_e_fabric_version_in_use = "FABRIC_E_FABRIC_VERSION_IN_USE" - fabric_e_fabric_upgrade_in_progress = "FABRIC_E_FABRIC_UPGRADE_IN_PROGRESS" - fabric_e_name_already_exists = "FABRIC_E_NAME_ALREADY_EXISTS" - fabric_e_name_not_empty = "FABRIC_E_NAME_NOT_EMPTY" - fabric_e_property_check_failed = "FABRIC_E_PROPERTY_CHECK_FAILED" - fabric_e_service_metadata_mismatch = "FABRIC_E_SERVICE_METADATA_MISMATCH" - fabric_e_service_type_mismatch = "FABRIC_E_SERVICE_TYPE_MISMATCH" - fabric_e_health_stale_report = "FABRIC_E_HEALTH_STALE_REPORT" - fabric_e_sequence_number_check_failed = "FABRIC_E_SEQUENCE_NUMBER_CHECK_FAILED" - fabric_e_node_has_not_stopped_yet = "FABRIC_E_NODE_HAS_NOT_STOPPED_YET" - fabric_e_instance_id_mismatch = "FABRIC_E_INSTANCE_ID_MISMATCH" - fabric_e_value_too_large = "FABRIC_E_VALUE_TOO_LARGE" - fabric_e_no_write_quorum = "FABRIC_E_NO_WRITE_QUORUM" - fabric_e_not_primary = "FABRIC_E_NOT_PRIMARY" - fabric_e_not_ready = "FABRIC_E_NOT_READY" - fabric_e_reconfiguration_pending = "FABRIC_E_RECONFIGURATION_PENDING" - fabric_e_service_offline = "FABRIC_E_SERVICE_OFFLINE" - e_abort = "E_ABORT" - fabric_e_communication_error = "FABRIC_E_COMMUNICATION_ERROR" - fabric_e_operation_not_complete = "FABRIC_E_OPERATION_NOT_COMPLETE" - fabric_e_timeout = "FABRIC_E_TIMEOUT" - fabric_e_node_is_up = "FABRIC_E_NODE_IS_UP" - e_fail = "E_FAIL" - fabric_e_backup_is_enabled = "FABRIC_E_BACKUP_IS_ENABLED" - fabric_e_restore_source_target_partition_mismatch = "FABRIC_E_RESTORE_SOURCE_TARGET_PARTITION_MISMATCH" - fabric_e_invalid_for_stateless_services = "FABRIC_E_INVALID_FOR_STATELESS_SERVICES" - fabric_e_backup_not_enabled = "FABRIC_E_BACKUP_NOT_ENABLED" - fabric_e_backup_policy_not_existing = "FABRIC_E_BACKUP_POLICY_NOT_EXISTING" - fabric_e_fault_analysis_service_not_existing = "FABRIC_E_FAULT_ANALYSIS_SERVICE_NOT_EXISTING" - fabric_e_backup_in_progress = "FABRIC_E_BACKUP_IN_PROGRESS" - fabric_e_restore_in_progress = "FABRIC_E_RESTORE_IN_PROGRESS" - fabric_e_backup_policy_already_existing = "FABRIC_E_BACKUP_POLICY_ALREADY_EXISTING" - fabric_e_invalid_service_scaling_policy = "FABRIC_E_INVALID_SERVICE_SCALING_POLICY" - e_invalidarg = "E_INVALIDARG" - fabric_e_single_instance_application_already_exists = "FABRIC_E_SINGLE_INSTANCE_APPLICATION_ALREADY_EXISTS" - fabric_e_single_instance_application_not_found = "FABRIC_E_SINGLE_INSTANCE_APPLICATION_NOT_FOUND" - fabric_e_volume_already_exists = "FABRIC_E_VOLUME_ALREADY_EXISTS" - fabric_e_volume_not_found = "FABRIC_E_VOLUME_NOT_FOUND" - serialization_error = "SerializationError" - - class FabricEventKind(str, Enum): cluster_event = "ClusterEvent" @@ -287,64 +288,58 @@ class FabricEventKind(str, Enum): partition_analysis_event = "PartitionAnalysisEvent" application_created = "ApplicationCreated" application_deleted = "ApplicationDeleted" - application_health_report_created = "ApplicationHealthReportCreated" + application_new_health_report = "ApplicationNewHealthReport" application_health_report_expired = "ApplicationHealthReportExpired" - application_upgrade_complete = "ApplicationUpgradeComplete" - application_upgrade_domain_complete = "ApplicationUpgradeDomainComplete" - application_upgrade_rollback_complete = "ApplicationUpgradeRollbackComplete" - application_upgrade_rollback_start = "ApplicationUpgradeRollbackStart" - application_upgrade_start = "ApplicationUpgradeStart" - deployed_application_health_report_created = "DeployedApplicationHealthReportCreated" + application_upgrade_completed = "ApplicationUpgradeCompleted" + application_upgrade_domain_completed = "ApplicationUpgradeDomainCompleted" + application_upgrade_rollback_completed = "ApplicationUpgradeRollbackCompleted" + application_upgrade_rollback_started = "ApplicationUpgradeRollbackStarted" + application_upgrade_started = "ApplicationUpgradeStarted" + deployed_application_new_health_report = "DeployedApplicationNewHealthReport" deployed_application_health_report_expired = "DeployedApplicationHealthReportExpired" - process_deactivated = "ProcessDeactivated" - container_deactivated = "ContainerDeactivated" + application_process_exited = "ApplicationProcessExited" + application_container_instance_exited = "ApplicationContainerInstanceExited" node_aborted = "NodeAborted" - node_aborting = "NodeAborting" - node_added = "NodeAdded" - node_close = "NodeClose" - node_closing = "NodeClosing" - node_deactivate_complete = "NodeDeactivateComplete" - node_deactivate_start = "NodeDeactivateStart" + node_added_to_cluster = "NodeAddedToCluster" + node_closed = "NodeClosed" + node_deactivate_completed = "NodeDeactivateCompleted" + node_deactivate_started = "NodeDeactivateStarted" node_down = "NodeDown" - node_health_report_created = "NodeHealthReportCreated" + node_new_health_report = "NodeNewHealthReport" node_health_report_expired = "NodeHealthReportExpired" - node_opened_success = "NodeOpenedSuccess" + node_open_succeeded = "NodeOpenSucceeded" node_open_failed = "NodeOpenFailed" - node_opening = "NodeOpening" - node_removed = "NodeRemoved" + node_removed_from_cluster = "NodeRemovedFromCluster" node_up = "NodeUp" - partition_health_report_created = "PartitionHealthReportCreated" + partition_new_health_report = "PartitionNewHealthReport" partition_health_report_expired = "PartitionHealthReportExpired" - partition_reconfiguration_completed = "PartitionReconfigurationCompleted" + partition_reconfigured = "PartitionReconfigured" partition_primary_move_analysis = "PartitionPrimaryMoveAnalysis" service_created = "ServiceCreated" service_deleted = "ServiceDeleted" - service_health_report_created = "ServiceHealthReportCreated" + service_new_health_report = "ServiceNewHealthReport" service_health_report_expired = "ServiceHealthReportExpired" - deployed_service_health_report_created = "DeployedServiceHealthReportCreated" - deployed_service_health_report_expired = "DeployedServiceHealthReportExpired" - stateful_replica_health_report_created = "StatefulReplicaHealthReportCreated" + deployed_service_package_new_health_report = "DeployedServicePackageNewHealthReport" + deployed_service_package_health_report_expired = "DeployedServicePackageHealthReportExpired" + stateful_replica_new_health_report = "StatefulReplicaNewHealthReport" stateful_replica_health_report_expired = "StatefulReplicaHealthReportExpired" - stateless_replica_health_report_created = "StatelessReplicaHealthReportCreated" + stateless_replica_new_health_report = "StatelessReplicaNewHealthReport" stateless_replica_health_report_expired = "StatelessReplicaHealthReportExpired" - cluster_health_report_created = "ClusterHealthReportCreated" + cluster_new_health_report = "ClusterNewHealthReport" cluster_health_report_expired = "ClusterHealthReportExpired" - cluster_upgrade_complete = "ClusterUpgradeComplete" - cluster_upgrade_domain_complete = "ClusterUpgradeDomainComplete" - cluster_upgrade_rollback_complete = "ClusterUpgradeRollbackComplete" - cluster_upgrade_rollback_start = "ClusterUpgradeRollbackStart" - cluster_upgrade_start = "ClusterUpgradeStart" + cluster_upgrade_completed = "ClusterUpgradeCompleted" + cluster_upgrade_domain_completed = "ClusterUpgradeDomainCompleted" + cluster_upgrade_rollback_completed = "ClusterUpgradeRollbackCompleted" + cluster_upgrade_rollback_started = "ClusterUpgradeRollbackStarted" + cluster_upgrade_started = "ClusterUpgradeStarted" chaos_stopped = "ChaosStopped" chaos_started = "ChaosStarted" - chaos_restart_node_fault_completed = "ChaosRestartNodeFaultCompleted" - chaos_restart_code_package_fault_scheduled = "ChaosRestartCodePackageFaultScheduled" - chaos_restart_code_package_fault_completed = "ChaosRestartCodePackageFaultCompleted" - chaos_remove_replica_fault_scheduled = "ChaosRemoveReplicaFaultScheduled" - chaos_remove_replica_fault_completed = "ChaosRemoveReplicaFaultCompleted" - chaos_move_secondary_fault_scheduled = "ChaosMoveSecondaryFaultScheduled" - chaos_move_primary_fault_scheduled = "ChaosMovePrimaryFaultScheduled" - chaos_restart_replica_fault_scheduled = "ChaosRestartReplicaFaultScheduled" - chaos_restart_node_fault_scheduled = "ChaosRestartNodeFaultScheduled" + chaos_code_package_restart_scheduled = "ChaosCodePackageRestartScheduled" + chaos_replica_removal_scheduled = "ChaosReplicaRemovalScheduled" + chaos_partition_secondary_move_scheduled = "ChaosPartitionSecondaryMoveScheduled" + chaos_partition_primary_move_scheduled = "ChaosPartitionPrimaryMoveScheduled" + chaos_replica_restart_scheduled = "ChaosReplicaRestartScheduled" + chaos_node_restart_scheduled = "ChaosNodeRestartScheduled" class HealthEvaluationKind(str, Enum): @@ -731,6 +726,12 @@ class PropertyBatchInfoKind(str, Enum): failed = "Failed" #: The property batch failed. +class RetentionPolicyType(str, Enum): + + basic = "Basic" #: Indicates a basic retention policy type. + invalid = "Invalid" #: Indicates an invalid retention policy type. + + class BackupStorageKind(str, Enum): invalid = "Invalid" #: Indicates an invalid backup storage kind. All Service Fabric enumerations have the invalid type. @@ -880,24 +881,52 @@ class ScalingMechanismKind(str, Enum): add_remove_incremental_named_partition = "AddRemoveIncrementalNamedPartition" #: Indicates a mechanism for scaling where new named partitions are added or removed from a service. The value is 2. -class ServiceResourceStatus(str, Enum): +class ResourceStatus(str, Enum): - unknown = "Unknown" - active = "Active" - upgrading = "Upgrading" - deleting = "Deleting" - creating = "Creating" - failed = "Failed" + unknown = "Unknown" #: Indicates the resource status is unknown. The value is zero. + ready = "Ready" #: Indicates the resource is ready. The value is 1. + upgrading = "Upgrading" #: Indicates the resource is upgrading. The value is 2. + creating = "Creating" #: Indicates the resource is being created. The value is 3. + deleting = "Deleting" #: Indicates the resource is being deletd. The value is 4. + failed = "Failed" #: Indicates the resource is not functional due to persistent failures. See statusDetails property for more details. The value is 5. -class ApplicationResourceStatus(str, Enum): +class SecretKind(str, Enum): - invalid = "Invalid" - ready = "Ready" - upgrading = "Upgrading" - creating = "Creating" - deleting = "Deleting" - failed = "Failed" + inlined_value = "inlinedValue" #: A simple secret resource whose plaintext value is provided by the user. + + +class VolumeProvider(str, Enum): + + sf_azure_file = "SFAzureFile" #: Provides volumes that are backed by Azure Files. + + +class SizeTypes(str, Enum): + + small = "Small" + medium = "Medium" + large = "Large" + + +class ApplicationScopedVolumeKind(str, Enum): + + service_fabric_volume_disk = "ServiceFabricVolumeDisk" #: Provides Service Fabric High Availability Volume Disk + + +class NetworkKind(str, Enum): + + local = "Local" #: Indicates a container network local to a single Service Fabric cluster. The value is 1. + + +class HeaderMatchType(str, Enum): + + exact = "exact" + + +class OperatingSystemType(str, Enum): + + linux = "Linux" #: The required operating system is Linux. + windows = "Windows" #: The required operating system is Windows. class DiagnosticsSinkKind(str, Enum): @@ -906,15 +935,30 @@ class DiagnosticsSinkKind(str, Enum): azure_internal_monitoring_pipeline = "AzureInternalMonitoringPipeline" #: Diagnostics settings for Geneva. -class OperatingSystemTypes(str, Enum): +class AutoScalingMechanismKind(str, Enum): + + add_remove_replica = "AddRemoveReplica" #: Indicates that scaling should be performed by adding or removing replicas. + + +class AutoScalingMetricKind(str, Enum): + + resource = "Resource" #: Indicates that the metric is one of resources, like cpu or memory. + + +class AutoScalingResourceMetricName(str, Enum): + + cpu = "cpu" #: Indicates that the resource is CPU cores. + memory_in_gb = "memoryInGB" #: Indicates that the resource is memory in GB. + + +class AutoScalingTriggerKind(str, Enum): - linux = "Linux" - windows = "Windows" + average_load = "AverageLoad" #: Indicates that scaling should be performed based on average load of all replicas in the service. class NodeStatusFilter(str, Enum): - default = "default" #: This filter value will match all of the nodes excepts the ones with with status as Unknown or Removed. + default = "default" #: This filter value will match all of the nodes excepts the ones with status as Unknown or Removed. all = "all" #: This filter value will match all of the nodes. up = "up" #: This filter value will match nodes that are Up. down = "down" #: This filter value will match nodes that are Down. diff --git a/azure-servicefabric/azure/servicefabric/models/service_health_report_expired_event.py b/azure-servicefabric/azure/servicefabric/models/service_health_report_expired_event.py index b5a9c3ac9a60..708f5214bd24 100644 --- a/azure-servicefabric/azure/servicefabric/models/service_health_report_expired_event.py +++ b/azure-servicefabric/azure/servicefabric/models/service_health_report_expired_event.py @@ -20,6 +20,8 @@ class ServiceHealthReportExpiredEvent(ServiceEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -74,6 +76,7 @@ class ServiceHealthReportExpiredEvent(ServiceEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, diff --git a/azure-servicefabric/azure/servicefabric/models/service_health_report_expired_event_py3.py b/azure-servicefabric/azure/servicefabric/models/service_health_report_expired_event_py3.py index 72911d581f3e..bdde10d7004b 100644 --- a/azure-servicefabric/azure/servicefabric/models/service_health_report_expired_event_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/service_health_report_expired_event_py3.py @@ -20,6 +20,8 @@ class ServiceHealthReportExpiredEvent(ServiceEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -74,6 +76,7 @@ class ServiceHealthReportExpiredEvent(ServiceEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -89,8 +92,8 @@ class ServiceHealthReportExpiredEvent(ServiceEvent): 'source_utc_timestamp': {'key': 'SourceUtcTimestamp', 'type': 'iso-8601'}, } - def __init__(self, *, event_instance_id: str, time_stamp, service_id: str, instance_id: int, source_id: str, property: str, health_state: str, time_to_live_ms: int, sequence_number: int, description: str, remove_when_expired: bool, source_utc_timestamp, has_correlated_events: bool=None, **kwargs) -> None: - super(ServiceHealthReportExpiredEvent, self).__init__(event_instance_id=event_instance_id, time_stamp=time_stamp, has_correlated_events=has_correlated_events, service_id=service_id, **kwargs) + def __init__(self, *, event_instance_id: str, time_stamp, service_id: str, instance_id: int, source_id: str, property: str, health_state: str, time_to_live_ms: int, sequence_number: int, description: str, remove_when_expired: bool, source_utc_timestamp, category: str=None, has_correlated_events: bool=None, **kwargs) -> None: + super(ServiceHealthReportExpiredEvent, self).__init__(event_instance_id=event_instance_id, category=category, time_stamp=time_stamp, has_correlated_events=has_correlated_events, service_id=service_id, **kwargs) self.instance_id = instance_id self.source_id = source_id self.property = property diff --git a/azure-servicefabric/azure/servicefabric/models/service_health_report_created_event.py b/azure-servicefabric/azure/servicefabric/models/service_new_health_report_event.py similarity index 94% rename from azure-servicefabric/azure/servicefabric/models/service_health_report_created_event.py rename to azure-servicefabric/azure/servicefabric/models/service_new_health_report_event.py index 807e50a197cc..138f18a15dcd 100644 --- a/azure-servicefabric/azure/servicefabric/models/service_health_report_created_event.py +++ b/azure-servicefabric/azure/servicefabric/models/service_new_health_report_event.py @@ -12,7 +12,7 @@ from .service_event import ServiceEvent -class ServiceHealthReportCreatedEvent(ServiceEvent): +class ServiceNewHealthReportEvent(ServiceEvent): """Service Health Report Created event. All required parameters must be populated in order to send to Azure. @@ -20,6 +20,8 @@ class ServiceHealthReportCreatedEvent(ServiceEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -74,6 +76,7 @@ class ServiceHealthReportCreatedEvent(ServiceEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -90,7 +93,7 @@ class ServiceHealthReportCreatedEvent(ServiceEvent): } def __init__(self, **kwargs): - super(ServiceHealthReportCreatedEvent, self).__init__(**kwargs) + super(ServiceNewHealthReportEvent, self).__init__(**kwargs) self.instance_id = kwargs.get('instance_id', None) self.source_id = kwargs.get('source_id', None) self.property = kwargs.get('property', None) @@ -100,4 +103,4 @@ def __init__(self, **kwargs): self.description = kwargs.get('description', None) self.remove_when_expired = kwargs.get('remove_when_expired', None) self.source_utc_timestamp = kwargs.get('source_utc_timestamp', None) - self.kind = 'ServiceHealthReportCreated' + self.kind = 'ServiceNewHealthReport' diff --git a/azure-servicefabric/azure/servicefabric/models/service_health_report_created_event_py3.py b/azure-servicefabric/azure/servicefabric/models/service_new_health_report_event_py3.py similarity index 90% rename from azure-servicefabric/azure/servicefabric/models/service_health_report_created_event_py3.py rename to azure-servicefabric/azure/servicefabric/models/service_new_health_report_event_py3.py index bceb16a455fc..b1e2d6bf968f 100644 --- a/azure-servicefabric/azure/servicefabric/models/service_health_report_created_event_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/service_new_health_report_event_py3.py @@ -12,7 +12,7 @@ from .service_event_py3 import ServiceEvent -class ServiceHealthReportCreatedEvent(ServiceEvent): +class ServiceNewHealthReportEvent(ServiceEvent): """Service Health Report Created event. All required parameters must be populated in order to send to Azure. @@ -20,6 +20,8 @@ class ServiceHealthReportCreatedEvent(ServiceEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -74,6 +76,7 @@ class ServiceHealthReportCreatedEvent(ServiceEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -89,8 +92,8 @@ class ServiceHealthReportCreatedEvent(ServiceEvent): 'source_utc_timestamp': {'key': 'SourceUtcTimestamp', 'type': 'iso-8601'}, } - def __init__(self, *, event_instance_id: str, time_stamp, service_id: str, instance_id: int, source_id: str, property: str, health_state: str, time_to_live_ms: int, sequence_number: int, description: str, remove_when_expired: bool, source_utc_timestamp, has_correlated_events: bool=None, **kwargs) -> None: - super(ServiceHealthReportCreatedEvent, self).__init__(event_instance_id=event_instance_id, time_stamp=time_stamp, has_correlated_events=has_correlated_events, service_id=service_id, **kwargs) + def __init__(self, *, event_instance_id: str, time_stamp, service_id: str, instance_id: int, source_id: str, property: str, health_state: str, time_to_live_ms: int, sequence_number: int, description: str, remove_when_expired: bool, source_utc_timestamp, category: str=None, has_correlated_events: bool=None, **kwargs) -> None: + super(ServiceNewHealthReportEvent, self).__init__(event_instance_id=event_instance_id, category=category, time_stamp=time_stamp, has_correlated_events=has_correlated_events, service_id=service_id, **kwargs) self.instance_id = instance_id self.source_id = source_id self.property = property @@ -100,4 +103,4 @@ def __init__(self, *, event_instance_id: str, time_stamp, service_id: str, insta self.description = description self.remove_when_expired = remove_when_expired self.source_utc_timestamp = source_utc_timestamp - self.kind = 'ServiceHealthReportCreated' + self.kind = 'ServiceNewHealthReport' diff --git a/azure-servicefabric/azure/servicefabric/models/service_properties.py b/azure-servicefabric/azure/servicefabric/models/service_properties.py new file mode 100644 index 000000000000..f02c37f6ce98 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/service_properties.py @@ -0,0 +1,69 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ServiceProperties(Model): + """Describes properties of a service resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param description: User readable description of the service. + :type description: str + :param replica_count: The number of replicas of the service to create. + Defaults to 1 if not specified. + :type replica_count: int + :param auto_scaling_policies: Auto scaling policies + :type auto_scaling_policies: + list[~azure.servicefabric.models.AutoScalingPolicy] + :ivar status: Status of the service. Possible values include: 'Unknown', + 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed' + :vartype status: str or ~azure.servicefabric.models.ResourceStatus + :ivar status_details: Gives additional information about the current + status of the service. + :vartype status_details: str + :ivar health_state: Describes the health state of an application resource. + Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' + :vartype health_state: str or ~azure.servicefabric.models.HealthState + :ivar unhealthy_evaluation: When the service's health state is not 'Ok', + this additional details from service fabric Health Manager for the user to + know why the service is marked unhealthy. + :vartype unhealthy_evaluation: str + """ + + _validation = { + 'status': {'readonly': True}, + 'status_details': {'readonly': True}, + 'health_state': {'readonly': True}, + 'unhealthy_evaluation': {'readonly': True}, + } + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'replica_count': {'key': 'replicaCount', 'type': 'int'}, + 'auto_scaling_policies': {'key': 'autoScalingPolicies', 'type': '[AutoScalingPolicy]'}, + 'status': {'key': 'status', 'type': 'str'}, + 'status_details': {'key': 'statusDetails', 'type': 'str'}, + 'health_state': {'key': 'healthState', 'type': 'str'}, + 'unhealthy_evaluation': {'key': 'unhealthyEvaluation', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ServiceProperties, self).__init__(**kwargs) + self.description = kwargs.get('description', None) + self.replica_count = kwargs.get('replica_count', None) + self.auto_scaling_policies = kwargs.get('auto_scaling_policies', None) + self.status = None + self.status_details = None + self.health_state = None + self.unhealthy_evaluation = None diff --git a/azure-servicefabric/azure/servicefabric/models/service_properties_py3.py b/azure-servicefabric/azure/servicefabric/models/service_properties_py3.py new file mode 100644 index 000000000000..6347f98d4fa5 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/service_properties_py3.py @@ -0,0 +1,69 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ServiceProperties(Model): + """Describes properties of a service resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param description: User readable description of the service. + :type description: str + :param replica_count: The number of replicas of the service to create. + Defaults to 1 if not specified. + :type replica_count: int + :param auto_scaling_policies: Auto scaling policies + :type auto_scaling_policies: + list[~azure.servicefabric.models.AutoScalingPolicy] + :ivar status: Status of the service. Possible values include: 'Unknown', + 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed' + :vartype status: str or ~azure.servicefabric.models.ResourceStatus + :ivar status_details: Gives additional information about the current + status of the service. + :vartype status_details: str + :ivar health_state: Describes the health state of an application resource. + Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' + :vartype health_state: str or ~azure.servicefabric.models.HealthState + :ivar unhealthy_evaluation: When the service's health state is not 'Ok', + this additional details from service fabric Health Manager for the user to + know why the service is marked unhealthy. + :vartype unhealthy_evaluation: str + """ + + _validation = { + 'status': {'readonly': True}, + 'status_details': {'readonly': True}, + 'health_state': {'readonly': True}, + 'unhealthy_evaluation': {'readonly': True}, + } + + _attribute_map = { + 'description': {'key': 'description', 'type': 'str'}, + 'replica_count': {'key': 'replicaCount', 'type': 'int'}, + 'auto_scaling_policies': {'key': 'autoScalingPolicies', 'type': '[AutoScalingPolicy]'}, + 'status': {'key': 'status', 'type': 'str'}, + 'status_details': {'key': 'statusDetails', 'type': 'str'}, + 'health_state': {'key': 'healthState', 'type': 'str'}, + 'unhealthy_evaluation': {'key': 'unhealthyEvaluation', 'type': 'str'}, + } + + def __init__(self, *, description: str=None, replica_count: int=None, auto_scaling_policies=None, **kwargs) -> None: + super(ServiceProperties, self).__init__(**kwargs) + self.description = description + self.replica_count = replica_count + self.auto_scaling_policies = auto_scaling_policies + self.status = None + self.status_details = None + self.health_state = None + self.unhealthy_evaluation = None diff --git a/azure-servicefabric/azure/servicefabric/models/service_resource_replica_description.py b/azure-servicefabric/azure/servicefabric/models/service_replica_description.py similarity index 88% rename from azure-servicefabric/azure/servicefabric/models/service_resource_replica_description.py rename to azure-servicefabric/azure/servicefabric/models/service_replica_description.py index 68fd31343c39..5477382dfc83 100644 --- a/azure-servicefabric/azure/servicefabric/models/service_resource_replica_description.py +++ b/azure-servicefabric/azure/servicefabric/models/service_replica_description.py @@ -12,14 +12,14 @@ from .service_replica_properties import ServiceReplicaProperties -class ServiceResourceReplicaDescription(ServiceReplicaProperties): +class ServiceReplicaDescription(ServiceReplicaProperties): """Describes a replica of a service resource. All required parameters must be populated in order to send to Azure. - :param os_type: Required. The Operating system type required by the code - in service. Possible values include: 'Linux', 'Windows' - :type os_type: str or ~azure.servicefabric.models.OperatingSystemTypes + :param os_type: Required. The operation system required by the code in + service. Possible values include: 'Linux', 'Windows' + :type os_type: str or ~azure.servicefabric.models.OperatingSystemType :param code_packages: Required. Describes the set of code packages that forms the service. A code package describes the container and the properties for running it. All the code packages are started together on @@ -50,5 +50,5 @@ class ServiceResourceReplicaDescription(ServiceReplicaProperties): } def __init__(self, **kwargs): - super(ServiceResourceReplicaDescription, self).__init__(**kwargs) + super(ServiceReplicaDescription, self).__init__(**kwargs) self.replica_name = kwargs.get('replica_name', None) diff --git a/azure-servicefabric/azure/servicefabric/models/service_resource_replica_description_py3.py b/azure-servicefabric/azure/servicefabric/models/service_replica_description_py3.py similarity index 85% rename from azure-servicefabric/azure/servicefabric/models/service_resource_replica_description_py3.py rename to azure-servicefabric/azure/servicefabric/models/service_replica_description_py3.py index 4fba0c372e90..578785768ed8 100644 --- a/azure-servicefabric/azure/servicefabric/models/service_resource_replica_description_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/service_replica_description_py3.py @@ -12,14 +12,14 @@ from .service_replica_properties_py3 import ServiceReplicaProperties -class ServiceResourceReplicaDescription(ServiceReplicaProperties): +class ServiceReplicaDescription(ServiceReplicaProperties): """Describes a replica of a service resource. All required parameters must be populated in order to send to Azure. - :param os_type: Required. The Operating system type required by the code - in service. Possible values include: 'Linux', 'Windows' - :type os_type: str or ~azure.servicefabric.models.OperatingSystemTypes + :param os_type: Required. The operation system required by the code in + service. Possible values include: 'Linux', 'Windows' + :type os_type: str or ~azure.servicefabric.models.OperatingSystemType :param code_packages: Required. Describes the set of code packages that forms the service. A code package describes the container and the properties for running it. All the code packages are started together on @@ -50,5 +50,5 @@ class ServiceResourceReplicaDescription(ServiceReplicaProperties): } def __init__(self, *, os_type, code_packages, replica_name: str, network_refs=None, diagnostics=None, **kwargs) -> None: - super(ServiceResourceReplicaDescription, self).__init__(os_type=os_type, code_packages=code_packages, network_refs=network_refs, diagnostics=diagnostics, **kwargs) + super(ServiceReplicaDescription, self).__init__(os_type=os_type, code_packages=code_packages, network_refs=network_refs, diagnostics=diagnostics, **kwargs) self.replica_name = replica_name diff --git a/azure-servicefabric/azure/servicefabric/models/service_replica_properties.py b/azure-servicefabric/azure/servicefabric/models/service_replica_properties.py index 3c1c98849c95..690a2354d1dd 100644 --- a/azure-servicefabric/azure/servicefabric/models/service_replica_properties.py +++ b/azure-servicefabric/azure/servicefabric/models/service_replica_properties.py @@ -17,9 +17,9 @@ class ServiceReplicaProperties(Model): All required parameters must be populated in order to send to Azure. - :param os_type: Required. The Operating system type required by the code - in service. Possible values include: 'Linux', 'Windows' - :type os_type: str or ~azure.servicefabric.models.OperatingSystemTypes + :param os_type: Required. The operation system required by the code in + service. Possible values include: 'Linux', 'Windows' + :type os_type: str or ~azure.servicefabric.models.OperatingSystemType :param code_packages: Required. Describes the set of code packages that forms the service. A code package describes the container and the properties for running it. All the code packages are started together on diff --git a/azure-servicefabric/azure/servicefabric/models/service_replica_properties_py3.py b/azure-servicefabric/azure/servicefabric/models/service_replica_properties_py3.py index 4b9efd620beb..0bbecea68bde 100644 --- a/azure-servicefabric/azure/servicefabric/models/service_replica_properties_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/service_replica_properties_py3.py @@ -17,9 +17,9 @@ class ServiceReplicaProperties(Model): All required parameters must be populated in order to send to Azure. - :param os_type: Required. The Operating system type required by the code - in service. Possible values include: 'Linux', 'Windows' - :type os_type: str or ~azure.servicefabric.models.OperatingSystemTypes + :param os_type: Required. The operation system required by the code in + service. Possible values include: 'Linux', 'Windows' + :type os_type: str or ~azure.servicefabric.models.OperatingSystemType :param code_packages: Required. Describes the set of code packages that forms the service. A code package describes the container and the properties for running it. All the code packages are started together on diff --git a/azure-servicefabric/azure/servicefabric/models/service_resource_description.py b/azure-servicefabric/azure/servicefabric/models/service_resource_description.py index c49731207d34..8d64db0f84ff 100644 --- a/azure-servicefabric/azure/servicefabric/models/service_resource_description.py +++ b/azure-servicefabric/azure/servicefabric/models/service_resource_description.py @@ -13,16 +13,18 @@ class ServiceResourceDescription(Model): - """Describes a service fabric service resource. + """This type describes a service resource. Variables are only populated by the server, and will be ignored when sending a request. All required parameters must be populated in order to send to Azure. - :param os_type: Required. The Operating system type required by the code - in service. Possible values include: 'Linux', 'Windows' - :type os_type: str or ~azure.servicefabric.models.OperatingSystemTypes + :param name: Required. Name of the Service resource. + :type name: str + :param os_type: Required. The operation system required by the code in + service. Possible values include: 'Linux', 'Windows' + :type os_type: str or ~azure.servicefabric.models.OperatingSystemType :param code_packages: Required. Describes the set of code packages that forms the service. A code package describes the container and the properties for running it. All the code packages are started together on @@ -39,45 +41,60 @@ class ServiceResourceDescription(Model): :param replica_count: The number of replicas of the service to create. Defaults to 1 if not specified. :type replica_count: int - :param health_state: The health state of a Service Fabric entity such as - Cluster, Node, Application, Service, Partition, Replica etc. Possible - values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' - :type health_state: str or ~azure.servicefabric.models.HealthState - :ivar status: Represents the status of the service. Possible values - include: 'Unknown', 'Active', 'Upgrading', 'Deleting', 'Creating', - 'Failed' - :vartype status: str or ~azure.servicefabric.models.ServiceResourceStatus - :param name: Required. Service resource name. - :type name: str + :param auto_scaling_policies: Auto scaling policies + :type auto_scaling_policies: + list[~azure.servicefabric.models.AutoScalingPolicy] + :ivar status: Status of the service. Possible values include: 'Unknown', + 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed' + :vartype status: str or ~azure.servicefabric.models.ResourceStatus + :ivar status_details: Gives additional information about the current + status of the service. + :vartype status_details: str + :ivar health_state: Describes the health state of an application resource. + Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' + :vartype health_state: str or ~azure.servicefabric.models.HealthState + :ivar unhealthy_evaluation: When the service's health state is not 'Ok', + this additional details from service fabric Health Manager for the user to + know why the service is marked unhealthy. + :vartype unhealthy_evaluation: str """ _validation = { + 'name': {'required': True}, 'os_type': {'required': True}, 'code_packages': {'required': True}, 'status': {'readonly': True}, - 'name': {'required': True}, + 'status_details': {'readonly': True}, + 'health_state': {'readonly': True}, + 'unhealthy_evaluation': {'readonly': True}, } _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, 'os_type': {'key': 'properties.osType', 'type': 'str'}, 'code_packages': {'key': 'properties.codePackages', 'type': '[ContainerCodePackageProperties]'}, 'network_refs': {'key': 'properties.networkRefs', 'type': '[NetworkRef]'}, 'diagnostics': {'key': 'properties.diagnostics', 'type': 'DiagnosticsRef'}, 'description': {'key': 'properties.description', 'type': 'str'}, 'replica_count': {'key': 'properties.replicaCount', 'type': 'int'}, - 'health_state': {'key': 'properties.healthState', 'type': 'str'}, + 'auto_scaling_policies': {'key': 'properties.autoScalingPolicies', 'type': '[AutoScalingPolicy]'}, 'status': {'key': 'properties.status', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, + 'status_details': {'key': 'properties.statusDetails', 'type': 'str'}, + 'health_state': {'key': 'properties.healthState', 'type': 'str'}, + 'unhealthy_evaluation': {'key': 'properties.unhealthyEvaluation', 'type': 'str'}, } def __init__(self, **kwargs): super(ServiceResourceDescription, self).__init__(**kwargs) + self.name = kwargs.get('name', None) self.os_type = kwargs.get('os_type', None) self.code_packages = kwargs.get('code_packages', None) self.network_refs = kwargs.get('network_refs', None) self.diagnostics = kwargs.get('diagnostics', None) self.description = kwargs.get('description', None) self.replica_count = kwargs.get('replica_count', None) - self.health_state = kwargs.get('health_state', None) + self.auto_scaling_policies = kwargs.get('auto_scaling_policies', None) self.status = None - self.name = kwargs.get('name', None) + self.status_details = None + self.health_state = None + self.unhealthy_evaluation = None diff --git a/azure-servicefabric/azure/servicefabric/models/service_resource_description_py3.py b/azure-servicefabric/azure/servicefabric/models/service_resource_description_py3.py index 9c2a47b04516..5d19458c700c 100644 --- a/azure-servicefabric/azure/servicefabric/models/service_resource_description_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/service_resource_description_py3.py @@ -13,16 +13,18 @@ class ServiceResourceDescription(Model): - """Describes a service fabric service resource. + """This type describes a service resource. Variables are only populated by the server, and will be ignored when sending a request. All required parameters must be populated in order to send to Azure. - :param os_type: Required. The Operating system type required by the code - in service. Possible values include: 'Linux', 'Windows' - :type os_type: str or ~azure.servicefabric.models.OperatingSystemTypes + :param name: Required. Name of the Service resource. + :type name: str + :param os_type: Required. The operation system required by the code in + service. Possible values include: 'Linux', 'Windows' + :type os_type: str or ~azure.servicefabric.models.OperatingSystemType :param code_packages: Required. Describes the set of code packages that forms the service. A code package describes the container and the properties for running it. All the code packages are started together on @@ -39,45 +41,60 @@ class ServiceResourceDescription(Model): :param replica_count: The number of replicas of the service to create. Defaults to 1 if not specified. :type replica_count: int - :param health_state: The health state of a Service Fabric entity such as - Cluster, Node, Application, Service, Partition, Replica etc. Possible - values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' - :type health_state: str or ~azure.servicefabric.models.HealthState - :ivar status: Represents the status of the service. Possible values - include: 'Unknown', 'Active', 'Upgrading', 'Deleting', 'Creating', - 'Failed' - :vartype status: str or ~azure.servicefabric.models.ServiceResourceStatus - :param name: Required. Service resource name. - :type name: str + :param auto_scaling_policies: Auto scaling policies + :type auto_scaling_policies: + list[~azure.servicefabric.models.AutoScalingPolicy] + :ivar status: Status of the service. Possible values include: 'Unknown', + 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed' + :vartype status: str or ~azure.servicefabric.models.ResourceStatus + :ivar status_details: Gives additional information about the current + status of the service. + :vartype status_details: str + :ivar health_state: Describes the health state of an application resource. + Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown' + :vartype health_state: str or ~azure.servicefabric.models.HealthState + :ivar unhealthy_evaluation: When the service's health state is not 'Ok', + this additional details from service fabric Health Manager for the user to + know why the service is marked unhealthy. + :vartype unhealthy_evaluation: str """ _validation = { + 'name': {'required': True}, 'os_type': {'required': True}, 'code_packages': {'required': True}, 'status': {'readonly': True}, - 'name': {'required': True}, + 'status_details': {'readonly': True}, + 'health_state': {'readonly': True}, + 'unhealthy_evaluation': {'readonly': True}, } _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, 'os_type': {'key': 'properties.osType', 'type': 'str'}, 'code_packages': {'key': 'properties.codePackages', 'type': '[ContainerCodePackageProperties]'}, 'network_refs': {'key': 'properties.networkRefs', 'type': '[NetworkRef]'}, 'diagnostics': {'key': 'properties.diagnostics', 'type': 'DiagnosticsRef'}, 'description': {'key': 'properties.description', 'type': 'str'}, 'replica_count': {'key': 'properties.replicaCount', 'type': 'int'}, - 'health_state': {'key': 'properties.healthState', 'type': 'str'}, + 'auto_scaling_policies': {'key': 'properties.autoScalingPolicies', 'type': '[AutoScalingPolicy]'}, 'status': {'key': 'properties.status', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, + 'status_details': {'key': 'properties.statusDetails', 'type': 'str'}, + 'health_state': {'key': 'properties.healthState', 'type': 'str'}, + 'unhealthy_evaluation': {'key': 'properties.unhealthyEvaluation', 'type': 'str'}, } - def __init__(self, *, os_type, code_packages, name: str, network_refs=None, diagnostics=None, description: str=None, replica_count: int=None, health_state=None, **kwargs) -> None: + def __init__(self, *, name: str, os_type, code_packages, network_refs=None, diagnostics=None, description: str=None, replica_count: int=None, auto_scaling_policies=None, **kwargs) -> None: super(ServiceResourceDescription, self).__init__(**kwargs) + self.name = name self.os_type = os_type self.code_packages = code_packages self.network_refs = network_refs self.diagnostics = diagnostics self.description = description self.replica_count = replica_count - self.health_state = health_state + self.auto_scaling_policies = auto_scaling_policies self.status = None - self.name = name + self.status_details = None + self.health_state = None + self.unhealthy_evaluation = None diff --git a/azure-servicefabric/azure/servicefabric/models/service_type_health_policy.py b/azure-servicefabric/azure/servicefabric/models/service_type_health_policy.py index 6bb8bd0e1e45..ba0701690528 100644 --- a/azure-servicefabric/azure/servicefabric/models/service_type_health_policy.py +++ b/azure-servicefabric/azure/servicefabric/models/service_type_health_policy.py @@ -40,9 +40,8 @@ class ServiceTypeHealthPolicy(Model): The computation rounds up to tolerate one failure on small numbers of replicas. Default percentage is zero. Default value: 0 . :type max_percent_unhealthy_replicas_per_partition: int - :param max_percent_unhealthy_services: The maximum maximum allowed - percentage of unhealthy services. Allowed values are Byte values from zero - to 100. + :param max_percent_unhealthy_services: The maximum allowed percentage of + unhealthy services. Allowed values are Byte values from zero to 100. The percentage represents the maximum tolerated percentage of services that can be unhealthy before the application is considered in error. If the percentage is respected but there is at least one unhealthy diff --git a/azure-servicefabric/azure/servicefabric/models/service_type_health_policy_py3.py b/azure-servicefabric/azure/servicefabric/models/service_type_health_policy_py3.py index 11941a78796f..3cd924d68fa7 100644 --- a/azure-servicefabric/azure/servicefabric/models/service_type_health_policy_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/service_type_health_policy_py3.py @@ -40,9 +40,8 @@ class ServiceTypeHealthPolicy(Model): The computation rounds up to tolerate one failure on small numbers of replicas. Default percentage is zero. Default value: 0 . :type max_percent_unhealthy_replicas_per_partition: int - :param max_percent_unhealthy_services: The maximum maximum allowed - percentage of unhealthy services. Allowed values are Byte values from zero - to 100. + :param max_percent_unhealthy_services: The maximum allowed percentage of + unhealthy services. Allowed values are Byte values from zero to 100. The percentage represents the maximum tolerated percentage of services that can be unhealthy before the application is considered in error. If the percentage is respected but there is at least one unhealthy diff --git a/azure-servicefabric/azure/servicefabric/models/setting.py b/azure-servicefabric/azure/servicefabric/models/setting.py index 23fc418e0bec..5e776e08ed1a 100644 --- a/azure-servicefabric/azure/servicefabric/models/setting.py +++ b/azure-servicefabric/azure/servicefabric/models/setting.py @@ -13,7 +13,9 @@ class Setting(Model): - """Describes a setting for the container. + """Describes a setting for the container. The setting file path can be fetched + from environment variable "Fabric_SettingPath". The path for Windows + container is "C:\\secrets". The path for Linux container is "/var/secrets". :param name: The name of the setting. :type name: str diff --git a/azure-servicefabric/azure/servicefabric/models/setting_py3.py b/azure-servicefabric/azure/servicefabric/models/setting_py3.py index 1a042b3d640e..493e42d157a2 100644 --- a/azure-servicefabric/azure/servicefabric/models/setting_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/setting_py3.py @@ -13,7 +13,9 @@ class Setting(Model): - """Describes a setting for the container. + """Describes a setting for the container. The setting file path can be fetched + from environment variable "Fabric_SettingPath". The path for Windows + container is "C:\\secrets". The path for Linux container is "/var/secrets". :param name: The name of the setting. :type name: str diff --git a/azure-servicefabric/azure/servicefabric/models/stateful_replica_health_report_expired_event.py b/azure-servicefabric/azure/servicefabric/models/stateful_replica_health_report_expired_event.py index 878196c567d3..04171729ff71 100644 --- a/azure-servicefabric/azure/servicefabric/models/stateful_replica_health_report_expired_event.py +++ b/azure-servicefabric/azure/servicefabric/models/stateful_replica_health_report_expired_event.py @@ -20,6 +20,8 @@ class StatefulReplicaHealthReportExpiredEvent(ReplicaEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -81,6 +83,7 @@ class StatefulReplicaHealthReportExpiredEvent(ReplicaEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, diff --git a/azure-servicefabric/azure/servicefabric/models/stateful_replica_health_report_expired_event_py3.py b/azure-servicefabric/azure/servicefabric/models/stateful_replica_health_report_expired_event_py3.py index cb99daf0292c..e58806878ec3 100644 --- a/azure-servicefabric/azure/servicefabric/models/stateful_replica_health_report_expired_event_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/stateful_replica_health_report_expired_event_py3.py @@ -20,6 +20,8 @@ class StatefulReplicaHealthReportExpiredEvent(ReplicaEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -81,6 +83,7 @@ class StatefulReplicaHealthReportExpiredEvent(ReplicaEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -97,8 +100,8 @@ class StatefulReplicaHealthReportExpiredEvent(ReplicaEvent): 'source_utc_timestamp': {'key': 'SourceUtcTimestamp', 'type': 'iso-8601'}, } - def __init__(self, *, event_instance_id: str, time_stamp, partition_id: str, replica_id: int, replica_instance_id: int, source_id: str, property: str, health_state: str, time_to_live_ms: int, sequence_number: int, description: str, remove_when_expired: bool, source_utc_timestamp, has_correlated_events: bool=None, **kwargs) -> None: - super(StatefulReplicaHealthReportExpiredEvent, self).__init__(event_instance_id=event_instance_id, time_stamp=time_stamp, has_correlated_events=has_correlated_events, partition_id=partition_id, replica_id=replica_id, **kwargs) + def __init__(self, *, event_instance_id: str, time_stamp, partition_id: str, replica_id: int, replica_instance_id: int, source_id: str, property: str, health_state: str, time_to_live_ms: int, sequence_number: int, description: str, remove_when_expired: bool, source_utc_timestamp, category: str=None, has_correlated_events: bool=None, **kwargs) -> None: + super(StatefulReplicaHealthReportExpiredEvent, self).__init__(event_instance_id=event_instance_id, category=category, time_stamp=time_stamp, has_correlated_events=has_correlated_events, partition_id=partition_id, replica_id=replica_id, **kwargs) self.replica_instance_id = replica_instance_id self.source_id = source_id self.property = property diff --git a/azure-servicefabric/azure/servicefabric/models/stateful_replica_health_report_created_event.py b/azure-servicefabric/azure/servicefabric/models/stateful_replica_new_health_report_event.py similarity index 94% rename from azure-servicefabric/azure/servicefabric/models/stateful_replica_health_report_created_event.py rename to azure-servicefabric/azure/servicefabric/models/stateful_replica_new_health_report_event.py index 501b87d77c5a..ac36335b134c 100644 --- a/azure-servicefabric/azure/servicefabric/models/stateful_replica_health_report_created_event.py +++ b/azure-servicefabric/azure/servicefabric/models/stateful_replica_new_health_report_event.py @@ -12,7 +12,7 @@ from .replica_event import ReplicaEvent -class StatefulReplicaHealthReportCreatedEvent(ReplicaEvent): +class StatefulReplicaNewHealthReportEvent(ReplicaEvent): """Stateful Replica Health Report Created event. All required parameters must be populated in order to send to Azure. @@ -20,6 +20,8 @@ class StatefulReplicaHealthReportCreatedEvent(ReplicaEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -81,6 +83,7 @@ class StatefulReplicaHealthReportCreatedEvent(ReplicaEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -98,7 +101,7 @@ class StatefulReplicaHealthReportCreatedEvent(ReplicaEvent): } def __init__(self, **kwargs): - super(StatefulReplicaHealthReportCreatedEvent, self).__init__(**kwargs) + super(StatefulReplicaNewHealthReportEvent, self).__init__(**kwargs) self.replica_instance_id = kwargs.get('replica_instance_id', None) self.source_id = kwargs.get('source_id', None) self.property = kwargs.get('property', None) @@ -108,4 +111,4 @@ def __init__(self, **kwargs): self.description = kwargs.get('description', None) self.remove_when_expired = kwargs.get('remove_when_expired', None) self.source_utc_timestamp = kwargs.get('source_utc_timestamp', None) - self.kind = 'StatefulReplicaHealthReportCreated' + self.kind = 'StatefulReplicaNewHealthReport' diff --git a/azure-servicefabric/azure/servicefabric/models/stateful_replica_health_report_created_event_py3.py b/azure-servicefabric/azure/servicefabric/models/stateful_replica_new_health_report_event_py3.py similarity index 89% rename from azure-servicefabric/azure/servicefabric/models/stateful_replica_health_report_created_event_py3.py rename to azure-servicefabric/azure/servicefabric/models/stateful_replica_new_health_report_event_py3.py index e0d82f82f201..0ce0b6db0514 100644 --- a/azure-servicefabric/azure/servicefabric/models/stateful_replica_health_report_created_event_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/stateful_replica_new_health_report_event_py3.py @@ -12,7 +12,7 @@ from .replica_event_py3 import ReplicaEvent -class StatefulReplicaHealthReportCreatedEvent(ReplicaEvent): +class StatefulReplicaNewHealthReportEvent(ReplicaEvent): """Stateful Replica Health Report Created event. All required parameters must be populated in order to send to Azure. @@ -20,6 +20,8 @@ class StatefulReplicaHealthReportCreatedEvent(ReplicaEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -81,6 +83,7 @@ class StatefulReplicaHealthReportCreatedEvent(ReplicaEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -97,8 +100,8 @@ class StatefulReplicaHealthReportCreatedEvent(ReplicaEvent): 'source_utc_timestamp': {'key': 'SourceUtcTimestamp', 'type': 'iso-8601'}, } - def __init__(self, *, event_instance_id: str, time_stamp, partition_id: str, replica_id: int, replica_instance_id: int, source_id: str, property: str, health_state: str, time_to_live_ms: int, sequence_number: int, description: str, remove_when_expired: bool, source_utc_timestamp, has_correlated_events: bool=None, **kwargs) -> None: - super(StatefulReplicaHealthReportCreatedEvent, self).__init__(event_instance_id=event_instance_id, time_stamp=time_stamp, has_correlated_events=has_correlated_events, partition_id=partition_id, replica_id=replica_id, **kwargs) + def __init__(self, *, event_instance_id: str, time_stamp, partition_id: str, replica_id: int, replica_instance_id: int, source_id: str, property: str, health_state: str, time_to_live_ms: int, sequence_number: int, description: str, remove_when_expired: bool, source_utc_timestamp, category: str=None, has_correlated_events: bool=None, **kwargs) -> None: + super(StatefulReplicaNewHealthReportEvent, self).__init__(event_instance_id=event_instance_id, category=category, time_stamp=time_stamp, has_correlated_events=has_correlated_events, partition_id=partition_id, replica_id=replica_id, **kwargs) self.replica_instance_id = replica_instance_id self.source_id = source_id self.property = property @@ -108,4 +111,4 @@ def __init__(self, *, event_instance_id: str, time_stamp, partition_id: str, rep self.description = description self.remove_when_expired = remove_when_expired self.source_utc_timestamp = source_utc_timestamp - self.kind = 'StatefulReplicaHealthReportCreated' + self.kind = 'StatefulReplicaNewHealthReport' diff --git a/azure-servicefabric/azure/servicefabric/models/stateful_service_partition_info.py b/azure-servicefabric/azure/servicefabric/models/stateful_service_partition_info.py index 0041d85bdf40..8ee366d7c230 100644 --- a/azure-servicefabric/azure/servicefabric/models/stateful_service_partition_info.py +++ b/azure-servicefabric/azure/servicefabric/models/stateful_service_partition_info.py @@ -41,12 +41,12 @@ class StatefulServicePartitionInfo(ServicePartitionInfo): returns the duration since it has been in that state. This field is using ISO8601 format for specifying the duration. :type last_quorum_loss_duration: timedelta - :param current_configuration_epoch: An Epoch is a configuration number for - the partition as a whole. When the configuration of the replica set - changes, for example when the Primary replica changes, the operations that - are replicated from the new Primary replica are said to be a new Epoch - from the ones which were sent by the old Primary replica. - :type current_configuration_epoch: ~azure.servicefabric.models.Epoch + :param primary_epoch: An Epoch is a configuration number for the partition + as a whole. When the configuration of the replica set changes, for example + when the Primary replica changes, the operations that are replicated from + the new Primary replica are said to be a new Epoch from the ones which + were sent by the old Primary replica. + :type primary_epoch: ~azure.servicefabric.models.Epoch """ _validation = { @@ -61,7 +61,7 @@ class StatefulServicePartitionInfo(ServicePartitionInfo): 'target_replica_set_size': {'key': 'TargetReplicaSetSize', 'type': 'long'}, 'min_replica_set_size': {'key': 'MinReplicaSetSize', 'type': 'long'}, 'last_quorum_loss_duration': {'key': 'LastQuorumLossDuration', 'type': 'duration'}, - 'current_configuration_epoch': {'key': 'CurrentConfigurationEpoch', 'type': 'Epoch'}, + 'primary_epoch': {'key': 'PrimaryEpoch', 'type': 'Epoch'}, } def __init__(self, **kwargs): @@ -69,5 +69,5 @@ def __init__(self, **kwargs): self.target_replica_set_size = kwargs.get('target_replica_set_size', None) self.min_replica_set_size = kwargs.get('min_replica_set_size', None) self.last_quorum_loss_duration = kwargs.get('last_quorum_loss_duration', None) - self.current_configuration_epoch = kwargs.get('current_configuration_epoch', None) + self.primary_epoch = kwargs.get('primary_epoch', None) self.service_kind = 'Stateful' diff --git a/azure-servicefabric/azure/servicefabric/models/stateful_service_partition_info_py3.py b/azure-servicefabric/azure/servicefabric/models/stateful_service_partition_info_py3.py index a22903d89b97..326d0db72e1e 100644 --- a/azure-servicefabric/azure/servicefabric/models/stateful_service_partition_info_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/stateful_service_partition_info_py3.py @@ -41,12 +41,12 @@ class StatefulServicePartitionInfo(ServicePartitionInfo): returns the duration since it has been in that state. This field is using ISO8601 format for specifying the duration. :type last_quorum_loss_duration: timedelta - :param current_configuration_epoch: An Epoch is a configuration number for - the partition as a whole. When the configuration of the replica set - changes, for example when the Primary replica changes, the operations that - are replicated from the new Primary replica are said to be a new Epoch - from the ones which were sent by the old Primary replica. - :type current_configuration_epoch: ~azure.servicefabric.models.Epoch + :param primary_epoch: An Epoch is a configuration number for the partition + as a whole. When the configuration of the replica set changes, for example + when the Primary replica changes, the operations that are replicated from + the new Primary replica are said to be a new Epoch from the ones which + were sent by the old Primary replica. + :type primary_epoch: ~azure.servicefabric.models.Epoch """ _validation = { @@ -61,13 +61,13 @@ class StatefulServicePartitionInfo(ServicePartitionInfo): 'target_replica_set_size': {'key': 'TargetReplicaSetSize', 'type': 'long'}, 'min_replica_set_size': {'key': 'MinReplicaSetSize', 'type': 'long'}, 'last_quorum_loss_duration': {'key': 'LastQuorumLossDuration', 'type': 'duration'}, - 'current_configuration_epoch': {'key': 'CurrentConfigurationEpoch', 'type': 'Epoch'}, + 'primary_epoch': {'key': 'PrimaryEpoch', 'type': 'Epoch'}, } - def __init__(self, *, health_state=None, partition_status=None, partition_information=None, target_replica_set_size: int=None, min_replica_set_size: int=None, last_quorum_loss_duration=None, current_configuration_epoch=None, **kwargs) -> None: + def __init__(self, *, health_state=None, partition_status=None, partition_information=None, target_replica_set_size: int=None, min_replica_set_size: int=None, last_quorum_loss_duration=None, primary_epoch=None, **kwargs) -> None: super(StatefulServicePartitionInfo, self).__init__(health_state=health_state, partition_status=partition_status, partition_information=partition_information, **kwargs) self.target_replica_set_size = target_replica_set_size self.min_replica_set_size = min_replica_set_size self.last_quorum_loss_duration = last_quorum_loss_duration - self.current_configuration_epoch = current_configuration_epoch + self.primary_epoch = primary_epoch self.service_kind = 'Stateful' diff --git a/azure-servicefabric/azure/servicefabric/models/stateless_replica_health_report_expired_event.py b/azure-servicefabric/azure/servicefabric/models/stateless_replica_health_report_expired_event.py index 3645a8dc926e..13e3fc19e88b 100644 --- a/azure-servicefabric/azure/servicefabric/models/stateless_replica_health_report_expired_event.py +++ b/azure-servicefabric/azure/servicefabric/models/stateless_replica_health_report_expired_event.py @@ -20,6 +20,8 @@ class StatelessReplicaHealthReportExpiredEvent(ReplicaEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -78,6 +80,7 @@ class StatelessReplicaHealthReportExpiredEvent(ReplicaEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, diff --git a/azure-servicefabric/azure/servicefabric/models/stateless_replica_health_report_expired_event_py3.py b/azure-servicefabric/azure/servicefabric/models/stateless_replica_health_report_expired_event_py3.py index e8713deedc05..dc0c92632f36 100644 --- a/azure-servicefabric/azure/servicefabric/models/stateless_replica_health_report_expired_event_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/stateless_replica_health_report_expired_event_py3.py @@ -20,6 +20,8 @@ class StatelessReplicaHealthReportExpiredEvent(ReplicaEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -78,6 +80,7 @@ class StatelessReplicaHealthReportExpiredEvent(ReplicaEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -93,8 +96,8 @@ class StatelessReplicaHealthReportExpiredEvent(ReplicaEvent): 'source_utc_timestamp': {'key': 'SourceUtcTimestamp', 'type': 'iso-8601'}, } - def __init__(self, *, event_instance_id: str, time_stamp, partition_id: str, replica_id: int, source_id: str, property: str, health_state: str, time_to_live_ms: int, sequence_number: int, description: str, remove_when_expired: bool, source_utc_timestamp, has_correlated_events: bool=None, **kwargs) -> None: - super(StatelessReplicaHealthReportExpiredEvent, self).__init__(event_instance_id=event_instance_id, time_stamp=time_stamp, has_correlated_events=has_correlated_events, partition_id=partition_id, replica_id=replica_id, **kwargs) + def __init__(self, *, event_instance_id: str, time_stamp, partition_id: str, replica_id: int, source_id: str, property: str, health_state: str, time_to_live_ms: int, sequence_number: int, description: str, remove_when_expired: bool, source_utc_timestamp, category: str=None, has_correlated_events: bool=None, **kwargs) -> None: + super(StatelessReplicaHealthReportExpiredEvent, self).__init__(event_instance_id=event_instance_id, category=category, time_stamp=time_stamp, has_correlated_events=has_correlated_events, partition_id=partition_id, replica_id=replica_id, **kwargs) self.source_id = source_id self.property = property self.health_state = health_state diff --git a/azure-servicefabric/azure/servicefabric/models/stateless_replica_health_report_created_event.py b/azure-servicefabric/azure/servicefabric/models/stateless_replica_new_health_report_event.py similarity index 93% rename from azure-servicefabric/azure/servicefabric/models/stateless_replica_health_report_created_event.py rename to azure-servicefabric/azure/servicefabric/models/stateless_replica_new_health_report_event.py index a63f7c9da3a7..7f2c8f7f488c 100644 --- a/azure-servicefabric/azure/servicefabric/models/stateless_replica_health_report_created_event.py +++ b/azure-servicefabric/azure/servicefabric/models/stateless_replica_new_health_report_event.py @@ -12,7 +12,7 @@ from .replica_event import ReplicaEvent -class StatelessReplicaHealthReportCreatedEvent(ReplicaEvent): +class StatelessReplicaNewHealthReportEvent(ReplicaEvent): """Stateless Replica Health Report Created event. All required parameters must be populated in order to send to Azure. @@ -20,6 +20,8 @@ class StatelessReplicaHealthReportCreatedEvent(ReplicaEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -78,6 +80,7 @@ class StatelessReplicaHealthReportCreatedEvent(ReplicaEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -94,7 +97,7 @@ class StatelessReplicaHealthReportCreatedEvent(ReplicaEvent): } def __init__(self, **kwargs): - super(StatelessReplicaHealthReportCreatedEvent, self).__init__(**kwargs) + super(StatelessReplicaNewHealthReportEvent, self).__init__(**kwargs) self.source_id = kwargs.get('source_id', None) self.property = kwargs.get('property', None) self.health_state = kwargs.get('health_state', None) @@ -103,4 +106,4 @@ def __init__(self, **kwargs): self.description = kwargs.get('description', None) self.remove_when_expired = kwargs.get('remove_when_expired', None) self.source_utc_timestamp = kwargs.get('source_utc_timestamp', None) - self.kind = 'StatelessReplicaHealthReportCreated' + self.kind = 'StatelessReplicaNewHealthReport' diff --git a/azure-servicefabric/azure/servicefabric/models/stateless_replica_health_report_created_event_py3.py b/azure-servicefabric/azure/servicefabric/models/stateless_replica_new_health_report_event_py3.py similarity index 89% rename from azure-servicefabric/azure/servicefabric/models/stateless_replica_health_report_created_event_py3.py rename to azure-servicefabric/azure/servicefabric/models/stateless_replica_new_health_report_event_py3.py index 9f48a59b2b3e..fbaeeb9a0d8e 100644 --- a/azure-servicefabric/azure/servicefabric/models/stateless_replica_health_report_created_event_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/stateless_replica_new_health_report_event_py3.py @@ -12,7 +12,7 @@ from .replica_event_py3 import ReplicaEvent -class StatelessReplicaHealthReportCreatedEvent(ReplicaEvent): +class StatelessReplicaNewHealthReportEvent(ReplicaEvent): """Stateless Replica Health Report Created event. All required parameters must be populated in order to send to Azure. @@ -20,6 +20,8 @@ class StatelessReplicaHealthReportCreatedEvent(ReplicaEvent): :param event_instance_id: Required. The identifier for the FabricEvent instance. :type event_instance_id: str + :param category: The category of event. + :type category: str :param time_stamp: Required. The time event was logged. :type time_stamp: datetime :param has_correlated_events: Shows there is existing related events @@ -78,6 +80,7 @@ class StatelessReplicaHealthReportCreatedEvent(ReplicaEvent): _attribute_map = { 'event_instance_id': {'key': 'EventInstanceId', 'type': 'str'}, + 'category': {'key': 'Category', 'type': 'str'}, 'time_stamp': {'key': 'TimeStamp', 'type': 'iso-8601'}, 'has_correlated_events': {'key': 'HasCorrelatedEvents', 'type': 'bool'}, 'kind': {'key': 'Kind', 'type': 'str'}, @@ -93,8 +96,8 @@ class StatelessReplicaHealthReportCreatedEvent(ReplicaEvent): 'source_utc_timestamp': {'key': 'SourceUtcTimestamp', 'type': 'iso-8601'}, } - def __init__(self, *, event_instance_id: str, time_stamp, partition_id: str, replica_id: int, source_id: str, property: str, health_state: str, time_to_live_ms: int, sequence_number: int, description: str, remove_when_expired: bool, source_utc_timestamp, has_correlated_events: bool=None, **kwargs) -> None: - super(StatelessReplicaHealthReportCreatedEvent, self).__init__(event_instance_id=event_instance_id, time_stamp=time_stamp, has_correlated_events=has_correlated_events, partition_id=partition_id, replica_id=replica_id, **kwargs) + def __init__(self, *, event_instance_id: str, time_stamp, partition_id: str, replica_id: int, source_id: str, property: str, health_state: str, time_to_live_ms: int, sequence_number: int, description: str, remove_when_expired: bool, source_utc_timestamp, category: str=None, has_correlated_events: bool=None, **kwargs) -> None: + super(StatelessReplicaNewHealthReportEvent, self).__init__(event_instance_id=event_instance_id, category=category, time_stamp=time_stamp, has_correlated_events=has_correlated_events, partition_id=partition_id, replica_id=replica_id, **kwargs) self.source_id = source_id self.property = property self.health_state = health_state @@ -103,4 +106,4 @@ def __init__(self, *, event_instance_id: str, time_stamp, partition_id: str, rep self.description = description self.remove_when_expired = remove_when_expired self.source_utc_timestamp = source_utc_timestamp - self.kind = 'StatelessReplicaHealthReportCreated' + self.kind = 'StatelessReplicaNewHealthReport' diff --git a/azure-servicefabric/azure/servicefabric/models/tcp_config.py b/azure-servicefabric/azure/servicefabric/models/tcp_config.py new file mode 100644 index 000000000000..96401697877e --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/tcp_config.py @@ -0,0 +1,46 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class TcpConfig(Model): + """Describes the tcp configuration for external connectivity for this network. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. tcp gateway config name. + :type name: str + :param port: Required. Specifies the port at which the service endpoint + below needs to be exposed. + :type port: int + :param destination: Required. Describes destination endpoint for routing + traffic. + :type destination: ~azure.servicefabric.models.GatewayDestination + """ + + _validation = { + 'name': {'required': True}, + 'port': {'required': True}, + 'destination': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'port': {'key': 'port', 'type': 'int'}, + 'destination': {'key': 'destination', 'type': 'GatewayDestination'}, + } + + def __init__(self, **kwargs): + super(TcpConfig, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.port = kwargs.get('port', None) + self.destination = kwargs.get('destination', None) diff --git a/azure-servicefabric/azure/servicefabric/models/tcp_config_py3.py b/azure-servicefabric/azure/servicefabric/models/tcp_config_py3.py new file mode 100644 index 000000000000..7266484be6c5 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/models/tcp_config_py3.py @@ -0,0 +1,46 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class TcpConfig(Model): + """Describes the tcp configuration for external connectivity for this network. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. tcp gateway config name. + :type name: str + :param port: Required. Specifies the port at which the service endpoint + below needs to be exposed. + :type port: int + :param destination: Required. Describes destination endpoint for routing + traffic. + :type destination: ~azure.servicefabric.models.GatewayDestination + """ + + _validation = { + 'name': {'required': True}, + 'port': {'required': True}, + 'destination': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'port': {'key': 'port', 'type': 'int'}, + 'destination': {'key': 'destination', 'type': 'GatewayDestination'}, + } + + def __init__(self, *, name: str, port: int, destination, **kwargs) -> None: + super(TcpConfig, self).__init__(**kwargs) + self.name = name + self.port = port + self.destination = destination diff --git a/azure-servicefabric/azure/servicefabric/models/container_volume.py b/azure-servicefabric/azure/servicefabric/models/volume_reference.py similarity index 87% rename from azure-servicefabric/azure/servicefabric/models/container_volume.py rename to azure-servicefabric/azure/servicefabric/models/volume_reference.py index 47323174239c..5896c0e87923 100644 --- a/azure-servicefabric/azure/servicefabric/models/container_volume.py +++ b/azure-servicefabric/azure/servicefabric/models/volume_reference.py @@ -12,12 +12,12 @@ from msrest.serialization import Model -class ContainerVolume(Model): - """Describes how a volume is attached to a container. +class VolumeReference(Model): + """Describes a reference to a volume resource. All required parameters must be populated in order to send to Azure. - :param name: Required. Name of the volume. + :param name: Required. Name of the volume being referenced. :type name: str :param read_only: The flag indicating whether the volume is read only. Default is 'false'. @@ -39,7 +39,7 @@ class ContainerVolume(Model): } def __init__(self, **kwargs): - super(ContainerVolume, self).__init__(**kwargs) + super(VolumeReference, self).__init__(**kwargs) self.name = kwargs.get('name', None) self.read_only = kwargs.get('read_only', None) self.destination_path = kwargs.get('destination_path', None) diff --git a/azure-servicefabric/azure/servicefabric/models/container_volume_py3.py b/azure-servicefabric/azure/servicefabric/models/volume_reference_py3.py similarity index 87% rename from azure-servicefabric/azure/servicefabric/models/container_volume_py3.py rename to azure-servicefabric/azure/servicefabric/models/volume_reference_py3.py index 0ff73ba3b086..78adefae1e39 100644 --- a/azure-servicefabric/azure/servicefabric/models/container_volume_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/volume_reference_py3.py @@ -12,12 +12,12 @@ from msrest.serialization import Model -class ContainerVolume(Model): - """Describes how a volume is attached to a container. +class VolumeReference(Model): + """Describes a reference to a volume resource. All required parameters must be populated in order to send to Azure. - :param name: Required. Name of the volume. + :param name: Required. Name of the volume being referenced. :type name: str :param read_only: The flag indicating whether the volume is read only. Default is 'false'. @@ -39,7 +39,7 @@ class ContainerVolume(Model): } def __init__(self, *, name: str, destination_path: str, read_only: bool=None, **kwargs) -> None: - super(ContainerVolume, self).__init__(**kwargs) + super(VolumeReference, self).__init__(**kwargs) self.name = name self.read_only = read_only self.destination_path = destination_path diff --git a/azure-servicefabric/azure/servicefabric/models/volume_resource_description.py b/azure-servicefabric/azure/servicefabric/models/volume_resource_description.py index 1128c2c47240..6d7b4180b2fe 100644 --- a/azure-servicefabric/azure/servicefabric/models/volume_resource_description.py +++ b/azure-servicefabric/azure/servicefabric/models/volume_resource_description.py @@ -13,15 +13,23 @@ class VolumeResourceDescription(Model): - """Describes a service fabric volume resource. + """This type describes a volume resource. Variables are only populated by the server, and will be ignored when sending a request. All required parameters must be populated in order to send to Azure. + :param name: Required. Name of the Volume resource. + :type name: str :param description: User readable description of the volume. :type description: str + :ivar status: Status of the volume. Possible values include: 'Unknown', + 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed' + :vartype status: str or ~azure.servicefabric.models.ResourceStatus + :ivar status_details: Gives additional information about the current + status of the volume. + :vartype status_details: str :ivar provider: Required. Provider of the volume. Default value: "SFAzureFile" . :vartype provider: str @@ -29,26 +37,30 @@ class VolumeResourceDescription(Model): Azure Files file share. :type azure_file_parameters: ~azure.servicefabric.models.VolumeProviderParametersAzureFile - :param name: Required. Volume resource name. - :type name: str """ _validation = { - 'provider': {'required': True, 'constant': True}, 'name': {'required': True}, + 'status': {'readonly': True}, + 'status_details': {'readonly': True}, + 'provider': {'required': True, 'constant': True}, } _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, 'description': {'key': 'properties.description', 'type': 'str'}, + 'status': {'key': 'properties.status', 'type': 'str'}, + 'status_details': {'key': 'properties.statusDetails', 'type': 'str'}, 'provider': {'key': 'properties.provider', 'type': 'str'}, 'azure_file_parameters': {'key': 'properties.azureFileParameters', 'type': 'VolumeProviderParametersAzureFile'}, - 'name': {'key': 'name', 'type': 'str'}, } provider = "SFAzureFile" def __init__(self, **kwargs): super(VolumeResourceDescription, self).__init__(**kwargs) + self.name = kwargs.get('name', None) self.description = kwargs.get('description', None) + self.status = None + self.status_details = None self.azure_file_parameters = kwargs.get('azure_file_parameters', None) - self.name = kwargs.get('name', None) diff --git a/azure-servicefabric/azure/servicefabric/models/volume_resource_description_py3.py b/azure-servicefabric/azure/servicefabric/models/volume_resource_description_py3.py index aa4ef2da3c24..bc275555c697 100644 --- a/azure-servicefabric/azure/servicefabric/models/volume_resource_description_py3.py +++ b/azure-servicefabric/azure/servicefabric/models/volume_resource_description_py3.py @@ -13,15 +13,23 @@ class VolumeResourceDescription(Model): - """Describes a service fabric volume resource. + """This type describes a volume resource. Variables are only populated by the server, and will be ignored when sending a request. All required parameters must be populated in order to send to Azure. + :param name: Required. Name of the Volume resource. + :type name: str :param description: User readable description of the volume. :type description: str + :ivar status: Status of the volume. Possible values include: 'Unknown', + 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed' + :vartype status: str or ~azure.servicefabric.models.ResourceStatus + :ivar status_details: Gives additional information about the current + status of the volume. + :vartype status_details: str :ivar provider: Required. Provider of the volume. Default value: "SFAzureFile" . :vartype provider: str @@ -29,26 +37,30 @@ class VolumeResourceDescription(Model): Azure Files file share. :type azure_file_parameters: ~azure.servicefabric.models.VolumeProviderParametersAzureFile - :param name: Required. Volume resource name. - :type name: str """ _validation = { - 'provider': {'required': True, 'constant': True}, 'name': {'required': True}, + 'status': {'readonly': True}, + 'status_details': {'readonly': True}, + 'provider': {'required': True, 'constant': True}, } _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, 'description': {'key': 'properties.description', 'type': 'str'}, + 'status': {'key': 'properties.status', 'type': 'str'}, + 'status_details': {'key': 'properties.statusDetails', 'type': 'str'}, 'provider': {'key': 'properties.provider', 'type': 'str'}, 'azure_file_parameters': {'key': 'properties.azureFileParameters', 'type': 'VolumeProviderParametersAzureFile'}, - 'name': {'key': 'name', 'type': 'str'}, } provider = "SFAzureFile" def __init__(self, *, name: str, description: str=None, azure_file_parameters=None, **kwargs) -> None: super(VolumeResourceDescription, self).__init__(**kwargs) + self.name = name self.description = description + self.status = None + self.status_details = None self.azure_file_parameters = azure_file_parameters - self.name = name diff --git a/azure-servicefabric/azure/servicefabric/operations/__init__.py b/azure-servicefabric/azure/servicefabric/operations/__init__.py new file mode 100644 index 000000000000..0bef1cbc124c --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/operations/__init__.py @@ -0,0 +1,32 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .mesh_secret_operations import MeshSecretOperations +from .mesh_secret_value_operations import MeshSecretValueOperations +from .mesh_volume_operations import MeshVolumeOperations +from .mesh_network_operations import MeshNetworkOperations +from .mesh_application_operations import MeshApplicationOperations +from .mesh_service_operations import MeshServiceOperations +from .mesh_code_package_operations import MeshCodePackageOperations +from .mesh_service_replica_operations import MeshServiceReplicaOperations +from .mesh_gateway_operations import MeshGatewayOperations + +__all__ = [ + 'MeshSecretOperations', + 'MeshSecretValueOperations', + 'MeshVolumeOperations', + 'MeshNetworkOperations', + 'MeshApplicationOperations', + 'MeshServiceOperations', + 'MeshCodePackageOperations', + 'MeshServiceReplicaOperations', + 'MeshGatewayOperations', +] diff --git a/azure-servicefabric/azure/servicefabric/operations/mesh_application_operations.py b/azure-servicefabric/azure/servicefabric/operations/mesh_application_operations.py new file mode 100644 index 000000000000..1a6da8960b81 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/operations/mesh_application_operations.py @@ -0,0 +1,261 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.pipeline import ClientRawResponse + +from .. import models + + +class MeshApplicationOperations(object): + """MeshApplicationOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: The version of the API. This parameter is required and its value must be '6.4-preview'. Constant value: "6.4-preview". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + + self.config = config + self.api_version = "6.4-preview" + + def create_or_update( + self, application_resource_name, application_resource_description, custom_headers=None, raw=False, **operation_config): + """Creates or updates a Application resource. + + Creates a Application resource with the specified name, description and + properties. If Application resource with the same name exists, then it + is updated with the specified description and properties. + + :param application_resource_name: The identity of the application. + :type application_resource_name: str + :param application_resource_description: Description for creating a + Application resource. + :type application_resource_description: + ~azure.servicefabric.models.ApplicationResourceDescription + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: ApplicationResourceDescription or ClientRawResponse if + raw=true + :rtype: ~azure.servicefabric.models.ApplicationResourceDescription or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`FabricErrorException` + """ + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'applicationResourceName': self._serialize.url("application_resource_name", application_resource_name, 'str', skip_quote=True) + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + body_content = self._serialize.body(application_resource_description, 'ApplicationResourceDescription') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201, 202]: + raise models.FabricErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ApplicationResourceDescription', response) + if response.status_code == 201: + deserialized = self._deserialize('ApplicationResourceDescription', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + create_or_update.metadata = {'url': '/Resources/Applications/{applicationResourceName}'} + + def get( + self, application_resource_name, custom_headers=None, raw=False, **operation_config): + """Gets the Application resource with the given name. + + Gets the information about the Application resource with the given + name. The information include the description and other properties of + the Application. + + :param application_resource_name: The identity of the application. + :type application_resource_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: ApplicationResourceDescription or ClientRawResponse if + raw=true + :rtype: ~azure.servicefabric.models.ApplicationResourceDescription or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`FabricErrorException` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'applicationResourceName': self._serialize.url("application_resource_name", application_resource_name, 'str', skip_quote=True) + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.FabricErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ApplicationResourceDescription', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/Resources/Applications/{applicationResourceName}'} + + def delete( + self, application_resource_name, custom_headers=None, raw=False, **operation_config): + """Deletes the Application resource. + + Deletes the Application resource identified by the name. + + :param application_resource_name: The identity of the application. + :type application_resource_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: None or ClientRawResponse if raw=true + :rtype: None or ~msrest.pipeline.ClientRawResponse + :raises: + :class:`FabricErrorException` + """ + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'applicationResourceName': self._serialize.url("application_resource_name", application_resource_name, 'str', skip_quote=True) + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202, 204]: + raise models.FabricErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + delete.metadata = {'url': '/Resources/Applications/{applicationResourceName}'} + + def list( + self, custom_headers=None, raw=False, **operation_config): + """Lists all the application resources. + + Gets the information about all application resources in a given + resource group. The information include the description and other + properties of the Application. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: PagedApplicationResourceDescriptionList or ClientRawResponse + if raw=true + :rtype: + ~azure.servicefabric.models.PagedApplicationResourceDescriptionList or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`FabricErrorException` + """ + # Construct URL + url = self.list.metadata['url'] + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.FabricErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('PagedApplicationResourceDescriptionList', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + list.metadata = {'url': '/Resources/Applications'} diff --git a/azure-servicefabric/azure/servicefabric/operations/mesh_code_package_operations.py b/azure-servicefabric/azure/servicefabric/operations/mesh_code_package_operations.py new file mode 100644 index 000000000000..ecdba08433c3 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/operations/mesh_code_package_operations.py @@ -0,0 +1,106 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.pipeline import ClientRawResponse + +from .. import models + + +class MeshCodePackageOperations(object): + """MeshCodePackageOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: The version of the API. This parameter is required and its value must be '6.4-preview'. Constant value: "6.4-preview". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + + self.config = config + self.api_version = "6.4-preview" + + def get_container_logs( + self, application_resource_name, service_resource_name, replica_name, code_package_name, tail=None, custom_headers=None, raw=False, **operation_config): + """Gets the logs from the container. + + Gets the logs for the container of the specified code package of the + service replica. + + :param application_resource_name: The identity of the application. + :type application_resource_name: str + :param service_resource_name: The identity of the service. + :type service_resource_name: str + :param replica_name: Service Fabric replica name. + :type replica_name: str + :param code_package_name: The name of code package of the service. + :type code_package_name: str + :param tail: Number of lines to show from the end of the logs. Default + is 100. 'all' to show the complete logs. + :type tail: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: ContainerLogs or ClientRawResponse if raw=true + :rtype: ~azure.servicefabric.models.ContainerLogs or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`FabricErrorException` + """ + # Construct URL + url = self.get_container_logs.metadata['url'] + path_format_arguments = { + 'applicationResourceName': self._serialize.url("application_resource_name", application_resource_name, 'str', skip_quote=True), + 'serviceResourceName': self._serialize.url("service_resource_name", service_resource_name, 'str', skip_quote=True), + 'replicaName': self._serialize.url("replica_name", replica_name, 'str', skip_quote=True), + 'codePackageName': self._serialize.url("code_package_name", code_package_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + if tail is not None: + query_parameters['Tail'] = self._serialize.query("tail", tail, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.FabricErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ContainerLogs', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get_container_logs.metadata = {'url': '/Resources/Applications/{applicationResourceName}/Services/{serviceResourceName}/Replicas/{replicaName}/CodePackages/{codePackageName}/Logs'} diff --git a/azure-servicefabric/azure/servicefabric/operations/mesh_gateway_operations.py b/azure-servicefabric/azure/servicefabric/operations/mesh_gateway_operations.py new file mode 100644 index 000000000000..9c56b705322f --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/operations/mesh_gateway_operations.py @@ -0,0 +1,260 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.pipeline import ClientRawResponse + +from .. import models + + +class MeshGatewayOperations(object): + """MeshGatewayOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: The version of the API. This parameter is required and its value must be '6.4-preview'. Constant value: "6.4-preview". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + + self.config = config + self.api_version = "6.4-preview" + + def create_or_update( + self, gateway_resource_name, gateway_resource_description, custom_headers=None, raw=False, **operation_config): + """Creates or updates a Gateway resource. + + Creates a Gateway resource with the specified name, description and + properties. If Gateway resource with the same name exists, then it is + updated with the specified description and properties. Use Gateway + resource to provide public connectivity to application services. + + :param gateway_resource_name: The identity of the gateway. + :type gateway_resource_name: str + :param gateway_resource_description: Description for creating a + Gateway resource. + :type gateway_resource_description: + ~azure.servicefabric.models.GatewayResourceDescription + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: GatewayResourceDescription or ClientRawResponse if raw=true + :rtype: ~azure.servicefabric.models.GatewayResourceDescription or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`FabricErrorException` + """ + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'gatewayResourceName': self._serialize.url("gateway_resource_name", gateway_resource_name, 'str', skip_quote=True) + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + body_content = self._serialize.body(gateway_resource_description, 'GatewayResourceDescription') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201, 202]: + raise models.FabricErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('GatewayResourceDescription', response) + if response.status_code == 201: + deserialized = self._deserialize('GatewayResourceDescription', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + create_or_update.metadata = {'url': '/Resources/Gateways/{gatewayResourceName}'} + + def get( + self, gateway_resource_name, custom_headers=None, raw=False, **operation_config): + """Gets the Gateway resource with the given name. + + Gets the information about the Gateway resource with the given name. + The information include the description and other properties of the + Gateway. + + :param gateway_resource_name: The identity of the gateway. + :type gateway_resource_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: GatewayResourceDescription or ClientRawResponse if raw=true + :rtype: ~azure.servicefabric.models.GatewayResourceDescription or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`FabricErrorException` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'gatewayResourceName': self._serialize.url("gateway_resource_name", gateway_resource_name, 'str', skip_quote=True) + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.FabricErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('GatewayResourceDescription', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/Resources/Gateways/{gatewayResourceName}'} + + def delete( + self, gateway_resource_name, custom_headers=None, raw=False, **operation_config): + """Deletes the Gateway resource. + + Deletes the Gateway resource identified by the name. + + :param gateway_resource_name: The identity of the gateway. + :type gateway_resource_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: None or ClientRawResponse if raw=true + :rtype: None or ~msrest.pipeline.ClientRawResponse + :raises: + :class:`FabricErrorException` + """ + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'gatewayResourceName': self._serialize.url("gateway_resource_name", gateway_resource_name, 'str', skip_quote=True) + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202, 204]: + raise models.FabricErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + delete.metadata = {'url': '/Resources/Gateways/{gatewayResourceName}'} + + def list( + self, custom_headers=None, raw=False, **operation_config): + """Lists all the gateway resources. + + Gets the information about all gateway resources in a given resource + group. The information include the description and other properties of + the Gateway. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: PagedGatewayResourceDescriptionList or ClientRawResponse if + raw=true + :rtype: + ~azure.servicefabric.models.PagedGatewayResourceDescriptionList or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`FabricErrorException` + """ + # Construct URL + url = self.list.metadata['url'] + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.FabricErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('PagedGatewayResourceDescriptionList', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + list.metadata = {'url': '/Resources/Gateways'} diff --git a/azure-servicefabric/azure/servicefabric/operations/mesh_network_operations.py b/azure-servicefabric/azure/servicefabric/operations/mesh_network_operations.py new file mode 100644 index 000000000000..5940acbaddfd --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/operations/mesh_network_operations.py @@ -0,0 +1,263 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.pipeline import ClientRawResponse + +from .. import models + + +class MeshNetworkOperations(object): + """MeshNetworkOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: The version of the API. This parameter is required and its value must be '6.4-preview'. Constant value: "6.4-preview". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + + self.config = config + self.api_version = "6.4-preview" + + def create_or_update( + self, network_resource_name, name, properties, custom_headers=None, raw=False, **operation_config): + """Creates or updates a Network resource. + + Creates a Network resource with the specified name, description and + properties. If Network resource with the same name exists, then it is + updated with the specified description and properties. Network resource + provides connectivity between application services. + + :param network_resource_name: The identity of the network. + :type network_resource_name: str + :param name: Name of the Network resource. + :type name: str + :param properties: Describes properties of a network resource. + :type properties: + ~azure.servicefabric.models.NetworkResourceProperties + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: NetworkResourceDescription or ClientRawResponse if raw=true + :rtype: ~azure.servicefabric.models.NetworkResourceDescription or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`FabricErrorException` + """ + network_resource_description = models.NetworkResourceDescription(name=name, properties=properties) + + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'networkResourceName': self._serialize.url("network_resource_name", network_resource_name, 'str', skip_quote=True) + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + body_content = self._serialize.body(network_resource_description, 'NetworkResourceDescription') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201, 202]: + raise models.FabricErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('NetworkResourceDescription', response) + if response.status_code == 201: + deserialized = self._deserialize('NetworkResourceDescription', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + create_or_update.metadata = {'url': '/Resources/Networks/{networkResourceName}'} + + def get( + self, network_resource_name, custom_headers=None, raw=False, **operation_config): + """Gets the Network resource with the given name. + + Gets the information about the Network resource with the given name. + The information include the description and other properties of the + Network. + + :param network_resource_name: The identity of the network. + :type network_resource_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: NetworkResourceDescription or ClientRawResponse if raw=true + :rtype: ~azure.servicefabric.models.NetworkResourceDescription or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`FabricErrorException` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'networkResourceName': self._serialize.url("network_resource_name", network_resource_name, 'str', skip_quote=True) + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.FabricErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('NetworkResourceDescription', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/Resources/Networks/{networkResourceName}'} + + def delete( + self, network_resource_name, custom_headers=None, raw=False, **operation_config): + """Deletes the Network resource. + + Deletes the Network resource identified by the name. + + :param network_resource_name: The identity of the network. + :type network_resource_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: None or ClientRawResponse if raw=true + :rtype: None or ~msrest.pipeline.ClientRawResponse + :raises: + :class:`FabricErrorException` + """ + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'networkResourceName': self._serialize.url("network_resource_name", network_resource_name, 'str', skip_quote=True) + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202, 204]: + raise models.FabricErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + delete.metadata = {'url': '/Resources/Networks/{networkResourceName}'} + + def list( + self, custom_headers=None, raw=False, **operation_config): + """Lists all the network resources. + + Gets the information about all network resources in a given resource + group. The information include the description and other properties of + the Network. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: PagedNetworkResourceDescriptionList or ClientRawResponse if + raw=true + :rtype: + ~azure.servicefabric.models.PagedNetworkResourceDescriptionList or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`FabricErrorException` + """ + # Construct URL + url = self.list.metadata['url'] + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.FabricErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('PagedNetworkResourceDescriptionList', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + list.metadata = {'url': '/Resources/Networks'} diff --git a/azure-servicefabric/azure/servicefabric/operations/mesh_secret_operations.py b/azure-servicefabric/azure/servicefabric/operations/mesh_secret_operations.py new file mode 100644 index 000000000000..9f737b771991 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/operations/mesh_secret_operations.py @@ -0,0 +1,260 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.pipeline import ClientRawResponse + +from .. import models + + +class MeshSecretOperations(object): + """MeshSecretOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: The version of the API. This parameter is required and its value must be '6.4-preview'. Constant value: "6.4-preview". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + + self.config = config + self.api_version = "6.4-preview" + + def create_or_update( + self, secret_resource_name, properties, name, custom_headers=None, raw=False, **operation_config): + """Creates or updates a Secret resource. + + Creates a Secret resource with the specified name, description and + properties. If Secret resource with the same name exists, then it is + updated with the specified description and properties. Once created, + the kind and contentType of a secret resource cannot be updated. + + :param secret_resource_name: The name of the secret resource. + :type secret_resource_name: str + :param properties: Describes the properties of a secret resource. + :type properties: ~azure.servicefabric.models.SecretResourceProperties + :param name: Name of the Secret resource. + :type name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: SecretResourceDescription or ClientRawResponse if raw=true + :rtype: ~azure.servicefabric.models.SecretResourceDescription or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`FabricErrorException` + """ + secret_resource_description = models.SecretResourceDescription(properties=properties, name=name) + + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'secretResourceName': self._serialize.url("secret_resource_name", secret_resource_name, 'str', skip_quote=True) + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + body_content = self._serialize.body(secret_resource_description, 'SecretResourceDescription') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201, 202]: + raise models.FabricErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('SecretResourceDescription', response) + if response.status_code == 201: + deserialized = self._deserialize('SecretResourceDescription', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + create_or_update.metadata = {'url': '/Resources/Secrets/{secretResourceName}'} + + def get( + self, secret_resource_name, custom_headers=None, raw=False, **operation_config): + """Gets the Secret resource with the given name. + + Gets the information about the Secret resource with the given name. The + information include the description and other properties of the Secret. + + :param secret_resource_name: The name of the secret resource. + :type secret_resource_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: SecretResourceDescription or ClientRawResponse if raw=true + :rtype: ~azure.servicefabric.models.SecretResourceDescription or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`FabricErrorException` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'secretResourceName': self._serialize.url("secret_resource_name", secret_resource_name, 'str', skip_quote=True) + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.FabricErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('SecretResourceDescription', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/Resources/Secrets/{secretResourceName}'} + + def delete( + self, secret_resource_name, custom_headers=None, raw=False, **operation_config): + """Deletes the Secret resource. + + Deletes the specified Secret resource and all of its named values. + + :param secret_resource_name: The name of the secret resource. + :type secret_resource_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: None or ClientRawResponse if raw=true + :rtype: None or ~msrest.pipeline.ClientRawResponse + :raises: + :class:`FabricErrorException` + """ + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'secretResourceName': self._serialize.url("secret_resource_name", secret_resource_name, 'str', skip_quote=True) + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202, 204]: + raise models.FabricErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + delete.metadata = {'url': '/Resources/Secrets/{secretResourceName}'} + + def list( + self, custom_headers=None, raw=False, **operation_config): + """Lists all the secret resources. + + Gets the information about all secret resources in a given resource + group. The information include the description and other properties of + the Secret. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: PagedSecretResourceDescriptionList or ClientRawResponse if + raw=true + :rtype: ~azure.servicefabric.models.PagedSecretResourceDescriptionList + or ~msrest.pipeline.ClientRawResponse + :raises: + :class:`FabricErrorException` + """ + # Construct URL + url = self.list.metadata['url'] + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.FabricErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('PagedSecretResourceDescriptionList', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + list.metadata = {'url': '/Resources/Secrets'} diff --git a/azure-servicefabric/azure/servicefabric/operations/mesh_secret_value_operations.py b/azure-servicefabric/azure/servicefabric/operations/mesh_secret_value_operations.py new file mode 100644 index 000000000000..2f767822d0d3 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/operations/mesh_secret_value_operations.py @@ -0,0 +1,343 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.pipeline import ClientRawResponse + +from .. import models + + +class MeshSecretValueOperations(object): + """MeshSecretValueOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: The version of the API. This parameter is required and its value must be '6.4-preview'. Constant value: "6.4-preview". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + + self.config = config + self.api_version = "6.4-preview" + + def add_value( + self, secret_resource_name, secret_value_resource_name, name, value=None, custom_headers=None, raw=False, **operation_config): + """Adds the specified value as a new version of the specified secret + resource. + + Creates a new value of the specified secret resource. The name of the + value is typically the version identifier. Once created the value + cannot be changed. + + :param secret_resource_name: The name of the secret resource. + :type secret_resource_name: str + :param secret_value_resource_name: The name of the secret resource + value which is typically the version identifier for the value. + :type secret_value_resource_name: str + :param name: Version identifier of the secret value. + :type name: str + :param value: The actual value of the secret. + :type value: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: SecretValueResourceDescription or ClientRawResponse if + raw=true + :rtype: ~azure.servicefabric.models.SecretValueResourceDescription or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`FabricErrorException` + """ + secret_value_resource_description = models.SecretValueResourceDescription(name=name, value=value) + + # Construct URL + url = self.add_value.metadata['url'] + path_format_arguments = { + 'secretResourceName': self._serialize.url("secret_resource_name", secret_resource_name, 'str', skip_quote=True), + 'secretValueResourceName': self._serialize.url("secret_value_resource_name", secret_value_resource_name, 'str', skip_quote=True) + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + body_content = self._serialize.body(secret_value_resource_description, 'SecretValueResourceDescription') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201, 202]: + raise models.FabricErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('SecretValueResourceDescription', response) + if response.status_code == 201: + deserialized = self._deserialize('SecretValueResourceDescription', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + add_value.metadata = {'url': '/Resources/Secrets/{secretResourceName}/values/{secretValueResourceName}'} + + def get( + self, secret_resource_name, secret_value_resource_name, custom_headers=None, raw=False, **operation_config): + """Gets the specified secret value resource. + + Get the information about the specified named secret value resources. + The information does not include the actual value of the secret. + + :param secret_resource_name: The name of the secret resource. + :type secret_resource_name: str + :param secret_value_resource_name: The name of the secret resource + value which is typically the version identifier for the value. + :type secret_value_resource_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: SecretValueResourceDescription or ClientRawResponse if + raw=true + :rtype: ~azure.servicefabric.models.SecretValueResourceDescription or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`FabricErrorException` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'secretResourceName': self._serialize.url("secret_resource_name", secret_resource_name, 'str', skip_quote=True), + 'secretValueResourceName': self._serialize.url("secret_value_resource_name", secret_value_resource_name, 'str', skip_quote=True) + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.FabricErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('SecretValueResourceDescription', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/Resources/Secrets/{secretResourceName}/values/{secretValueResourceName}'} + + def delete( + self, secret_resource_name, secret_value_resource_name, custom_headers=None, raw=False, **operation_config): + """Deletes the specified value of the named secret resource. + + Deletes the secret value resource identified by the name. The name of + the resource is typically the version associated with that value. + Deletion will fail if the specified value is in use. + + :param secret_resource_name: The name of the secret resource. + :type secret_resource_name: str + :param secret_value_resource_name: The name of the secret resource + value which is typically the version identifier for the value. + :type secret_value_resource_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: None or ClientRawResponse if raw=true + :rtype: None or ~msrest.pipeline.ClientRawResponse + :raises: + :class:`FabricErrorException` + """ + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'secretResourceName': self._serialize.url("secret_resource_name", secret_resource_name, 'str', skip_quote=True), + 'secretValueResourceName': self._serialize.url("secret_value_resource_name", secret_value_resource_name, 'str', skip_quote=True) + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202, 204]: + raise models.FabricErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + delete.metadata = {'url': '/Resources/Secrets/{secretResourceName}/values/{secretValueResourceName}'} + + def list( + self, secret_resource_name, custom_headers=None, raw=False, **operation_config): + """List names of all values of the the specified secret resource. + + Gets information about all secret value resources of the specified + secret resource. The information includes the names of the secret value + resources, but not the actual values. + + :param secret_resource_name: The name of the secret resource. + :type secret_resource_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: PagedSecretValueResourceDescriptionList or ClientRawResponse + if raw=true + :rtype: + ~azure.servicefabric.models.PagedSecretValueResourceDescriptionList or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`FabricErrorException` + """ + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'secretResourceName': self._serialize.url("secret_resource_name", secret_resource_name, 'str', skip_quote=True) + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.FabricErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('PagedSecretValueResourceDescriptionList', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + list.metadata = {'url': '/Resources/Secrets/{secretResourceName}/values'} + + def show( + self, secret_resource_name, secret_value_resource_name, custom_headers=None, raw=False, **operation_config): + """Lists the specified value of the secret resource. + + Lists the decrypted value of the specified named value of the secret + resource. This is a privileged operation. + + :param secret_resource_name: The name of the secret resource. + :type secret_resource_name: str + :param secret_value_resource_name: The name of the secret resource + value which is typically the version identifier for the value. + :type secret_value_resource_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: SecretValue or ClientRawResponse if raw=true + :rtype: ~azure.servicefabric.models.SecretValue or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`FabricErrorException` + """ + # Construct URL + url = self.show.metadata['url'] + path_format_arguments = { + 'secretResourceName': self._serialize.url("secret_resource_name", secret_resource_name, 'str', skip_quote=True), + 'secretValueResourceName': self._serialize.url("secret_value_resource_name", secret_value_resource_name, 'str', skip_quote=True) + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.FabricErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('SecretValue', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + show.metadata = {'url': '/Resources/Secrets/{secretResourceName}/values/{secretValueResourceName}/list_value'} diff --git a/azure-servicefabric/azure/servicefabric/operations/mesh_service_operations.py b/azure-servicefabric/azure/servicefabric/operations/mesh_service_operations.py new file mode 100644 index 000000000000..fc1e8655dfdd --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/operations/mesh_service_operations.py @@ -0,0 +1,155 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.pipeline import ClientRawResponse + +from .. import models + + +class MeshServiceOperations(object): + """MeshServiceOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: The version of the API. This parameter is required and its value must be '6.4-preview'. Constant value: "6.4-preview". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + + self.config = config + self.api_version = "6.4-preview" + + def get( + self, application_resource_name, service_resource_name, custom_headers=None, raw=False, **operation_config): + """Gets the Service resource with the given name. + + Gets the information about the Service resource with the given name. + The information include the description and other properties of the + Service. + + :param application_resource_name: The identity of the application. + :type application_resource_name: str + :param service_resource_name: The identity of the service. + :type service_resource_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: ServiceResourceDescription or ClientRawResponse if raw=true + :rtype: ~azure.servicefabric.models.ServiceResourceDescription or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`FabricErrorException` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'applicationResourceName': self._serialize.url("application_resource_name", application_resource_name, 'str', skip_quote=True), + 'serviceResourceName': self._serialize.url("service_resource_name", service_resource_name, 'str', skip_quote=True) + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.FabricErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ServiceResourceDescription', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/Resources/Applications/{applicationResourceName}/Services/{serviceResourceName}'} + + def list( + self, application_resource_name, custom_headers=None, raw=False, **operation_config): + """Lists all the service resources. + + Gets the information about all services of an application resource. The + information include the description and other properties of the + Service. + + :param application_resource_name: The identity of the application. + :type application_resource_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: PagedServiceResourceDescriptionList or ClientRawResponse if + raw=true + :rtype: + ~azure.servicefabric.models.PagedServiceResourceDescriptionList or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`FabricErrorException` + """ + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'applicationResourceName': self._serialize.url("application_resource_name", application_resource_name, 'str', skip_quote=True) + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.FabricErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('PagedServiceResourceDescriptionList', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + list.metadata = {'url': '/Resources/Applications/{applicationResourceName}/Services'} diff --git a/azure-servicefabric/azure/servicefabric/operations/mesh_service_replica_operations.py b/azure-servicefabric/azure/servicefabric/operations/mesh_service_replica_operations.py new file mode 100644 index 000000000000..234aa14b9571 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/operations/mesh_service_replica_operations.py @@ -0,0 +1,159 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.pipeline import ClientRawResponse + +from .. import models + + +class MeshServiceReplicaOperations(object): + """MeshServiceReplicaOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: The version of the API. This parameter is required and its value must be '6.4-preview'. Constant value: "6.4-preview". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + + self.config = config + self.api_version = "6.4-preview" + + def get( + self, application_resource_name, service_resource_name, replica_name, custom_headers=None, raw=False, **operation_config): + """Gets the given replica of the service of an application. + + Gets the information about the service replica with the given name. The + information include the description and other properties of the service + replica. + + :param application_resource_name: The identity of the application. + :type application_resource_name: str + :param service_resource_name: The identity of the service. + :type service_resource_name: str + :param replica_name: Service Fabric replica name. + :type replica_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: ServiceReplicaDescription or ClientRawResponse if raw=true + :rtype: ~azure.servicefabric.models.ServiceReplicaDescription or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`FabricErrorException` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'applicationResourceName': self._serialize.url("application_resource_name", application_resource_name, 'str', skip_quote=True), + 'serviceResourceName': self._serialize.url("service_resource_name", service_resource_name, 'str', skip_quote=True), + 'replicaName': self._serialize.url("replica_name", replica_name, 'str', skip_quote=True) + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.FabricErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ServiceReplicaDescription', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/Resources/Applications/{applicationResourceName}/Services/{serviceResourceName}/Replicas/{replicaName}'} + + def list( + self, application_resource_name, service_resource_name, custom_headers=None, raw=False, **operation_config): + """Lists all the replicas of a service. + + Gets the information about all replicas of a service. The information + include the description and other properties of the service replica. + + :param application_resource_name: The identity of the application. + :type application_resource_name: str + :param service_resource_name: The identity of the service. + :type service_resource_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: PagedServiceReplicaDescriptionList or ClientRawResponse if + raw=true + :rtype: ~azure.servicefabric.models.PagedServiceReplicaDescriptionList + or ~msrest.pipeline.ClientRawResponse + :raises: + :class:`FabricErrorException` + """ + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'applicationResourceName': self._serialize.url("application_resource_name", application_resource_name, 'str', skip_quote=True), + 'serviceResourceName': self._serialize.url("service_resource_name", service_resource_name, 'str', skip_quote=True) + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.FabricErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('PagedServiceReplicaDescriptionList', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + list.metadata = {'url': '/Resources/Applications/{applicationResourceName}/Services/{serviceResourceName}/Replicas'} diff --git a/azure-servicefabric/azure/servicefabric/operations/mesh_volume_operations.py b/azure-servicefabric/azure/servicefabric/operations/mesh_volume_operations.py new file mode 100644 index 000000000000..f8b241d3a017 --- /dev/null +++ b/azure-servicefabric/azure/servicefabric/operations/mesh_volume_operations.py @@ -0,0 +1,257 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.pipeline import ClientRawResponse + +from .. import models + + +class MeshVolumeOperations(object): + """MeshVolumeOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: The version of the API. This parameter is required and its value must be '6.4-preview'. Constant value: "6.4-preview". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + + self.config = config + self.api_version = "6.4-preview" + + def create_or_update( + self, volume_resource_name, volume_resource_description, custom_headers=None, raw=False, **operation_config): + """Creates or updates a Volume resource. + + Creates a Volume resource with the specified name, description and + properties. If Volume resource with the same name exists, then it is + updated with the specified description and properties. + + :param volume_resource_name: The identity of the volume. + :type volume_resource_name: str + :param volume_resource_description: Description for creating a Volume + resource. + :type volume_resource_description: + ~azure.servicefabric.models.VolumeResourceDescription + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: VolumeResourceDescription or ClientRawResponse if raw=true + :rtype: ~azure.servicefabric.models.VolumeResourceDescription or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`FabricErrorException` + """ + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'volumeResourceName': self._serialize.url("volume_resource_name", volume_resource_name, 'str', skip_quote=True) + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + body_content = self._serialize.body(volume_resource_description, 'VolumeResourceDescription') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201, 202]: + raise models.FabricErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('VolumeResourceDescription', response) + if response.status_code == 201: + deserialized = self._deserialize('VolumeResourceDescription', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + create_or_update.metadata = {'url': '/Resources/Volumes/{volumeResourceName}'} + + def get( + self, volume_resource_name, custom_headers=None, raw=False, **operation_config): + """Gets the Volume resource with the given name. + + Gets the information about the Volume resource with the given name. The + information include the description and other properties of the Volume. + + :param volume_resource_name: The identity of the volume. + :type volume_resource_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: VolumeResourceDescription or ClientRawResponse if raw=true + :rtype: ~azure.servicefabric.models.VolumeResourceDescription or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`FabricErrorException` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'volumeResourceName': self._serialize.url("volume_resource_name", volume_resource_name, 'str', skip_quote=True) + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.FabricErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('VolumeResourceDescription', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/Resources/Volumes/{volumeResourceName}'} + + def delete( + self, volume_resource_name, custom_headers=None, raw=False, **operation_config): + """Deletes the Volume resource. + + Deletes the Volume resource identified by the name. + + :param volume_resource_name: The identity of the volume. + :type volume_resource_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: None or ClientRawResponse if raw=true + :rtype: None or ~msrest.pipeline.ClientRawResponse + :raises: + :class:`FabricErrorException` + """ + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'volumeResourceName': self._serialize.url("volume_resource_name", volume_resource_name, 'str', skip_quote=True) + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202, 204]: + raise models.FabricErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + delete.metadata = {'url': '/Resources/Volumes/{volumeResourceName}'} + + def list( + self, custom_headers=None, raw=False, **operation_config): + """Lists all the volume resources. + + Gets the information about all volume resources in a given resource + group. The information include the description and other properties of + the Volume. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: PagedVolumeResourceDescriptionList or ClientRawResponse if + raw=true + :rtype: ~azure.servicefabric.models.PagedVolumeResourceDescriptionList + or ~msrest.pipeline.ClientRawResponse + :raises: + :class:`FabricErrorException` + """ + # Construct URL + url = self.list.metadata['url'] + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.FabricErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('PagedVolumeResourceDescriptionList', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + list.metadata = {'url': '/Resources/Volumes'} diff --git a/azure-servicefabric/azure/servicefabric/service_fabric_client_ap_is.py b/azure-servicefabric/azure/servicefabric/service_fabric_client_ap_is.py index 224683435b48..72ad83a9d3a7 100644 --- a/azure-servicefabric/azure/servicefabric/service_fabric_client_ap_is.py +++ b/azure-servicefabric/azure/servicefabric/service_fabric_client_ap_is.py @@ -13,7 +13,15 @@ from msrest import Configuration, Serializer, Deserializer from .version import VERSION from msrest.pipeline import ClientRawResponse -from msrest.exceptions import HttpOperationError +from .operations.mesh_secret_operations import MeshSecretOperations +from .operations.mesh_secret_value_operations import MeshSecretValueOperations +from .operations.mesh_volume_operations import MeshVolumeOperations +from .operations.mesh_network_operations import MeshNetworkOperations +from .operations.mesh_application_operations import MeshApplicationOperations +from .operations.mesh_service_operations import MeshServiceOperations +from .operations.mesh_code_package_operations import MeshCodePackageOperations +from .operations.mesh_service_replica_operations import MeshServiceReplicaOperations +from .operations.mesh_gateway_operations import MeshGatewayOperations from . import models @@ -49,6 +57,25 @@ class ServiceFabricClientAPIs(SDKClient): :ivar config: Configuration for client. :vartype config: ServiceFabricClientAPIsConfiguration + :ivar mesh_secret: MeshSecret operations + :vartype mesh_secret: azure.servicefabric.operations.MeshSecretOperations + :ivar mesh_secret_value: MeshSecretValue operations + :vartype mesh_secret_value: azure.servicefabric.operations.MeshSecretValueOperations + :ivar mesh_volume: MeshVolume operations + :vartype mesh_volume: azure.servicefabric.operations.MeshVolumeOperations + :ivar mesh_network: MeshNetwork operations + :vartype mesh_network: azure.servicefabric.operations.MeshNetworkOperations + :ivar mesh_application: MeshApplication operations + :vartype mesh_application: azure.servicefabric.operations.MeshApplicationOperations + :ivar mesh_service: MeshService operations + :vartype mesh_service: azure.servicefabric.operations.MeshServiceOperations + :ivar mesh_code_package: MeshCodePackage operations + :vartype mesh_code_package: azure.servicefabric.operations.MeshCodePackageOperations + :ivar mesh_service_replica: MeshServiceReplica operations + :vartype mesh_service_replica: azure.servicefabric.operations.MeshServiceReplicaOperations + :ivar mesh_gateway: MeshGateway operations + :vartype mesh_gateway: azure.servicefabric.operations.MeshGatewayOperations + :param credentials: Subscription credentials which uniquely identify client subscription. :type credentials: None @@ -62,10 +89,28 @@ def __init__( super(ServiceFabricClientAPIs, self).__init__(self.config.credentials, self.config) client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self.api_version = '6.3.0.9' + self.api_version = '6.4.0.36' self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) + self.mesh_secret = MeshSecretOperations( + self._client, self.config, self._serialize, self._deserialize) + self.mesh_secret_value = MeshSecretValueOperations( + self._client, self.config, self._serialize, self._deserialize) + self.mesh_volume = MeshVolumeOperations( + self._client, self.config, self._serialize, self._deserialize) + self.mesh_network = MeshNetworkOperations( + self._client, self.config, self._serialize, self._deserialize) + self.mesh_application = MeshApplicationOperations( + self._client, self.config, self._serialize, self._deserialize) + self.mesh_service = MeshServiceOperations( + self._client, self.config, self._serialize, self._deserialize) + self.mesh_code_package = MeshCodePackageOperations( + self._client, self.config, self._serialize, self._deserialize) + self.mesh_service_replica = MeshServiceReplicaOperations( + self._client, self.config, self._serialize, self._deserialize) + self.mesh_gateway = MeshGatewayOperations( + self._client, self.config, self._serialize, self._deserialize) def get_cluster_manifest( self, timeout=60, custom_headers=None, raw=False, **operation_config): @@ -1318,9 +1363,10 @@ def unprovision_cluster( def rollback_cluster_upgrade( self, timeout=60, custom_headers=None, raw=False, **operation_config): - """Rollback the upgrade of a Service Fabric cluster. + """Roll back the upgrade of a Service Fabric cluster. - Rollback the code or configuration upgrade of a Service Fabric cluster. + Roll back the code or configuration upgrade of a Service Fabric + cluster. :param timeout: The server timeout for performing the operation in seconds. This timeout specifies the time duration that the client is @@ -1664,6 +1710,65 @@ def get_aad_metadata( return deserialized get_aad_metadata.metadata = {'url': '/$/GetAadMetadata'} + def get_cluster_version( + self, timeout=60, custom_headers=None, raw=False, **operation_config): + """Get the current Service Fabric cluster version. + + If a cluster upgrade is happening, then this API will return the lowest + (older) version of the current and target cluster runtime versions. + + :param timeout: The server timeout for performing the operation in + seconds. This timeout specifies the time duration that the client is + willing to wait for the requested operation to complete. The default + value for this parameter is 60 seconds. + :type timeout: long + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: ClusterVersion or ClientRawResponse if raw=true + :rtype: ~azure.servicefabric.models.ClusterVersion or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`FabricErrorException` + """ + api_version = "6.4" + + # Construct URL + url = self.get_cluster_version.metadata['url'] + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if timeout is not None: + query_parameters['timeout'] = self._serialize.query("timeout", timeout, 'long', maximum=4294967295, minimum=1) + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.FabricErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ClusterVersion', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get_cluster_version.metadata = {'url': '/$/GetClusterVersion'} + def get_node_info_list( self, continuation_token=None, node_status_filter="default", max_results=0, timeout=60, custom_headers=None, raw=False, **operation_config): """Gets the list of nodes in the Service Fabric cluster. @@ -2889,7 +2994,7 @@ def get_service_type_info_by_name( Gets the information about a specific service type that is supported by a provisioned application type in a Service Fabric cluster. The provided application type must exist. Otherwise, a 404 status is - returned. A 204 response is returned if the specificed service type is + returned. A 204 response is returned if the specified service type is not found in the cluster. :param application_type_name: The name of the application type. @@ -6126,6 +6231,12 @@ def resolve_service( :type partition_key_type: int :param partition_key_value: Partition key. This is required if the partition scheme for the service is Int64Range or Named. + This is not the partition ID, but rather, either the integer key + value, or the name of the partition ID. + For example, if your service is using ranged partitions from 0 to 10, + then they PartitionKeyValue would be an + integer in that range. Query service description to see the range or + name. :type partition_key_value: str :param previous_rsp_version: The value in the Version field of the response that was received previously. This is required if the user @@ -6234,7 +6345,7 @@ def get_partition_info_list( :raises: :class:`FabricErrorException` """ - api_version = "6.0" + api_version = "6.4" # Construct URL url = self.get_partition_info_list.metadata['url'] @@ -9742,6 +9853,62 @@ def start_compose_deployment_upgrade( return client_raw_response start_compose_deployment_upgrade.metadata = {'url': '/ComposeDeployments/{deploymentName}/$/Upgrade'} + def start_rollback_compose_deployment_upgrade( + self, deployment_name, timeout=60, custom_headers=None, raw=False, **operation_config): + """Starts rolling back a compose deployment upgrade in the Service Fabric + cluster. + + Rollback a service fabric compose deployment upgrade. + + :param deployment_name: The identity of the deployment. + :type deployment_name: str + :param timeout: The server timeout for performing the operation in + seconds. This timeout specifies the time duration that the client is + willing to wait for the requested operation to complete. The default + value for this parameter is 60 seconds. + :type timeout: long + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: None or ClientRawResponse if raw=true + :rtype: None or ~msrest.pipeline.ClientRawResponse + :raises: + :class:`FabricErrorException` + """ + api_version = "6.4-preview" + + # Construct URL + url = self.start_rollback_compose_deployment_upgrade.metadata['url'] + path_format_arguments = { + 'deploymentName': self._serialize.url("deployment_name", deployment_name, 'str', skip_quote=True) + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') + if timeout is not None: + query_parameters['timeout'] = self._serialize.query("timeout", timeout, 'long', maximum=4294967295, minimum=1) + + # Construct headers + header_parameters = {} + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.FabricErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + start_rollback_compose_deployment_upgrade.metadata = {'url': '/ComposeDeployments/{deploymentName}/$/RollbackUpgrade'} + def get_chaos( self, timeout=60, custom_headers=None, raw=False, **operation_config): """Get the status of Chaos. @@ -10285,8 +10452,8 @@ def delete_image_store_content( """Deletes existing image store content. Deletes existing image store content being found within the given image - store relative path. This can be used to delete uploaded application - packages once they are provisioned. + store relative path. This command can be used to delete uploaded + application packages once they are provisioned. :param content_path: Relative path to file or folder in the image store from its root. @@ -11579,7 +11746,7 @@ def get_fault_operation_list( """Gets a list of user-induced fault operations filtered by provided input. - Gets the a list of user-induced fault operations filtered by provided + Gets the list of user-induced fault operations filtered by provided input. :param type_filter: Used to filter on OperationType for user-induced @@ -11684,7 +11851,7 @@ def cancel_operation( :param operation_id: A GUID that identifies a call of this API. This is passed into the corresponding GetProgress API :type operation_id: str - :param force: Indicates whether to gracefully rollback and clean up + :param force: Indicates whether to gracefully roll back and clean up internal system state modified by executing the user-induced operation. :type force: bool @@ -11758,7 +11925,7 @@ def create_backup_policy( :raises: :class:`FabricErrorException` """ - api_version = "6.2-preview" + api_version = "6.4" # Construct URL url = self.create_backup_policy.metadata['url'] @@ -11816,7 +11983,7 @@ def delete_backup_policy( :raises: :class:`FabricErrorException` """ - api_version = "6.2-preview" + api_version = "6.4" # Construct URL url = self.delete_backup_policy.metadata['url'] @@ -11887,7 +12054,7 @@ def get_backup_policy_list( :raises: :class:`FabricErrorException` """ - api_version = "6.2-preview" + api_version = "6.4" # Construct URL url = self.get_backup_policy_list.metadata['url'] @@ -11951,7 +12118,7 @@ def get_backup_policy_by_name( :raises: :class:`FabricErrorException` """ - api_version = "6.2-preview" + api_version = "6.4" # Construct URL url = self.get_backup_policy_by_name.metadata['url'] @@ -12032,7 +12199,7 @@ def get_all_entities_backed_up_by_policy( :raises: :class:`FabricErrorException` """ - api_version = "6.2-preview" + api_version = "6.4" # Construct URL url = self.get_all_entities_backed_up_by_policy.metadata['url'] @@ -12102,7 +12269,7 @@ def update_backup_policy( :raises: :class:`FabricErrorException` """ - api_version = "6.2-preview" + api_version = "6.4" # Construct URL url = self.update_backup_policy.metadata['url'] @@ -12178,7 +12345,7 @@ def enable_application_backup( """ enable_backup_description = models.EnableBackupDescription(backup_policy_name=backup_policy_name) - api_version = "6.2-preview" + api_version = "6.4" # Construct URL url = self.enable_application_backup.metadata['url'] @@ -12215,7 +12382,7 @@ def enable_application_backup( enable_application_backup.metadata = {'url': '/Applications/{applicationId}/$/EnableBackup'} def disable_application_backup( - self, application_id, timeout=60, custom_headers=None, raw=False, **operation_config): + self, application_id, clean_backup, timeout=60, custom_headers=None, raw=False, **operation_config): """Disables periodic backup of Service Fabric application. Disables periodic backup of Service Fabric application which was @@ -12230,6 +12397,10 @@ def disable_application_backup( application identity would be "myapp~app1" in 6.0+ and "myapp/app1" in previous versions. :type application_id: str + :param clean_backup: Boolean flag to delete backups. It can be set to + true for deleting all the backups which were created for the backup + entity that is getting disabled for backup. + :type clean_backup: bool :param timeout: The server timeout for performing the operation in seconds. This timeout specifies the time duration that the client is willing to wait for the requested operation to complete. The default @@ -12245,7 +12416,11 @@ def disable_application_backup( :raises: :class:`FabricErrorException` """ - api_version = "6.2-preview" + disable_backup_description = None + if clean_backup is not None: + disable_backup_description = models.DisableBackupDescription(clean_backup=clean_backup) + + api_version = "6.4" # Construct URL url = self.disable_application_backup.metadata['url'] @@ -12262,11 +12437,18 @@ def disable_application_backup( # Construct headers header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' if custom_headers: header_parameters.update(custom_headers) + # Construct body + if disable_backup_description is not None: + body_content = self._serialize.body(disable_backup_description, 'DisableBackupDescription') + else: + body_content = None + # Construct and send request - request = self._client.post(url, query_parameters, header_parameters) + request = self._client.post(url, query_parameters, header_parameters, body_content) response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [202]: @@ -12326,7 +12508,7 @@ def get_application_backup_configuration_info( :raises: :class:`FabricErrorException` """ - api_version = "6.2-preview" + api_version = "6.4" # Construct URL url = self.get_application_backup_configuration_info.metadata['url'] @@ -12435,7 +12617,7 @@ def get_application_backup_list( :raises: :class:`FabricErrorException` """ - api_version = "6.2-preview" + api_version = "6.4" # Construct URL url = self.get_application_backup_list.metadata['url'] @@ -12519,7 +12701,7 @@ def suspend_application_backup( :raises: :class:`FabricErrorException` """ - api_version = "6.2-preview" + api_version = "6.4" # Construct URL url = self.suspend_application_backup.metadata['url'] @@ -12584,7 +12766,7 @@ def resume_application_backup( :raises: :class:`FabricErrorException` """ - api_version = "6.2-preview" + api_version = "6.4" # Construct URL url = self.resume_application_backup.metadata['url'] @@ -12659,7 +12841,7 @@ def enable_service_backup( """ enable_backup_description = models.EnableBackupDescription(backup_policy_name=backup_policy_name) - api_version = "6.2-preview" + api_version = "6.4" # Construct URL url = self.enable_service_backup.metadata['url'] @@ -12696,7 +12878,7 @@ def enable_service_backup( enable_service_backup.metadata = {'url': '/Services/{serviceId}/$/EnableBackup'} def disable_service_backup( - self, service_id, timeout=60, custom_headers=None, raw=False, **operation_config): + self, service_id, clean_backup, timeout=60, custom_headers=None, raw=False, **operation_config): """Disables periodic backup of Service Fabric service which was previously enabled. @@ -12714,6 +12896,10 @@ def disable_service_backup( service identity would be "myapp~app1~svc1" in 6.0+ and "myapp/app1/svc1" in previous versions. :type service_id: str + :param clean_backup: Boolean flag to delete backups. It can be set to + true for deleting all the backups which were created for the backup + entity that is getting disabled for backup. + :type clean_backup: bool :param timeout: The server timeout for performing the operation in seconds. This timeout specifies the time duration that the client is willing to wait for the requested operation to complete. The default @@ -12729,7 +12915,11 @@ def disable_service_backup( :raises: :class:`FabricErrorException` """ - api_version = "6.2-preview" + disable_backup_description = None + if clean_backup is not None: + disable_backup_description = models.DisableBackupDescription(clean_backup=clean_backup) + + api_version = "6.4" # Construct URL url = self.disable_service_backup.metadata['url'] @@ -12746,11 +12936,18 @@ def disable_service_backup( # Construct headers header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' if custom_headers: header_parameters.update(custom_headers) + # Construct body + if disable_backup_description is not None: + body_content = self._serialize.body(disable_backup_description, 'DisableBackupDescription') + else: + body_content = None + # Construct and send request - request = self._client.post(url, query_parameters, header_parameters) + request = self._client.post(url, query_parameters, header_parameters, body_content) response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [202]: @@ -12809,7 +13006,7 @@ def get_service_backup_configuration_info( :raises: :class:`FabricErrorException` """ - api_version = "6.2-preview" + api_version = "6.4" # Construct URL url = self.get_service_backup_configuration_info.metadata['url'] @@ -12916,7 +13113,7 @@ def get_service_backup_list( :raises: :class:`FabricErrorException` """ - api_version = "6.2-preview" + api_version = "6.4" # Construct URL url = self.get_service_backup_list.metadata['url'] @@ -12998,7 +13195,7 @@ def suspend_service_backup( :raises: :class:`FabricErrorException` """ - api_version = "6.2-preview" + api_version = "6.4" # Construct URL url = self.suspend_service_backup.metadata['url'] @@ -13061,7 +13258,7 @@ def resume_service_backup( :raises: :class:`FabricErrorException` """ - api_version = "6.2-preview" + api_version = "6.4" # Construct URL url = self.resume_service_backup.metadata['url'] @@ -13127,7 +13324,7 @@ def enable_partition_backup( """ enable_backup_description = models.EnableBackupDescription(backup_policy_name=backup_policy_name) - api_version = "6.2-preview" + api_version = "6.4" # Construct URL url = self.enable_partition_backup.metadata['url'] @@ -13164,7 +13361,7 @@ def enable_partition_backup( enable_partition_backup.metadata = {'url': '/Partitions/{partitionId}/$/EnableBackup'} def disable_partition_backup( - self, partition_id, timeout=60, custom_headers=None, raw=False, **operation_config): + self, partition_id, clean_backup, timeout=60, custom_headers=None, raw=False, **operation_config): """Disables periodic backup of Service Fabric partition which was previously enabled. @@ -13177,6 +13374,10 @@ def disable_partition_backup( :param partition_id: The identity of the partition. :type partition_id: str + :param clean_backup: Boolean flag to delete backups. It can be set to + true for deleting all the backups which were created for the backup + entity that is getting disabled for backup. + :type clean_backup: bool :param timeout: The server timeout for performing the operation in seconds. This timeout specifies the time duration that the client is willing to wait for the requested operation to complete. The default @@ -13192,7 +13393,11 @@ def disable_partition_backup( :raises: :class:`FabricErrorException` """ - api_version = "6.2-preview" + disable_backup_description = None + if clean_backup is not None: + disable_backup_description = models.DisableBackupDescription(clean_backup=clean_backup) + + api_version = "6.4" # Construct URL url = self.disable_partition_backup.metadata['url'] @@ -13209,11 +13414,18 @@ def disable_partition_backup( # Construct headers header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' if custom_headers: header_parameters.update(custom_headers) + # Construct body + if disable_backup_description is not None: + body_content = self._serialize.body(disable_backup_description, 'DisableBackupDescription') + else: + body_content = None + # Construct and send request - request = self._client.post(url, query_parameters, header_parameters) + request = self._client.post(url, query_parameters, header_parameters, body_content) response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [202]: @@ -13250,7 +13462,7 @@ def get_partition_backup_configuration_info( :raises: :class:`FabricErrorException` """ - api_version = "6.2-preview" + api_version = "6.4" # Construct URL url = self.get_partition_backup_configuration_info.metadata['url'] @@ -13331,7 +13543,7 @@ def get_partition_backup_list( :raises: :class:`FabricErrorException` """ - api_version = "6.2-preview" + api_version = "6.4" # Construct URL url = self.get_partition_backup_list.metadata['url'] @@ -13401,7 +13613,7 @@ def suspend_partition_backup( :raises: :class:`FabricErrorException` """ - api_version = "6.2-preview" + api_version = "6.4" # Construct URL url = self.suspend_partition_backup.metadata['url'] @@ -13457,7 +13669,7 @@ def resume_partition_backup( :raises: :class:`FabricErrorException` """ - api_version = "6.2-preview" + api_version = "6.4" # Construct URL url = self.resume_partition_backup.metadata['url'] @@ -13535,7 +13747,7 @@ def backup_partition( if backup_storage is not None: backup_partition_description = models.BackupPartitionDescription(backup_storage=backup_storage) - api_version = "6.2-preview" + api_version = "6.4" # Construct URL url = self.backup_partition.metadata['url'] @@ -13601,7 +13813,7 @@ def get_partition_backup_progress( :raises: :class:`FabricErrorException` """ - api_version = "6.2-preview" + api_version = "6.4" # Construct URL url = self.get_partition_backup_progress.metadata['url'] @@ -13685,7 +13897,7 @@ def restore_partition( :raises: :class:`FabricErrorException` """ - api_version = "6.2-preview" + api_version = "6.4" # Construct URL url = self.restore_partition.metadata['url'] @@ -13749,7 +13961,7 @@ def get_partition_restore_progress( :raises: :class:`FabricErrorException` """ - api_version = "6.2-preview" + api_version = "6.4" # Construct URL url = self.get_partition_restore_progress.metadata['url'] @@ -13834,7 +14046,7 @@ def get_backups_from_backup_location( :raises: :class:`FabricErrorException` """ - api_version = "6.2-preview" + api_version = "6.4" # Construct URL url = self.get_backups_from_backup_location.metadata['url'] @@ -14529,7 +14741,7 @@ def get_cluster_event_list( :raises: :class:`FabricErrorException` """ - api_version = "6.2-preview" + api_version = "6.4" # Construct URL url = self.get_cluster_event_list.metadata['url'] @@ -14699,7 +14911,7 @@ def get_node_event_list( :raises: :class:`FabricErrorException` """ - api_version = "6.2-preview" + api_version = "6.4" # Construct URL url = self.get_node_event_list.metadata['url'] @@ -14787,7 +14999,7 @@ def get_nodes_event_list( :raises: :class:`FabricErrorException` """ - api_version = "6.2-preview" + api_version = "6.4" # Construct URL url = self.get_nodes_event_list.metadata['url'] @@ -14880,7 +15092,7 @@ def get_application_event_list( :raises: :class:`FabricErrorException` """ - api_version = "6.2-preview" + api_version = "6.4" # Construct URL url = self.get_application_event_list.metadata['url'] @@ -14968,7 +15180,7 @@ def get_applications_event_list( :raises: :class:`FabricErrorException` """ - api_version = "6.2-preview" + api_version = "6.4" # Construct URL url = self.get_applications_event_list.metadata['url'] @@ -15060,7 +15272,7 @@ def get_service_event_list( :raises: :class:`FabricErrorException` """ - api_version = "6.2-preview" + api_version = "6.4" # Construct URL url = self.get_service_event_list.metadata['url'] @@ -15148,7 +15360,7 @@ def get_services_event_list( :raises: :class:`FabricErrorException` """ - api_version = "6.2-preview" + api_version = "6.4" # Construct URL url = self.get_services_event_list.metadata['url'] @@ -15234,7 +15446,7 @@ def get_partition_event_list( :raises: :class:`FabricErrorException` """ - api_version = "6.2-preview" + api_version = "6.4" # Construct URL url = self.get_partition_event_list.metadata['url'] @@ -15322,7 +15534,7 @@ def get_partitions_event_list( :raises: :class:`FabricErrorException` """ - api_version = "6.2-preview" + api_version = "6.4" # Construct URL url = self.get_partitions_event_list.metadata['url'] @@ -15410,7 +15622,7 @@ def get_partition_replica_event_list( :raises: :class:`FabricErrorException` """ - api_version = "6.2-preview" + api_version = "6.4" # Construct URL url = self.get_partition_replica_event_list.metadata['url'] @@ -15501,7 +15713,7 @@ def get_partition_replicas_event_list( :raises: :class:`FabricErrorException` """ - api_version = "6.2-preview" + api_version = "6.4" # Construct URL url = self.get_partition_replicas_event_list.metadata['url'] @@ -15573,7 +15785,7 @@ def get_correlated_event_list( :raises: :class:`FabricErrorException` """ - api_version = "6.2-preview" + api_version = "6.4" # Construct URL url = self.get_correlated_event_list.metadata['url'] @@ -15612,591 +15824,3 @@ def get_correlated_event_list( return deserialized get_correlated_event_list.metadata = {'url': '/EventsStore/CorrelatedEvents/{eventInstanceId}/$/Events'} - - def create_application_resource( - self, application_resource_name, application_resource_description, custom_headers=None, raw=False, **operation_config): - """Creates or updates an application resource. - - Creates an application with the specified name and description. If an - application with the same name already exists, then its description are - updated to the one indicated in this request. - - :param application_resource_name: Service Fabric application resource - name. - :type application_resource_name: str - :param application_resource_description: Description for creating an - application resource. - :type application_resource_description: - ~azure.servicefabric.models.ApplicationResourceDescription - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: None or ClientRawResponse if raw=true - :rtype: None or ~msrest.pipeline.ClientRawResponse - :raises: - :class:`FabricErrorException` - """ - api_version = "6.3-preview" - - # Construct URL - url = self.create_application_resource.metadata['url'] - path_format_arguments = { - 'applicationResourceName': self._serialize.url("application_resource_name", application_resource_name, 'str', skip_quote=True) - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - body_content = self._serialize.body(application_resource_description, 'ApplicationResourceDescription') - - # Construct and send request - request = self._client.put(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [201, 202]: - raise models.FabricErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - create_application_resource.metadata = {'url': '/Resources/Applications/{applicationResourceName}'} - - def get_application_resource( - self, application_resource_name, custom_headers=None, raw=False, **operation_config): - """Gets the application with the given name. - - Gets the application with the given name. This includes the information - about the application's services and other runtime information. - - :param application_resource_name: Service Fabric application resource - name. - :type application_resource_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: ApplicationResourceDescription or ClientRawResponse if - raw=true - :rtype: ~azure.servicefabric.models.ApplicationResourceDescription or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`FabricErrorException` - """ - api_version = "6.3-preview" - - # Construct URL - url = self.get_application_resource.metadata['url'] - path_format_arguments = { - 'applicationResourceName': self._serialize.url("application_resource_name", application_resource_name, 'str', skip_quote=True) - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.FabricErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('ApplicationResourceDescription', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get_application_resource.metadata = {'url': '/Resources/Applications/{applicationResourceName}'} - - def delete_application_resource( - self, application_resource_name, custom_headers=None, raw=False, **operation_config): - """Deletes the specified application. - - Deletes the application identified by the name. - - :param application_resource_name: Service Fabric application resource - name. - :type application_resource_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: None or ClientRawResponse if raw=true - :rtype: None or ~msrest.pipeline.ClientRawResponse - :raises: - :class:`FabricErrorException` - """ - api_version = "6.3-preview" - - # Construct URL - url = self.delete_application_resource.metadata['url'] - path_format_arguments = { - 'applicationResourceName': self._serialize.url("application_resource_name", application_resource_name, 'str', skip_quote=True) - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.delete(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200, 202, 204]: - raise models.FabricErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - delete_application_resource.metadata = {'url': '/Resources/Applications/{applicationResourceName}'} - - def get_services( - self, application_resource_name, custom_headers=None, raw=False, **operation_config): - """Gets all the services in the application resource. - - The operation returns the service descriptions of all the services in - the application resource. . - - :param application_resource_name: Service Fabric application resource - name. - :type application_resource_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: PagedServiceResourceDescriptionList or ClientRawResponse if - raw=true - :rtype: - ~azure.servicefabric.models.PagedServiceResourceDescriptionList or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`HttpOperationError` - """ - api_version = "6.3-preview" - - # Construct URL - url = self.get_services.metadata['url'] - path_format_arguments = { - 'applicationResourceName': self._serialize.url("application_resource_name", application_resource_name, 'str', skip_quote=True) - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise HttpOperationError(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('PagedServiceResourceDescriptionList', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get_services.metadata = {'url': '/Resources/Applications/{applicationResourceName}/Services'} - - def get_service( - self, application_resource_name, service_resource_name, custom_headers=None, raw=False, **operation_config): - """Gets the description of the specified service in an application - resource. - - Gets the description of the service resource. - - :param application_resource_name: Service Fabric application resource - name. - :type application_resource_name: str - :param service_resource_name: Service Fabric service resource name. - :type service_resource_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: ServiceResourceDescription or ClientRawResponse if raw=true - :rtype: ~azure.servicefabric.models.ServiceResourceDescription or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`HttpOperationError` - """ - api_version = "6.3-preview" - - # Construct URL - url = self.get_service.metadata['url'] - path_format_arguments = { - 'applicationResourceName': self._serialize.url("application_resource_name", application_resource_name, 'str', skip_quote=True), - 'serviceResourceName': self._serialize.url("service_resource_name", service_resource_name, 'str', skip_quote=True) - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise HttpOperationError(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('ServiceResourceDescription', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get_service.metadata = {'url': '/Resources/Applications/{applicationResourceName}/Services/{serviceResourceName}'} - - def get_replicas( - self, application_resource_name, service_resource_name, custom_headers=None, raw=False, **operation_config): - """Gets replicas of a given service in an applciation resource. - - Gets the information about all replicas of a given service of an - application. The information includes the runtime properties of the - replica instance. - - :param application_resource_name: Service Fabric application resource - name. - :type application_resource_name: str - :param service_resource_name: Service Fabric service resource name. - :type service_resource_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: PagedServiceResourceReplicaDescriptionList or - ClientRawResponse if raw=true - :rtype: - ~azure.servicefabric.models.PagedServiceResourceReplicaDescriptionList - or ~msrest.pipeline.ClientRawResponse - :raises: - :class:`HttpOperationError` - """ - api_version = "6.3-preview" - - # Construct URL - url = self.get_replicas.metadata['url'] - path_format_arguments = { - 'applicationResourceName': self._serialize.url("application_resource_name", application_resource_name, 'str', skip_quote=True), - 'serviceResourceName': self._serialize.url("service_resource_name", service_resource_name, 'str', skip_quote=True) - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise HttpOperationError(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('PagedServiceResourceReplicaDescriptionList', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get_replicas.metadata = {'url': '/Resources/Applications/{applicationResourceName}/Services/{serviceResourceName}/replicas'} - - def get_replica( - self, application_resource_name, service_resource_name, replica_name, custom_headers=None, raw=False, **operation_config): - """Gets a specific replica of a given service in an application resource. - - Gets the information about the specified replica of a given service of - an application. The information includes the runtime properties of the - replica instance. - - :param application_resource_name: Service Fabric application resource - name. - :type application_resource_name: str - :param service_resource_name: Service Fabric service resource name. - :type service_resource_name: str - :param replica_name: Service Fabric replica name. - :type replica_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: ServiceResourceReplicaDescription or ClientRawResponse if - raw=true - :rtype: ~azure.servicefabric.models.ServiceResourceReplicaDescription - or ~msrest.pipeline.ClientRawResponse - :raises: - :class:`HttpOperationError` - """ - api_version = "6.3-preview" - - # Construct URL - url = self.get_replica.metadata['url'] - path_format_arguments = { - 'applicationResourceName': self._serialize.url("application_resource_name", application_resource_name, 'str', skip_quote=True), - 'serviceResourceName': self._serialize.url("service_resource_name", service_resource_name, 'str', skip_quote=True), - 'replicaName': self._serialize.url("replica_name", replica_name, 'str', skip_quote=True) - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise HttpOperationError(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('ServiceResourceReplicaDescription', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get_replica.metadata = {'url': '/Resources/Applications/{applicationResourceName}/Services/{serviceResourceName}/Replicas/{replicaName}'} - - def create_volume_resource( - self, volume_resource_name, volume_resource_description, custom_headers=None, raw=False, **operation_config): - """Creates or updates a volume resource. - - Creates a volume resource with the specified name and description. If a - volume with the same name already exists, then its description is - updated to the one indicated in this request. - - :param volume_resource_name: Service Fabric volume resource name. - :type volume_resource_name: str - :param volume_resource_description: Description for creating a volume - resource. - :type volume_resource_description: - ~azure.servicefabric.models.VolumeResourceDescription - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: None or ClientRawResponse if raw=true - :rtype: None or ~msrest.pipeline.ClientRawResponse - :raises: - :class:`FabricErrorException` - """ - api_version = "6.3-preview" - - # Construct URL - url = self.create_volume_resource.metadata['url'] - path_format_arguments = { - 'volumeResourceName': self._serialize.url("volume_resource_name", volume_resource_name, 'str', skip_quote=True) - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - body_content = self._serialize.body(volume_resource_description, 'VolumeResourceDescription') - - # Construct and send request - request = self._client.put(url, query_parameters, header_parameters, body_content) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [201, 202]: - raise models.FabricErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - create_volume_resource.metadata = {'url': '/Resources/Volumes/{volumeResourceName}'} - - def get_volume_resource( - self, volume_resource_name, custom_headers=None, raw=False, **operation_config): - """Gets the volume resource. - - Gets the information about the volume resource with a given name. This - information includes the volume description and other runtime - information. - - :param volume_resource_name: Service Fabric volume resource name. - :type volume_resource_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: VolumeResourceDescription or ClientRawResponse if raw=true - :rtype: ~azure.servicefabric.models.VolumeResourceDescription or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`FabricErrorException` - """ - api_version = "6.3-preview" - - # Construct URL - url = self.get_volume_resource.metadata['url'] - path_format_arguments = { - 'volumeResourceName': self._serialize.url("volume_resource_name", volume_resource_name, 'str', skip_quote=True) - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.FabricErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('VolumeResourceDescription', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get_volume_resource.metadata = {'url': '/Resources/Volumes/{volumeResourceName}'} - - def delete_volume_resource( - self, volume_resource_name, custom_headers=None, raw=False, **operation_config): - """Deletes the volume resource. - - Deletes the volume identified by the name. - - :param volume_resource_name: Service Fabric volume resource name. - :type volume_resource_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: None or ClientRawResponse if raw=true - :rtype: None or ~msrest.pipeline.ClientRawResponse - :raises: - :class:`FabricErrorException` - """ - api_version = "6.3-preview" - - # Construct URL - url = self.delete_volume_resource.metadata['url'] - path_format_arguments = { - 'volumeResourceName': self._serialize.url("volume_resource_name", volume_resource_name, 'str', skip_quote=True) - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str') - - # Construct headers - header_parameters = {} - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.delete(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200, 202, 204]: - raise models.FabricErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - delete_volume_resource.metadata = {'url': '/Resources/Volumes/{volumeResourceName}'} diff --git a/azure-servicefabric/azure/servicefabric/version.py b/azure-servicefabric/azure/servicefabric/version.py index 04fad6f3ebf3..d00fda4b436a 100644 --- a/azure-servicefabric/azure/servicefabric/version.py +++ b/azure-servicefabric/azure/servicefabric/version.py @@ -9,5 +9,5 @@ # regenerated. # -------------------------------------------------------------------------- -VERSION = "6.3.0.0" +VERSION = "6.4.0.0" diff --git a/azure-servicefabric/sdk_packaging.toml b/azure-servicefabric/sdk_packaging.toml index c1ff0e94edcf..16234edc592c 100644 --- a/azure-servicefabric/sdk_packaging.toml +++ b/azure-servicefabric/sdk_packaging.toml @@ -5,3 +5,4 @@ package_pprint_name = "Service Fabric" package_doc_id = "servicefabric" is_stable = true is_arm = false +need_msrestazure = false From 8af816e6d481d2936c7c9175ffdee6f7d2354be8 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Mon, 10 Dec 2018 14:04:16 -0800 Subject: [PATCH 05/12] [AutoPR] containerregistry/resource-manager (#3909) * [AutoPR containerregistry/resource-manager] [ACR] Add empty resource group name validation, minor cleanup (#3832) * Generated from 404ce04b1a1c4cac92a67328f319a021f320935a Add empty resource group name validation, minor cleanup * Generated from 9f8eefc2216772a9f2713725aec5ba1b92c26104 Add network rule set properties, empty resource group validation * Generated from 4acb1b6d259fdd431a87a4d4f3ce25458432078c Fix network rule set default value * Generated from 43b818a4578f6fa9b0237aad66b14d896ff6a614 Fix resource group name * Generated from 3e12549e66336e4ca6fa81b49aaf9ed7d2797cce Add network rule set properties, empty resource group validation * Generated from dd007e2442dd2126ce789aaad017872ea4adaa1e Add a missing comma * Update version.py * Update HISTORY.rst --- azure-mgmt-containerregistry/HISTORY.rst | 7 ++++ .../operations/registries_operations.py | 14 +++---- .../v2017_10_01/models/__init__.py | 8 ++++ ...tainer_registry_management_client_enums.py | 6 +++ .../v2017_10_01/models/network_rule_set.py | 42 +++++++++++++++++++ .../models/network_rule_set_py3.py | 42 +++++++++++++++++++ .../v2017_10_01/models/registry.py | 5 +++ .../v2017_10_01/models/registry_py3.py | 7 +++- .../models/registry_update_parameters.py | 5 +++ .../models/registry_update_parameters_py3.py | 7 +++- .../models/virtual_network_rule.py | 35 ++++++++++++++++ .../models/virtual_network_rule_py3.py | 35 ++++++++++++++++ .../operations/registries_operations.py | 22 +++++----- .../operations/replications_operations.py | 10 ++--- .../operations/webhooks_operations.py | 16 +++---- .../v2018_02_01_preview/models/__init__.py | 8 ++++ ...tainer_registry_management_client_enums.py | 6 +++ .../models/network_rule_set.py | 42 +++++++++++++++++++ .../models/network_rule_set_py3.py | 42 +++++++++++++++++++ .../v2018_02_01_preview/models/registry.py | 5 +++ .../models/registry_py3.py | 7 +++- .../models/registry_update_parameters.py | 5 +++ .../models/registry_update_parameters_py3.py | 7 +++- .../models/virtual_network_rule.py | 35 ++++++++++++++++ .../models/virtual_network_rule_py3.py | 35 ++++++++++++++++ .../operations/registries_operations.py | 22 +++++----- .../operations/replications_operations.py | 10 ++--- .../operations/webhooks_operations.py | 16 +++---- .../v2018_09_01/models/__init__.py | 8 ++++ ...tainer_registry_management_client_enums.py | 6 +++ .../v2018_09_01/models/network_rule_set.py | 42 +++++++++++++++++++ .../models/network_rule_set_py3.py | 42 +++++++++++++++++++ .../v2018_09_01/models/registry.py | 5 +++ .../v2018_09_01/models/registry_py3.py | 7 +++- .../models/registry_update_parameters.py | 5 +++ .../models/registry_update_parameters_py3.py | 7 +++- .../v2018_09_01/models/task.py | 2 +- .../v2018_09_01/models/task_py3.py | 2 +- .../models/virtual_network_rule.py | 35 ++++++++++++++++ .../models/virtual_network_rule_py3.py | 35 ++++++++++++++++ .../operations/registries_operations.py | 26 ++++++------ .../operations/replications_operations.py | 10 ++--- .../v2018_09_01/operations/runs_operations.py | 10 ++--- .../operations/tasks_operations.py | 12 +++--- .../operations/webhooks_operations.py | 16 +++---- .../azure/mgmt/containerregistry/version.py | 2 +- 46 files changed, 672 insertions(+), 101 deletions(-) create mode 100644 azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2017_10_01/models/network_rule_set.py create mode 100644 azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2017_10_01/models/network_rule_set_py3.py create mode 100644 azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2017_10_01/models/virtual_network_rule.py create mode 100644 azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2017_10_01/models/virtual_network_rule_py3.py create mode 100644 azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_02_01_preview/models/network_rule_set.py create mode 100644 azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_02_01_preview/models/network_rule_set_py3.py create mode 100644 azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_02_01_preview/models/virtual_network_rule.py create mode 100644 azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_02_01_preview/models/virtual_network_rule_py3.py create mode 100644 azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/network_rule_set.py create mode 100644 azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/network_rule_set_py3.py create mode 100644 azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/virtual_network_rule.py create mode 100644 azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/virtual_network_rule_py3.py diff --git a/azure-mgmt-containerregistry/HISTORY.rst b/azure-mgmt-containerregistry/HISTORY.rst index 1c69470ac4a8..22f57d11b241 100644 --- a/azure-mgmt-containerregistry/HISTORY.rst +++ b/azure-mgmt-containerregistry/HISTORY.rst @@ -3,6 +3,13 @@ Release History =============== +2.5.0 (2018-12-10) +++++++++++++++++++ + +**Features** + +- Add network rule set to registry properties + 2.4.0 (2018-11-05) ++++++++++++++++++ diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2017_03_01/operations/registries_operations.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2017_03_01/operations/registries_operations.py index 3fbd85a74e49..146d80f519d1 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2017_03_01/operations/registries_operations.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2017_03_01/operations/registries_operations.py @@ -129,7 +129,7 @@ def get( url = self.get.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } url = self._client.format_url(url, **path_format_arguments) @@ -176,7 +176,7 @@ def _create_initial( url = self.create.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } url = self._client.format_url(url, **path_format_arguments) @@ -294,7 +294,7 @@ def delete( url = self.delete.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } url = self._client.format_url(url, **path_format_arguments) @@ -353,7 +353,7 @@ def update( url = self.update.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } url = self._client.format_url(url, **path_format_arguments) @@ -421,7 +421,7 @@ def internal_paging(next_link=None, raw=False): url = self.list_by_resource_group.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str') + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1) } url = self._client.format_url(url, **path_format_arguments) @@ -554,7 +554,7 @@ def list_credentials( url = self.list_credentials.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } url = self._client.format_url(url, **path_format_arguments) @@ -627,7 +627,7 @@ def regenerate_credential( url = self.regenerate_credential.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } url = self._client.format_url(url, **path_format_arguments) diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2017_10_01/models/__init__.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2017_10_01/models/__init__.py index 964267287ad9..ddf4a46dfcc1 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2017_10_01/models/__init__.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2017_10_01/models/__init__.py @@ -22,6 +22,8 @@ from .sku_py3 import Sku from .status_py3 import Status from .storage_account_properties_py3 import StorageAccountProperties + from .virtual_network_rule_py3 import VirtualNetworkRule + from .network_rule_set_py3 import NetworkRuleSet from .registry_py3 import Registry from .registry_update_parameters_py3 import RegistryUpdateParameters from .registry_password_py3 import RegistryPassword @@ -61,6 +63,8 @@ from .sku import Sku from .status import Status from .storage_account_properties import StorageAccountProperties + from .virtual_network_rule import VirtualNetworkRule + from .network_rule_set import NetworkRuleSet from .registry import Registry from .registry_update_parameters import RegistryUpdateParameters from .registry_password import RegistryPassword @@ -97,6 +101,7 @@ SkuName, SkuTier, ProvisioningState, + DefaultAction, PasswordName, RegistryUsageUnit, PolicyStatus, @@ -118,6 +123,8 @@ 'Sku', 'Status', 'StorageAccountProperties', + 'VirtualNetworkRule', + 'NetworkRuleSet', 'Registry', 'RegistryUpdateParameters', 'RegistryPassword', @@ -153,6 +160,7 @@ 'SkuName', 'SkuTier', 'ProvisioningState', + 'DefaultAction', 'PasswordName', 'RegistryUsageUnit', 'PolicyStatus', diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2017_10_01/models/container_registry_management_client_enums.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2017_10_01/models/container_registry_management_client_enums.py index cb15336b81f1..263fe2f1145f 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2017_10_01/models/container_registry_management_client_enums.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2017_10_01/models/container_registry_management_client_enums.py @@ -44,6 +44,12 @@ class ProvisioningState(str, Enum): canceled = "Canceled" +class DefaultAction(str, Enum): + + allow = "Allow" + deny = "Deny" + + class PasswordName(str, Enum): password = "password" diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2017_10_01/models/network_rule_set.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2017_10_01/models/network_rule_set.py new file mode 100644 index 000000000000..7d191ea24a03 --- /dev/null +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2017_10_01/models/network_rule_set.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class NetworkRuleSet(Model): + """The network rule set for a container registry. + + All required parameters must be populated in order to send to Azure. + + :param default_action: Required. The default action of allow or deny when + no other rules match. Possible values include: 'Allow', 'Deny'. Default + value: "Allow" . + :type default_action: str or + ~azure.mgmt.containerregistry.v2017_10_01.models.DefaultAction + :param virtual_network_rules: The virtual network rules. + :type virtual_network_rules: + list[~azure.mgmt.containerregistry.v2017_10_01.models.VirtualNetworkRule] + """ + + _validation = { + 'default_action': {'required': True}, + } + + _attribute_map = { + 'default_action': {'key': 'defaultAction', 'type': 'str'}, + 'virtual_network_rules': {'key': 'virtualNetworkRules', 'type': '[VirtualNetworkRule]'}, + } + + def __init__(self, **kwargs): + super(NetworkRuleSet, self).__init__(**kwargs) + self.default_action = kwargs.get('default_action', "Allow") + self.virtual_network_rules = kwargs.get('virtual_network_rules', None) diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2017_10_01/models/network_rule_set_py3.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2017_10_01/models/network_rule_set_py3.py new file mode 100644 index 000000000000..2f1a3255f784 --- /dev/null +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2017_10_01/models/network_rule_set_py3.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class NetworkRuleSet(Model): + """The network rule set for a container registry. + + All required parameters must be populated in order to send to Azure. + + :param default_action: Required. The default action of allow or deny when + no other rules match. Possible values include: 'Allow', 'Deny'. Default + value: "Allow" . + :type default_action: str or + ~azure.mgmt.containerregistry.v2017_10_01.models.DefaultAction + :param virtual_network_rules: The virtual network rules. + :type virtual_network_rules: + list[~azure.mgmt.containerregistry.v2017_10_01.models.VirtualNetworkRule] + """ + + _validation = { + 'default_action': {'required': True}, + } + + _attribute_map = { + 'default_action': {'key': 'defaultAction', 'type': 'str'}, + 'virtual_network_rules': {'key': 'virtualNetworkRules', 'type': '[VirtualNetworkRule]'}, + } + + def __init__(self, *, default_action="Allow", virtual_network_rules=None, **kwargs) -> None: + super(NetworkRuleSet, self).__init__(**kwargs) + self.default_action = default_action + self.virtual_network_rules = virtual_network_rules diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2017_10_01/models/registry.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2017_10_01/models/registry.py index 64d644e1e1be..665a6f3adf3c 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2017_10_01/models/registry.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2017_10_01/models/registry.py @@ -54,6 +54,9 @@ class Registry(Resource): container registry. Only applicable to Classic SKU. :type storage_account: ~azure.mgmt.containerregistry.v2017_10_01.models.StorageAccountProperties + :param network_rule_set: The network rule set for a container registry. + :type network_rule_set: + ~azure.mgmt.containerregistry.v2017_10_01.models.NetworkRuleSet """ _validation = { @@ -81,6 +84,7 @@ class Registry(Resource): 'status': {'key': 'properties.status', 'type': 'Status'}, 'admin_user_enabled': {'key': 'properties.adminUserEnabled', 'type': 'bool'}, 'storage_account': {'key': 'properties.storageAccount', 'type': 'StorageAccountProperties'}, + 'network_rule_set': {'key': 'properties.networkRuleSet', 'type': 'NetworkRuleSet'}, } def __init__(self, **kwargs): @@ -92,3 +96,4 @@ def __init__(self, **kwargs): self.status = None self.admin_user_enabled = kwargs.get('admin_user_enabled', False) self.storage_account = kwargs.get('storage_account', None) + self.network_rule_set = kwargs.get('network_rule_set', None) diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2017_10_01/models/registry_py3.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2017_10_01/models/registry_py3.py index 0ab8610f20b5..f75dd233428a 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2017_10_01/models/registry_py3.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2017_10_01/models/registry_py3.py @@ -54,6 +54,9 @@ class Registry(Resource): container registry. Only applicable to Classic SKU. :type storage_account: ~azure.mgmt.containerregistry.v2017_10_01.models.StorageAccountProperties + :param network_rule_set: The network rule set for a container registry. + :type network_rule_set: + ~azure.mgmt.containerregistry.v2017_10_01.models.NetworkRuleSet """ _validation = { @@ -81,9 +84,10 @@ class Registry(Resource): 'status': {'key': 'properties.status', 'type': 'Status'}, 'admin_user_enabled': {'key': 'properties.adminUserEnabled', 'type': 'bool'}, 'storage_account': {'key': 'properties.storageAccount', 'type': 'StorageAccountProperties'}, + 'network_rule_set': {'key': 'properties.networkRuleSet', 'type': 'NetworkRuleSet'}, } - def __init__(self, *, location: str, sku, tags=None, admin_user_enabled: bool=False, storage_account=None, **kwargs) -> None: + def __init__(self, *, location: str, sku, tags=None, admin_user_enabled: bool=False, storage_account=None, network_rule_set=None, **kwargs) -> None: super(Registry, self).__init__(location=location, tags=tags, **kwargs) self.sku = sku self.login_server = None @@ -92,3 +96,4 @@ def __init__(self, *, location: str, sku, tags=None, admin_user_enabled: bool=Fa self.status = None self.admin_user_enabled = admin_user_enabled self.storage_account = storage_account + self.network_rule_set = network_rule_set diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2017_10_01/models/registry_update_parameters.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2017_10_01/models/registry_update_parameters.py index 0a39b1291570..11317a0df58b 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2017_10_01/models/registry_update_parameters.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2017_10_01/models/registry_update_parameters.py @@ -28,6 +28,9 @@ class RegistryUpdateParameters(Model): registry. :type storage_account: ~azure.mgmt.containerregistry.v2017_10_01.models.StorageAccountProperties + :param network_rule_set: The network rule set for a container registry. + :type network_rule_set: + ~azure.mgmt.containerregistry.v2017_10_01.models.NetworkRuleSet """ _attribute_map = { @@ -35,6 +38,7 @@ class RegistryUpdateParameters(Model): 'sku': {'key': 'sku', 'type': 'Sku'}, 'admin_user_enabled': {'key': 'properties.adminUserEnabled', 'type': 'bool'}, 'storage_account': {'key': 'properties.storageAccount', 'type': 'StorageAccountProperties'}, + 'network_rule_set': {'key': 'properties.networkRuleSet', 'type': 'NetworkRuleSet'}, } def __init__(self, **kwargs): @@ -43,3 +47,4 @@ def __init__(self, **kwargs): self.sku = kwargs.get('sku', None) self.admin_user_enabled = kwargs.get('admin_user_enabled', None) self.storage_account = kwargs.get('storage_account', None) + self.network_rule_set = kwargs.get('network_rule_set', None) diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2017_10_01/models/registry_update_parameters_py3.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2017_10_01/models/registry_update_parameters_py3.py index 0639f0c8f4c6..92f3d34bb8c9 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2017_10_01/models/registry_update_parameters_py3.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2017_10_01/models/registry_update_parameters_py3.py @@ -28,6 +28,9 @@ class RegistryUpdateParameters(Model): registry. :type storage_account: ~azure.mgmt.containerregistry.v2017_10_01.models.StorageAccountProperties + :param network_rule_set: The network rule set for a container registry. + :type network_rule_set: + ~azure.mgmt.containerregistry.v2017_10_01.models.NetworkRuleSet """ _attribute_map = { @@ -35,11 +38,13 @@ class RegistryUpdateParameters(Model): 'sku': {'key': 'sku', 'type': 'Sku'}, 'admin_user_enabled': {'key': 'properties.adminUserEnabled', 'type': 'bool'}, 'storage_account': {'key': 'properties.storageAccount', 'type': 'StorageAccountProperties'}, + 'network_rule_set': {'key': 'properties.networkRuleSet', 'type': 'NetworkRuleSet'}, } - def __init__(self, *, tags=None, sku=None, admin_user_enabled: bool=None, storage_account=None, **kwargs) -> None: + def __init__(self, *, tags=None, sku=None, admin_user_enabled: bool=None, storage_account=None, network_rule_set=None, **kwargs) -> None: super(RegistryUpdateParameters, self).__init__(**kwargs) self.tags = tags self.sku = sku self.admin_user_enabled = admin_user_enabled self.storage_account = storage_account + self.network_rule_set = network_rule_set diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2017_10_01/models/virtual_network_rule.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2017_10_01/models/virtual_network_rule.py new file mode 100644 index 000000000000..a22dea97ed0b --- /dev/null +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2017_10_01/models/virtual_network_rule.py @@ -0,0 +1,35 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class VirtualNetworkRule(Model): + """The virtual network rule for a container registry. + + All required parameters must be populated in order to send to Azure. + + :param id: Required. Resource ID of a subnet, for example: + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}. + :type id: str + """ + + _validation = { + 'id': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(VirtualNetworkRule, self).__init__(**kwargs) + self.id = kwargs.get('id', None) diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2017_10_01/models/virtual_network_rule_py3.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2017_10_01/models/virtual_network_rule_py3.py new file mode 100644 index 000000000000..476e8cf718ed --- /dev/null +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2017_10_01/models/virtual_network_rule_py3.py @@ -0,0 +1,35 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class VirtualNetworkRule(Model): + """The virtual network rule for a container registry. + + All required parameters must be populated in order to send to Azure. + + :param id: Required. Resource ID of a subnet, for example: + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}. + :type id: str + """ + + _validation = { + 'id': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__(self, *, id: str, **kwargs) -> None: + super(VirtualNetworkRule, self).__init__(**kwargs) + self.id = id diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2017_10_01/operations/registries_operations.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2017_10_01/operations/registries_operations.py index 9221a98c7052..efb8cf96cb78 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2017_10_01/operations/registries_operations.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2017_10_01/operations/registries_operations.py @@ -46,7 +46,7 @@ def _import_image_initial( url = self.import_image.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } url = self._client.format_url(url, **path_format_arguments) @@ -219,7 +219,7 @@ def get( url = self.get.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } url = self._client.format_url(url, **path_format_arguments) @@ -266,7 +266,7 @@ def _create_initial( url = self.create.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } url = self._client.format_url(url, **path_format_arguments) @@ -370,7 +370,7 @@ def _delete_initial( url = self.delete.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } url = self._client.format_url(url, **path_format_arguments) @@ -450,7 +450,7 @@ def _update_initial( url = self.update.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } url = self._client.format_url(url, **path_format_arguments) @@ -572,7 +572,7 @@ def internal_paging(next_link=None, raw=False): url = self.list_by_resource_group.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str') + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1) } url = self._client.format_url(url, **path_format_arguments) @@ -705,7 +705,7 @@ def list_credentials( url = self.list_credentials.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } url = self._client.format_url(url, **path_format_arguments) @@ -778,7 +778,7 @@ def regenerate_credential( url = self.regenerate_credential.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } url = self._client.format_url(url, **path_format_arguments) @@ -846,7 +846,7 @@ def list_usages( url = self.list_usages.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } url = self._client.format_url(url, **path_format_arguments) @@ -910,7 +910,7 @@ def list_policies( url = self.list_policies.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } url = self._client.format_url(url, **path_format_arguments) @@ -959,7 +959,7 @@ def _update_policies_initial( url = self.update_policies.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } url = self._client.format_url(url, **path_format_arguments) diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2017_10_01/operations/replications_operations.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2017_10_01/operations/replications_operations.py index 2df735992f62..9b06b310ac36 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2017_10_01/operations/replications_operations.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2017_10_01/operations/replications_operations.py @@ -64,7 +64,7 @@ def get( url = self.get.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$'), 'replicationName': self._serialize.url("replication_name", replication_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } @@ -114,7 +114,7 @@ def _create_initial( url = self.create.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$'), 'replicationName': self._serialize.url("replication_name", replication_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } @@ -226,7 +226,7 @@ def _delete_initial( url = self.delete.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$'), 'replicationName': self._serialize.url("replication_name", replication_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } @@ -312,7 +312,7 @@ def _update_initial( url = self.update.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$'), 'replicationName': self._serialize.url("replication_name", replication_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } @@ -439,7 +439,7 @@ def internal_paging(next_link=None, raw=False): url = self.list.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } url = self._client.format_url(url, **path_format_arguments) diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2017_10_01/operations/webhooks_operations.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2017_10_01/operations/webhooks_operations.py index b5f3f1e35f23..8d315567e16d 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2017_10_01/operations/webhooks_operations.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2017_10_01/operations/webhooks_operations.py @@ -64,7 +64,7 @@ def get( url = self.get.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$'), 'webhookName': self._serialize.url("webhook_name", webhook_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } @@ -112,7 +112,7 @@ def _create_initial( url = self.create.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$'), 'webhookName': self._serialize.url("webhook_name", webhook_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } @@ -222,7 +222,7 @@ def _delete_initial( url = self.delete.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$'), 'webhookName': self._serialize.url("webhook_name", webhook_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } @@ -306,7 +306,7 @@ def _update_initial( url = self.update.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$'), 'webhookName': self._serialize.url("webhook_name", webhook_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } @@ -434,7 +434,7 @@ def internal_paging(next_link=None, raw=False): url = self.list.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } url = self._client.format_url(url, **path_format_arguments) @@ -504,7 +504,7 @@ def ping( url = self.ping.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$'), 'webhookName': self._serialize.url("webhook_name", webhook_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } @@ -572,7 +572,7 @@ def get_callback_config( url = self.get_callback_config.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$'), 'webhookName': self._serialize.url("webhook_name", webhook_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } @@ -641,7 +641,7 @@ def internal_paging(next_link=None, raw=False): url = self.list_events.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$'), 'webhookName': self._serialize.url("webhook_name", webhook_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_02_01_preview/models/__init__.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_02_01_preview/models/__init__.py index adec0c249a71..ad51020aedc1 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_02_01_preview/models/__init__.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_02_01_preview/models/__init__.py @@ -22,6 +22,8 @@ from .sku_py3 import Sku from .status_py3 import Status from .storage_account_properties_py3 import StorageAccountProperties + from .virtual_network_rule_py3 import VirtualNetworkRule + from .network_rule_set_py3 import NetworkRuleSet from .registry_py3 import Registry from .registry_update_parameters_py3 import RegistryUpdateParameters from .registry_password_py3 import RegistryPassword @@ -88,6 +90,8 @@ from .sku import Sku from .status import Status from .storage_account_properties import StorageAccountProperties + from .virtual_network_rule import VirtualNetworkRule + from .network_rule_set import NetworkRuleSet from .registry import Registry from .registry_update_parameters import RegistryUpdateParameters from .registry_password import RegistryPassword @@ -155,6 +159,7 @@ SkuName, SkuTier, ProvisioningState, + DefaultAction, PasswordName, RegistryUsageUnit, PolicyStatus, @@ -184,6 +189,8 @@ 'Sku', 'Status', 'StorageAccountProperties', + 'VirtualNetworkRule', + 'NetworkRuleSet', 'Registry', 'RegistryUpdateParameters', 'RegistryPassword', @@ -250,6 +257,7 @@ 'SkuName', 'SkuTier', 'ProvisioningState', + 'DefaultAction', 'PasswordName', 'RegistryUsageUnit', 'PolicyStatus', diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_02_01_preview/models/container_registry_management_client_enums.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_02_01_preview/models/container_registry_management_client_enums.py index 7e8a358ecd2c..fed1d2e8a695 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_02_01_preview/models/container_registry_management_client_enums.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_02_01_preview/models/container_registry_management_client_enums.py @@ -44,6 +44,12 @@ class ProvisioningState(str, Enum): canceled = "Canceled" +class DefaultAction(str, Enum): + + allow = "Allow" + deny = "Deny" + + class PasswordName(str, Enum): password = "password" diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_02_01_preview/models/network_rule_set.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_02_01_preview/models/network_rule_set.py new file mode 100644 index 000000000000..b847e1ad8eb3 --- /dev/null +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_02_01_preview/models/network_rule_set.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class NetworkRuleSet(Model): + """The network rule set for a container registry. + + All required parameters must be populated in order to send to Azure. + + :param default_action: Required. The default action of allow or deny when + no other rules match. Possible values include: 'Allow', 'Deny'. Default + value: "Allow" . + :type default_action: str or + ~azure.mgmt.containerregistry.v2018_02_01_preview.models.DefaultAction + :param virtual_network_rules: The virtual network rules. + :type virtual_network_rules: + list[~azure.mgmt.containerregistry.v2018_02_01_preview.models.VirtualNetworkRule] + """ + + _validation = { + 'default_action': {'required': True}, + } + + _attribute_map = { + 'default_action': {'key': 'defaultAction', 'type': 'str'}, + 'virtual_network_rules': {'key': 'virtualNetworkRules', 'type': '[VirtualNetworkRule]'}, + } + + def __init__(self, **kwargs): + super(NetworkRuleSet, self).__init__(**kwargs) + self.default_action = kwargs.get('default_action', "Allow") + self.virtual_network_rules = kwargs.get('virtual_network_rules', None) diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_02_01_preview/models/network_rule_set_py3.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_02_01_preview/models/network_rule_set_py3.py new file mode 100644 index 000000000000..90b4ae797fe7 --- /dev/null +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_02_01_preview/models/network_rule_set_py3.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class NetworkRuleSet(Model): + """The network rule set for a container registry. + + All required parameters must be populated in order to send to Azure. + + :param default_action: Required. The default action of allow or deny when + no other rules match. Possible values include: 'Allow', 'Deny'. Default + value: "Allow" . + :type default_action: str or + ~azure.mgmt.containerregistry.v2018_02_01_preview.models.DefaultAction + :param virtual_network_rules: The virtual network rules. + :type virtual_network_rules: + list[~azure.mgmt.containerregistry.v2018_02_01_preview.models.VirtualNetworkRule] + """ + + _validation = { + 'default_action': {'required': True}, + } + + _attribute_map = { + 'default_action': {'key': 'defaultAction', 'type': 'str'}, + 'virtual_network_rules': {'key': 'virtualNetworkRules', 'type': '[VirtualNetworkRule]'}, + } + + def __init__(self, *, default_action="Allow", virtual_network_rules=None, **kwargs) -> None: + super(NetworkRuleSet, self).__init__(**kwargs) + self.default_action = default_action + self.virtual_network_rules = virtual_network_rules diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_02_01_preview/models/registry.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_02_01_preview/models/registry.py index 239c1c7d9a2b..28b42cf2d1bb 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_02_01_preview/models/registry.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_02_01_preview/models/registry.py @@ -55,6 +55,9 @@ class Registry(Resource): container registry. Only applicable to Classic SKU. :type storage_account: ~azure.mgmt.containerregistry.v2018_02_01_preview.models.StorageAccountProperties + :param network_rule_set: The network rule set for a container registry. + :type network_rule_set: + ~azure.mgmt.containerregistry.v2018_02_01_preview.models.NetworkRuleSet """ _validation = { @@ -82,6 +85,7 @@ class Registry(Resource): 'status': {'key': 'properties.status', 'type': 'Status'}, 'admin_user_enabled': {'key': 'properties.adminUserEnabled', 'type': 'bool'}, 'storage_account': {'key': 'properties.storageAccount', 'type': 'StorageAccountProperties'}, + 'network_rule_set': {'key': 'properties.networkRuleSet', 'type': 'NetworkRuleSet'}, } def __init__(self, **kwargs): @@ -93,3 +97,4 @@ def __init__(self, **kwargs): self.status = None self.admin_user_enabled = kwargs.get('admin_user_enabled', False) self.storage_account = kwargs.get('storage_account', None) + self.network_rule_set = kwargs.get('network_rule_set', None) diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_02_01_preview/models/registry_py3.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_02_01_preview/models/registry_py3.py index 751889cd8cac..c408d04117d6 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_02_01_preview/models/registry_py3.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_02_01_preview/models/registry_py3.py @@ -55,6 +55,9 @@ class Registry(Resource): container registry. Only applicable to Classic SKU. :type storage_account: ~azure.mgmt.containerregistry.v2018_02_01_preview.models.StorageAccountProperties + :param network_rule_set: The network rule set for a container registry. + :type network_rule_set: + ~azure.mgmt.containerregistry.v2018_02_01_preview.models.NetworkRuleSet """ _validation = { @@ -82,9 +85,10 @@ class Registry(Resource): 'status': {'key': 'properties.status', 'type': 'Status'}, 'admin_user_enabled': {'key': 'properties.adminUserEnabled', 'type': 'bool'}, 'storage_account': {'key': 'properties.storageAccount', 'type': 'StorageAccountProperties'}, + 'network_rule_set': {'key': 'properties.networkRuleSet', 'type': 'NetworkRuleSet'}, } - def __init__(self, *, location: str, sku, tags=None, admin_user_enabled: bool=False, storage_account=None, **kwargs) -> None: + def __init__(self, *, location: str, sku, tags=None, admin_user_enabled: bool=False, storage_account=None, network_rule_set=None, **kwargs) -> None: super(Registry, self).__init__(location=location, tags=tags, **kwargs) self.sku = sku self.login_server = None @@ -93,3 +97,4 @@ def __init__(self, *, location: str, sku, tags=None, admin_user_enabled: bool=Fa self.status = None self.admin_user_enabled = admin_user_enabled self.storage_account = storage_account + self.network_rule_set = network_rule_set diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_02_01_preview/models/registry_update_parameters.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_02_01_preview/models/registry_update_parameters.py index c71ae281d078..b70002cc5050 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_02_01_preview/models/registry_update_parameters.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_02_01_preview/models/registry_update_parameters.py @@ -28,6 +28,9 @@ class RegistryUpdateParameters(Model): registry. :type storage_account: ~azure.mgmt.containerregistry.v2018_02_01_preview.models.StorageAccountProperties + :param network_rule_set: The network rule set for a container registry. + :type network_rule_set: + ~azure.mgmt.containerregistry.v2018_02_01_preview.models.NetworkRuleSet """ _attribute_map = { @@ -35,6 +38,7 @@ class RegistryUpdateParameters(Model): 'sku': {'key': 'sku', 'type': 'Sku'}, 'admin_user_enabled': {'key': 'properties.adminUserEnabled', 'type': 'bool'}, 'storage_account': {'key': 'properties.storageAccount', 'type': 'StorageAccountProperties'}, + 'network_rule_set': {'key': 'properties.networkRuleSet', 'type': 'NetworkRuleSet'}, } def __init__(self, **kwargs): @@ -43,3 +47,4 @@ def __init__(self, **kwargs): self.sku = kwargs.get('sku', None) self.admin_user_enabled = kwargs.get('admin_user_enabled', None) self.storage_account = kwargs.get('storage_account', None) + self.network_rule_set = kwargs.get('network_rule_set', None) diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_02_01_preview/models/registry_update_parameters_py3.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_02_01_preview/models/registry_update_parameters_py3.py index e61030896b9c..0220150bff61 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_02_01_preview/models/registry_update_parameters_py3.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_02_01_preview/models/registry_update_parameters_py3.py @@ -28,6 +28,9 @@ class RegistryUpdateParameters(Model): registry. :type storage_account: ~azure.mgmt.containerregistry.v2018_02_01_preview.models.StorageAccountProperties + :param network_rule_set: The network rule set for a container registry. + :type network_rule_set: + ~azure.mgmt.containerregistry.v2018_02_01_preview.models.NetworkRuleSet """ _attribute_map = { @@ -35,11 +38,13 @@ class RegistryUpdateParameters(Model): 'sku': {'key': 'sku', 'type': 'Sku'}, 'admin_user_enabled': {'key': 'properties.adminUserEnabled', 'type': 'bool'}, 'storage_account': {'key': 'properties.storageAccount', 'type': 'StorageAccountProperties'}, + 'network_rule_set': {'key': 'properties.networkRuleSet', 'type': 'NetworkRuleSet'}, } - def __init__(self, *, tags=None, sku=None, admin_user_enabled: bool=None, storage_account=None, **kwargs) -> None: + def __init__(self, *, tags=None, sku=None, admin_user_enabled: bool=None, storage_account=None, network_rule_set=None, **kwargs) -> None: super(RegistryUpdateParameters, self).__init__(**kwargs) self.tags = tags self.sku = sku self.admin_user_enabled = admin_user_enabled self.storage_account = storage_account + self.network_rule_set = network_rule_set diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_02_01_preview/models/virtual_network_rule.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_02_01_preview/models/virtual_network_rule.py new file mode 100644 index 000000000000..a22dea97ed0b --- /dev/null +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_02_01_preview/models/virtual_network_rule.py @@ -0,0 +1,35 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class VirtualNetworkRule(Model): + """The virtual network rule for a container registry. + + All required parameters must be populated in order to send to Azure. + + :param id: Required. Resource ID of a subnet, for example: + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}. + :type id: str + """ + + _validation = { + 'id': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(VirtualNetworkRule, self).__init__(**kwargs) + self.id = kwargs.get('id', None) diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_02_01_preview/models/virtual_network_rule_py3.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_02_01_preview/models/virtual_network_rule_py3.py new file mode 100644 index 000000000000..476e8cf718ed --- /dev/null +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_02_01_preview/models/virtual_network_rule_py3.py @@ -0,0 +1,35 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class VirtualNetworkRule(Model): + """The virtual network rule for a container registry. + + All required parameters must be populated in order to send to Azure. + + :param id: Required. Resource ID of a subnet, for example: + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}. + :type id: str + """ + + _validation = { + 'id': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__(self, *, id: str, **kwargs) -> None: + super(VirtualNetworkRule, self).__init__(**kwargs) + self.id = id diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_02_01_preview/operations/registries_operations.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_02_01_preview/operations/registries_operations.py index 2c848bd0dcd6..2b25edd7f940 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_02_01_preview/operations/registries_operations.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_02_01_preview/operations/registries_operations.py @@ -46,7 +46,7 @@ def _import_image_initial( url = self.import_image.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } url = self._client.format_url(url, **path_format_arguments) @@ -224,7 +224,7 @@ def get( url = self.get.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } url = self._client.format_url(url, **path_format_arguments) @@ -273,7 +273,7 @@ def _create_initial( url = self.create.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } url = self._client.format_url(url, **path_format_arguments) @@ -379,7 +379,7 @@ def _delete_initial( url = self.delete.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } url = self._client.format_url(url, **path_format_arguments) @@ -461,7 +461,7 @@ def _update_initial( url = self.update.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } url = self._client.format_url(url, **path_format_arguments) @@ -585,7 +585,7 @@ def internal_paging(next_link=None, raw=False): url = self.list_by_resource_group.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str') + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1) } url = self._client.format_url(url, **path_format_arguments) @@ -722,7 +722,7 @@ def list_credentials( url = self.list_credentials.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } url = self._client.format_url(url, **path_format_arguments) @@ -797,7 +797,7 @@ def regenerate_credential( url = self.regenerate_credential.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } url = self._client.format_url(url, **path_format_arguments) @@ -867,7 +867,7 @@ def list_usages( url = self.list_usages.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } url = self._client.format_url(url, **path_format_arguments) @@ -933,7 +933,7 @@ def list_policies( url = self.list_policies.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } url = self._client.format_url(url, **path_format_arguments) @@ -984,7 +984,7 @@ def _update_policies_initial( url = self.update_policies.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } url = self._client.format_url(url, **path_format_arguments) diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_02_01_preview/operations/replications_operations.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_02_01_preview/operations/replications_operations.py index 5dee662e59d2..504583419b90 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_02_01_preview/operations/replications_operations.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_02_01_preview/operations/replications_operations.py @@ -65,7 +65,7 @@ def get( url = self.get.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$'), 'replicationName': self._serialize.url("replication_name", replication_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } @@ -115,7 +115,7 @@ def _create_initial( url = self.create.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$'), 'replicationName': self._serialize.url("replication_name", replication_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } @@ -227,7 +227,7 @@ def _delete_initial( url = self.delete.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$'), 'replicationName': self._serialize.url("replication_name", replication_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } @@ -313,7 +313,7 @@ def _update_initial( url = self.update.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$'), 'replicationName': self._serialize.url("replication_name", replication_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } @@ -440,7 +440,7 @@ def internal_paging(next_link=None, raw=False): url = self.list.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } url = self._client.format_url(url, **path_format_arguments) diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_02_01_preview/operations/webhooks_operations.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_02_01_preview/operations/webhooks_operations.py index 6ff7bf1352c4..836d297d8df5 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_02_01_preview/operations/webhooks_operations.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_02_01_preview/operations/webhooks_operations.py @@ -65,7 +65,7 @@ def get( url = self.get.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$'), 'webhookName': self._serialize.url("webhook_name", webhook_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } @@ -113,7 +113,7 @@ def _create_initial( url = self.create.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$'), 'webhookName': self._serialize.url("webhook_name", webhook_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } @@ -223,7 +223,7 @@ def _delete_initial( url = self.delete.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$'), 'webhookName': self._serialize.url("webhook_name", webhook_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } @@ -307,7 +307,7 @@ def _update_initial( url = self.update.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$'), 'webhookName': self._serialize.url("webhook_name", webhook_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } @@ -435,7 +435,7 @@ def internal_paging(next_link=None, raw=False): url = self.list.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } url = self._client.format_url(url, **path_format_arguments) @@ -506,7 +506,7 @@ def ping( url = self.ping.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$'), 'webhookName': self._serialize.url("webhook_name", webhook_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } @@ -574,7 +574,7 @@ def get_callback_config( url = self.get_callback_config.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$'), 'webhookName': self._serialize.url("webhook_name", webhook_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } @@ -643,7 +643,7 @@ def internal_paging(next_link=None, raw=False): url = self.list_events.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$'), 'webhookName': self._serialize.url("webhook_name", webhook_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/__init__.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/__init__.py index 6156c3a5cadb..b79568b7a688 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/__init__.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/__init__.py @@ -22,6 +22,8 @@ from .sku_py3 import Sku from .status_py3 import Status from .storage_account_properties_py3 import StorageAccountProperties + from .virtual_network_rule_py3 import VirtualNetworkRule + from .network_rule_set_py3 import NetworkRuleSet from .registry_py3 import Registry from .registry_update_parameters_py3 import RegistryUpdateParameters from .registry_password_py3 import RegistryPassword @@ -101,6 +103,8 @@ from .sku import Sku from .status import Status from .storage_account_properties import StorageAccountProperties + from .virtual_network_rule import VirtualNetworkRule + from .network_rule_set import NetworkRuleSet from .registry import Registry from .registry_update_parameters import RegistryUpdateParameters from .registry_password import RegistryPassword @@ -179,6 +183,7 @@ SkuName, SkuTier, ProvisioningState, + DefaultAction, PasswordName, RegistryUsageUnit, PolicyStatus, @@ -212,6 +217,8 @@ 'Sku', 'Status', 'StorageAccountProperties', + 'VirtualNetworkRule', + 'NetworkRuleSet', 'Registry', 'RegistryUpdateParameters', 'RegistryPassword', @@ -289,6 +296,7 @@ 'SkuName', 'SkuTier', 'ProvisioningState', + 'DefaultAction', 'PasswordName', 'RegistryUsageUnit', 'PolicyStatus', diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/container_registry_management_client_enums.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/container_registry_management_client_enums.py index ae0685705827..1de046066b30 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/container_registry_management_client_enums.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/container_registry_management_client_enums.py @@ -44,6 +44,12 @@ class ProvisioningState(str, Enum): canceled = "Canceled" +class DefaultAction(str, Enum): + + allow = "Allow" + deny = "Deny" + + class PasswordName(str, Enum): password = "password" diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/network_rule_set.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/network_rule_set.py new file mode 100644 index 000000000000..6985b4ebe32e --- /dev/null +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/network_rule_set.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class NetworkRuleSet(Model): + """The network rule set for a container registry. + + All required parameters must be populated in order to send to Azure. + + :param default_action: Required. The default action of allow or deny when + no other rules match. Possible values include: 'Allow', 'Deny'. Default + value: "Allow" . + :type default_action: str or + ~azure.mgmt.containerregistry.v2018_09_01.models.DefaultAction + :param virtual_network_rules: The virtual network rules. + :type virtual_network_rules: + list[~azure.mgmt.containerregistry.v2018_09_01.models.VirtualNetworkRule] + """ + + _validation = { + 'default_action': {'required': True}, + } + + _attribute_map = { + 'default_action': {'key': 'defaultAction', 'type': 'str'}, + 'virtual_network_rules': {'key': 'virtualNetworkRules', 'type': '[VirtualNetworkRule]'}, + } + + def __init__(self, **kwargs): + super(NetworkRuleSet, self).__init__(**kwargs) + self.default_action = kwargs.get('default_action', "Allow") + self.virtual_network_rules = kwargs.get('virtual_network_rules', None) diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/network_rule_set_py3.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/network_rule_set_py3.py new file mode 100644 index 000000000000..6f8c0eee6dd8 --- /dev/null +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/network_rule_set_py3.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class NetworkRuleSet(Model): + """The network rule set for a container registry. + + All required parameters must be populated in order to send to Azure. + + :param default_action: Required. The default action of allow or deny when + no other rules match. Possible values include: 'Allow', 'Deny'. Default + value: "Allow" . + :type default_action: str or + ~azure.mgmt.containerregistry.v2018_09_01.models.DefaultAction + :param virtual_network_rules: The virtual network rules. + :type virtual_network_rules: + list[~azure.mgmt.containerregistry.v2018_09_01.models.VirtualNetworkRule] + """ + + _validation = { + 'default_action': {'required': True}, + } + + _attribute_map = { + 'default_action': {'key': 'defaultAction', 'type': 'str'}, + 'virtual_network_rules': {'key': 'virtualNetworkRules', 'type': '[VirtualNetworkRule]'}, + } + + def __init__(self, *, default_action="Allow", virtual_network_rules=None, **kwargs) -> None: + super(NetworkRuleSet, self).__init__(**kwargs) + self.default_action = default_action + self.virtual_network_rules = virtual_network_rules diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/registry.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/registry.py index 620129cafebf..a4e3349c8f81 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/registry.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/registry.py @@ -54,6 +54,9 @@ class Registry(Resource): container registry. Only applicable to Classic SKU. :type storage_account: ~azure.mgmt.containerregistry.v2018_09_01.models.StorageAccountProperties + :param network_rule_set: The network rule set for a container registry. + :type network_rule_set: + ~azure.mgmt.containerregistry.v2018_09_01.models.NetworkRuleSet """ _validation = { @@ -81,6 +84,7 @@ class Registry(Resource): 'status': {'key': 'properties.status', 'type': 'Status'}, 'admin_user_enabled': {'key': 'properties.adminUserEnabled', 'type': 'bool'}, 'storage_account': {'key': 'properties.storageAccount', 'type': 'StorageAccountProperties'}, + 'network_rule_set': {'key': 'properties.networkRuleSet', 'type': 'NetworkRuleSet'}, } def __init__(self, **kwargs): @@ -92,3 +96,4 @@ def __init__(self, **kwargs): self.status = None self.admin_user_enabled = kwargs.get('admin_user_enabled', False) self.storage_account = kwargs.get('storage_account', None) + self.network_rule_set = kwargs.get('network_rule_set', None) diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/registry_py3.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/registry_py3.py index 049a2b708dcb..f5d7c73be877 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/registry_py3.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/registry_py3.py @@ -54,6 +54,9 @@ class Registry(Resource): container registry. Only applicable to Classic SKU. :type storage_account: ~azure.mgmt.containerregistry.v2018_09_01.models.StorageAccountProperties + :param network_rule_set: The network rule set for a container registry. + :type network_rule_set: + ~azure.mgmt.containerregistry.v2018_09_01.models.NetworkRuleSet """ _validation = { @@ -81,9 +84,10 @@ class Registry(Resource): 'status': {'key': 'properties.status', 'type': 'Status'}, 'admin_user_enabled': {'key': 'properties.adminUserEnabled', 'type': 'bool'}, 'storage_account': {'key': 'properties.storageAccount', 'type': 'StorageAccountProperties'}, + 'network_rule_set': {'key': 'properties.networkRuleSet', 'type': 'NetworkRuleSet'}, } - def __init__(self, *, location: str, sku, tags=None, admin_user_enabled: bool=False, storage_account=None, **kwargs) -> None: + def __init__(self, *, location: str, sku, tags=None, admin_user_enabled: bool=False, storage_account=None, network_rule_set=None, **kwargs) -> None: super(Registry, self).__init__(location=location, tags=tags, **kwargs) self.sku = sku self.login_server = None @@ -92,3 +96,4 @@ def __init__(self, *, location: str, sku, tags=None, admin_user_enabled: bool=Fa self.status = None self.admin_user_enabled = admin_user_enabled self.storage_account = storage_account + self.network_rule_set = network_rule_set diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/registry_update_parameters.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/registry_update_parameters.py index fa3786ebd673..8d773bfe9c9e 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/registry_update_parameters.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/registry_update_parameters.py @@ -28,6 +28,9 @@ class RegistryUpdateParameters(Model): registry. :type storage_account: ~azure.mgmt.containerregistry.v2018_09_01.models.StorageAccountProperties + :param network_rule_set: The network rule set for a container registry. + :type network_rule_set: + ~azure.mgmt.containerregistry.v2018_09_01.models.NetworkRuleSet """ _attribute_map = { @@ -35,6 +38,7 @@ class RegistryUpdateParameters(Model): 'sku': {'key': 'sku', 'type': 'Sku'}, 'admin_user_enabled': {'key': 'properties.adminUserEnabled', 'type': 'bool'}, 'storage_account': {'key': 'properties.storageAccount', 'type': 'StorageAccountProperties'}, + 'network_rule_set': {'key': 'properties.networkRuleSet', 'type': 'NetworkRuleSet'}, } def __init__(self, **kwargs): @@ -43,3 +47,4 @@ def __init__(self, **kwargs): self.sku = kwargs.get('sku', None) self.admin_user_enabled = kwargs.get('admin_user_enabled', None) self.storage_account = kwargs.get('storage_account', None) + self.network_rule_set = kwargs.get('network_rule_set', None) diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/registry_update_parameters_py3.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/registry_update_parameters_py3.py index c487af741eff..7b1efde6d76a 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/registry_update_parameters_py3.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/registry_update_parameters_py3.py @@ -28,6 +28,9 @@ class RegistryUpdateParameters(Model): registry. :type storage_account: ~azure.mgmt.containerregistry.v2018_09_01.models.StorageAccountProperties + :param network_rule_set: The network rule set for a container registry. + :type network_rule_set: + ~azure.mgmt.containerregistry.v2018_09_01.models.NetworkRuleSet """ _attribute_map = { @@ -35,11 +38,13 @@ class RegistryUpdateParameters(Model): 'sku': {'key': 'sku', 'type': 'Sku'}, 'admin_user_enabled': {'key': 'properties.adminUserEnabled', 'type': 'bool'}, 'storage_account': {'key': 'properties.storageAccount', 'type': 'StorageAccountProperties'}, + 'network_rule_set': {'key': 'properties.networkRuleSet', 'type': 'NetworkRuleSet'}, } - def __init__(self, *, tags=None, sku=None, admin_user_enabled: bool=None, storage_account=None, **kwargs) -> None: + def __init__(self, *, tags=None, sku=None, admin_user_enabled: bool=None, storage_account=None, network_rule_set=None, **kwargs) -> None: super(RegistryUpdateParameters, self).__init__(**kwargs) self.tags = tags self.sku = sku self.admin_user_enabled = admin_user_enabled self.storage_account = storage_account + self.network_rule_set = network_rule_set diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/task.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/task.py index 98b48005acb9..da65f5e3e5c4 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/task.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/task.py @@ -14,7 +14,7 @@ class Task(Resource): """The task that has the ARM resource and task properties. - The task will have all information to schedule a run against it. + The task will have all information to schedule a run against it. Variables are only populated by the server, and will be ignored when sending a request. diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/task_py3.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/task_py3.py index 55d58aae9356..f2b6b150bb6d 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/task_py3.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/task_py3.py @@ -14,7 +14,7 @@ class Task(Resource): """The task that has the ARM resource and task properties. - The task will have all information to schedule a run against it. + The task will have all information to schedule a run against it. Variables are only populated by the server, and will be ignored when sending a request. diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/virtual_network_rule.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/virtual_network_rule.py new file mode 100644 index 000000000000..a22dea97ed0b --- /dev/null +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/virtual_network_rule.py @@ -0,0 +1,35 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class VirtualNetworkRule(Model): + """The virtual network rule for a container registry. + + All required parameters must be populated in order to send to Azure. + + :param id: Required. Resource ID of a subnet, for example: + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}. + :type id: str + """ + + _validation = { + 'id': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(VirtualNetworkRule, self).__init__(**kwargs) + self.id = kwargs.get('id', None) diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/virtual_network_rule_py3.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/virtual_network_rule_py3.py new file mode 100644 index 000000000000..476e8cf718ed --- /dev/null +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/virtual_network_rule_py3.py @@ -0,0 +1,35 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class VirtualNetworkRule(Model): + """The virtual network rule for a container registry. + + All required parameters must be populated in order to send to Azure. + + :param id: Required. Resource ID of a subnet, for example: + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}. + :type id: str + """ + + _validation = { + 'id': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__(self, *, id: str, **kwargs) -> None: + super(VirtualNetworkRule, self).__init__(**kwargs) + self.id = id diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/operations/registries_operations.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/operations/registries_operations.py index 3464d2ce5608..3eb4e97c317f 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/operations/registries_operations.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/operations/registries_operations.py @@ -46,7 +46,7 @@ def _import_image_initial( url = self.import_image.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } url = self._client.format_url(url, **path_format_arguments) @@ -223,7 +223,7 @@ def get( url = self.get.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } url = self._client.format_url(url, **path_format_arguments) @@ -272,7 +272,7 @@ def _create_initial( url = self.create.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } url = self._client.format_url(url, **path_format_arguments) @@ -378,7 +378,7 @@ def _delete_initial( url = self.delete.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } url = self._client.format_url(url, **path_format_arguments) @@ -460,7 +460,7 @@ def _update_initial( url = self.update.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } url = self._client.format_url(url, **path_format_arguments) @@ -584,7 +584,7 @@ def internal_paging(next_link=None, raw=False): url = self.list_by_resource_group.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str') + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1) } url = self._client.format_url(url, **path_format_arguments) @@ -721,7 +721,7 @@ def list_credentials( url = self.list_credentials.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } url = self._client.format_url(url, **path_format_arguments) @@ -796,7 +796,7 @@ def regenerate_credential( url = self.regenerate_credential.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } url = self._client.format_url(url, **path_format_arguments) @@ -866,7 +866,7 @@ def list_usages( url = self.list_usages.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } url = self._client.format_url(url, **path_format_arguments) @@ -932,7 +932,7 @@ def list_policies( url = self.list_policies.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } url = self._client.format_url(url, **path_format_arguments) @@ -983,7 +983,7 @@ def _update_policies_initial( url = self.update_policies.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } url = self._client.format_url(url, **path_format_arguments) @@ -1093,7 +1093,7 @@ def _schedule_run_initial( url = self.schedule_run.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } url = self._client.format_url(url, **path_format_arguments) @@ -1215,7 +1215,7 @@ def get_build_source_upload_url( url = self.get_build_source_upload_url.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } url = self._client.format_url(url, **path_format_arguments) diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/operations/replications_operations.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/operations/replications_operations.py index 2e77093a9b34..6502b1c4b49d 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/operations/replications_operations.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/operations/replications_operations.py @@ -64,7 +64,7 @@ def get( url = self.get.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$'), 'replicationName': self._serialize.url("replication_name", replication_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } @@ -114,7 +114,7 @@ def _create_initial( url = self.create.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$'), 'replicationName': self._serialize.url("replication_name", replication_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } @@ -226,7 +226,7 @@ def _delete_initial( url = self.delete.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$'), 'replicationName': self._serialize.url("replication_name", replication_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } @@ -312,7 +312,7 @@ def _update_initial( url = self.update.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$'), 'replicationName': self._serialize.url("replication_name", replication_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } @@ -439,7 +439,7 @@ def internal_paging(next_link=None, raw=False): url = self.list.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } url = self._client.format_url(url, **path_format_arguments) diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/operations/runs_operations.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/operations/runs_operations.py index 2f0cecc6159c..8de207f2eadd 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/operations/runs_operations.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/operations/runs_operations.py @@ -73,7 +73,7 @@ def internal_paging(next_link=None, raw=False): url = self.list.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } url = self._client.format_url(url, **path_format_arguments) @@ -147,7 +147,7 @@ def get( url = self.get.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$'), 'runId': self._serialize.url("run_id", run_id, 'str') } @@ -197,7 +197,7 @@ def _update_initial( url = self.update.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$'), 'runId': self._serialize.url("run_id", run_id, 'str') } @@ -324,7 +324,7 @@ def get_log_sas_url( url = self.get_log_sas_url.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$'), 'runId': self._serialize.url("run_id", run_id, 'str') } @@ -372,7 +372,7 @@ def _cancel_initial( url = self.cancel.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$'), 'runId': self._serialize.url("run_id", run_id, 'str') } diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/operations/tasks_operations.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/operations/tasks_operations.py index 9a6bfc9c2d82..950477ebcd4c 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/operations/tasks_operations.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/operations/tasks_operations.py @@ -65,7 +65,7 @@ def internal_paging(next_link=None, raw=False): url = self.list.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } url = self._client.format_url(url, **path_format_arguments) @@ -135,7 +135,7 @@ def get( url = self.get.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$'), 'taskName': self._serialize.url("task_name", task_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9-_]*$') } @@ -183,7 +183,7 @@ def _create_initial( url = self.create.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$'), 'taskName': self._serialize.url("task_name", task_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9-_]*$') } @@ -291,7 +291,7 @@ def _delete_initial( url = self.delete.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$'), 'taskName': self._serialize.url("task_name", task_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9-_]*$') } @@ -375,7 +375,7 @@ def _update_initial( url = self.update.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$'), 'taskName': self._serialize.url("task_name", task_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9-_]*$') } @@ -501,7 +501,7 @@ def get_details( url = self.get_details.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$'), 'taskName': self._serialize.url("task_name", task_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9-_]*$') } diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/operations/webhooks_operations.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/operations/webhooks_operations.py index 9d6ca9fc03d1..398b15ae82e3 100644 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/operations/webhooks_operations.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/operations/webhooks_operations.py @@ -64,7 +64,7 @@ def get( url = self.get.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$'), 'webhookName': self._serialize.url("webhook_name", webhook_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } @@ -112,7 +112,7 @@ def _create_initial( url = self.create.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$'), 'webhookName': self._serialize.url("webhook_name", webhook_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } @@ -222,7 +222,7 @@ def _delete_initial( url = self.delete.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$'), 'webhookName': self._serialize.url("webhook_name", webhook_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } @@ -306,7 +306,7 @@ def _update_initial( url = self.update.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$'), 'webhookName': self._serialize.url("webhook_name", webhook_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } @@ -434,7 +434,7 @@ def internal_paging(next_link=None, raw=False): url = self.list.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } url = self._client.format_url(url, **path_format_arguments) @@ -504,7 +504,7 @@ def ping( url = self.ping.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$'), 'webhookName': self._serialize.url("webhook_name", webhook_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } @@ -572,7 +572,7 @@ def get_callback_config( url = self.get_callback_config.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$'), 'webhookName': self._serialize.url("webhook_name", webhook_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } @@ -641,7 +641,7 @@ def internal_paging(next_link=None, raw=False): url = self.list_events.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', min_length=1), 'registryName': self._serialize.url("registry_name", registry_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$'), 'webhookName': self._serialize.url("webhook_name", webhook_name, 'str', max_length=50, min_length=5, pattern=r'^[a-zA-Z0-9]*$') } diff --git a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/version.py b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/version.py index e0fbe90b8dbc..c00d9f85570e 100755 --- a/azure-mgmt-containerregistry/azure/mgmt/containerregistry/version.py +++ b/azure-mgmt-containerregistry/azure/mgmt/containerregistry/version.py @@ -9,4 +9,4 @@ # regenerated. # -------------------------------------------------------------------------- -VERSION = "2.4.0" +VERSION = "2.5.0" From 432cc6af7228d0ce5bf2cf8c76167b48cd2bdd30 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Mon, 10 Dec 2018 16:37:19 -0800 Subject: [PATCH 06/12] [AutoPR] logic/resource-manager (#2782) * Generated from 95a292d7110d9797050ecf6a7305199ae4fe2d1a (#2777) Adding in description of available filter options * Generated from 67a236748ca1406e2afe69d99f39a1c1bb7167c9 (#3118) Fix for extra / on the end of the triggers endpoint * Generated from 989e7b0c282b2fd93eda33260b929a28ae975cbe (#3191) Remove extra prep files, update the readme * [AutoPR logic/resource-manager] Change some string modelled enums back into enums (#3237) * Generated from 2b946c42fe05c892efee90f150c5b2b7897d9e8d Change some string modelled enums back into enums * Generated from c016726b2b4438bf45bdbebe25f68a67330478b0 Change EDIFACT back to be an enum, not a string * Packaging update of azure-mgmt-logic * Generated from 14736179143e9c45f99655ed4066c1ff36c6a98e (#3319) Remove default response from Sessions to bring them inline with the remaining artifacts * [AutoPR logic/resource-manager] Add 2 missing endpoints to newest versions Microsoft.Logic (#3693) * Generated from 6533a0dd2a5dfbe7ec76f3f2b6c407c876d4315d Add missing endpoints to newest versions * Packaging update of azure-mgmt-logic * Generated from 09ee5609f7e335c47444a741f70625da9ce05630 Changing copy error of POST to GET. Added missing page links * Generated from 1bbdab407fa1f6f3e68f40d006d153dcea4a0b44 Fix for top level properties errir * Generated from 7ecc9d663ef1e01cd44bd527cc11dfc3f07f6bcb Rename CloudError to not a potentially reserved name and removed the x-ms-external flag * Generated from 91bb28bda57ea3c1098996d219975365b5499509 Use already existing error response object * Generated from 469707fc77ddb1e4989140acd566312a7f170318 (#3807) Don't make ResourceReference id readonly, it's causing a bug in the SDK where an Logic Apps with integration accounts can't be saved * Packaging update of azure-mgmt-logic * Generated from 145604c497541dd3ed7dc990057d1ed6e18513ba (#3995) Bugfix for swagger/sdk not matching the underlying service API * Update version.py * ChangeLog * Record with latest API --- azure-mgmt-logic/HISTORY.rst | 36 +++- azure-mgmt-logic/MANIFEST.in | 3 + .../mgmt/logic/logic_management_client.py | 141 +++++-------- .../azure/mgmt/logic/models/__init__.py | 19 +- ...access_key_regenerate_action_definition.py | 35 ---- ...ss_key_regenerate_action_definition_py3.py | 35 ---- .../mgmt/logic/models/as2_mdn_settings.py | 2 +- .../mgmt/logic/models/as2_mdn_settings_py3.py | 2 +- .../logic/models/as2_validation_settings.py | 2 +- .../models/as2_validation_settings_py3.py | 2 +- .../logic/models/edifact_framing_settings.py | 2 +- .../models/edifact_framing_settings_py3.py | 2 +- .../logic/models/edifact_message_filter.py | 2 +- .../models/edifact_message_filter_py3.py | 2 +- .../models/edifact_validation_override.py | 6 +- .../models/edifact_validation_override_py3.py | 6 +- .../models/edifact_validation_settings.py | 6 +- .../models/edifact_validation_settings_py3.py | 6 +- .../models/get_callback_url_parameters.py | 2 +- .../models/get_callback_url_parameters_py3.py | 2 +- .../logic/models/integration_account_map.py | 4 +- .../models/integration_account_map_filter.py | 5 +- .../integration_account_map_filter_py3.py | 5 +- .../models/integration_account_map_py3.py | 4 +- .../models/integration_account_partner.py | 2 +- .../integration_account_partner_filter.py | 2 +- .../integration_account_partner_filter_py3.py | 2 +- .../models/integration_account_partner_py3.py | 2 +- .../models/integration_account_schema.py | 2 +- .../integration_account_schema_filter.py | 2 +- .../integration_account_schema_filter_py3.py | 2 +- .../models/integration_account_schema_py3.py | 2 +- .../logic/models/integration_account_sku.py | 4 +- .../models/integration_account_sku_py3.py | 4 +- .../mgmt/logic/models/key_vault_reference.py | 5 +- .../logic/models/key_vault_reference_py3.py | 9 +- .../models/logic_management_client_enums.py | 11 +- .../mgmt/logic/models/operation_result.py | 2 +- .../models/operation_result_properties.py | 2 +- .../models/operation_result_properties_py3.py | 2 +- .../mgmt/logic/models/operation_result_py3.py | 2 +- .../models/regenerate_action_parameter.py | 2 +- .../models/regenerate_action_parameter_py3.py | 2 +- .../azure/mgmt/logic/models/request.py | 36 ++++ .../mgmt/logic/models/request_history.py | 52 +++++ .../logic/models/request_history_paged.py | 27 +++ .../models/request_history_properties.py | 40 ++++ .../models/request_history_properties_py3.py | 40 ++++ .../mgmt/logic/models/request_history_py3.py | 52 +++++ .../azure/mgmt/logic/models/request_py3.py | 36 ++++ .../mgmt/logic/models/resource_reference.py | 7 +- .../logic/models/resource_reference_py3.py | 9 +- .../azure/mgmt/logic/models/response.py | 36 ++++ .../azure/mgmt/logic/models/response_py3.py | 36 ++++ .../azure/mgmt/logic/models/sku.py | 2 +- .../azure/mgmt/logic/models/sku_py3.py | 2 +- .../azure/mgmt/logic/models/tracking_event.py | 2 +- .../mgmt/logic/models/tracking_event_py3.py | 2 +- .../models/tracking_events_definition.py | 2 +- .../models/tracking_events_definition_py3.py | 2 +- .../azure/mgmt/logic/models/workflow.py | 4 +- .../mgmt/logic/models/workflow_filter.py | 2 +- .../mgmt/logic/models/workflow_filter_py3.py | 2 +- .../logic/models/workflow_output_parameter.py | 2 +- .../models/workflow_output_parameter_py3.py | 2 +- .../mgmt/logic/models/workflow_parameter.py | 2 +- .../logic/models/workflow_parameter_py3.py | 2 +- .../azure/mgmt/logic/models/workflow_py3.py | 4 +- .../azure/mgmt/logic/models/workflow_run.py | 2 +- .../mgmt/logic/models/workflow_run_action.py | 2 +- .../models/workflow_run_action_filter.py | 2 +- .../models/workflow_run_action_filter_py3.py | 2 +- .../logic/models/workflow_run_action_py3.py | 2 +- ...rkflow_run_action_repetition_definition.py | 2 +- ...ow_run_action_repetition_definition_py3.py | 2 +- .../mgmt/logic/models/workflow_run_filter.py | 2 +- .../logic/models/workflow_run_filter_py3.py | 2 +- .../mgmt/logic/models/workflow_run_py3.py | 2 +- .../mgmt/logic/models/workflow_run_trigger.py | 2 +- .../logic/models/workflow_run_trigger_py3.py | 2 +- .../mgmt/logic/models/workflow_trigger.py | 6 +- .../logic/models/workflow_trigger_filter.py | 2 +- .../models/workflow_trigger_filter_py3.py | 2 +- .../logic/models/workflow_trigger_history.py | 2 +- .../models/workflow_trigger_history_filter.py | 2 +- .../workflow_trigger_history_filter_py3.py | 2 +- .../models/workflow_trigger_history_py3.py | 2 +- .../mgmt/logic/models/workflow_trigger_py3.py | 6 +- .../models/workflow_trigger_recurrence.py | 2 +- .../models/workflow_trigger_recurrence_py3.py | 2 +- .../mgmt/logic/models/workflow_version.py | 2 +- .../mgmt/logic/models/workflow_version_py3.py | 2 +- .../logic/models/x12_envelope_override.py | 4 +- .../logic/models/x12_envelope_override_py3.py | 4 +- .../logic/models/x12_envelope_settings.py | 6 +- .../logic/models/x12_envelope_settings_py3.py | 6 +- .../mgmt/logic/models/x12_framing_settings.py | 2 +- .../logic/models/x12_framing_settings_py3.py | 2 +- .../mgmt/logic/models/x12_message_filter.py | 2 +- .../logic/models/x12_message_filter_py3.py | 2 +- .../logic/models/x12_validation_override.py | 6 +- .../models/x12_validation_override_py3.py | 6 +- .../logic/models/x12_validation_settings.py | 6 +- .../models/x12_validation_settings_py3.py | 6 +- .../azure/mgmt/logic/operations/__init__.py | 36 ++-- ...egration_account_agreements_operations.py} | 47 +++-- ...tegration_account_assemblies_operations.py | 34 ++-- ...account_batch_configurations_operations.py | 28 ++- ...ration_account_certificates_operations.py} | 38 ++-- ...=> integration_account_maps_operations.py} | 47 +++-- ...ntegration_account_partners_operations.py} | 47 +++-- ...integration_account_schemas_operations.py} | 47 +++-- ...ntegration_account_sessions_operations.py} | 70 ++++--- .../integration_accounts_operations.py | 70 +++---- .../azure/mgmt/logic/operations/operations.py | 96 +++++++++ ...kflow_run_action_repetitions_operations.py | 24 +-- ...epetitions_request_histories_operations.py | 188 ++++++++++++++++++ ...run_action_request_histories_operations.py | 182 +++++++++++++++++ ...un_action_scope_repetitions_operations.py} | 20 +- .../workflow_run_actions_operations.py | 27 ++- .../operations/workflow_run_operations.py | 10 +- .../operations/workflow_runs_operations.py | 25 ++- .../workflow_trigger_histories_operations.py | 25 ++- .../workflow_triggers_operations.py | 46 ++--- .../workflow_version_triggers_operations.py | 122 ++++++++++++ .../workflow_versions_operations.py | 101 +--------- .../logic/operations/workflows_operations.py | 107 +++++----- azure-mgmt-logic/azure/mgmt/logic/version.py | 2 +- .../recordings/test_mgmt_apps.test_logic.yaml | 34 ++-- 129 files changed, 1571 insertions(+), 805 deletions(-) delete mode 100644 azure-mgmt-logic/azure/mgmt/logic/models/access_key_regenerate_action_definition.py delete mode 100644 azure-mgmt-logic/azure/mgmt/logic/models/access_key_regenerate_action_definition_py3.py create mode 100644 azure-mgmt-logic/azure/mgmt/logic/models/request.py create mode 100644 azure-mgmt-logic/azure/mgmt/logic/models/request_history.py create mode 100644 azure-mgmt-logic/azure/mgmt/logic/models/request_history_paged.py create mode 100644 azure-mgmt-logic/azure/mgmt/logic/models/request_history_properties.py create mode 100644 azure-mgmt-logic/azure/mgmt/logic/models/request_history_properties_py3.py create mode 100644 azure-mgmt-logic/azure/mgmt/logic/models/request_history_py3.py create mode 100644 azure-mgmt-logic/azure/mgmt/logic/models/request_py3.py create mode 100644 azure-mgmt-logic/azure/mgmt/logic/models/response.py create mode 100644 azure-mgmt-logic/azure/mgmt/logic/models/response_py3.py rename azure-mgmt-logic/azure/mgmt/logic/operations/{agreements_operations.py => integration_account_agreements_operations.py} (91%) rename azure-mgmt-logic/azure/mgmt/logic/operations/{certificates_operations.py => integration_account_certificates_operations.py} (90%) rename azure-mgmt-logic/azure/mgmt/logic/operations/{maps_operations.py => integration_account_maps_operations.py} (91%) rename azure-mgmt-logic/azure/mgmt/logic/operations/{partners_operations.py => integration_account_partners_operations.py} (91%) rename azure-mgmt-logic/azure/mgmt/logic/operations/{schemas_operations.py => integration_account_schemas_operations.py} (91%) rename azure-mgmt-logic/azure/mgmt/logic/operations/{sessions_operations.py => integration_account_sessions_operations.py} (84%) create mode 100644 azure-mgmt-logic/azure/mgmt/logic/operations/operations.py create mode 100644 azure-mgmt-logic/azure/mgmt/logic/operations/workflow_run_action_repetitions_request_histories_operations.py create mode 100644 azure-mgmt-logic/azure/mgmt/logic/operations/workflow_run_action_request_histories_operations.py rename azure-mgmt-logic/azure/mgmt/logic/operations/{workflow_run_action_scoped_repetitions_operations.py => workflow_run_action_scope_repetitions_operations.py} (91%) create mode 100644 azure-mgmt-logic/azure/mgmt/logic/operations/workflow_version_triggers_operations.py diff --git a/azure-mgmt-logic/HISTORY.rst b/azure-mgmt-logic/HISTORY.rst index 721fc826b313..4691971cbe39 100644 --- a/azure-mgmt-logic/HISTORY.rst +++ b/azure-mgmt-logic/HISTORY.rst @@ -3,6 +3,40 @@ Release History =============== +4.0.0rc1 (2018-12-10) ++++++++++++++++++++++ + +**Features** + +- Added operation WorkflowsOperations.validate_by_location +- Added operation WorkflowsOperations.validate_by_resource_group +- Added operation IntegrationAccountsOperations.list_callback_url +- Added operation group WorkflowRunActionRequestHistoriesOperations +- Added operation group Operations +- Added operation group WorkflowRunActionScopeRepetitionsOperations +- Added operation group WorkflowVersionTriggersOperations +- Added operation group IntegrationAccountSessionsOperations +- Added operation group IntegrationAccountCertificatesOperations +- Added operation group IntegrationAccountSchemasOperations +- Added operation group WorkflowRunActionRepetitionsRequestHistoriesOperations +- Added operation group IntegrationAccountAgreementsOperations +- Added operation group IntegrationAccountMapsOperations +- Added operation group IntegrationAccountPartnersOperations + +**Breaking changes** + +- Removed operation WorkflowsOperations.validate_workflow +- Removed operation WorkflowsOperations.validate +- Removed operation WorkflowVersionsOperations.list_callback_url +- Removed operation IntegrationAccountsOperations.get_callback_url +- Removed operation group AgreementsOperations +- Removed operation group SessionsOperations +- Removed operation group CertificatesOperations +- Removed operation group SchemasOperations +- Removed operation group MapsOperations +- Removed operation group WorkflowRunActionScopedRepetitionsOperations +- Removed operation group PartnersOperations + 3.0.0 (2018-05-18) ++++++++++++++++++ @@ -50,7 +84,7 @@ This version uses a next-generation code generator that *might* introduce breaki - Return type changes from `msrestazure.azure_operation.AzureOperationPoller` to `msrest.polling.LROPoller`. External API is the same. - Return type is now **always** a `msrest.polling.LROPoller`, regardless of the optional parameters used. - - The behavior has changed when using `raw=True`. Instead of returning the initial call result as `ClientRawResponse`, + - The behavior has changed when using `raw=True`. Instead of returning the initial call result as `ClientRawResponse`, without polling, now this returns an LROPoller. After polling, the final resource will be returned as a `ClientRawResponse`. - New `polling` parameter. The default behavior is `Polling=True` which will poll using ARM algorithm. When `Polling=False`, the response of the initial call will be returned without polling. diff --git a/azure-mgmt-logic/MANIFEST.in b/azure-mgmt-logic/MANIFEST.in index bb37a2723dae..6ceb27f7a96e 100644 --- a/azure-mgmt-logic/MANIFEST.in +++ b/azure-mgmt-logic/MANIFEST.in @@ -1 +1,4 @@ include *.rst +include azure/__init__.py +include azure/mgmt/__init__.py + diff --git a/azure-mgmt-logic/azure/mgmt/logic/logic_management_client.py b/azure-mgmt-logic/azure/mgmt/logic/logic_management_client.py index 1546c6d7fffd..ea6f82d78e58 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/logic_management_client.py +++ b/azure-mgmt-logic/azure/mgmt/logic/logic_management_client.py @@ -13,27 +13,28 @@ from msrest import Serializer, Deserializer from msrestazure import AzureConfiguration from .version import VERSION -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError -import uuid from .operations.workflows_operations import WorkflowsOperations from .operations.workflow_versions_operations import WorkflowVersionsOperations from .operations.workflow_triggers_operations import WorkflowTriggersOperations +from .operations.workflow_version_triggers_operations import WorkflowVersionTriggersOperations from .operations.workflow_trigger_histories_operations import WorkflowTriggerHistoriesOperations from .operations.workflow_runs_operations import WorkflowRunsOperations from .operations.workflow_run_actions_operations import WorkflowRunActionsOperations from .operations.workflow_run_action_repetitions_operations import WorkflowRunActionRepetitionsOperations -from .operations.workflow_run_action_scoped_repetitions_operations import WorkflowRunActionScopedRepetitionsOperations +from .operations.workflow_run_action_repetitions_request_histories_operations import WorkflowRunActionRepetitionsRequestHistoriesOperations +from .operations.workflow_run_action_request_histories_operations import WorkflowRunActionRequestHistoriesOperations +from .operations.workflow_run_action_scope_repetitions_operations import WorkflowRunActionScopeRepetitionsOperations from .operations.workflow_run_operations import WorkflowRunOperations from .operations.integration_accounts_operations import IntegrationAccountsOperations from .operations.integration_account_assemblies_operations import IntegrationAccountAssembliesOperations from .operations.integration_account_batch_configurations_operations import IntegrationAccountBatchConfigurationsOperations -from .operations.schemas_operations import SchemasOperations -from .operations.maps_operations import MapsOperations -from .operations.partners_operations import PartnersOperations -from .operations.agreements_operations import AgreementsOperations -from .operations.certificates_operations import CertificatesOperations -from .operations.sessions_operations import SessionsOperations +from .operations.integration_account_schemas_operations import IntegrationAccountSchemasOperations +from .operations.integration_account_maps_operations import IntegrationAccountMapsOperations +from .operations.integration_account_partners_operations import IntegrationAccountPartnersOperations +from .operations.integration_account_agreements_operations import IntegrationAccountAgreementsOperations +from .operations.integration_account_certificates_operations import IntegrationAccountCertificatesOperations +from .operations.integration_account_sessions_operations import IntegrationAccountSessionsOperations +from .operations.operations import Operations from . import models @@ -81,6 +82,8 @@ class LogicManagementClient(SDKClient): :vartype workflow_versions: azure.mgmt.logic.operations.WorkflowVersionsOperations :ivar workflow_triggers: WorkflowTriggers operations :vartype workflow_triggers: azure.mgmt.logic.operations.WorkflowTriggersOperations + :ivar workflow_version_triggers: WorkflowVersionTriggers operations + :vartype workflow_version_triggers: azure.mgmt.logic.operations.WorkflowVersionTriggersOperations :ivar workflow_trigger_histories: WorkflowTriggerHistories operations :vartype workflow_trigger_histories: azure.mgmt.logic.operations.WorkflowTriggerHistoriesOperations :ivar workflow_runs: WorkflowRuns operations @@ -89,8 +92,12 @@ class LogicManagementClient(SDKClient): :vartype workflow_run_actions: azure.mgmt.logic.operations.WorkflowRunActionsOperations :ivar workflow_run_action_repetitions: WorkflowRunActionRepetitions operations :vartype workflow_run_action_repetitions: azure.mgmt.logic.operations.WorkflowRunActionRepetitionsOperations - :ivar workflow_run_action_scoped_repetitions: WorkflowRunActionScopedRepetitions operations - :vartype workflow_run_action_scoped_repetitions: azure.mgmt.logic.operations.WorkflowRunActionScopedRepetitionsOperations + :ivar workflow_run_action_repetitions_request_histories: WorkflowRunActionRepetitionsRequestHistories operations + :vartype workflow_run_action_repetitions_request_histories: azure.mgmt.logic.operations.WorkflowRunActionRepetitionsRequestHistoriesOperations + :ivar workflow_run_action_request_histories: WorkflowRunActionRequestHistories operations + :vartype workflow_run_action_request_histories: azure.mgmt.logic.operations.WorkflowRunActionRequestHistoriesOperations + :ivar workflow_run_action_scope_repetitions: WorkflowRunActionScopeRepetitions operations + :vartype workflow_run_action_scope_repetitions: azure.mgmt.logic.operations.WorkflowRunActionScopeRepetitionsOperations :ivar workflow_run_operations: WorkflowRunOperations operations :vartype workflow_run_operations: azure.mgmt.logic.operations.WorkflowRunOperations :ivar integration_accounts: IntegrationAccounts operations @@ -99,18 +106,20 @@ class LogicManagementClient(SDKClient): :vartype integration_account_assemblies: azure.mgmt.logic.operations.IntegrationAccountAssembliesOperations :ivar integration_account_batch_configurations: IntegrationAccountBatchConfigurations operations :vartype integration_account_batch_configurations: azure.mgmt.logic.operations.IntegrationAccountBatchConfigurationsOperations - :ivar schemas: Schemas operations - :vartype schemas: azure.mgmt.logic.operations.SchemasOperations - :ivar maps: Maps operations - :vartype maps: azure.mgmt.logic.operations.MapsOperations - :ivar partners: Partners operations - :vartype partners: azure.mgmt.logic.operations.PartnersOperations - :ivar agreements: Agreements operations - :vartype agreements: azure.mgmt.logic.operations.AgreementsOperations - :ivar certificates: Certificates operations - :vartype certificates: azure.mgmt.logic.operations.CertificatesOperations - :ivar sessions: Sessions operations - :vartype sessions: azure.mgmt.logic.operations.SessionsOperations + :ivar integration_account_schemas: IntegrationAccountSchemas operations + :vartype integration_account_schemas: azure.mgmt.logic.operations.IntegrationAccountSchemasOperations + :ivar integration_account_maps: IntegrationAccountMaps operations + :vartype integration_account_maps: azure.mgmt.logic.operations.IntegrationAccountMapsOperations + :ivar integration_account_partners: IntegrationAccountPartners operations + :vartype integration_account_partners: azure.mgmt.logic.operations.IntegrationAccountPartnersOperations + :ivar integration_account_agreements: IntegrationAccountAgreements operations + :vartype integration_account_agreements: azure.mgmt.logic.operations.IntegrationAccountAgreementsOperations + :ivar integration_account_certificates: IntegrationAccountCertificates operations + :vartype integration_account_certificates: azure.mgmt.logic.operations.IntegrationAccountCertificatesOperations + :ivar integration_account_sessions: IntegrationAccountSessions operations + :vartype integration_account_sessions: azure.mgmt.logic.operations.IntegrationAccountSessionsOperations + :ivar operations: Operations operations + :vartype operations: azure.mgmt.logic.operations.Operations :param credentials: Credentials needed for the client to connect to Azure. :type credentials: :mod:`A msrestazure Credentials @@ -127,7 +136,7 @@ def __init__( super(LogicManagementClient, self).__init__(self.config.credentials, self.config) client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self.api_version = '2016-06-01' + self.api_version = '2018-07-01-preview' self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) @@ -137,6 +146,8 @@ def __init__( self._client, self.config, self._serialize, self._deserialize) self.workflow_triggers = WorkflowTriggersOperations( self._client, self.config, self._serialize, self._deserialize) + self.workflow_version_triggers = WorkflowVersionTriggersOperations( + self._client, self.config, self._serialize, self._deserialize) self.workflow_trigger_histories = WorkflowTriggerHistoriesOperations( self._client, self.config, self._serialize, self._deserialize) self.workflow_runs = WorkflowRunsOperations( @@ -145,7 +156,11 @@ def __init__( self._client, self.config, self._serialize, self._deserialize) self.workflow_run_action_repetitions = WorkflowRunActionRepetitionsOperations( self._client, self.config, self._serialize, self._deserialize) - self.workflow_run_action_scoped_repetitions = WorkflowRunActionScopedRepetitionsOperations( + self.workflow_run_action_repetitions_request_histories = WorkflowRunActionRepetitionsRequestHistoriesOperations( + self._client, self.config, self._serialize, self._deserialize) + self.workflow_run_action_request_histories = WorkflowRunActionRequestHistoriesOperations( + self._client, self.config, self._serialize, self._deserialize) + self.workflow_run_action_scope_repetitions = WorkflowRunActionScopeRepetitionsOperations( self._client, self.config, self._serialize, self._deserialize) self.workflow_run_operations = WorkflowRunOperations( self._client, self.config, self._serialize, self._deserialize) @@ -155,75 +170,17 @@ def __init__( self._client, self.config, self._serialize, self._deserialize) self.integration_account_batch_configurations = IntegrationAccountBatchConfigurationsOperations( self._client, self.config, self._serialize, self._deserialize) - self.schemas = SchemasOperations( + self.integration_account_schemas = IntegrationAccountSchemasOperations( self._client, self.config, self._serialize, self._deserialize) - self.maps = MapsOperations( + self.integration_account_maps = IntegrationAccountMapsOperations( self._client, self.config, self._serialize, self._deserialize) - self.partners = PartnersOperations( + self.integration_account_partners = IntegrationAccountPartnersOperations( self._client, self.config, self._serialize, self._deserialize) - self.agreements = AgreementsOperations( + self.integration_account_agreements = IntegrationAccountAgreementsOperations( self._client, self.config, self._serialize, self._deserialize) - self.certificates = CertificatesOperations( + self.integration_account_certificates = IntegrationAccountCertificatesOperations( self._client, self.config, self._serialize, self._deserialize) - self.sessions = SessionsOperations( + self.integration_account_sessions = IntegrationAccountSessionsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.operations = Operations( self._client, self.config, self._serialize, self._deserialize) - - def list_operations( - self, custom_headers=None, raw=False, **operation_config): - """Lists all of the available Logic REST API operations. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: An iterator like instance of Operation - :rtype: - ~azure.mgmt.logic.models.OperationPaged[~azure.mgmt.logic.models.Operation] - :raises: - :class:`ErrorResponseException` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = self.list_operations.metadata['url'] - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - else: - url = next_link - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send( - request, header_parameters, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - return response - - # Deserialize response - deserialized = models.OperationPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.OperationPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - list_operations.metadata = {'url': '/providers/Microsoft.Logic/operations'} diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/__init__.py b/azure-mgmt-logic/azure/mgmt/logic/models/__init__.py index 3f5a248b0d14..62165dd50eb4 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/__init__.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/__init__.py @@ -111,7 +111,6 @@ from .tracking_event_error_info_py3 import TrackingEventErrorInfo from .tracking_event_py3 import TrackingEvent from .tracking_events_definition_py3 import TrackingEventsDefinition - from .access_key_regenerate_action_definition_py3 import AccessKeyRegenerateActionDefinition from .set_trigger_state_action_definition_py3 import SetTriggerStateActionDefinition from .expression_root_py3 import ExpressionRoot from .azure_resource_error_info_py3 import AzureResourceErrorInfo @@ -132,6 +131,10 @@ from .batch_release_criteria_py3 import BatchReleaseCriteria from .batch_configuration_properties_py3 import BatchConfigurationProperties from .batch_configuration_py3 import BatchConfiguration + from .request_py3 import Request + from .response_py3 import Response + from .request_history_properties_py3 import RequestHistoryProperties + from .request_history_py3 import RequestHistory except (SyntaxError, ImportError): from .resource import Resource from .sub_resource import SubResource @@ -234,7 +237,6 @@ from .tracking_event_error_info import TrackingEventErrorInfo from .tracking_event import TrackingEvent from .tracking_events_definition import TrackingEventsDefinition - from .access_key_regenerate_action_definition import AccessKeyRegenerateActionDefinition from .set_trigger_state_action_definition import SetTriggerStateActionDefinition from .expression_root import ExpressionRoot from .azure_resource_error_info import AzureResourceErrorInfo @@ -255,6 +257,10 @@ from .batch_release_criteria import BatchReleaseCriteria from .batch_configuration_properties import BatchConfigurationProperties from .batch_configuration import BatchConfiguration + from .request import Request + from .response import Response + from .request_history_properties import RequestHistoryProperties + from .request_history import RequestHistory from .workflow_paged import WorkflowPaged from .workflow_version_paged import WorkflowVersionPaged from .workflow_trigger_paged import WorkflowTriggerPaged @@ -263,6 +269,7 @@ from .workflow_run_action_paged import WorkflowRunActionPaged from .expression_root_paged import ExpressionRootPaged from .workflow_run_action_repetition_definition_paged import WorkflowRunActionRepetitionDefinitionPaged +from .request_history_paged import RequestHistoryPaged from .integration_account_paged import IntegrationAccountPaged from .key_vault_key_paged import KeyVaultKeyPaged from .assembly_definition_paged import AssemblyDefinitionPaged @@ -305,7 +312,6 @@ TrackEventsOperationOptions, EventLevel, TrackingRecordType, - AccessKeyType, ) __all__ = [ @@ -410,7 +416,6 @@ 'TrackingEventErrorInfo', 'TrackingEvent', 'TrackingEventsDefinition', - 'AccessKeyRegenerateActionDefinition', 'SetTriggerStateActionDefinition', 'ExpressionRoot', 'AzureResourceErrorInfo', @@ -431,6 +436,10 @@ 'BatchReleaseCriteria', 'BatchConfigurationProperties', 'BatchConfiguration', + 'Request', + 'Response', + 'RequestHistoryProperties', + 'RequestHistory', 'WorkflowPaged', 'WorkflowVersionPaged', 'WorkflowTriggerPaged', @@ -439,6 +448,7 @@ 'WorkflowRunActionPaged', 'ExpressionRootPaged', 'WorkflowRunActionRepetitionDefinitionPaged', + 'RequestHistoryPaged', 'IntegrationAccountPaged', 'KeyVaultKeyPaged', 'AssemblyDefinitionPaged', @@ -480,5 +490,4 @@ 'TrackEventsOperationOptions', 'EventLevel', 'TrackingRecordType', - 'AccessKeyType', ] diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/access_key_regenerate_action_definition.py b/azure-mgmt-logic/azure/mgmt/logic/models/access_key_regenerate_action_definition.py deleted file mode 100644 index 6f254ed4b412..000000000000 --- a/azure-mgmt-logic/azure/mgmt/logic/models/access_key_regenerate_action_definition.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class AccessKeyRegenerateActionDefinition(Model): - """AccessKeyRegenerateActionDefinition. - - All required parameters must be populated in order to send to Azure. - - :param key_type: Required. Possible values include: 'NotSpecified', - 'Primary', 'Secondary' - :type key_type: str or ~azure.mgmt.logic.models.AccessKeyType - """ - - _validation = { - 'key_type': {'required': True}, - } - - _attribute_map = { - 'key_type': {'key': 'keyType', 'type': 'AccessKeyType'}, - } - - def __init__(self, **kwargs): - super(AccessKeyRegenerateActionDefinition, self).__init__(**kwargs) - self.key_type = kwargs.get('key_type', None) diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/access_key_regenerate_action_definition_py3.py b/azure-mgmt-logic/azure/mgmt/logic/models/access_key_regenerate_action_definition_py3.py deleted file mode 100644 index f6fbd7cc2e32..000000000000 --- a/azure-mgmt-logic/azure/mgmt/logic/models/access_key_regenerate_action_definition_py3.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class AccessKeyRegenerateActionDefinition(Model): - """AccessKeyRegenerateActionDefinition. - - All required parameters must be populated in order to send to Azure. - - :param key_type: Required. Possible values include: 'NotSpecified', - 'Primary', 'Secondary' - :type key_type: str or ~azure.mgmt.logic.models.AccessKeyType - """ - - _validation = { - 'key_type': {'required': True}, - } - - _attribute_map = { - 'key_type': {'key': 'keyType', 'type': 'AccessKeyType'}, - } - - def __init__(self, *, key_type, **kwargs) -> None: - super(AccessKeyRegenerateActionDefinition, self).__init__(**kwargs) - self.key_type = key_type diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/as2_mdn_settings.py b/azure-mgmt-logic/azure/mgmt/logic/models/as2_mdn_settings.py index fd804f91d8de..98ceea654285 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/as2_mdn_settings.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/as2_mdn_settings.py @@ -64,7 +64,7 @@ class AS2MdnSettings(Model): 'sign_outbound_mdn_if_optional': {'key': 'signOutboundMdnIfOptional', 'type': 'bool'}, 'mdn_text': {'key': 'mdnText', 'type': 'str'}, 'send_inbound_mdn_to_message_box': {'key': 'sendInboundMdnToMessageBox', 'type': 'bool'}, - 'mic_hashing_algorithm': {'key': 'micHashingAlgorithm', 'type': 'HashingAlgorithm'}, + 'mic_hashing_algorithm': {'key': 'micHashingAlgorithm', 'type': 'str'}, } def __init__(self, **kwargs): diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/as2_mdn_settings_py3.py b/azure-mgmt-logic/azure/mgmt/logic/models/as2_mdn_settings_py3.py index 291be8730abe..f27bc9876db5 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/as2_mdn_settings_py3.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/as2_mdn_settings_py3.py @@ -64,7 +64,7 @@ class AS2MdnSettings(Model): 'sign_outbound_mdn_if_optional': {'key': 'signOutboundMdnIfOptional', 'type': 'bool'}, 'mdn_text': {'key': 'mdnText', 'type': 'str'}, 'send_inbound_mdn_to_message_box': {'key': 'sendInboundMdnToMessageBox', 'type': 'bool'}, - 'mic_hashing_algorithm': {'key': 'micHashingAlgorithm', 'type': 'HashingAlgorithm'}, + 'mic_hashing_algorithm': {'key': 'micHashingAlgorithm', 'type': 'str'}, } def __init__(self, *, need_mdn: bool, sign_mdn: bool, send_mdn_asynchronously: bool, sign_outbound_mdn_if_optional: bool, send_inbound_mdn_to_message_box: bool, mic_hashing_algorithm, receipt_delivery_url: str=None, disposition_notification_to: str=None, mdn_text: str=None, **kwargs) -> None: diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/as2_validation_settings.py b/azure-mgmt-logic/azure/mgmt/logic/models/as2_validation_settings.py index 42acb57ff48a..e5b7aee2eba5 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/as2_validation_settings.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/as2_validation_settings.py @@ -72,7 +72,7 @@ class AS2ValidationSettings(Model): 'interchange_duplicates_validity_days': {'key': 'interchangeDuplicatesValidityDays', 'type': 'int'}, 'check_certificate_revocation_list_on_send': {'key': 'checkCertificateRevocationListOnSend', 'type': 'bool'}, 'check_certificate_revocation_list_on_receive': {'key': 'checkCertificateRevocationListOnReceive', 'type': 'bool'}, - 'encryption_algorithm': {'key': 'encryptionAlgorithm', 'type': 'EncryptionAlgorithm'}, + 'encryption_algorithm': {'key': 'encryptionAlgorithm', 'type': 'str'}, 'signing_algorithm': {'key': 'signingAlgorithm', 'type': 'str'}, } diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/as2_validation_settings_py3.py b/azure-mgmt-logic/azure/mgmt/logic/models/as2_validation_settings_py3.py index d56c1d9ce95f..05c6a689f528 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/as2_validation_settings_py3.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/as2_validation_settings_py3.py @@ -72,7 +72,7 @@ class AS2ValidationSettings(Model): 'interchange_duplicates_validity_days': {'key': 'interchangeDuplicatesValidityDays', 'type': 'int'}, 'check_certificate_revocation_list_on_send': {'key': 'checkCertificateRevocationListOnSend', 'type': 'bool'}, 'check_certificate_revocation_list_on_receive': {'key': 'checkCertificateRevocationListOnReceive', 'type': 'bool'}, - 'encryption_algorithm': {'key': 'encryptionAlgorithm', 'type': 'EncryptionAlgorithm'}, + 'encryption_algorithm': {'key': 'encryptionAlgorithm', 'type': 'str'}, 'signing_algorithm': {'key': 'signingAlgorithm', 'type': 'str'}, } diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/edifact_framing_settings.py b/azure-mgmt-logic/azure/mgmt/logic/models/edifact_framing_settings.py index f3e4c22b1e45..07795e620caf 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/edifact_framing_settings.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/edifact_framing_settings.py @@ -72,7 +72,7 @@ class EdifactFramingSettings(Model): 'segment_terminator': {'key': 'segmentTerminator', 'type': 'int'}, 'release_indicator': {'key': 'releaseIndicator', 'type': 'int'}, 'repetition_separator': {'key': 'repetitionSeparator', 'type': 'int'}, - 'character_set': {'key': 'characterSet', 'type': 'EdifactCharacterSet'}, + 'character_set': {'key': 'characterSet', 'type': 'str'}, 'decimal_point_indicator': {'key': 'decimalPointIndicator', 'type': 'EdifactDecimalIndicator'}, 'segment_terminator_suffix': {'key': 'segmentTerminatorSuffix', 'type': 'SegmentTerminatorSuffix'}, } diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/edifact_framing_settings_py3.py b/azure-mgmt-logic/azure/mgmt/logic/models/edifact_framing_settings_py3.py index 18db9195a80f..f7b668535545 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/edifact_framing_settings_py3.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/edifact_framing_settings_py3.py @@ -72,7 +72,7 @@ class EdifactFramingSettings(Model): 'segment_terminator': {'key': 'segmentTerminator', 'type': 'int'}, 'release_indicator': {'key': 'releaseIndicator', 'type': 'int'}, 'repetition_separator': {'key': 'repetitionSeparator', 'type': 'int'}, - 'character_set': {'key': 'characterSet', 'type': 'EdifactCharacterSet'}, + 'character_set': {'key': 'characterSet', 'type': 'str'}, 'decimal_point_indicator': {'key': 'decimalPointIndicator', 'type': 'EdifactDecimalIndicator'}, 'segment_terminator_suffix': {'key': 'segmentTerminatorSuffix', 'type': 'SegmentTerminatorSuffix'}, } diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/edifact_message_filter.py b/azure-mgmt-logic/azure/mgmt/logic/models/edifact_message_filter.py index 7eb3d9865ef6..ba86f0922a69 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/edifact_message_filter.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/edifact_message_filter.py @@ -28,7 +28,7 @@ class EdifactMessageFilter(Model): } _attribute_map = { - 'message_filter_type': {'key': 'messageFilterType', 'type': 'MessageFilterType'}, + 'message_filter_type': {'key': 'messageFilterType', 'type': 'str'}, } def __init__(self, **kwargs): diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/edifact_message_filter_py3.py b/azure-mgmt-logic/azure/mgmt/logic/models/edifact_message_filter_py3.py index bcfcfd3c6a44..c4fc6fa62117 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/edifact_message_filter_py3.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/edifact_message_filter_py3.py @@ -28,7 +28,7 @@ class EdifactMessageFilter(Model): } _attribute_map = { - 'message_filter_type': {'key': 'messageFilterType', 'type': 'MessageFilterType'}, + 'message_filter_type': {'key': 'messageFilterType', 'type': 'str'}, } def __init__(self, *, message_filter_type, **kwargs) -> None: diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/edifact_validation_override.py b/azure-mgmt-logic/azure/mgmt/logic/models/edifact_validation_override.py index 15044485db2c..667ed14c90a0 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/edifact_validation_override.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/edifact_validation_override.py @@ -55,10 +55,10 @@ class EdifactValidationOverride(Model): _attribute_map = { 'message_id': {'key': 'messageId', 'type': 'str'}, 'enforce_character_set': {'key': 'enforceCharacterSet', 'type': 'bool'}, - 'validate_edi_types': {'key': 'validateEdiTypes', 'type': 'bool'}, - 'validate_xsd_types': {'key': 'validateXsdTypes', 'type': 'bool'}, + 'validate_edi_types': {'key': 'validateEDITypes', 'type': 'bool'}, + 'validate_xsd_types': {'key': 'validateXSDTypes', 'type': 'bool'}, 'allow_leading_and_trailing_spaces_and_zeroes': {'key': 'allowLeadingAndTrailingSpacesAndZeroes', 'type': 'bool'}, - 'trailing_separator_policy': {'key': 'trailingSeparatorPolicy', 'type': 'TrailingSeparatorPolicy'}, + 'trailing_separator_policy': {'key': 'trailingSeparatorPolicy', 'type': 'str'}, 'trim_leading_and_trailing_spaces_and_zeroes': {'key': 'trimLeadingAndTrailingSpacesAndZeroes', 'type': 'bool'}, } diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/edifact_validation_override_py3.py b/azure-mgmt-logic/azure/mgmt/logic/models/edifact_validation_override_py3.py index e7a62672e8d0..a71de0a66f79 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/edifact_validation_override_py3.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/edifact_validation_override_py3.py @@ -55,10 +55,10 @@ class EdifactValidationOverride(Model): _attribute_map = { 'message_id': {'key': 'messageId', 'type': 'str'}, 'enforce_character_set': {'key': 'enforceCharacterSet', 'type': 'bool'}, - 'validate_edi_types': {'key': 'validateEdiTypes', 'type': 'bool'}, - 'validate_xsd_types': {'key': 'validateXsdTypes', 'type': 'bool'}, + 'validate_edi_types': {'key': 'validateEDITypes', 'type': 'bool'}, + 'validate_xsd_types': {'key': 'validateXSDTypes', 'type': 'bool'}, 'allow_leading_and_trailing_spaces_and_zeroes': {'key': 'allowLeadingAndTrailingSpacesAndZeroes', 'type': 'bool'}, - 'trailing_separator_policy': {'key': 'trailingSeparatorPolicy', 'type': 'TrailingSeparatorPolicy'}, + 'trailing_separator_policy': {'key': 'trailingSeparatorPolicy', 'type': 'str'}, 'trim_leading_and_trailing_spaces_and_zeroes': {'key': 'trimLeadingAndTrailingSpacesAndZeroes', 'type': 'bool'}, } diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/edifact_validation_settings.py b/azure-mgmt-logic/azure/mgmt/logic/models/edifact_validation_settings.py index 3918a817ef43..9a0c3ba33da2 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/edifact_validation_settings.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/edifact_validation_settings.py @@ -70,11 +70,11 @@ class EdifactValidationSettings(Model): 'interchange_control_number_validity_days': {'key': 'interchangeControlNumberValidityDays', 'type': 'int'}, 'check_duplicate_group_control_number': {'key': 'checkDuplicateGroupControlNumber', 'type': 'bool'}, 'check_duplicate_transaction_set_control_number': {'key': 'checkDuplicateTransactionSetControlNumber', 'type': 'bool'}, - 'validate_edi_types': {'key': 'validateEdiTypes', 'type': 'bool'}, - 'validate_xsd_types': {'key': 'validateXsdTypes', 'type': 'bool'}, + 'validate_edi_types': {'key': 'validateEDITypes', 'type': 'bool'}, + 'validate_xsd_types': {'key': 'validateXSDTypes', 'type': 'bool'}, 'allow_leading_and_trailing_spaces_and_zeroes': {'key': 'allowLeadingAndTrailingSpacesAndZeroes', 'type': 'bool'}, 'trim_leading_and_trailing_spaces_and_zeroes': {'key': 'trimLeadingAndTrailingSpacesAndZeroes', 'type': 'bool'}, - 'trailing_separator_policy': {'key': 'trailingSeparatorPolicy', 'type': 'TrailingSeparatorPolicy'}, + 'trailing_separator_policy': {'key': 'trailingSeparatorPolicy', 'type': 'str'}, } def __init__(self, **kwargs): diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/edifact_validation_settings_py3.py b/azure-mgmt-logic/azure/mgmt/logic/models/edifact_validation_settings_py3.py index 42d2215721ab..4b3ed23a8abc 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/edifact_validation_settings_py3.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/edifact_validation_settings_py3.py @@ -70,11 +70,11 @@ class EdifactValidationSettings(Model): 'interchange_control_number_validity_days': {'key': 'interchangeControlNumberValidityDays', 'type': 'int'}, 'check_duplicate_group_control_number': {'key': 'checkDuplicateGroupControlNumber', 'type': 'bool'}, 'check_duplicate_transaction_set_control_number': {'key': 'checkDuplicateTransactionSetControlNumber', 'type': 'bool'}, - 'validate_edi_types': {'key': 'validateEdiTypes', 'type': 'bool'}, - 'validate_xsd_types': {'key': 'validateXsdTypes', 'type': 'bool'}, + 'validate_edi_types': {'key': 'validateEDITypes', 'type': 'bool'}, + 'validate_xsd_types': {'key': 'validateXSDTypes', 'type': 'bool'}, 'allow_leading_and_trailing_spaces_and_zeroes': {'key': 'allowLeadingAndTrailingSpacesAndZeroes', 'type': 'bool'}, 'trim_leading_and_trailing_spaces_and_zeroes': {'key': 'trimLeadingAndTrailingSpacesAndZeroes', 'type': 'bool'}, - 'trailing_separator_policy': {'key': 'trailingSeparatorPolicy', 'type': 'TrailingSeparatorPolicy'}, + 'trailing_separator_policy': {'key': 'trailingSeparatorPolicy', 'type': 'str'}, } def __init__(self, *, validate_character_set: bool, check_duplicate_interchange_control_number: bool, interchange_control_number_validity_days: int, check_duplicate_group_control_number: bool, check_duplicate_transaction_set_control_number: bool, validate_edi_types: bool, validate_xsd_types: bool, allow_leading_and_trailing_spaces_and_zeroes: bool, trim_leading_and_trailing_spaces_and_zeroes: bool, trailing_separator_policy, **kwargs) -> None: diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/get_callback_url_parameters.py b/azure-mgmt-logic/azure/mgmt/logic/models/get_callback_url_parameters.py index 0c5c2dacc767..0f913c0ede41 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/get_callback_url_parameters.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/get_callback_url_parameters.py @@ -24,7 +24,7 @@ class GetCallbackUrlParameters(Model): _attribute_map = { 'not_after': {'key': 'notAfter', 'type': 'iso-8601'}, - 'key_type': {'key': 'keyType', 'type': 'KeyType'}, + 'key_type': {'key': 'keyType', 'type': 'str'}, } def __init__(self, **kwargs): diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/get_callback_url_parameters_py3.py b/azure-mgmt-logic/azure/mgmt/logic/models/get_callback_url_parameters_py3.py index 0eb2275adef3..0d9612f0eef0 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/get_callback_url_parameters_py3.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/get_callback_url_parameters_py3.py @@ -24,7 +24,7 @@ class GetCallbackUrlParameters(Model): _attribute_map = { 'not_after': {'key': 'notAfter', 'type': 'iso-8601'}, - 'key_type': {'key': 'keyType', 'type': 'KeyType'}, + 'key_type': {'key': 'keyType', 'type': 'str'}, } def __init__(self, *, not_after=None, key_type=None, **kwargs) -> None: diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/integration_account_map.py b/azure-mgmt-logic/azure/mgmt/logic/models/integration_account_map.py index eca7358d918e..f5c95f26faec 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/integration_account_map.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/integration_account_map.py @@ -31,7 +31,7 @@ class IntegrationAccountMap(Resource): :param tags: The resource tags. :type tags: dict[str, str] :param map_type: Required. The map type. Possible values include: - 'NotSpecified', 'Xslt' + 'NotSpecified', 'Xslt', 'Xslt20', 'Xslt30', 'Liquid' :type map_type: str or ~azure.mgmt.logic.models.MapType :param parameters_schema: The parameters schema of integration account map. @@ -67,7 +67,7 @@ class IntegrationAccountMap(Resource): 'type': {'key': 'type', 'type': 'str'}, 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, - 'map_type': {'key': 'properties.mapType', 'type': 'MapType'}, + 'map_type': {'key': 'properties.mapType', 'type': 'str'}, 'parameters_schema': {'key': 'properties.parametersSchema', 'type': 'IntegrationAccountMapPropertiesParametersSchema'}, 'created_time': {'key': 'properties.createdTime', 'type': 'iso-8601'}, 'changed_time': {'key': 'properties.changedTime', 'type': 'iso-8601'}, diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/integration_account_map_filter.py b/azure-mgmt-logic/azure/mgmt/logic/models/integration_account_map_filter.py index 0854c1f78a89..f9f3839b8884 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/integration_account_map_filter.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/integration_account_map_filter.py @@ -18,7 +18,8 @@ class IntegrationAccountMapFilter(Model): All required parameters must be populated in order to send to Azure. :param map_type: Required. The map type of integration account map. - Possible values include: 'NotSpecified', 'Xslt' + Possible values include: 'NotSpecified', 'Xslt', 'Xslt20', 'Xslt30', + 'Liquid' :type map_type: str or ~azure.mgmt.logic.models.MapType """ @@ -27,7 +28,7 @@ class IntegrationAccountMapFilter(Model): } _attribute_map = { - 'map_type': {'key': 'mapType', 'type': 'MapType'}, + 'map_type': {'key': 'mapType', 'type': 'str'}, } def __init__(self, **kwargs): diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/integration_account_map_filter_py3.py b/azure-mgmt-logic/azure/mgmt/logic/models/integration_account_map_filter_py3.py index 94e1aaf938f2..b879d2b24b3a 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/integration_account_map_filter_py3.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/integration_account_map_filter_py3.py @@ -18,7 +18,8 @@ class IntegrationAccountMapFilter(Model): All required parameters must be populated in order to send to Azure. :param map_type: Required. The map type of integration account map. - Possible values include: 'NotSpecified', 'Xslt' + Possible values include: 'NotSpecified', 'Xslt', 'Xslt20', 'Xslt30', + 'Liquid' :type map_type: str or ~azure.mgmt.logic.models.MapType """ @@ -27,7 +28,7 @@ class IntegrationAccountMapFilter(Model): } _attribute_map = { - 'map_type': {'key': 'mapType', 'type': 'MapType'}, + 'map_type': {'key': 'mapType', 'type': 'str'}, } def __init__(self, *, map_type, **kwargs) -> None: diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/integration_account_map_py3.py b/azure-mgmt-logic/azure/mgmt/logic/models/integration_account_map_py3.py index 27f4da9281b7..757a21c66c60 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/integration_account_map_py3.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/integration_account_map_py3.py @@ -31,7 +31,7 @@ class IntegrationAccountMap(Resource): :param tags: The resource tags. :type tags: dict[str, str] :param map_type: Required. The map type. Possible values include: - 'NotSpecified', 'Xslt' + 'NotSpecified', 'Xslt', 'Xslt20', 'Xslt30', 'Liquid' :type map_type: str or ~azure.mgmt.logic.models.MapType :param parameters_schema: The parameters schema of integration account map. @@ -67,7 +67,7 @@ class IntegrationAccountMap(Resource): 'type': {'key': 'type', 'type': 'str'}, 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, - 'map_type': {'key': 'properties.mapType', 'type': 'MapType'}, + 'map_type': {'key': 'properties.mapType', 'type': 'str'}, 'parameters_schema': {'key': 'properties.parametersSchema', 'type': 'IntegrationAccountMapPropertiesParametersSchema'}, 'created_time': {'key': 'properties.createdTime', 'type': 'iso-8601'}, 'changed_time': {'key': 'properties.changedTime', 'type': 'iso-8601'}, diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/integration_account_partner.py b/azure-mgmt-logic/azure/mgmt/logic/models/integration_account_partner.py index 27abb6538309..5fa492a380a0 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/integration_account_partner.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/integration_account_partner.py @@ -59,7 +59,7 @@ class IntegrationAccountPartner(Resource): 'type': {'key': 'type', 'type': 'str'}, 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, - 'partner_type': {'key': 'properties.partnerType', 'type': 'PartnerType'}, + 'partner_type': {'key': 'properties.partnerType', 'type': 'str'}, 'created_time': {'key': 'properties.createdTime', 'type': 'iso-8601'}, 'changed_time': {'key': 'properties.changedTime', 'type': 'iso-8601'}, 'metadata': {'key': 'properties.metadata', 'type': 'object'}, diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/integration_account_partner_filter.py b/azure-mgmt-logic/azure/mgmt/logic/models/integration_account_partner_filter.py index 97e127714cf1..7f20147bc657 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/integration_account_partner_filter.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/integration_account_partner_filter.py @@ -27,7 +27,7 @@ class IntegrationAccountPartnerFilter(Model): } _attribute_map = { - 'partner_type': {'key': 'partnerType', 'type': 'PartnerType'}, + 'partner_type': {'key': 'partnerType', 'type': 'str'}, } def __init__(self, **kwargs): diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/integration_account_partner_filter_py3.py b/azure-mgmt-logic/azure/mgmt/logic/models/integration_account_partner_filter_py3.py index e96805f485b6..52cb68a5c8c4 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/integration_account_partner_filter_py3.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/integration_account_partner_filter_py3.py @@ -27,7 +27,7 @@ class IntegrationAccountPartnerFilter(Model): } _attribute_map = { - 'partner_type': {'key': 'partnerType', 'type': 'PartnerType'}, + 'partner_type': {'key': 'partnerType', 'type': 'str'}, } def __init__(self, *, partner_type, **kwargs) -> None: diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/integration_account_partner_py3.py b/azure-mgmt-logic/azure/mgmt/logic/models/integration_account_partner_py3.py index 7c6af813aa42..358e7d1caed7 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/integration_account_partner_py3.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/integration_account_partner_py3.py @@ -59,7 +59,7 @@ class IntegrationAccountPartner(Resource): 'type': {'key': 'type', 'type': 'str'}, 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, - 'partner_type': {'key': 'properties.partnerType', 'type': 'PartnerType'}, + 'partner_type': {'key': 'properties.partnerType', 'type': 'str'}, 'created_time': {'key': 'properties.createdTime', 'type': 'iso-8601'}, 'changed_time': {'key': 'properties.changedTime', 'type': 'iso-8601'}, 'metadata': {'key': 'properties.metadata', 'type': 'object'}, diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/integration_account_schema.py b/azure-mgmt-logic/azure/mgmt/logic/models/integration_account_schema.py index e528830cdb2e..96d988a5c8b2 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/integration_account_schema.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/integration_account_schema.py @@ -69,7 +69,7 @@ class IntegrationAccountSchema(Resource): 'type': {'key': 'type', 'type': 'str'}, 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, - 'schema_type': {'key': 'properties.schemaType', 'type': 'SchemaType'}, + 'schema_type': {'key': 'properties.schemaType', 'type': 'str'}, 'target_namespace': {'key': 'properties.targetNamespace', 'type': 'str'}, 'document_name': {'key': 'properties.documentName', 'type': 'str'}, 'file_name': {'key': 'properties.fileName', 'type': 'str'}, diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/integration_account_schema_filter.py b/azure-mgmt-logic/azure/mgmt/logic/models/integration_account_schema_filter.py index 96d624e2ac45..12ee48fa602b 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/integration_account_schema_filter.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/integration_account_schema_filter.py @@ -27,7 +27,7 @@ class IntegrationAccountSchemaFilter(Model): } _attribute_map = { - 'schema_type': {'key': 'schemaType', 'type': 'SchemaType'}, + 'schema_type': {'key': 'schemaType', 'type': 'str'}, } def __init__(self, **kwargs): diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/integration_account_schema_filter_py3.py b/azure-mgmt-logic/azure/mgmt/logic/models/integration_account_schema_filter_py3.py index 17303ce6eac2..249f96cb661e 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/integration_account_schema_filter_py3.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/integration_account_schema_filter_py3.py @@ -27,7 +27,7 @@ class IntegrationAccountSchemaFilter(Model): } _attribute_map = { - 'schema_type': {'key': 'schemaType', 'type': 'SchemaType'}, + 'schema_type': {'key': 'schemaType', 'type': 'str'}, } def __init__(self, *, schema_type, **kwargs) -> None: diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/integration_account_schema_py3.py b/azure-mgmt-logic/azure/mgmt/logic/models/integration_account_schema_py3.py index e6b6b3bcd072..179271f3c2b3 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/integration_account_schema_py3.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/integration_account_schema_py3.py @@ -69,7 +69,7 @@ class IntegrationAccountSchema(Resource): 'type': {'key': 'type', 'type': 'str'}, 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, - 'schema_type': {'key': 'properties.schemaType', 'type': 'SchemaType'}, + 'schema_type': {'key': 'properties.schemaType', 'type': 'str'}, 'target_namespace': {'key': 'properties.targetNamespace', 'type': 'str'}, 'document_name': {'key': 'properties.documentName', 'type': 'str'}, 'file_name': {'key': 'properties.fileName', 'type': 'str'}, diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/integration_account_sku.py b/azure-mgmt-logic/azure/mgmt/logic/models/integration_account_sku.py index 9701f9b19f3e..7d87a9605159 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/integration_account_sku.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/integration_account_sku.py @@ -18,7 +18,7 @@ class IntegrationAccountSku(Model): All required parameters must be populated in order to send to Azure. :param name: Required. The sku name. Possible values include: - 'NotSpecified', 'Free', 'Standard' + 'NotSpecified', 'Free', 'Basic', 'Standard' :type name: str or ~azure.mgmt.logic.models.IntegrationAccountSkuName """ @@ -27,7 +27,7 @@ class IntegrationAccountSku(Model): } _attribute_map = { - 'name': {'key': 'name', 'type': 'IntegrationAccountSkuName'}, + 'name': {'key': 'name', 'type': 'str'}, } def __init__(self, **kwargs): diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/integration_account_sku_py3.py b/azure-mgmt-logic/azure/mgmt/logic/models/integration_account_sku_py3.py index a7eeab01946b..9a3d01071902 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/integration_account_sku_py3.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/integration_account_sku_py3.py @@ -18,7 +18,7 @@ class IntegrationAccountSku(Model): All required parameters must be populated in order to send to Azure. :param name: Required. The sku name. Possible values include: - 'NotSpecified', 'Free', 'Standard' + 'NotSpecified', 'Free', 'Basic', 'Standard' :type name: str or ~azure.mgmt.logic.models.IntegrationAccountSkuName """ @@ -27,7 +27,7 @@ class IntegrationAccountSku(Model): } _attribute_map = { - 'name': {'key': 'name', 'type': 'IntegrationAccountSkuName'}, + 'name': {'key': 'name', 'type': 'str'}, } def __init__(self, *, name, **kwargs) -> None: diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/key_vault_reference.py b/azure-mgmt-logic/azure/mgmt/logic/models/key_vault_reference.py index 7ce542e92b0c..88d9e767cbbe 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/key_vault_reference.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/key_vault_reference.py @@ -18,8 +18,8 @@ class KeyVaultReference(ResourceReference): Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: The resource id. - :vartype id: str + :param id: The resource id. + :type id: str :ivar name: Gets the resource name. :vartype name: str :ivar type: Gets the resource type. @@ -27,7 +27,6 @@ class KeyVaultReference(ResourceReference): """ _validation = { - 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, } diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/key_vault_reference_py3.py b/azure-mgmt-logic/azure/mgmt/logic/models/key_vault_reference_py3.py index bfcd7a433416..1696f9af62d1 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/key_vault_reference_py3.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/key_vault_reference_py3.py @@ -18,8 +18,8 @@ class KeyVaultReference(ResourceReference): Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: The resource id. - :vartype id: str + :param id: The resource id. + :type id: str :ivar name: Gets the resource name. :vartype name: str :ivar type: Gets the resource type. @@ -27,7 +27,6 @@ class KeyVaultReference(ResourceReference): """ _validation = { - 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, } @@ -38,5 +37,5 @@ class KeyVaultReference(ResourceReference): 'type': {'key': 'type', 'type': 'str'}, } - def __init__(self, **kwargs) -> None: - super(KeyVaultReference, self).__init__(**kwargs) + def __init__(self, *, id: str=None, **kwargs) -> None: + super(KeyVaultReference, self).__init__(id=id, **kwargs) diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/logic_management_client_enums.py b/azure-mgmt-logic/azure/mgmt/logic/models/logic_management_client_enums.py index 285aeb025198..a87fce21bef8 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/logic_management_client_enums.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/logic_management_client_enums.py @@ -151,6 +151,7 @@ class IntegrationAccountSkuName(str, Enum): not_specified = "NotSpecified" free = "Free" + basic = "Basic" standard = "Standard" @@ -164,6 +165,9 @@ class MapType(str, Enum): not_specified = "NotSpecified" xslt = "Xslt" + xslt20 = "Xslt20" + xslt30 = "Xslt30" + liquid = "Liquid" class PartnerType(str, Enum): @@ -328,10 +332,3 @@ class TrackingRecordType(str, Enum): edifact_interchange_acknowledgment = "EdifactInterchangeAcknowledgment" edifact_functional_group_acknowledgment = "EdifactFunctionalGroupAcknowledgment" edifact_transaction_set_acknowledgment = "EdifactTransactionSetAcknowledgment" - - -class AccessKeyType(str, Enum): - - not_specified = "NotSpecified" - primary = "Primary" - secondary = "Secondary" diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/operation_result.py b/azure-mgmt-logic/azure/mgmt/logic/models/operation_result.py index 6906151ab408..9461b110569b 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/operation_result.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/operation_result.py @@ -64,7 +64,7 @@ class OperationResult(OperationResultProperties): 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, 'correlation': {'key': 'correlation', 'type': 'RunActionCorrelation'}, - 'status': {'key': 'status', 'type': 'WorkflowStatus'}, + 'status': {'key': 'status', 'type': 'str'}, 'code': {'key': 'code', 'type': 'str'}, 'error': {'key': 'error', 'type': 'object'}, 'tracking_id': {'key': 'trackingId', 'type': 'str'}, diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/operation_result_properties.py b/azure-mgmt-logic/azure/mgmt/logic/models/operation_result_properties.py index 9e65b94ae7b9..5a61d0c31ce5 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/operation_result_properties.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/operation_result_properties.py @@ -36,7 +36,7 @@ class OperationResultProperties(Model): 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, 'correlation': {'key': 'correlation', 'type': 'RunActionCorrelation'}, - 'status': {'key': 'status', 'type': 'WorkflowStatus'}, + 'status': {'key': 'status', 'type': 'str'}, 'code': {'key': 'code', 'type': 'str'}, 'error': {'key': 'error', 'type': 'object'}, } diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/operation_result_properties_py3.py b/azure-mgmt-logic/azure/mgmt/logic/models/operation_result_properties_py3.py index 33aa9fdbebcf..41f30d58eae8 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/operation_result_properties_py3.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/operation_result_properties_py3.py @@ -36,7 +36,7 @@ class OperationResultProperties(Model): 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, 'correlation': {'key': 'correlation', 'type': 'RunActionCorrelation'}, - 'status': {'key': 'status', 'type': 'WorkflowStatus'}, + 'status': {'key': 'status', 'type': 'str'}, 'code': {'key': 'code', 'type': 'str'}, 'error': {'key': 'error', 'type': 'object'}, } diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/operation_result_py3.py b/azure-mgmt-logic/azure/mgmt/logic/models/operation_result_py3.py index f853db10b4e6..ef58ac973b49 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/operation_result_py3.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/operation_result_py3.py @@ -64,7 +64,7 @@ class OperationResult(OperationResultProperties): 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, 'correlation': {'key': 'correlation', 'type': 'RunActionCorrelation'}, - 'status': {'key': 'status', 'type': 'WorkflowStatus'}, + 'status': {'key': 'status', 'type': 'str'}, 'code': {'key': 'code', 'type': 'str'}, 'error': {'key': 'error', 'type': 'object'}, 'tracking_id': {'key': 'trackingId', 'type': 'str'}, diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/regenerate_action_parameter.py b/azure-mgmt-logic/azure/mgmt/logic/models/regenerate_action_parameter.py index 3538c5b92b6c..8eeb3ee018fe 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/regenerate_action_parameter.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/regenerate_action_parameter.py @@ -21,7 +21,7 @@ class RegenerateActionParameter(Model): """ _attribute_map = { - 'key_type': {'key': 'keyType', 'type': 'KeyType'}, + 'key_type': {'key': 'keyType', 'type': 'str'}, } def __init__(self, **kwargs): diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/regenerate_action_parameter_py3.py b/azure-mgmt-logic/azure/mgmt/logic/models/regenerate_action_parameter_py3.py index 3594196789eb..5539f5f516f2 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/regenerate_action_parameter_py3.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/regenerate_action_parameter_py3.py @@ -21,7 +21,7 @@ class RegenerateActionParameter(Model): """ _attribute_map = { - 'key_type': {'key': 'keyType', 'type': 'KeyType'}, + 'key_type': {'key': 'keyType', 'type': 'str'}, } def __init__(self, *, key_type=None, **kwargs) -> None: diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/request.py b/azure-mgmt-logic/azure/mgmt/logic/models/request.py new file mode 100644 index 000000000000..061c655df42c --- /dev/null +++ b/azure-mgmt-logic/azure/mgmt/logic/models/request.py @@ -0,0 +1,36 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class Request(Model): + """A request. + + :param headers: A list of all the headers attached to the request. + :type headers: object + :param uri: The destination for the request. + :type uri: str + :param method: The HTTP method used for the request. + :type method: str + """ + + _attribute_map = { + 'headers': {'key': 'headers', 'type': 'object'}, + 'uri': {'key': 'uri', 'type': 'str'}, + 'method': {'key': 'method', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Request, self).__init__(**kwargs) + self.headers = kwargs.get('headers', None) + self.uri = kwargs.get('uri', None) + self.method = kwargs.get('method', None) diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/request_history.py b/azure-mgmt-logic/azure/mgmt/logic/models/request_history.py new file mode 100644 index 000000000000..564959f187e8 --- /dev/null +++ b/azure-mgmt-logic/azure/mgmt/logic/models/request_history.py @@ -0,0 +1,52 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource import Resource + + +class RequestHistory(Resource): + """The request history. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The resource id. + :vartype id: str + :ivar name: Gets the resource name. + :vartype name: str + :ivar type: Gets the resource type. + :vartype type: str + :param location: The resource location. + :type location: str + :param tags: The resource tags. + :type tags: dict[str, str] + :param properties: The request history properties. + :type properties: ~azure.mgmt.logic.models.RequestHistoryProperties + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'properties': {'key': 'properties', 'type': 'RequestHistoryProperties'}, + } + + def __init__(self, **kwargs): + super(RequestHistory, self).__init__(**kwargs) + self.properties = kwargs.get('properties', None) diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/request_history_paged.py b/azure-mgmt-logic/azure/mgmt/logic/models/request_history_paged.py new file mode 100644 index 000000000000..01d899c9e674 --- /dev/null +++ b/azure-mgmt-logic/azure/mgmt/logic/models/request_history_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class RequestHistoryPaged(Paged): + """ + A paging container for iterating over a list of :class:`RequestHistory ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[RequestHistory]'} + } + + def __init__(self, *args, **kwargs): + + super(RequestHistoryPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/request_history_properties.py b/azure-mgmt-logic/azure/mgmt/logic/models/request_history_properties.py new file mode 100644 index 000000000000..241a1212a41d --- /dev/null +++ b/azure-mgmt-logic/azure/mgmt/logic/models/request_history_properties.py @@ -0,0 +1,40 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class RequestHistoryProperties(Model): + """The request history. + + :param start_time: The time the request started. + :type start_time: datetime + :param end_time: The time the request ended. + :type end_time: datetime + :param request: The request. + :type request: ~azure.mgmt.logic.models.Request + :param response: The response. + :type response: ~azure.mgmt.logic.models.Response + """ + + _attribute_map = { + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + 'request': {'key': 'request', 'type': 'Request'}, + 'response': {'key': 'response', 'type': 'Response'}, + } + + def __init__(self, **kwargs): + super(RequestHistoryProperties, self).__init__(**kwargs) + self.start_time = kwargs.get('start_time', None) + self.end_time = kwargs.get('end_time', None) + self.request = kwargs.get('request', None) + self.response = kwargs.get('response', None) diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/request_history_properties_py3.py b/azure-mgmt-logic/azure/mgmt/logic/models/request_history_properties_py3.py new file mode 100644 index 000000000000..5bb2653331e9 --- /dev/null +++ b/azure-mgmt-logic/azure/mgmt/logic/models/request_history_properties_py3.py @@ -0,0 +1,40 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class RequestHistoryProperties(Model): + """The request history. + + :param start_time: The time the request started. + :type start_time: datetime + :param end_time: The time the request ended. + :type end_time: datetime + :param request: The request. + :type request: ~azure.mgmt.logic.models.Request + :param response: The response. + :type response: ~azure.mgmt.logic.models.Response + """ + + _attribute_map = { + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + 'request': {'key': 'request', 'type': 'Request'}, + 'response': {'key': 'response', 'type': 'Response'}, + } + + def __init__(self, *, start_time=None, end_time=None, request=None, response=None, **kwargs) -> None: + super(RequestHistoryProperties, self).__init__(**kwargs) + self.start_time = start_time + self.end_time = end_time + self.request = request + self.response = response diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/request_history_py3.py b/azure-mgmt-logic/azure/mgmt/logic/models/request_history_py3.py new file mode 100644 index 000000000000..855a717a27d2 --- /dev/null +++ b/azure-mgmt-logic/azure/mgmt/logic/models/request_history_py3.py @@ -0,0 +1,52 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource_py3 import Resource + + +class RequestHistory(Resource): + """The request history. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: The resource id. + :vartype id: str + :ivar name: Gets the resource name. + :vartype name: str + :ivar type: Gets the resource type. + :vartype type: str + :param location: The resource location. + :type location: str + :param tags: The resource tags. + :type tags: dict[str, str] + :param properties: The request history properties. + :type properties: ~azure.mgmt.logic.models.RequestHistoryProperties + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'properties': {'key': 'properties', 'type': 'RequestHistoryProperties'}, + } + + def __init__(self, *, location: str=None, tags=None, properties=None, **kwargs) -> None: + super(RequestHistory, self).__init__(location=location, tags=tags, **kwargs) + self.properties = properties diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/request_py3.py b/azure-mgmt-logic/azure/mgmt/logic/models/request_py3.py new file mode 100644 index 000000000000..e72ac2ab288c --- /dev/null +++ b/azure-mgmt-logic/azure/mgmt/logic/models/request_py3.py @@ -0,0 +1,36 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class Request(Model): + """A request. + + :param headers: A list of all the headers attached to the request. + :type headers: object + :param uri: The destination for the request. + :type uri: str + :param method: The HTTP method used for the request. + :type method: str + """ + + _attribute_map = { + 'headers': {'key': 'headers', 'type': 'object'}, + 'uri': {'key': 'uri', 'type': 'str'}, + 'method': {'key': 'method', 'type': 'str'}, + } + + def __init__(self, *, headers=None, uri: str=None, method: str=None, **kwargs) -> None: + super(Request, self).__init__(**kwargs) + self.headers = headers + self.uri = uri + self.method = method diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/resource_reference.py b/azure-mgmt-logic/azure/mgmt/logic/models/resource_reference.py index 4d809125c873..728deff2c46b 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/resource_reference.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/resource_reference.py @@ -18,8 +18,8 @@ class ResourceReference(Model): Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: The resource id. - :vartype id: str + :param id: The resource id. + :type id: str :ivar name: Gets the resource name. :vartype name: str :ivar type: Gets the resource type. @@ -27,7 +27,6 @@ class ResourceReference(Model): """ _validation = { - 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, } @@ -40,6 +39,6 @@ class ResourceReference(Model): def __init__(self, **kwargs): super(ResourceReference, self).__init__(**kwargs) - self.id = None + self.id = kwargs.get('id', None) self.name = None self.type = None diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/resource_reference_py3.py b/azure-mgmt-logic/azure/mgmt/logic/models/resource_reference_py3.py index 371ae58efb0e..2ec7f04aab56 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/resource_reference_py3.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/resource_reference_py3.py @@ -18,8 +18,8 @@ class ResourceReference(Model): Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: The resource id. - :vartype id: str + :param id: The resource id. + :type id: str :ivar name: Gets the resource name. :vartype name: str :ivar type: Gets the resource type. @@ -27,7 +27,6 @@ class ResourceReference(Model): """ _validation = { - 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, } @@ -38,8 +37,8 @@ class ResourceReference(Model): 'type': {'key': 'type', 'type': 'str'}, } - def __init__(self, **kwargs) -> None: + def __init__(self, *, id: str=None, **kwargs) -> None: super(ResourceReference, self).__init__(**kwargs) - self.id = None + self.id = id self.name = None self.type = None diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/response.py b/azure-mgmt-logic/azure/mgmt/logic/models/response.py new file mode 100644 index 000000000000..f3b4a4a29e53 --- /dev/null +++ b/azure-mgmt-logic/azure/mgmt/logic/models/response.py @@ -0,0 +1,36 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class Response(Model): + """A response. + + :param headers: A list of all the headers attached to the response. + :type headers: object + :param status_code: The status code of the response. + :type status_code: int + :param body_link: Details on the location of the body content. + :type body_link: ~azure.mgmt.logic.models.ContentLink + """ + + _attribute_map = { + 'headers': {'key': 'headers', 'type': 'object'}, + 'status_code': {'key': 'statusCode', 'type': 'int'}, + 'body_link': {'key': 'bodyLink', 'type': 'ContentLink'}, + } + + def __init__(self, **kwargs): + super(Response, self).__init__(**kwargs) + self.headers = kwargs.get('headers', None) + self.status_code = kwargs.get('status_code', None) + self.body_link = kwargs.get('body_link', None) diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/response_py3.py b/azure-mgmt-logic/azure/mgmt/logic/models/response_py3.py new file mode 100644 index 000000000000..7213223e63c4 --- /dev/null +++ b/azure-mgmt-logic/azure/mgmt/logic/models/response_py3.py @@ -0,0 +1,36 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class Response(Model): + """A response. + + :param headers: A list of all the headers attached to the response. + :type headers: object + :param status_code: The status code of the response. + :type status_code: int + :param body_link: Details on the location of the body content. + :type body_link: ~azure.mgmt.logic.models.ContentLink + """ + + _attribute_map = { + 'headers': {'key': 'headers', 'type': 'object'}, + 'status_code': {'key': 'statusCode', 'type': 'int'}, + 'body_link': {'key': 'bodyLink', 'type': 'ContentLink'}, + } + + def __init__(self, *, headers=None, status_code: int=None, body_link=None, **kwargs) -> None: + super(Response, self).__init__(**kwargs) + self.headers = headers + self.status_code = status_code + self.body_link = body_link diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/sku.py b/azure-mgmt-logic/azure/mgmt/logic/models/sku.py index 6f430383280c..6fb044da22b3 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/sku.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/sku.py @@ -29,7 +29,7 @@ class Sku(Model): } _attribute_map = { - 'name': {'key': 'name', 'type': 'SkuName'}, + 'name': {'key': 'name', 'type': 'str'}, 'plan': {'key': 'plan', 'type': 'ResourceReference'}, } diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/sku_py3.py b/azure-mgmt-logic/azure/mgmt/logic/models/sku_py3.py index 750447b6cdc2..f8dfc5c7f277 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/sku_py3.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/sku_py3.py @@ -29,7 +29,7 @@ class Sku(Model): } _attribute_map = { - 'name': {'key': 'name', 'type': 'SkuName'}, + 'name': {'key': 'name', 'type': 'str'}, 'plan': {'key': 'plan', 'type': 'ResourceReference'}, } diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/tracking_event.py b/azure-mgmt-logic/azure/mgmt/logic/models/tracking_event.py index 0148f09bddf3..505ce146ce76 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/tracking_event.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/tracking_event.py @@ -44,7 +44,7 @@ class TrackingEvent(Model): _attribute_map = { 'event_level': {'key': 'eventLevel', 'type': 'EventLevel'}, 'event_time': {'key': 'eventTime', 'type': 'iso-8601'}, - 'record_type': {'key': 'recordType', 'type': 'TrackingRecordType'}, + 'record_type': {'key': 'recordType', 'type': 'str'}, 'error': {'key': 'error', 'type': 'TrackingEventErrorInfo'}, } diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/tracking_event_py3.py b/azure-mgmt-logic/azure/mgmt/logic/models/tracking_event_py3.py index ba57b9107f57..cd6606b4095e 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/tracking_event_py3.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/tracking_event_py3.py @@ -44,7 +44,7 @@ class TrackingEvent(Model): _attribute_map = { 'event_level': {'key': 'eventLevel', 'type': 'EventLevel'}, 'event_time': {'key': 'eventTime', 'type': 'iso-8601'}, - 'record_type': {'key': 'recordType', 'type': 'TrackingRecordType'}, + 'record_type': {'key': 'recordType', 'type': 'str'}, 'error': {'key': 'error', 'type': 'TrackingEventErrorInfo'}, } diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/tracking_events_definition.py b/azure-mgmt-logic/azure/mgmt/logic/models/tracking_events_definition.py index 7ac2420546cc..5a6dbfdc7261 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/tracking_events_definition.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/tracking_events_definition.py @@ -34,7 +34,7 @@ class TrackingEventsDefinition(Model): _attribute_map = { 'source_type': {'key': 'sourceType', 'type': 'str'}, - 'track_events_options': {'key': 'trackEventsOptions', 'type': 'TrackEventsOperationOptions'}, + 'track_events_options': {'key': 'trackEventsOptions', 'type': 'str'}, 'events': {'key': 'events', 'type': '[TrackingEvent]'}, } diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/tracking_events_definition_py3.py b/azure-mgmt-logic/azure/mgmt/logic/models/tracking_events_definition_py3.py index 97819d3dc968..daa5205fdcab 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/tracking_events_definition_py3.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/tracking_events_definition_py3.py @@ -34,7 +34,7 @@ class TrackingEventsDefinition(Model): _attribute_map = { 'source_type': {'key': 'sourceType', 'type': 'str'}, - 'track_events_options': {'key': 'trackEventsOptions', 'type': 'TrackEventsOperationOptions'}, + 'track_events_options': {'key': 'trackEventsOptions', 'type': 'str'}, 'events': {'key': 'events', 'type': '[TrackingEvent]'}, } diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/workflow.py b/azure-mgmt-logic/azure/mgmt/logic/models/workflow.py index 6ba75fdbaead..3eb751a61197 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/workflow.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/workflow.py @@ -73,10 +73,10 @@ class Workflow(Resource): 'type': {'key': 'type', 'type': 'str'}, 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'WorkflowProvisioningState'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'created_time': {'key': 'properties.createdTime', 'type': 'iso-8601'}, 'changed_time': {'key': 'properties.changedTime', 'type': 'iso-8601'}, - 'state': {'key': 'properties.state', 'type': 'WorkflowState'}, + 'state': {'key': 'properties.state', 'type': 'str'}, 'version': {'key': 'properties.version', 'type': 'str'}, 'access_endpoint': {'key': 'properties.accessEndpoint', 'type': 'str'}, 'sku': {'key': 'properties.sku', 'type': 'Sku'}, diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/workflow_filter.py b/azure-mgmt-logic/azure/mgmt/logic/models/workflow_filter.py index 0175b536c69b..549db586e998 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/workflow_filter.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/workflow_filter.py @@ -21,7 +21,7 @@ class WorkflowFilter(Model): """ _attribute_map = { - 'state': {'key': 'state', 'type': 'WorkflowState'}, + 'state': {'key': 'state', 'type': 'str'}, } def __init__(self, **kwargs): diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/workflow_filter_py3.py b/azure-mgmt-logic/azure/mgmt/logic/models/workflow_filter_py3.py index 7efc6c47d063..d6198d9cebd5 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/workflow_filter_py3.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/workflow_filter_py3.py @@ -21,7 +21,7 @@ class WorkflowFilter(Model): """ _attribute_map = { - 'state': {'key': 'state', 'type': 'WorkflowState'}, + 'state': {'key': 'state', 'type': 'str'}, } def __init__(self, *, state=None, **kwargs) -> None: diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/workflow_output_parameter.py b/azure-mgmt-logic/azure/mgmt/logic/models/workflow_output_parameter.py index cb568ef000f2..e2fb9dd653f9 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/workflow_output_parameter.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/workflow_output_parameter.py @@ -36,7 +36,7 @@ class WorkflowOutputParameter(WorkflowParameter): } _attribute_map = { - 'type': {'key': 'type', 'type': 'ParameterType'}, + 'type': {'key': 'type', 'type': 'str'}, 'value': {'key': 'value', 'type': 'object'}, 'metadata': {'key': 'metadata', 'type': 'object'}, 'description': {'key': 'description', 'type': 'str'}, diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/workflow_output_parameter_py3.py b/azure-mgmt-logic/azure/mgmt/logic/models/workflow_output_parameter_py3.py index 56d6c1a336f5..3888935a41b6 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/workflow_output_parameter_py3.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/workflow_output_parameter_py3.py @@ -36,7 +36,7 @@ class WorkflowOutputParameter(WorkflowParameter): } _attribute_map = { - 'type': {'key': 'type', 'type': 'ParameterType'}, + 'type': {'key': 'type', 'type': 'str'}, 'value': {'key': 'value', 'type': 'object'}, 'metadata': {'key': 'metadata', 'type': 'object'}, 'description': {'key': 'description', 'type': 'str'}, diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/workflow_parameter.py b/azure-mgmt-logic/azure/mgmt/logic/models/workflow_parameter.py index 14c6c49ec41f..a8324aa0e4cf 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/workflow_parameter.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/workflow_parameter.py @@ -27,7 +27,7 @@ class WorkflowParameter(Model): """ _attribute_map = { - 'type': {'key': 'type', 'type': 'ParameterType'}, + 'type': {'key': 'type', 'type': 'str'}, 'value': {'key': 'value', 'type': 'object'}, 'metadata': {'key': 'metadata', 'type': 'object'}, 'description': {'key': 'description', 'type': 'str'}, diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/workflow_parameter_py3.py b/azure-mgmt-logic/azure/mgmt/logic/models/workflow_parameter_py3.py index f40a0753d708..3520713bd806 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/workflow_parameter_py3.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/workflow_parameter_py3.py @@ -27,7 +27,7 @@ class WorkflowParameter(Model): """ _attribute_map = { - 'type': {'key': 'type', 'type': 'ParameterType'}, + 'type': {'key': 'type', 'type': 'str'}, 'value': {'key': 'value', 'type': 'object'}, 'metadata': {'key': 'metadata', 'type': 'object'}, 'description': {'key': 'description', 'type': 'str'}, diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/workflow_py3.py b/azure-mgmt-logic/azure/mgmt/logic/models/workflow_py3.py index 2183f7ec9e8e..426874912e25 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/workflow_py3.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/workflow_py3.py @@ -73,10 +73,10 @@ class Workflow(Resource): 'type': {'key': 'type', 'type': 'str'}, 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'WorkflowProvisioningState'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'created_time': {'key': 'properties.createdTime', 'type': 'iso-8601'}, 'changed_time': {'key': 'properties.changedTime', 'type': 'iso-8601'}, - 'state': {'key': 'properties.state', 'type': 'WorkflowState'}, + 'state': {'key': 'properties.state', 'type': 'str'}, 'version': {'key': 'properties.version', 'type': 'str'}, 'access_endpoint': {'key': 'properties.accessEndpoint', 'type': 'str'}, 'sku': {'key': 'properties.sku', 'type': 'Sku'}, diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/workflow_run.py b/azure-mgmt-logic/azure/mgmt/logic/models/workflow_run.py index 29b942f78095..b50625d98578 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/workflow_run.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/workflow_run.py @@ -75,7 +75,7 @@ class WorkflowRun(SubResource): 'wait_end_time': {'key': 'properties.waitEndTime', 'type': 'iso-8601'}, 'start_time': {'key': 'properties.startTime', 'type': 'iso-8601'}, 'end_time': {'key': 'properties.endTime', 'type': 'iso-8601'}, - 'status': {'key': 'properties.status', 'type': 'WorkflowStatus'}, + 'status': {'key': 'properties.status', 'type': 'str'}, 'code': {'key': 'properties.code', 'type': 'str'}, 'error': {'key': 'properties.error', 'type': 'object'}, 'correlation_id': {'key': 'properties.correlationId', 'type': 'str'}, diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/workflow_run_action.py b/azure-mgmt-logic/azure/mgmt/logic/models/workflow_run_action.py index 109e7abd552a..da538a7febbc 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/workflow_run_action.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/workflow_run_action.py @@ -69,7 +69,7 @@ class WorkflowRunAction(SubResource): 'id': {'key': 'id', 'type': 'str'}, 'start_time': {'key': 'properties.startTime', 'type': 'iso-8601'}, 'end_time': {'key': 'properties.endTime', 'type': 'iso-8601'}, - 'status': {'key': 'properties.status', 'type': 'WorkflowStatus'}, + 'status': {'key': 'properties.status', 'type': 'str'}, 'code': {'key': 'properties.code', 'type': 'str'}, 'error': {'key': 'properties.error', 'type': 'object'}, 'tracking_id': {'key': 'properties.trackingId', 'type': 'str'}, diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/workflow_run_action_filter.py b/azure-mgmt-logic/azure/mgmt/logic/models/workflow_run_action_filter.py index ae0f4aea8ea1..a8f4cb3b42a2 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/workflow_run_action_filter.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/workflow_run_action_filter.py @@ -23,7 +23,7 @@ class WorkflowRunActionFilter(Model): """ _attribute_map = { - 'status': {'key': 'status', 'type': 'WorkflowStatus'}, + 'status': {'key': 'status', 'type': 'str'}, } def __init__(self, **kwargs): diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/workflow_run_action_filter_py3.py b/azure-mgmt-logic/azure/mgmt/logic/models/workflow_run_action_filter_py3.py index a2bdf89cd7f1..4be8cc72a7ae 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/workflow_run_action_filter_py3.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/workflow_run_action_filter_py3.py @@ -23,7 +23,7 @@ class WorkflowRunActionFilter(Model): """ _attribute_map = { - 'status': {'key': 'status', 'type': 'WorkflowStatus'}, + 'status': {'key': 'status', 'type': 'str'}, } def __init__(self, *, status=None, **kwargs) -> None: diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/workflow_run_action_py3.py b/azure-mgmt-logic/azure/mgmt/logic/models/workflow_run_action_py3.py index c2bdbc2c31ef..55f6f04efd36 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/workflow_run_action_py3.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/workflow_run_action_py3.py @@ -69,7 +69,7 @@ class WorkflowRunAction(SubResource): 'id': {'key': 'id', 'type': 'str'}, 'start_time': {'key': 'properties.startTime', 'type': 'iso-8601'}, 'end_time': {'key': 'properties.endTime', 'type': 'iso-8601'}, - 'status': {'key': 'properties.status', 'type': 'WorkflowStatus'}, + 'status': {'key': 'properties.status', 'type': 'str'}, 'code': {'key': 'properties.code', 'type': 'str'}, 'error': {'key': 'properties.error', 'type': 'object'}, 'tracking_id': {'key': 'properties.trackingId', 'type': 'str'}, diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/workflow_run_action_repetition_definition.py b/azure-mgmt-logic/azure/mgmt/logic/models/workflow_run_action_repetition_definition.py index 0c66a57624a2..9641f4bf5efd 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/workflow_run_action_repetition_definition.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/workflow_run_action_repetition_definition.py @@ -84,7 +84,7 @@ class WorkflowRunActionRepetitionDefinition(Resource): 'start_time': {'key': 'properties.startTime', 'type': 'iso-8601'}, 'end_time': {'key': 'properties.endTime', 'type': 'iso-8601'}, 'correlation': {'key': 'properties.correlation', 'type': 'RunActionCorrelation'}, - 'status': {'key': 'properties.status', 'type': 'WorkflowStatus'}, + 'status': {'key': 'properties.status', 'type': 'str'}, 'code': {'key': 'properties.code', 'type': 'str'}, 'error': {'key': 'properties.error', 'type': 'object'}, 'tracking_id': {'key': 'properties.trackingId', 'type': 'str'}, diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/workflow_run_action_repetition_definition_py3.py b/azure-mgmt-logic/azure/mgmt/logic/models/workflow_run_action_repetition_definition_py3.py index d2f922d27aef..292223cb763a 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/workflow_run_action_repetition_definition_py3.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/workflow_run_action_repetition_definition_py3.py @@ -84,7 +84,7 @@ class WorkflowRunActionRepetitionDefinition(Resource): 'start_time': {'key': 'properties.startTime', 'type': 'iso-8601'}, 'end_time': {'key': 'properties.endTime', 'type': 'iso-8601'}, 'correlation': {'key': 'properties.correlation', 'type': 'RunActionCorrelation'}, - 'status': {'key': 'properties.status', 'type': 'WorkflowStatus'}, + 'status': {'key': 'properties.status', 'type': 'str'}, 'code': {'key': 'properties.code', 'type': 'str'}, 'error': {'key': 'properties.error', 'type': 'object'}, 'tracking_id': {'key': 'properties.trackingId', 'type': 'str'}, diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/workflow_run_filter.py b/azure-mgmt-logic/azure/mgmt/logic/models/workflow_run_filter.py index 99f92563b4a8..0aef8eda5ff0 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/workflow_run_filter.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/workflow_run_filter.py @@ -23,7 +23,7 @@ class WorkflowRunFilter(Model): """ _attribute_map = { - 'status': {'key': 'status', 'type': 'WorkflowStatus'}, + 'status': {'key': 'status', 'type': 'str'}, } def __init__(self, **kwargs): diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/workflow_run_filter_py3.py b/azure-mgmt-logic/azure/mgmt/logic/models/workflow_run_filter_py3.py index b118d686766e..b79a254ff7a8 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/workflow_run_filter_py3.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/workflow_run_filter_py3.py @@ -23,7 +23,7 @@ class WorkflowRunFilter(Model): """ _attribute_map = { - 'status': {'key': 'status', 'type': 'WorkflowStatus'}, + 'status': {'key': 'status', 'type': 'str'}, } def __init__(self, *, status=None, **kwargs) -> None: diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/workflow_run_py3.py b/azure-mgmt-logic/azure/mgmt/logic/models/workflow_run_py3.py index 4346f0b4550a..25325bb406a0 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/workflow_run_py3.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/workflow_run_py3.py @@ -75,7 +75,7 @@ class WorkflowRun(SubResource): 'wait_end_time': {'key': 'properties.waitEndTime', 'type': 'iso-8601'}, 'start_time': {'key': 'properties.startTime', 'type': 'iso-8601'}, 'end_time': {'key': 'properties.endTime', 'type': 'iso-8601'}, - 'status': {'key': 'properties.status', 'type': 'WorkflowStatus'}, + 'status': {'key': 'properties.status', 'type': 'str'}, 'code': {'key': 'properties.code', 'type': 'str'}, 'error': {'key': 'properties.error', 'type': 'object'}, 'correlation_id': {'key': 'properties.correlationId', 'type': 'str'}, diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/workflow_run_trigger.py b/azure-mgmt-logic/azure/mgmt/logic/models/workflow_run_trigger.py index 5601c36ac0ed..5d72f0d0377c 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/workflow_run_trigger.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/workflow_run_trigger.py @@ -78,7 +78,7 @@ class WorkflowRunTrigger(Model): 'tracking_id': {'key': 'trackingId', 'type': 'str'}, 'correlation': {'key': 'correlation', 'type': 'Correlation'}, 'code': {'key': 'code', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'WorkflowStatus'}, + 'status': {'key': 'status', 'type': 'str'}, 'error': {'key': 'error', 'type': 'object'}, 'tracked_properties': {'key': 'trackedProperties', 'type': 'object'}, } diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/workflow_run_trigger_py3.py b/azure-mgmt-logic/azure/mgmt/logic/models/workflow_run_trigger_py3.py index eae9e8073abb..2e6c960a2317 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/workflow_run_trigger_py3.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/workflow_run_trigger_py3.py @@ -78,7 +78,7 @@ class WorkflowRunTrigger(Model): 'tracking_id': {'key': 'trackingId', 'type': 'str'}, 'correlation': {'key': 'correlation', 'type': 'Correlation'}, 'code': {'key': 'code', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'WorkflowStatus'}, + 'status': {'key': 'status', 'type': 'str'}, 'error': {'key': 'error', 'type': 'object'}, 'tracked_properties': {'key': 'trackedProperties', 'type': 'object'}, } diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/workflow_trigger.py b/azure-mgmt-logic/azure/mgmt/logic/models/workflow_trigger.py index 2555cd97ca74..830aac41563e 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/workflow_trigger.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/workflow_trigger.py @@ -69,11 +69,11 @@ class WorkflowTrigger(SubResource): _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'WorkflowTriggerProvisioningState'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'created_time': {'key': 'properties.createdTime', 'type': 'iso-8601'}, 'changed_time': {'key': 'properties.changedTime', 'type': 'iso-8601'}, - 'state': {'key': 'properties.state', 'type': 'WorkflowState'}, - 'status': {'key': 'properties.status', 'type': 'WorkflowStatus'}, + 'state': {'key': 'properties.state', 'type': 'str'}, + 'status': {'key': 'properties.status', 'type': 'str'}, 'last_execution_time': {'key': 'properties.lastExecutionTime', 'type': 'iso-8601'}, 'next_execution_time': {'key': 'properties.nextExecutionTime', 'type': 'iso-8601'}, 'recurrence': {'key': 'properties.recurrence', 'type': 'WorkflowTriggerRecurrence'}, diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/workflow_trigger_filter.py b/azure-mgmt-logic/azure/mgmt/logic/models/workflow_trigger_filter.py index 7ea79307eccf..b0236b37e19b 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/workflow_trigger_filter.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/workflow_trigger_filter.py @@ -21,7 +21,7 @@ class WorkflowTriggerFilter(Model): """ _attribute_map = { - 'state': {'key': 'state', 'type': 'WorkflowState'}, + 'state': {'key': 'state', 'type': 'str'}, } def __init__(self, **kwargs): diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/workflow_trigger_filter_py3.py b/azure-mgmt-logic/azure/mgmt/logic/models/workflow_trigger_filter_py3.py index 2a321508bebb..9948517c3183 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/workflow_trigger_filter_py3.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/workflow_trigger_filter_py3.py @@ -21,7 +21,7 @@ class WorkflowTriggerFilter(Model): """ _attribute_map = { - 'state': {'key': 'state', 'type': 'WorkflowState'}, + 'state': {'key': 'state', 'type': 'str'}, } def __init__(self, *, state=None, **kwargs) -> None: diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/workflow_trigger_history.py b/azure-mgmt-logic/azure/mgmt/logic/models/workflow_trigger_history.py index 1ff54dbeaf1b..5e69498a6711 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/workflow_trigger_history.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/workflow_trigger_history.py @@ -70,7 +70,7 @@ class WorkflowTriggerHistory(SubResource): 'id': {'key': 'id', 'type': 'str'}, 'start_time': {'key': 'properties.startTime', 'type': 'iso-8601'}, 'end_time': {'key': 'properties.endTime', 'type': 'iso-8601'}, - 'status': {'key': 'properties.status', 'type': 'WorkflowStatus'}, + 'status': {'key': 'properties.status', 'type': 'str'}, 'code': {'key': 'properties.code', 'type': 'str'}, 'error': {'key': 'properties.error', 'type': 'object'}, 'tracking_id': {'key': 'properties.trackingId', 'type': 'str'}, diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/workflow_trigger_history_filter.py b/azure-mgmt-logic/azure/mgmt/logic/models/workflow_trigger_history_filter.py index 082b1dfd11bf..0445f68dd948 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/workflow_trigger_history_filter.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/workflow_trigger_history_filter.py @@ -23,7 +23,7 @@ class WorkflowTriggerHistoryFilter(Model): """ _attribute_map = { - 'status': {'key': 'status', 'type': 'WorkflowStatus'}, + 'status': {'key': 'status', 'type': 'str'}, } def __init__(self, **kwargs): diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/workflow_trigger_history_filter_py3.py b/azure-mgmt-logic/azure/mgmt/logic/models/workflow_trigger_history_filter_py3.py index e696821bfff2..1159f3f1d618 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/workflow_trigger_history_filter_py3.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/workflow_trigger_history_filter_py3.py @@ -23,7 +23,7 @@ class WorkflowTriggerHistoryFilter(Model): """ _attribute_map = { - 'status': {'key': 'status', 'type': 'WorkflowStatus'}, + 'status': {'key': 'status', 'type': 'str'}, } def __init__(self, *, status=None, **kwargs) -> None: diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/workflow_trigger_history_py3.py b/azure-mgmt-logic/azure/mgmt/logic/models/workflow_trigger_history_py3.py index 315faa696b02..60b7bc386d0a 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/workflow_trigger_history_py3.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/workflow_trigger_history_py3.py @@ -70,7 +70,7 @@ class WorkflowTriggerHistory(SubResource): 'id': {'key': 'id', 'type': 'str'}, 'start_time': {'key': 'properties.startTime', 'type': 'iso-8601'}, 'end_time': {'key': 'properties.endTime', 'type': 'iso-8601'}, - 'status': {'key': 'properties.status', 'type': 'WorkflowStatus'}, + 'status': {'key': 'properties.status', 'type': 'str'}, 'code': {'key': 'properties.code', 'type': 'str'}, 'error': {'key': 'properties.error', 'type': 'object'}, 'tracking_id': {'key': 'properties.trackingId', 'type': 'str'}, diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/workflow_trigger_py3.py b/azure-mgmt-logic/azure/mgmt/logic/models/workflow_trigger_py3.py index 361c7a1a45a2..ee0caecb66a2 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/workflow_trigger_py3.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/workflow_trigger_py3.py @@ -69,11 +69,11 @@ class WorkflowTrigger(SubResource): _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'WorkflowTriggerProvisioningState'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'created_time': {'key': 'properties.createdTime', 'type': 'iso-8601'}, 'changed_time': {'key': 'properties.changedTime', 'type': 'iso-8601'}, - 'state': {'key': 'properties.state', 'type': 'WorkflowState'}, - 'status': {'key': 'properties.status', 'type': 'WorkflowStatus'}, + 'state': {'key': 'properties.state', 'type': 'str'}, + 'status': {'key': 'properties.status', 'type': 'str'}, 'last_execution_time': {'key': 'properties.lastExecutionTime', 'type': 'iso-8601'}, 'next_execution_time': {'key': 'properties.nextExecutionTime', 'type': 'iso-8601'}, 'recurrence': {'key': 'properties.recurrence', 'type': 'WorkflowTriggerRecurrence'}, diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/workflow_trigger_recurrence.py b/azure-mgmt-logic/azure/mgmt/logic/models/workflow_trigger_recurrence.py index 36bc585fbfff..cb1b56e5f228 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/workflow_trigger_recurrence.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/workflow_trigger_recurrence.py @@ -31,7 +31,7 @@ class WorkflowTriggerRecurrence(Model): """ _attribute_map = { - 'frequency': {'key': 'frequency', 'type': 'RecurrenceFrequency'}, + 'frequency': {'key': 'frequency', 'type': 'str'}, 'interval': {'key': 'interval', 'type': 'int'}, 'start_time': {'key': 'startTime', 'type': 'str'}, 'end_time': {'key': 'endTime', 'type': 'str'}, diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/workflow_trigger_recurrence_py3.py b/azure-mgmt-logic/azure/mgmt/logic/models/workflow_trigger_recurrence_py3.py index b437623a94f6..e50675b5db36 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/workflow_trigger_recurrence_py3.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/workflow_trigger_recurrence_py3.py @@ -31,7 +31,7 @@ class WorkflowTriggerRecurrence(Model): """ _attribute_map = { - 'frequency': {'key': 'frequency', 'type': 'RecurrenceFrequency'}, + 'frequency': {'key': 'frequency', 'type': 'str'}, 'interval': {'key': 'interval', 'type': 'int'}, 'start_time': {'key': 'startTime', 'type': 'str'}, 'end_time': {'key': 'endTime', 'type': 'str'}, diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/workflow_version.py b/azure-mgmt-logic/azure/mgmt/logic/models/workflow_version.py index dfff86d6a134..ada5d76501f0 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/workflow_version.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/workflow_version.py @@ -67,7 +67,7 @@ class WorkflowVersion(Resource): 'tags': {'key': 'tags', 'type': '{str}'}, 'created_time': {'key': 'properties.createdTime', 'type': 'iso-8601'}, 'changed_time': {'key': 'properties.changedTime', 'type': 'iso-8601'}, - 'state': {'key': 'properties.state', 'type': 'WorkflowState'}, + 'state': {'key': 'properties.state', 'type': 'str'}, 'version': {'key': 'properties.version', 'type': 'str'}, 'access_endpoint': {'key': 'properties.accessEndpoint', 'type': 'str'}, 'sku': {'key': 'properties.sku', 'type': 'Sku'}, diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/workflow_version_py3.py b/azure-mgmt-logic/azure/mgmt/logic/models/workflow_version_py3.py index dfc3e8d65951..26bf2042e5b8 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/workflow_version_py3.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/workflow_version_py3.py @@ -67,7 +67,7 @@ class WorkflowVersion(Resource): 'tags': {'key': 'tags', 'type': '{str}'}, 'created_time': {'key': 'properties.createdTime', 'type': 'iso-8601'}, 'changed_time': {'key': 'properties.changedTime', 'type': 'iso-8601'}, - 'state': {'key': 'properties.state', 'type': 'WorkflowState'}, + 'state': {'key': 'properties.state', 'type': 'str'}, 'version': {'key': 'properties.version', 'type': 'str'}, 'access_endpoint': {'key': 'properties.accessEndpoint', 'type': 'str'}, 'sku': {'key': 'properties.sku', 'type': 'Sku'}, diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/x12_envelope_override.py b/azure-mgmt-logic/azure/mgmt/logic/models/x12_envelope_override.py index fe2bc38c8ed3..93f12406b522 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/x12_envelope_override.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/x12_envelope_override.py @@ -65,8 +65,8 @@ class X12EnvelopeOverride(Model): 'sender_application_id': {'key': 'senderApplicationId', 'type': 'str'}, 'receiver_application_id': {'key': 'receiverApplicationId', 'type': 'str'}, 'functional_identifier_code': {'key': 'functionalIdentifierCode', 'type': 'str'}, - 'date_format': {'key': 'dateFormat', 'type': 'X12DateFormat'}, - 'time_format': {'key': 'timeFormat', 'type': 'X12TimeFormat'}, + 'date_format': {'key': 'dateFormat', 'type': 'str'}, + 'time_format': {'key': 'timeFormat', 'type': 'str'}, } def __init__(self, **kwargs): diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/x12_envelope_override_py3.py b/azure-mgmt-logic/azure/mgmt/logic/models/x12_envelope_override_py3.py index 4c25df099fef..a948c9bdc3cf 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/x12_envelope_override_py3.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/x12_envelope_override_py3.py @@ -65,8 +65,8 @@ class X12EnvelopeOverride(Model): 'sender_application_id': {'key': 'senderApplicationId', 'type': 'str'}, 'receiver_application_id': {'key': 'receiverApplicationId', 'type': 'str'}, 'functional_identifier_code': {'key': 'functionalIdentifierCode', 'type': 'str'}, - 'date_format': {'key': 'dateFormat', 'type': 'X12DateFormat'}, - 'time_format': {'key': 'timeFormat', 'type': 'X12TimeFormat'}, + 'date_format': {'key': 'dateFormat', 'type': 'str'}, + 'time_format': {'key': 'timeFormat', 'type': 'str'}, } def __init__(self, *, target_namespace: str, protocol_version: str, message_id: str, responsible_agency_code: str, header_version: str, sender_application_id: str, receiver_application_id: str, date_format, time_format, functional_identifier_code: str=None, **kwargs) -> None: diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/x12_envelope_settings.py b/azure-mgmt-logic/azure/mgmt/logic/models/x12_envelope_settings.py index 135261790cb2..65c4418b9822 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/x12_envelope_settings.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/x12_envelope_settings.py @@ -135,9 +135,9 @@ class X12EnvelopeSettings(Model): 'transaction_set_control_number_prefix': {'key': 'transactionSetControlNumberPrefix', 'type': 'str'}, 'transaction_set_control_number_suffix': {'key': 'transactionSetControlNumberSuffix', 'type': 'str'}, 'overwrite_existing_transaction_set_control_number': {'key': 'overwriteExistingTransactionSetControlNumber', 'type': 'bool'}, - 'group_header_date_format': {'key': 'groupHeaderDateFormat', 'type': 'X12DateFormat'}, - 'group_header_time_format': {'key': 'groupHeaderTimeFormat', 'type': 'X12TimeFormat'}, - 'usage_indicator': {'key': 'usageIndicator', 'type': 'UsageIndicator'}, + 'group_header_date_format': {'key': 'groupHeaderDateFormat', 'type': 'str'}, + 'group_header_time_format': {'key': 'groupHeaderTimeFormat', 'type': 'str'}, + 'usage_indicator': {'key': 'usageIndicator', 'type': 'str'}, } def __init__(self, **kwargs): diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/x12_envelope_settings_py3.py b/azure-mgmt-logic/azure/mgmt/logic/models/x12_envelope_settings_py3.py index 8a4bf0b5b7ea..a46cc19a7b48 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/x12_envelope_settings_py3.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/x12_envelope_settings_py3.py @@ -135,9 +135,9 @@ class X12EnvelopeSettings(Model): 'transaction_set_control_number_prefix': {'key': 'transactionSetControlNumberPrefix', 'type': 'str'}, 'transaction_set_control_number_suffix': {'key': 'transactionSetControlNumberSuffix', 'type': 'str'}, 'overwrite_existing_transaction_set_control_number': {'key': 'overwriteExistingTransactionSetControlNumber', 'type': 'bool'}, - 'group_header_date_format': {'key': 'groupHeaderDateFormat', 'type': 'X12DateFormat'}, - 'group_header_time_format': {'key': 'groupHeaderTimeFormat', 'type': 'X12TimeFormat'}, - 'usage_indicator': {'key': 'usageIndicator', 'type': 'UsageIndicator'}, + 'group_header_date_format': {'key': 'groupHeaderDateFormat', 'type': 'str'}, + 'group_header_time_format': {'key': 'groupHeaderTimeFormat', 'type': 'str'}, + 'usage_indicator': {'key': 'usageIndicator', 'type': 'str'}, } def __init__(self, *, control_standards_id: int, use_control_standards_id_as_repetition_character: bool, sender_application_id: str, receiver_application_id: str, control_version_number: str, interchange_control_number_lower_bound: int, interchange_control_number_upper_bound: int, rollover_interchange_control_number: bool, enable_default_group_headers: bool, group_control_number_lower_bound: int, group_control_number_upper_bound: int, rollover_group_control_number: bool, group_header_agency_code: str, group_header_version: str, transaction_set_control_number_lower_bound: int, transaction_set_control_number_upper_bound: int, rollover_transaction_set_control_number: bool, overwrite_existing_transaction_set_control_number: bool, group_header_date_format, group_header_time_format, usage_indicator, functional_group_id: str=None, transaction_set_control_number_prefix: str=None, transaction_set_control_number_suffix: str=None, **kwargs) -> None: diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/x12_framing_settings.py b/azure-mgmt-logic/azure/mgmt/logic/models/x12_framing_settings.py index ef590fc24825..c28e541459b2 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/x12_framing_settings.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/x12_framing_settings.py @@ -53,7 +53,7 @@ class X12FramingSettings(Model): 'replace_separators_in_payload': {'key': 'replaceSeparatorsInPayload', 'type': 'bool'}, 'replace_character': {'key': 'replaceCharacter', 'type': 'int'}, 'segment_terminator': {'key': 'segmentTerminator', 'type': 'int'}, - 'character_set': {'key': 'characterSet', 'type': 'X12CharacterSet'}, + 'character_set': {'key': 'characterSet', 'type': 'str'}, 'segment_terminator_suffix': {'key': 'segmentTerminatorSuffix', 'type': 'SegmentTerminatorSuffix'}, } diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/x12_framing_settings_py3.py b/azure-mgmt-logic/azure/mgmt/logic/models/x12_framing_settings_py3.py index 9696f6411129..ffd8f09a407d 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/x12_framing_settings_py3.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/x12_framing_settings_py3.py @@ -53,7 +53,7 @@ class X12FramingSettings(Model): 'replace_separators_in_payload': {'key': 'replaceSeparatorsInPayload', 'type': 'bool'}, 'replace_character': {'key': 'replaceCharacter', 'type': 'int'}, 'segment_terminator': {'key': 'segmentTerminator', 'type': 'int'}, - 'character_set': {'key': 'characterSet', 'type': 'X12CharacterSet'}, + 'character_set': {'key': 'characterSet', 'type': 'str'}, 'segment_terminator_suffix': {'key': 'segmentTerminatorSuffix', 'type': 'SegmentTerminatorSuffix'}, } diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/x12_message_filter.py b/azure-mgmt-logic/azure/mgmt/logic/models/x12_message_filter.py index a560cb141ce8..cfcbb4579685 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/x12_message_filter.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/x12_message_filter.py @@ -28,7 +28,7 @@ class X12MessageFilter(Model): } _attribute_map = { - 'message_filter_type': {'key': 'messageFilterType', 'type': 'MessageFilterType'}, + 'message_filter_type': {'key': 'messageFilterType', 'type': 'str'}, } def __init__(self, **kwargs): diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/x12_message_filter_py3.py b/azure-mgmt-logic/azure/mgmt/logic/models/x12_message_filter_py3.py index beb332725f2d..052e4feeb2d3 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/x12_message_filter_py3.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/x12_message_filter_py3.py @@ -28,7 +28,7 @@ class X12MessageFilter(Model): } _attribute_map = { - 'message_filter_type': {'key': 'messageFilterType', 'type': 'MessageFilterType'}, + 'message_filter_type': {'key': 'messageFilterType', 'type': 'str'}, } def __init__(self, *, message_filter_type, **kwargs) -> None: diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/x12_validation_override.py b/azure-mgmt-logic/azure/mgmt/logic/models/x12_validation_override.py index 1b5e384734ca..35beb6787a74 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/x12_validation_override.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/x12_validation_override.py @@ -54,12 +54,12 @@ class X12ValidationOverride(Model): _attribute_map = { 'message_id': {'key': 'messageId', 'type': 'str'}, - 'validate_edi_types': {'key': 'validateEdiTypes', 'type': 'bool'}, - 'validate_xsd_types': {'key': 'validateXsdTypes', 'type': 'bool'}, + 'validate_edi_types': {'key': 'validateEDITypes', 'type': 'bool'}, + 'validate_xsd_types': {'key': 'validateXSDTypes', 'type': 'bool'}, 'allow_leading_and_trailing_spaces_and_zeroes': {'key': 'allowLeadingAndTrailingSpacesAndZeroes', 'type': 'bool'}, 'validate_character_set': {'key': 'validateCharacterSet', 'type': 'bool'}, 'trim_leading_and_trailing_spaces_and_zeroes': {'key': 'trimLeadingAndTrailingSpacesAndZeroes', 'type': 'bool'}, - 'trailing_separator_policy': {'key': 'trailingSeparatorPolicy', 'type': 'TrailingSeparatorPolicy'}, + 'trailing_separator_policy': {'key': 'trailingSeparatorPolicy', 'type': 'str'}, } def __init__(self, **kwargs): diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/x12_validation_override_py3.py b/azure-mgmt-logic/azure/mgmt/logic/models/x12_validation_override_py3.py index 9f80ba560202..4b27fb024434 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/x12_validation_override_py3.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/x12_validation_override_py3.py @@ -54,12 +54,12 @@ class X12ValidationOverride(Model): _attribute_map = { 'message_id': {'key': 'messageId', 'type': 'str'}, - 'validate_edi_types': {'key': 'validateEdiTypes', 'type': 'bool'}, - 'validate_xsd_types': {'key': 'validateXsdTypes', 'type': 'bool'}, + 'validate_edi_types': {'key': 'validateEDITypes', 'type': 'bool'}, + 'validate_xsd_types': {'key': 'validateXSDTypes', 'type': 'bool'}, 'allow_leading_and_trailing_spaces_and_zeroes': {'key': 'allowLeadingAndTrailingSpacesAndZeroes', 'type': 'bool'}, 'validate_character_set': {'key': 'validateCharacterSet', 'type': 'bool'}, 'trim_leading_and_trailing_spaces_and_zeroes': {'key': 'trimLeadingAndTrailingSpacesAndZeroes', 'type': 'bool'}, - 'trailing_separator_policy': {'key': 'trailingSeparatorPolicy', 'type': 'TrailingSeparatorPolicy'}, + 'trailing_separator_policy': {'key': 'trailingSeparatorPolicy', 'type': 'str'}, } def __init__(self, *, message_id: str, validate_edi_types: bool, validate_xsd_types: bool, allow_leading_and_trailing_spaces_and_zeroes: bool, validate_character_set: bool, trim_leading_and_trailing_spaces_and_zeroes: bool, trailing_separator_policy, **kwargs) -> None: diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/x12_validation_settings.py b/azure-mgmt-logic/azure/mgmt/logic/models/x12_validation_settings.py index 107e1849a2c5..3fcbee7a88a4 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/x12_validation_settings.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/x12_validation_settings.py @@ -70,11 +70,11 @@ class X12ValidationSettings(Model): 'interchange_control_number_validity_days': {'key': 'interchangeControlNumberValidityDays', 'type': 'int'}, 'check_duplicate_group_control_number': {'key': 'checkDuplicateGroupControlNumber', 'type': 'bool'}, 'check_duplicate_transaction_set_control_number': {'key': 'checkDuplicateTransactionSetControlNumber', 'type': 'bool'}, - 'validate_edi_types': {'key': 'validateEdiTypes', 'type': 'bool'}, - 'validate_xsd_types': {'key': 'validateXsdTypes', 'type': 'bool'}, + 'validate_edi_types': {'key': 'validateEDITypes', 'type': 'bool'}, + 'validate_xsd_types': {'key': 'validateXSDTypes', 'type': 'bool'}, 'allow_leading_and_trailing_spaces_and_zeroes': {'key': 'allowLeadingAndTrailingSpacesAndZeroes', 'type': 'bool'}, 'trim_leading_and_trailing_spaces_and_zeroes': {'key': 'trimLeadingAndTrailingSpacesAndZeroes', 'type': 'bool'}, - 'trailing_separator_policy': {'key': 'trailingSeparatorPolicy', 'type': 'TrailingSeparatorPolicy'}, + 'trailing_separator_policy': {'key': 'trailingSeparatorPolicy', 'type': 'str'}, } def __init__(self, **kwargs): diff --git a/azure-mgmt-logic/azure/mgmt/logic/models/x12_validation_settings_py3.py b/azure-mgmt-logic/azure/mgmt/logic/models/x12_validation_settings_py3.py index 3873b10dfce9..176e112201f9 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/models/x12_validation_settings_py3.py +++ b/azure-mgmt-logic/azure/mgmt/logic/models/x12_validation_settings_py3.py @@ -70,11 +70,11 @@ class X12ValidationSettings(Model): 'interchange_control_number_validity_days': {'key': 'interchangeControlNumberValidityDays', 'type': 'int'}, 'check_duplicate_group_control_number': {'key': 'checkDuplicateGroupControlNumber', 'type': 'bool'}, 'check_duplicate_transaction_set_control_number': {'key': 'checkDuplicateTransactionSetControlNumber', 'type': 'bool'}, - 'validate_edi_types': {'key': 'validateEdiTypes', 'type': 'bool'}, - 'validate_xsd_types': {'key': 'validateXsdTypes', 'type': 'bool'}, + 'validate_edi_types': {'key': 'validateEDITypes', 'type': 'bool'}, + 'validate_xsd_types': {'key': 'validateXSDTypes', 'type': 'bool'}, 'allow_leading_and_trailing_spaces_and_zeroes': {'key': 'allowLeadingAndTrailingSpacesAndZeroes', 'type': 'bool'}, 'trim_leading_and_trailing_spaces_and_zeroes': {'key': 'trimLeadingAndTrailingSpacesAndZeroes', 'type': 'bool'}, - 'trailing_separator_policy': {'key': 'trailingSeparatorPolicy', 'type': 'TrailingSeparatorPolicy'}, + 'trailing_separator_policy': {'key': 'trailingSeparatorPolicy', 'type': 'str'}, } def __init__(self, *, validate_character_set: bool, check_duplicate_interchange_control_number: bool, interchange_control_number_validity_days: int, check_duplicate_group_control_number: bool, check_duplicate_transaction_set_control_number: bool, validate_edi_types: bool, validate_xsd_types: bool, allow_leading_and_trailing_spaces_and_zeroes: bool, trim_leading_and_trailing_spaces_and_zeroes: bool, trailing_separator_policy, **kwargs) -> None: diff --git a/azure-mgmt-logic/azure/mgmt/logic/operations/__init__.py b/azure-mgmt-logic/azure/mgmt/logic/operations/__init__.py index b2facd3995b3..71ca7f9ddd5e 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/operations/__init__.py +++ b/azure-mgmt-logic/azure/mgmt/logic/operations/__init__.py @@ -12,39 +12,47 @@ from .workflows_operations import WorkflowsOperations from .workflow_versions_operations import WorkflowVersionsOperations from .workflow_triggers_operations import WorkflowTriggersOperations +from .workflow_version_triggers_operations import WorkflowVersionTriggersOperations from .workflow_trigger_histories_operations import WorkflowTriggerHistoriesOperations from .workflow_runs_operations import WorkflowRunsOperations from .workflow_run_actions_operations import WorkflowRunActionsOperations from .workflow_run_action_repetitions_operations import WorkflowRunActionRepetitionsOperations -from .workflow_run_action_scoped_repetitions_operations import WorkflowRunActionScopedRepetitionsOperations +from .workflow_run_action_repetitions_request_histories_operations import WorkflowRunActionRepetitionsRequestHistoriesOperations +from .workflow_run_action_request_histories_operations import WorkflowRunActionRequestHistoriesOperations +from .workflow_run_action_scope_repetitions_operations import WorkflowRunActionScopeRepetitionsOperations from .workflow_run_operations import WorkflowRunOperations from .integration_accounts_operations import IntegrationAccountsOperations from .integration_account_assemblies_operations import IntegrationAccountAssembliesOperations from .integration_account_batch_configurations_operations import IntegrationAccountBatchConfigurationsOperations -from .schemas_operations import SchemasOperations -from .maps_operations import MapsOperations -from .partners_operations import PartnersOperations -from .agreements_operations import AgreementsOperations -from .certificates_operations import CertificatesOperations -from .sessions_operations import SessionsOperations +from .integration_account_schemas_operations import IntegrationAccountSchemasOperations +from .integration_account_maps_operations import IntegrationAccountMapsOperations +from .integration_account_partners_operations import IntegrationAccountPartnersOperations +from .integration_account_agreements_operations import IntegrationAccountAgreementsOperations +from .integration_account_certificates_operations import IntegrationAccountCertificatesOperations +from .integration_account_sessions_operations import IntegrationAccountSessionsOperations +from .operations import Operations __all__ = [ 'WorkflowsOperations', 'WorkflowVersionsOperations', 'WorkflowTriggersOperations', + 'WorkflowVersionTriggersOperations', 'WorkflowTriggerHistoriesOperations', 'WorkflowRunsOperations', 'WorkflowRunActionsOperations', 'WorkflowRunActionRepetitionsOperations', - 'WorkflowRunActionScopedRepetitionsOperations', + 'WorkflowRunActionRepetitionsRequestHistoriesOperations', + 'WorkflowRunActionRequestHistoriesOperations', + 'WorkflowRunActionScopeRepetitionsOperations', 'WorkflowRunOperations', 'IntegrationAccountsOperations', 'IntegrationAccountAssembliesOperations', 'IntegrationAccountBatchConfigurationsOperations', - 'SchemasOperations', - 'MapsOperations', - 'PartnersOperations', - 'AgreementsOperations', - 'CertificatesOperations', - 'SessionsOperations', + 'IntegrationAccountSchemasOperations', + 'IntegrationAccountMapsOperations', + 'IntegrationAccountPartnersOperations', + 'IntegrationAccountAgreementsOperations', + 'IntegrationAccountCertificatesOperations', + 'IntegrationAccountSessionsOperations', + 'Operations', ] diff --git a/azure-mgmt-logic/azure/mgmt/logic/operations/agreements_operations.py b/azure-mgmt-logic/azure/mgmt/logic/operations/integration_account_agreements_operations.py similarity index 91% rename from azure-mgmt-logic/azure/mgmt/logic/operations/agreements_operations.py rename to azure-mgmt-logic/azure/mgmt/logic/operations/integration_account_agreements_operations.py index 865610bc4e8b..89b061117b82 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/operations/agreements_operations.py +++ b/azure-mgmt-logic/azure/mgmt/logic/operations/integration_account_agreements_operations.py @@ -16,14 +16,14 @@ from .. import models -class AgreementsOperations(object): - """AgreementsOperations operations. +class IntegrationAccountAgreementsOperations(object): + """IntegrationAccountAgreementsOperations operations. :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The API version. Constant value: "2016-06-01". + :ivar api_version: The API version. Constant value: "2018-07-01-preview". """ models = models @@ -33,11 +33,11 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2016-06-01" + self.api_version = "2018-07-01-preview" self.config = config - def list_by_integration_accounts( + def list( self, resource_group_name, integration_account_name, top=None, filter=None, custom_headers=None, raw=False, **operation_config): """Gets a list of integration account agreements. @@ -47,7 +47,8 @@ def list_by_integration_accounts( :type integration_account_name: str :param top: The number of items to be included in the result. :type top: int - :param filter: The filter to apply on the operation. + :param filter: The filter to apply on the operation. Options for + filters include: AgreementType. :type filter: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the @@ -63,7 +64,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = self.list_by_integration_accounts.metadata['url'] + url = self.list.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), @@ -85,7 +86,7 @@ def internal_paging(next_link=None, raw=False): # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -94,9 +95,8 @@ def internal_paging(next_link=None, raw=False): header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send( - request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) @@ -114,7 +114,7 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized - list_by_integration_accounts.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/agreements'} + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/agreements'} def get( self, resource_group_name, integration_account_name, agreement_name, custom_headers=None, raw=False, **operation_config): @@ -152,7 +152,7 @@ def get( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -161,8 +161,8 @@ def get( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) @@ -219,6 +219,7 @@ def create_or_update( # Construct headers header_parameters = {} + header_parameters['Accept'] = 'application/json' header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) @@ -231,9 +232,8 @@ def create_or_update( body_content = self._serialize.body(agreement, 'IntegrationAccountAgreement') # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200, 201]: exp = CloudError(response) @@ -289,7 +289,6 @@ def delete( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -298,8 +297,8 @@ def delete( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.delete(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200, 204]: exp = CloudError(response) @@ -354,6 +353,7 @@ def list_content_callback_url( # Construct headers header_parameters = {} + header_parameters['Accept'] = 'application/json' header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) @@ -366,9 +366,8 @@ def list_content_callback_url( body_content = self._serialize.body(list_content_callback_url1, 'GetCallbackUrlParameters') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) diff --git a/azure-mgmt-logic/azure/mgmt/logic/operations/integration_account_assemblies_operations.py b/azure-mgmt-logic/azure/mgmt/logic/operations/integration_account_assemblies_operations.py index ebfb06ee9381..b939a935148a 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/operations/integration_account_assemblies_operations.py +++ b/azure-mgmt-logic/azure/mgmt/logic/operations/integration_account_assemblies_operations.py @@ -23,7 +23,7 @@ class IntegrationAccountAssembliesOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The API version. Constant value: "2016-06-01". + :ivar api_version: The API version. Constant value: "2018-07-01-preview". """ models = models @@ -33,7 +33,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2016-06-01" + self.api_version = "2018-07-01-preview" self.config = config @@ -77,7 +77,7 @@ def internal_paging(next_link=None, raw=False): # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -86,9 +86,8 @@ def internal_paging(next_link=None, raw=False): header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send( - request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) @@ -144,7 +143,7 @@ def get( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -153,8 +152,8 @@ def get( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) @@ -211,6 +210,7 @@ def create_or_update( # Construct headers header_parameters = {} + header_parameters['Accept'] = 'application/json' header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) @@ -223,9 +223,8 @@ def create_or_update( body_content = self._serialize.body(assembly_artifact, 'AssemblyDefinition') # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200, 201]: exp = CloudError(response) @@ -281,7 +280,6 @@ def delete( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -290,8 +288,8 @@ def delete( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.delete(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200, 204]: exp = CloudError(response) @@ -339,7 +337,7 @@ def list_content_callback_url( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -348,8 +346,8 @@ def list_content_callback_url( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) diff --git a/azure-mgmt-logic/azure/mgmt/logic/operations/integration_account_batch_configurations_operations.py b/azure-mgmt-logic/azure/mgmt/logic/operations/integration_account_batch_configurations_operations.py index 297b62c6bf2b..5784a64384d4 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/operations/integration_account_batch_configurations_operations.py +++ b/azure-mgmt-logic/azure/mgmt/logic/operations/integration_account_batch_configurations_operations.py @@ -23,7 +23,7 @@ class IntegrationAccountBatchConfigurationsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The API version. Constant value: "2016-06-01". + :ivar api_version: The API version. Constant value: "2018-07-01-preview". """ models = models @@ -33,7 +33,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2016-06-01" + self.api_version = "2018-07-01-preview" self.config = config @@ -77,7 +77,7 @@ def internal_paging(next_link=None, raw=False): # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -86,9 +86,8 @@ def internal_paging(next_link=None, raw=False): header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send( - request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) @@ -144,7 +143,7 @@ def get( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -153,8 +152,8 @@ def get( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) @@ -211,6 +210,7 @@ def create_or_update( # Construct headers header_parameters = {} + header_parameters['Accept'] = 'application/json' header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) @@ -223,9 +223,8 @@ def create_or_update( body_content = self._serialize.body(batch_configuration, 'BatchConfiguration') # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200, 201]: exp = CloudError(response) @@ -281,7 +280,6 @@ def delete( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -290,8 +288,8 @@ def delete( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.delete(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200, 204]: exp = CloudError(response) diff --git a/azure-mgmt-logic/azure/mgmt/logic/operations/certificates_operations.py b/azure-mgmt-logic/azure/mgmt/logic/operations/integration_account_certificates_operations.py similarity index 90% rename from azure-mgmt-logic/azure/mgmt/logic/operations/certificates_operations.py rename to azure-mgmt-logic/azure/mgmt/logic/operations/integration_account_certificates_operations.py index 615cbe579cec..f8662c321efb 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/operations/certificates_operations.py +++ b/azure-mgmt-logic/azure/mgmt/logic/operations/integration_account_certificates_operations.py @@ -16,14 +16,14 @@ from .. import models -class CertificatesOperations(object): - """CertificatesOperations operations. +class IntegrationAccountCertificatesOperations(object): + """IntegrationAccountCertificatesOperations operations. :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The API version. Constant value: "2016-06-01". + :ivar api_version: The API version. Constant value: "2018-07-01-preview". """ models = models @@ -33,11 +33,11 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2016-06-01" + self.api_version = "2018-07-01-preview" self.config = config - def list_by_integration_accounts( + def list( self, resource_group_name, integration_account_name, top=None, custom_headers=None, raw=False, **operation_config): """Gets a list of integration account certificates. @@ -61,7 +61,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = self.list_by_integration_accounts.metadata['url'] + url = self.list.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), @@ -81,7 +81,7 @@ def internal_paging(next_link=None, raw=False): # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -90,9 +90,8 @@ def internal_paging(next_link=None, raw=False): header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send( - request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) @@ -110,7 +109,7 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized - list_by_integration_accounts.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/certificates'} + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/certificates'} def get( self, resource_group_name, integration_account_name, certificate_name, custom_headers=None, raw=False, **operation_config): @@ -149,7 +148,7 @@ def get( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -158,8 +157,8 @@ def get( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) @@ -218,6 +217,7 @@ def create_or_update( # Construct headers header_parameters = {} + header_parameters['Accept'] = 'application/json' header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) @@ -230,9 +230,8 @@ def create_or_update( body_content = self._serialize.body(certificate, 'IntegrationAccountCertificate') # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200, 201]: exp = CloudError(response) @@ -288,7 +287,6 @@ def delete( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -297,8 +295,8 @@ def delete( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.delete(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200, 204]: exp = CloudError(response) diff --git a/azure-mgmt-logic/azure/mgmt/logic/operations/maps_operations.py b/azure-mgmt-logic/azure/mgmt/logic/operations/integration_account_maps_operations.py similarity index 91% rename from azure-mgmt-logic/azure/mgmt/logic/operations/maps_operations.py rename to azure-mgmt-logic/azure/mgmt/logic/operations/integration_account_maps_operations.py index 555e97bdf0e9..d48be0f43a1b 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/operations/maps_operations.py +++ b/azure-mgmt-logic/azure/mgmt/logic/operations/integration_account_maps_operations.py @@ -16,14 +16,14 @@ from .. import models -class MapsOperations(object): - """MapsOperations operations. +class IntegrationAccountMapsOperations(object): + """IntegrationAccountMapsOperations operations. :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The API version. Constant value: "2016-06-01". + :ivar api_version: The API version. Constant value: "2018-07-01-preview". """ models = models @@ -33,11 +33,11 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2016-06-01" + self.api_version = "2018-07-01-preview" self.config = config - def list_by_integration_accounts( + def list( self, resource_group_name, integration_account_name, top=None, filter=None, custom_headers=None, raw=False, **operation_config): """Gets a list of integration account maps. @@ -47,7 +47,8 @@ def list_by_integration_accounts( :type integration_account_name: str :param top: The number of items to be included in the result. :type top: int - :param filter: The filter to apply on the operation. + :param filter: The filter to apply on the operation. Options for + filters include: MapType. :type filter: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the @@ -63,7 +64,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = self.list_by_integration_accounts.metadata['url'] + url = self.list.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), @@ -85,7 +86,7 @@ def internal_paging(next_link=None, raw=False): # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -94,9 +95,8 @@ def internal_paging(next_link=None, raw=False): header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send( - request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) @@ -114,7 +114,7 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized - list_by_integration_accounts.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/maps'} + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/maps'} def get( self, resource_group_name, integration_account_name, map_name, custom_headers=None, raw=False, **operation_config): @@ -152,7 +152,7 @@ def get( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -161,8 +161,8 @@ def get( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) @@ -219,6 +219,7 @@ def create_or_update( # Construct headers header_parameters = {} + header_parameters['Accept'] = 'application/json' header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) @@ -231,9 +232,8 @@ def create_or_update( body_content = self._serialize.body(map, 'IntegrationAccountMap') # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200, 201]: exp = CloudError(response) @@ -289,7 +289,6 @@ def delete( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -298,8 +297,8 @@ def delete( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.delete(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200, 204]: exp = CloudError(response) @@ -354,6 +353,7 @@ def list_content_callback_url( # Construct headers header_parameters = {} + header_parameters['Accept'] = 'application/json' header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) @@ -366,9 +366,8 @@ def list_content_callback_url( body_content = self._serialize.body(list_content_callback_url1, 'GetCallbackUrlParameters') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) diff --git a/azure-mgmt-logic/azure/mgmt/logic/operations/partners_operations.py b/azure-mgmt-logic/azure/mgmt/logic/operations/integration_account_partners_operations.py similarity index 91% rename from azure-mgmt-logic/azure/mgmt/logic/operations/partners_operations.py rename to azure-mgmt-logic/azure/mgmt/logic/operations/integration_account_partners_operations.py index 4000d7a2cd2e..b77b6b9f72b8 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/operations/partners_operations.py +++ b/azure-mgmt-logic/azure/mgmt/logic/operations/integration_account_partners_operations.py @@ -16,14 +16,14 @@ from .. import models -class PartnersOperations(object): - """PartnersOperations operations. +class IntegrationAccountPartnersOperations(object): + """IntegrationAccountPartnersOperations operations. :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The API version. Constant value: "2016-06-01". + :ivar api_version: The API version. Constant value: "2018-07-01-preview". """ models = models @@ -33,11 +33,11 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2016-06-01" + self.api_version = "2018-07-01-preview" self.config = config - def list_by_integration_accounts( + def list( self, resource_group_name, integration_account_name, top=None, filter=None, custom_headers=None, raw=False, **operation_config): """Gets a list of integration account partners. @@ -47,7 +47,8 @@ def list_by_integration_accounts( :type integration_account_name: str :param top: The number of items to be included in the result. :type top: int - :param filter: The filter to apply on the operation. + :param filter: The filter to apply on the operation. Options for + filters include: PartnerType. :type filter: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the @@ -63,7 +64,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = self.list_by_integration_accounts.metadata['url'] + url = self.list.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), @@ -85,7 +86,7 @@ def internal_paging(next_link=None, raw=False): # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -94,9 +95,8 @@ def internal_paging(next_link=None, raw=False): header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send( - request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) @@ -114,7 +114,7 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized - list_by_integration_accounts.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/partners'} + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/partners'} def get( self, resource_group_name, integration_account_name, partner_name, custom_headers=None, raw=False, **operation_config): @@ -152,7 +152,7 @@ def get( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -161,8 +161,8 @@ def get( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) @@ -219,6 +219,7 @@ def create_or_update( # Construct headers header_parameters = {} + header_parameters['Accept'] = 'application/json' header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) @@ -231,9 +232,8 @@ def create_or_update( body_content = self._serialize.body(partner, 'IntegrationAccountPartner') # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200, 201]: exp = CloudError(response) @@ -289,7 +289,6 @@ def delete( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -298,8 +297,8 @@ def delete( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.delete(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200, 204]: exp = CloudError(response) @@ -354,6 +353,7 @@ def list_content_callback_url( # Construct headers header_parameters = {} + header_parameters['Accept'] = 'application/json' header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) @@ -366,9 +366,8 @@ def list_content_callback_url( body_content = self._serialize.body(list_content_callback_url1, 'GetCallbackUrlParameters') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) diff --git a/azure-mgmt-logic/azure/mgmt/logic/operations/schemas_operations.py b/azure-mgmt-logic/azure/mgmt/logic/operations/integration_account_schemas_operations.py similarity index 91% rename from azure-mgmt-logic/azure/mgmt/logic/operations/schemas_operations.py rename to azure-mgmt-logic/azure/mgmt/logic/operations/integration_account_schemas_operations.py index 49970966db56..321e154853d7 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/operations/schemas_operations.py +++ b/azure-mgmt-logic/azure/mgmt/logic/operations/integration_account_schemas_operations.py @@ -16,14 +16,14 @@ from .. import models -class SchemasOperations(object): - """SchemasOperations operations. +class IntegrationAccountSchemasOperations(object): + """IntegrationAccountSchemasOperations operations. :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The API version. Constant value: "2016-06-01". + :ivar api_version: The API version. Constant value: "2018-07-01-preview". """ models = models @@ -33,11 +33,11 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2016-06-01" + self.api_version = "2018-07-01-preview" self.config = config - def list_by_integration_accounts( + def list( self, resource_group_name, integration_account_name, top=None, filter=None, custom_headers=None, raw=False, **operation_config): """Gets a list of integration account schemas. @@ -47,7 +47,8 @@ def list_by_integration_accounts( :type integration_account_name: str :param top: The number of items to be included in the result. :type top: int - :param filter: The filter to apply on the operation. + :param filter: The filter to apply on the operation. Options for + filters include: SchemaType. :type filter: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the @@ -63,7 +64,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = self.list_by_integration_accounts.metadata['url'] + url = self.list.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), @@ -85,7 +86,7 @@ def internal_paging(next_link=None, raw=False): # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -94,9 +95,8 @@ def internal_paging(next_link=None, raw=False): header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send( - request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) @@ -114,7 +114,7 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized - list_by_integration_accounts.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/schemas'} + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/schemas'} def get( self, resource_group_name, integration_account_name, schema_name, custom_headers=None, raw=False, **operation_config): @@ -152,7 +152,7 @@ def get( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -161,8 +161,8 @@ def get( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) @@ -219,6 +219,7 @@ def create_or_update( # Construct headers header_parameters = {} + header_parameters['Accept'] = 'application/json' header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) @@ -231,9 +232,8 @@ def create_or_update( body_content = self._serialize.body(schema, 'IntegrationAccountSchema') # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200, 201]: exp = CloudError(response) @@ -289,7 +289,6 @@ def delete( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -298,8 +297,8 @@ def delete( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.delete(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200, 204]: exp = CloudError(response) @@ -354,6 +353,7 @@ def list_content_callback_url( # Construct headers header_parameters = {} + header_parameters['Accept'] = 'application/json' header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) @@ -366,9 +366,8 @@ def list_content_callback_url( body_content = self._serialize.body(list_content_callback_url1, 'GetCallbackUrlParameters') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) diff --git a/azure-mgmt-logic/azure/mgmt/logic/operations/sessions_operations.py b/azure-mgmt-logic/azure/mgmt/logic/operations/integration_account_sessions_operations.py similarity index 84% rename from azure-mgmt-logic/azure/mgmt/logic/operations/sessions_operations.py rename to azure-mgmt-logic/azure/mgmt/logic/operations/integration_account_sessions_operations.py index dce104362e52..1d3ac1334b33 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/operations/sessions_operations.py +++ b/azure-mgmt-logic/azure/mgmt/logic/operations/integration_account_sessions_operations.py @@ -11,18 +11,19 @@ import uuid from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError from .. import models -class SessionsOperations(object): - """SessionsOperations operations. +class IntegrationAccountSessionsOperations(object): + """IntegrationAccountSessionsOperations operations. :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The API version. Constant value: "2016-06-01". + :ivar api_version: The API version. Constant value: "2018-07-01-preview". """ models = models @@ -32,11 +33,11 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2016-06-01" + self.api_version = "2018-07-01-preview" self.config = config - def list_by_integration_accounts( + def list( self, resource_group_name, integration_account_name, top=None, filter=None, custom_headers=None, raw=False, **operation_config): """Gets a list of integration account sessions. @@ -46,7 +47,8 @@ def list_by_integration_accounts( :type integration_account_name: str :param top: The number of items to be included in the result. :type top: int - :param filter: The filter to apply on the operation. + :param filter: The filter to apply on the operation. Options for + filters include: ChangedTime. :type filter: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the @@ -56,14 +58,13 @@ def list_by_integration_accounts( :return: An iterator like instance of IntegrationAccountSession :rtype: ~azure.mgmt.logic.models.IntegrationAccountSessionPaged[~azure.mgmt.logic.models.IntegrationAccountSession] - :raises: - :class:`ErrorResponseException` + :raises: :class:`CloudError` """ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = self.list_by_integration_accounts.metadata['url'] + url = self.list.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), @@ -85,7 +86,7 @@ def internal_paging(next_link=None, raw=False): # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -94,12 +95,13 @@ def internal_paging(next_link=None, raw=False): header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send( - request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp return response @@ -112,7 +114,7 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized - list_by_integration_accounts.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/sessions'} + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/sessions'} def get( self, resource_group_name, integration_account_name, session_name, custom_headers=None, raw=False, **operation_config): @@ -132,8 +134,7 @@ def get( :return: IntegrationAccountSession or ClientRawResponse if raw=true :rtype: ~azure.mgmt.logic.models.IntegrationAccountSession or ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` + :raises: :class:`CloudError` """ # Construct URL url = self.get.metadata['url'] @@ -151,7 +152,7 @@ def get( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -160,11 +161,13 @@ def get( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp deserialized = None @@ -198,8 +201,7 @@ def create_or_update( :return: IntegrationAccountSession or ClientRawResponse if raw=true :rtype: ~azure.mgmt.logic.models.IntegrationAccountSession or ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` + :raises: :class:`CloudError` """ # Construct URL url = self.create_or_update.metadata['url'] @@ -217,6 +219,7 @@ def create_or_update( # Construct headers header_parameters = {} + header_parameters['Accept'] = 'application/json' header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) @@ -229,12 +232,13 @@ def create_or_update( body_content = self._serialize.body(session, 'IntegrationAccountSession') # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200, 201]: - raise models.ErrorResponseException(self._deserialize, response) + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp deserialized = None @@ -267,8 +271,7 @@ def delete( overrides`. :return: None or ClientRawResponse if raw=true :rtype: None or ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` + :raises: :class:`CloudError` """ # Construct URL url = self.delete.metadata['url'] @@ -286,7 +289,6 @@ def delete( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -295,11 +297,13 @@ def delete( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.delete(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200, 204]: - raise models.ErrorResponseException(self._deserialize, response) + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp if raw: client_raw_response = ClientRawResponse(None, response) diff --git a/azure-mgmt-logic/azure/mgmt/logic/operations/integration_accounts_operations.py b/azure-mgmt-logic/azure/mgmt/logic/operations/integration_accounts_operations.py index 692acc1e3dd6..324850d2661f 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/operations/integration_accounts_operations.py +++ b/azure-mgmt-logic/azure/mgmt/logic/operations/integration_accounts_operations.py @@ -23,7 +23,7 @@ class IntegrationAccountsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The API version. Constant value: "2016-06-01". + :ivar api_version: The API version. Constant value: "2018-07-01-preview". """ models = models @@ -33,7 +33,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2016-06-01" + self.api_version = "2018-07-01-preview" self.config = config @@ -75,7 +75,7 @@ def internal_paging(next_link=None, raw=False): # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -84,9 +84,8 @@ def internal_paging(next_link=None, raw=False): header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send( - request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) @@ -147,7 +146,7 @@ def internal_paging(next_link=None, raw=False): # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -156,9 +155,8 @@ def internal_paging(next_link=None, raw=False): header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send( - request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) @@ -211,7 +209,7 @@ def get( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -220,8 +218,8 @@ def get( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) @@ -275,6 +273,7 @@ def create_or_update( # Construct headers header_parameters = {} + header_parameters['Accept'] = 'application/json' header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) @@ -287,9 +286,8 @@ def create_or_update( body_content = self._serialize.body(integration_account, 'IntegrationAccount') # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200, 201]: exp = CloudError(response) @@ -345,6 +343,7 @@ def update( # Construct headers header_parameters = {} + header_parameters['Accept'] = 'application/json' header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) @@ -357,9 +356,8 @@ def update( body_content = self._serialize.body(integration_account, 'IntegrationAccount') # Construct and send request - request = self._client.patch(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.patch(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) @@ -410,7 +408,6 @@ def delete( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -419,8 +416,8 @@ def delete( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.delete(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200, 204]: exp = CloudError(response) @@ -432,7 +429,7 @@ def delete( return client_raw_response delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}'} - def get_callback_url( + def list_callback_url( self, resource_group_name, integration_account_name, not_after=None, key_type=None, custom_headers=None, raw=False, **operation_config): """Gets the integration account callback URL. @@ -458,7 +455,7 @@ def get_callback_url( parameters = models.GetCallbackUrlParameters(not_after=not_after, key_type=key_type) # Construct URL - url = self.get_callback_url.metadata['url'] + url = self.list_callback_url.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), @@ -472,6 +469,7 @@ def get_callback_url( # Construct headers header_parameters = {} + header_parameters['Accept'] = 'application/json' header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) @@ -484,9 +482,8 @@ def get_callback_url( body_content = self._serialize.body(parameters, 'GetCallbackUrlParameters') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) @@ -503,7 +500,7 @@ def get_callback_url( return client_raw_response return deserialized - get_callback_url.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/listCallbackUrl'} + list_callback_url.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/integrationAccounts/{integrationAccountName}/listCallbackUrl'} def list_key_vault_keys( self, resource_group_name, integration_account_name, key_vault, skip_token=None, custom_headers=None, raw=False, **operation_config): @@ -551,6 +548,7 @@ def internal_paging(next_link=None, raw=False): # Construct headers header_parameters = {} + header_parameters['Accept'] = 'application/json' header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) @@ -563,9 +561,8 @@ def internal_paging(next_link=None, raw=False): body_content = self._serialize.body(list_key_vault_keys1, 'ListKeyVaultKeysDefinition') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) @@ -632,9 +629,8 @@ def log_tracking_events( body_content = self._serialize.body(log_tracking_events, 'TrackingEventsDefinition') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) @@ -684,6 +680,7 @@ def regenerate_access_key( # Construct headers header_parameters = {} + header_parameters['Accept'] = 'application/json' header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) @@ -696,9 +693,8 @@ def regenerate_access_key( body_content = self._serialize.body(regenerate_access_key1, 'RegenerateActionParameter') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) diff --git a/azure-mgmt-logic/azure/mgmt/logic/operations/operations.py b/azure-mgmt-logic/azure/mgmt/logic/operations/operations.py new file mode 100644 index 000000000000..28249a6929d3 --- /dev/null +++ b/azure-mgmt-logic/azure/mgmt/logic/operations/operations.py @@ -0,0 +1,96 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse + +from .. import models + + +class Operations(object): + """Operations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: The API version. Constant value: "2018-07-01-preview". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-07-01-preview" + + self.config = config + + def list( + self, custom_headers=None, raw=False, **operation_config): + """Lists all of the available Logic REST API operations. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of Operation + :rtype: + ~azure.mgmt.logic.models.OperationPaged[~azure.mgmt.logic.models.Operation] + :raises: + :class:`ErrorResponseException` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorResponseException(self._deserialize, response) + + return response + + # Deserialize response + deserialized = models.OperationPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.OperationPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/providers/Microsoft.Logic/operations'} diff --git a/azure-mgmt-logic/azure/mgmt/logic/operations/workflow_run_action_repetitions_operations.py b/azure-mgmt-logic/azure/mgmt/logic/operations/workflow_run_action_repetitions_operations.py index 8124908c44ab..6af8ea488463 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/operations/workflow_run_action_repetitions_operations.py +++ b/azure-mgmt-logic/azure/mgmt/logic/operations/workflow_run_action_repetitions_operations.py @@ -23,7 +23,7 @@ class WorkflowRunActionRepetitionsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The API version. Constant value: "2016-06-01". + :ivar api_version: The API version. Constant value: "2018-07-01-preview". """ models = models @@ -33,7 +33,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2016-06-01" + self.api_version = "2018-07-01-preview" self.config = config @@ -84,7 +84,7 @@ def internal_paging(next_link=None, raw=False): # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -93,9 +93,8 @@ def internal_paging(next_link=None, raw=False): header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send( - request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) @@ -158,7 +157,7 @@ def get( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -167,8 +166,8 @@ def get( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) @@ -236,7 +235,7 @@ def internal_paging(next_link=None, raw=False): # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -245,9 +244,8 @@ def internal_paging(next_link=None, raw=False): header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) diff --git a/azure-mgmt-logic/azure/mgmt/logic/operations/workflow_run_action_repetitions_request_histories_operations.py b/azure-mgmt-logic/azure/mgmt/logic/operations/workflow_run_action_repetitions_request_histories_operations.py new file mode 100644 index 000000000000..d39359102427 --- /dev/null +++ b/azure-mgmt-logic/azure/mgmt/logic/operations/workflow_run_action_repetitions_request_histories_operations.py @@ -0,0 +1,188 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse + +from .. import models + + +class WorkflowRunActionRepetitionsRequestHistoriesOperations(object): + """WorkflowRunActionRepetitionsRequestHistoriesOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: The API version. Constant value: "2018-07-01-preview". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-07-01-preview" + + self.config = config + + def list( + self, resource_group_name, workflow_name, run_name, action_name, repetition_name, custom_headers=None, raw=False, **operation_config): + """List a workflow run repetition request history. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :param run_name: The workflow run name. + :type run_name: str + :param action_name: The workflow action name. + :type action_name: str + :param repetition_name: The workflow repetition. + :type repetition_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of RequestHistory + :rtype: + ~azure.mgmt.logic.models.RequestHistoryPaged[~azure.mgmt.logic.models.RequestHistory] + :raises: + :class:`ErrorResponseException` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + 'runName': self._serialize.url("run_name", run_name, 'str'), + 'actionName': self._serialize.url("action_name", action_name, 'str'), + 'repetitionName': self._serialize.url("repetition_name", repetition_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorResponseException(self._deserialize, response) + + return response + + # Deserialize response + deserialized = models.RequestHistoryPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.RequestHistoryPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/runs/{runName}/actions/{actionName}/repetitions/{repetitionName}/requestHistories'} + + def get( + self, resource_group_name, workflow_name, run_name, action_name, repetition_name, request_history_name, custom_headers=None, raw=False, **operation_config): + """Gets a workflow run repetition request history. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :param run_name: The workflow run name. + :type run_name: str + :param action_name: The workflow action name. + :type action_name: str + :param repetition_name: The workflow repetition. + :type repetition_name: str + :param request_history_name: The request history name. + :type request_history_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: RequestHistory or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.logic.models.RequestHistory or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorResponseException` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + 'runName': self._serialize.url("run_name", run_name, 'str'), + 'actionName': self._serialize.url("action_name", action_name, 'str'), + 'repetitionName': self._serialize.url("repetition_name", repetition_name, 'str'), + 'requestHistoryName': self._serialize.url("request_history_name", request_history_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorResponseException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('RequestHistory', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/runs/{runName}/actions/{actionName}/repetitions/{repetitionName}/requestHistories/{requestHistoryName}'} diff --git a/azure-mgmt-logic/azure/mgmt/logic/operations/workflow_run_action_request_histories_operations.py b/azure-mgmt-logic/azure/mgmt/logic/operations/workflow_run_action_request_histories_operations.py new file mode 100644 index 000000000000..d6801a082c65 --- /dev/null +++ b/azure-mgmt-logic/azure/mgmt/logic/operations/workflow_run_action_request_histories_operations.py @@ -0,0 +1,182 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse + +from .. import models + + +class WorkflowRunActionRequestHistoriesOperations(object): + """WorkflowRunActionRequestHistoriesOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: The API version. Constant value: "2018-07-01-preview". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-07-01-preview" + + self.config = config + + def list( + self, resource_group_name, workflow_name, run_name, action_name, custom_headers=None, raw=False, **operation_config): + """List a workflow run request history. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :param run_name: The workflow run name. + :type run_name: str + :param action_name: The workflow action name. + :type action_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of RequestHistory + :rtype: + ~azure.mgmt.logic.models.RequestHistoryPaged[~azure.mgmt.logic.models.RequestHistory] + :raises: + :class:`ErrorResponseException` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + 'runName': self._serialize.url("run_name", run_name, 'str'), + 'actionName': self._serialize.url("action_name", action_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorResponseException(self._deserialize, response) + + return response + + # Deserialize response + deserialized = models.RequestHistoryPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.RequestHistoryPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/runs/{runName}/actions/{actionName}/requestHistories'} + + def get( + self, resource_group_name, workflow_name, run_name, action_name, request_history_name, custom_headers=None, raw=False, **operation_config): + """Gets a workflow run request history. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :param run_name: The workflow run name. + :type run_name: str + :param action_name: The workflow action name. + :type action_name: str + :param request_history_name: The request history name. + :type request_history_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: RequestHistory or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.logic.models.RequestHistory or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorResponseException` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + 'runName': self._serialize.url("run_name", run_name, 'str'), + 'actionName': self._serialize.url("action_name", action_name, 'str'), + 'requestHistoryName': self._serialize.url("request_history_name", request_history_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorResponseException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('RequestHistory', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/runs/{runName}/actions/{actionName}/requestHistories/{requestHistoryName}'} diff --git a/azure-mgmt-logic/azure/mgmt/logic/operations/workflow_run_action_scoped_repetitions_operations.py b/azure-mgmt-logic/azure/mgmt/logic/operations/workflow_run_action_scope_repetitions_operations.py similarity index 91% rename from azure-mgmt-logic/azure/mgmt/logic/operations/workflow_run_action_scoped_repetitions_operations.py rename to azure-mgmt-logic/azure/mgmt/logic/operations/workflow_run_action_scope_repetitions_operations.py index 9c48bbd0fc19..327074bbd910 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/operations/workflow_run_action_scoped_repetitions_operations.py +++ b/azure-mgmt-logic/azure/mgmt/logic/operations/workflow_run_action_scope_repetitions_operations.py @@ -16,14 +16,14 @@ from .. import models -class WorkflowRunActionScopedRepetitionsOperations(object): - """WorkflowRunActionScopedRepetitionsOperations operations. +class WorkflowRunActionScopeRepetitionsOperations(object): + """WorkflowRunActionScopeRepetitionsOperations operations. :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The API version. Constant value: "2016-06-01". + :ivar api_version: The API version. Constant value: "2018-07-01-preview". """ models = models @@ -33,7 +33,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2016-06-01" + self.api_version = "2018-07-01-preview" self.config = config @@ -78,7 +78,7 @@ def list( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -87,8 +87,8 @@ def list( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) @@ -150,7 +150,7 @@ def get( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -159,8 +159,8 @@ def get( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) diff --git a/azure-mgmt-logic/azure/mgmt/logic/operations/workflow_run_actions_operations.py b/azure-mgmt-logic/azure/mgmt/logic/operations/workflow_run_actions_operations.py index 12b74f6eb764..01709a977e74 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/operations/workflow_run_actions_operations.py +++ b/azure-mgmt-logic/azure/mgmt/logic/operations/workflow_run_actions_operations.py @@ -23,7 +23,7 @@ class WorkflowRunActionsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The API version. Constant value: "2016-06-01". + :ivar api_version: The API version. Constant value: "2018-07-01-preview". """ models = models @@ -33,7 +33,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2016-06-01" + self.api_version = "2018-07-01-preview" self.config = config @@ -49,7 +49,8 @@ def list( :type run_name: str :param top: The number of items to be included in the result. :type top: int - :param filter: The filter to apply on the operation. + :param filter: The filter to apply on the operation. Options for + filters include: Status. :type filter: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the @@ -88,7 +89,7 @@ def internal_paging(next_link=None, raw=False): # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -97,9 +98,8 @@ def internal_paging(next_link=None, raw=False): header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send( - request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) @@ -158,7 +158,7 @@ def get( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -167,8 +167,8 @@ def get( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) @@ -233,7 +233,7 @@ def internal_paging(next_link=None, raw=False): # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -242,9 +242,8 @@ def internal_paging(next_link=None, raw=False): header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) diff --git a/azure-mgmt-logic/azure/mgmt/logic/operations/workflow_run_operations.py b/azure-mgmt-logic/azure/mgmt/logic/operations/workflow_run_operations.py index a034b81249e9..c128f429d4b1 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/operations/workflow_run_operations.py +++ b/azure-mgmt-logic/azure/mgmt/logic/operations/workflow_run_operations.py @@ -23,7 +23,7 @@ class WorkflowRunOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The API version. Constant value: "2016-06-01". + :ivar api_version: The API version. Constant value: "2018-07-01-preview". """ models = models @@ -33,7 +33,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2016-06-01" + self.api_version = "2018-07-01-preview" self.config = config @@ -76,7 +76,7 @@ def get( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -85,8 +85,8 @@ def get( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) diff --git a/azure-mgmt-logic/azure/mgmt/logic/operations/workflow_runs_operations.py b/azure-mgmt-logic/azure/mgmt/logic/operations/workflow_runs_operations.py index 4e2a94efb342..fe28c04d10df 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/operations/workflow_runs_operations.py +++ b/azure-mgmt-logic/azure/mgmt/logic/operations/workflow_runs_operations.py @@ -23,7 +23,7 @@ class WorkflowRunsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The API version. Constant value: "2016-06-01". + :ivar api_version: The API version. Constant value: "2018-07-01-preview". """ models = models @@ -33,7 +33,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2016-06-01" + self.api_version = "2018-07-01-preview" self.config = config @@ -47,7 +47,8 @@ def list( :type workflow_name: str :param top: The number of items to be included in the result. :type top: int - :param filter: The filter to apply on the operation. + :param filter: The filter to apply on the operation. Options for + filters include: Status, StartTime, and ClientTrackingId. :type filter: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the @@ -85,7 +86,7 @@ def internal_paging(next_link=None, raw=False): # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -94,9 +95,8 @@ def internal_paging(next_link=None, raw=False): header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send( - request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) @@ -152,7 +152,7 @@ def get( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -161,8 +161,8 @@ def get( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) @@ -216,7 +216,6 @@ def cancel( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -225,8 +224,8 @@ def cancel( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) diff --git a/azure-mgmt-logic/azure/mgmt/logic/operations/workflow_trigger_histories_operations.py b/azure-mgmt-logic/azure/mgmt/logic/operations/workflow_trigger_histories_operations.py index 2a4d74d93221..cf4a5de23438 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/operations/workflow_trigger_histories_operations.py +++ b/azure-mgmt-logic/azure/mgmt/logic/operations/workflow_trigger_histories_operations.py @@ -23,7 +23,7 @@ class WorkflowTriggerHistoriesOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The API version. Constant value: "2016-06-01". + :ivar api_version: The API version. Constant value: "2018-07-01-preview". """ models = models @@ -33,7 +33,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2016-06-01" + self.api_version = "2018-07-01-preview" self.config = config @@ -49,7 +49,8 @@ def list( :type trigger_name: str :param top: The number of items to be included in the result. :type top: int - :param filter: The filter to apply on the operation. + :param filter: The filter to apply on the operation. Options for + filters include: Status, StartTime, and ClientTrackingId. :type filter: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the @@ -88,7 +89,7 @@ def internal_paging(next_link=None, raw=False): # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -97,9 +98,8 @@ def internal_paging(next_link=None, raw=False): header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send( - request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) @@ -159,7 +159,7 @@ def get( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -168,8 +168,8 @@ def get( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) @@ -227,7 +227,6 @@ def resubmit( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -236,8 +235,8 @@ def resubmit( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [202]: exp = CloudError(response) diff --git a/azure-mgmt-logic/azure/mgmt/logic/operations/workflow_triggers_operations.py b/azure-mgmt-logic/azure/mgmt/logic/operations/workflow_triggers_operations.py index 7d84a2859d11..af6cc9132dcd 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/operations/workflow_triggers_operations.py +++ b/azure-mgmt-logic/azure/mgmt/logic/operations/workflow_triggers_operations.py @@ -23,7 +23,7 @@ class WorkflowTriggersOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The API version. Constant value: "2016-06-01". + :ivar api_version: The API version. Constant value: "2018-07-01-preview". """ models = models @@ -33,7 +33,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2016-06-01" + self.api_version = "2018-07-01-preview" self.config = config @@ -85,7 +85,7 @@ def internal_paging(next_link=None, raw=False): # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -94,9 +94,8 @@ def internal_paging(next_link=None, raw=False): header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send( - request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) @@ -114,7 +113,7 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized - list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/triggers/'} + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/triggers'} def get( self, resource_group_name, workflow_name, trigger_name, custom_headers=None, raw=False, **operation_config): @@ -152,7 +151,7 @@ def get( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -161,8 +160,8 @@ def get( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) @@ -216,7 +215,6 @@ def reset( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -225,8 +223,8 @@ def reset( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) @@ -274,7 +272,6 @@ def run( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -283,8 +280,8 @@ def run( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code < 200 or response.status_code >= 300: raise HttpOperationError(self._deserialize, response, 'object') @@ -330,7 +327,7 @@ def get_schema_json( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -339,8 +336,8 @@ def get_schema_json( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) @@ -410,9 +407,8 @@ def set_state( body_content = self._serialize.body(set_state1, 'SetTriggerStateActionDefinition') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) @@ -460,7 +456,7 @@ def list_callback_url( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -469,8 +465,8 @@ def list_callback_url( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) diff --git a/azure-mgmt-logic/azure/mgmt/logic/operations/workflow_version_triggers_operations.py b/azure-mgmt-logic/azure/mgmt/logic/operations/workflow_version_triggers_operations.py new file mode 100644 index 000000000000..0d7c07542b20 --- /dev/null +++ b/azure-mgmt-logic/azure/mgmt/logic/operations/workflow_version_triggers_operations.py @@ -0,0 +1,122 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError + +from .. import models + + +class WorkflowVersionTriggersOperations(object): + """WorkflowVersionTriggersOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: The API version. Constant value: "2018-07-01-preview". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-07-01-preview" + + self.config = config + + def list_callback_url( + self, resource_group_name, workflow_name, version_id, trigger_name, not_after=None, key_type=None, custom_headers=None, raw=False, **operation_config): + """Get the callback url for a trigger of a workflow version. + + :param resource_group_name: The resource group name. + :type resource_group_name: str + :param workflow_name: The workflow name. + :type workflow_name: str + :param version_id: The workflow versionId. + :type version_id: str + :param trigger_name: The workflow trigger name. + :type trigger_name: str + :param not_after: The expiry time. + :type not_after: datetime + :param key_type: The key type. Possible values include: + 'NotSpecified', 'Primary', 'Secondary' + :type key_type: str or ~azure.mgmt.logic.models.KeyType + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: WorkflowTriggerCallbackUrl or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.logic.models.WorkflowTriggerCallbackUrl or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + parameters = None + if not_after is not None or key_type is not None: + parameters = models.GetCallbackUrlParameters(not_after=not_after, key_type=key_type) + + # Construct URL + url = self.list_callback_url.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), + 'versionId': self._serialize.url("version_id", version_id, 'str'), + 'triggerName': self._serialize.url("trigger_name", trigger_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + if parameters is not None: + body_content = self._serialize.body(parameters, 'GetCallbackUrlParameters') + else: + body_content = None + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('WorkflowTriggerCallbackUrl', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + list_callback_url.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/versions/{versionId}/triggers/{triggerName}/listCallbackUrl'} diff --git a/azure-mgmt-logic/azure/mgmt/logic/operations/workflow_versions_operations.py b/azure-mgmt-logic/azure/mgmt/logic/operations/workflow_versions_operations.py index f6dffba9225b..b2559032df76 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/operations/workflow_versions_operations.py +++ b/azure-mgmt-logic/azure/mgmt/logic/operations/workflow_versions_operations.py @@ -23,7 +23,7 @@ class WorkflowVersionsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The API version. Constant value: "2016-06-01". + :ivar api_version: The API version. Constant value: "2018-07-01-preview". """ models = models @@ -33,7 +33,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2016-06-01" + self.api_version = "2018-07-01-preview" self.config = config @@ -81,7 +81,7 @@ def internal_paging(next_link=None, raw=False): # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -90,9 +90,8 @@ def internal_paging(next_link=None, raw=False): header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send( - request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) @@ -148,7 +147,7 @@ def get( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -157,8 +156,8 @@ def get( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) @@ -176,87 +175,3 @@ def get( return deserialized get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/versions/{versionId}'} - - def list_callback_url( - self, resource_group_name, workflow_name, version_id, trigger_name, not_after=None, key_type=None, custom_headers=None, raw=False, **operation_config): - """Get the callback url for a trigger of a workflow version. - - :param resource_group_name: The resource group name. - :type resource_group_name: str - :param workflow_name: The workflow name. - :type workflow_name: str - :param version_id: The workflow versionId. - :type version_id: str - :param trigger_name: The workflow trigger name. - :type trigger_name: str - :param not_after: The expiry time. - :type not_after: datetime - :param key_type: The key type. Possible values include: - 'NotSpecified', 'Primary', 'Secondary' - :type key_type: str or ~azure.mgmt.logic.models.KeyType - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: WorkflowTriggerCallbackUrl or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.logic.models.WorkflowTriggerCallbackUrl or - ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - parameters = None - if not_after is not None or key_type is not None: - parameters = models.GetCallbackUrlParameters(not_after=not_after, key_type=key_type) - - # Construct URL - url = self.list_callback_url.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'workflowName': self._serialize.url("workflow_name", workflow_name, 'str'), - 'versionId': self._serialize.url("version_id", version_id, 'str'), - 'triggerName': self._serialize.url("trigger_name", trigger_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - if parameters is not None: - body_content = self._serialize.body(parameters, 'GetCallbackUrlParameters') - else: - body_content = None - - # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('WorkflowTriggerCallbackUrl', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - list_callback_url.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/versions/{versionId}/triggers/{triggerName}/listCallbackUrl'} diff --git a/azure-mgmt-logic/azure/mgmt/logic/operations/workflows_operations.py b/azure-mgmt-logic/azure/mgmt/logic/operations/workflows_operations.py index 297d0375d8a8..76b9133b8263 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/operations/workflows_operations.py +++ b/azure-mgmt-logic/azure/mgmt/logic/operations/workflows_operations.py @@ -23,7 +23,7 @@ class WorkflowsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The API version. Constant value: "2016-06-01". + :ivar api_version: The API version. Constant value: "2018-07-01-preview". """ models = models @@ -33,7 +33,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2016-06-01" + self.api_version = "2018-07-01-preview" self.config = config @@ -43,7 +43,8 @@ def list_by_subscription( :param top: The number of items to be included in the result. :type top: int - :param filter: The filter to apply on the operation. + :param filter: The filter to apply on the operation. Options for + filters include: State, Trigger, and ReferencedResourceId. :type filter: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the @@ -79,7 +80,7 @@ def internal_paging(next_link=None, raw=False): # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -88,9 +89,8 @@ def internal_paging(next_link=None, raw=False): header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send( - request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) @@ -118,7 +118,8 @@ def list_by_resource_group( :type resource_group_name: str :param top: The number of items to be included in the result. :type top: int - :param filter: The filter to apply on the operation. + :param filter: The filter to apply on the operation. Options for + filters include: State, Trigger, and ReferencedResourceId. :type filter: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the @@ -155,7 +156,7 @@ def internal_paging(next_link=None, raw=False): # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -164,9 +165,8 @@ def internal_paging(next_link=None, raw=False): header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send( - request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) @@ -219,7 +219,7 @@ def get( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -228,8 +228,8 @@ def get( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) @@ -283,6 +283,7 @@ def create_or_update( # Construct headers header_parameters = {} + header_parameters['Accept'] = 'application/json' header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) @@ -295,9 +296,8 @@ def create_or_update( body_content = self._serialize.body(workflow, 'Workflow') # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200, 201]: exp = CloudError(response) @@ -353,6 +353,7 @@ def update( # Construct headers header_parameters = {} + header_parameters['Accept'] = 'application/json' header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) @@ -365,9 +366,8 @@ def update( body_content = self._serialize.body(workflow, 'Workflow') # Construct and send request - request = self._client.patch(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.patch(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) @@ -418,7 +418,6 @@ def delete( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -427,8 +426,8 @@ def delete( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.delete(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200, 204]: exp = CloudError(response) @@ -472,7 +471,6 @@ def disable( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -481,8 +479,8 @@ def disable( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) @@ -526,7 +524,6 @@ def enable( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -535,8 +532,8 @@ def enable( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) @@ -584,6 +581,7 @@ def generate_upgraded_definition( # Construct headers header_parameters = {} + header_parameters['Accept'] = 'application/json' header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) @@ -596,9 +594,8 @@ def generate_upgraded_definition( body_content = self._serialize.body(parameters, 'GenerateUpgradedDefinitionParameters') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) @@ -657,6 +654,7 @@ def list_callback_url( # Construct headers header_parameters = {} + header_parameters['Accept'] = 'application/json' header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) @@ -669,9 +667,8 @@ def list_callback_url( body_content = self._serialize.body(list_callback_url1, 'GetCallbackUrlParameters') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) @@ -722,7 +719,7 @@ def list_swagger( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -731,8 +728,8 @@ def list_swagger( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) @@ -797,9 +794,8 @@ def move( body_content = self._serialize.body(move, 'Workflow') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200, 202]: exp = CloudError(response) @@ -860,9 +856,8 @@ def regenerate_access_key( body_content = self._serialize.body(key_type1, 'RegenerateActionParameter') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) @@ -874,7 +869,7 @@ def regenerate_access_key( return client_raw_response regenerate_access_key.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/regenerateAccessKey'} - def validate_workflow( + def validate_by_resource_group( self, resource_group_name, workflow_name, validate, custom_headers=None, raw=False, **operation_config): """Validates the workflow. @@ -894,7 +889,7 @@ def validate_workflow( :raises: :class:`CloudError` """ # Construct URL - url = self.validate_workflow.metadata['url'] + url = self.validate_by_resource_group.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), @@ -920,9 +915,8 @@ def validate_workflow( body_content = self._serialize.body(validate, 'Workflow') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) @@ -932,9 +926,9 @@ def validate_workflow( if raw: client_raw_response = ClientRawResponse(None, response) return client_raw_response - validate_workflow.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/validate'} + validate_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/workflows/{workflowName}/validate'} - def validate( + def validate_by_location( self, resource_group_name, location, workflow_name, workflow, custom_headers=None, raw=False, **operation_config): """Validates the workflow definition. @@ -956,7 +950,7 @@ def validate( :raises: :class:`CloudError` """ # Construct URL - url = self.validate.metadata['url'] + url = self.validate_by_location.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), @@ -983,9 +977,8 @@ def validate( body_content = self._serialize.body(workflow, 'Workflow') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) @@ -995,4 +988,4 @@ def validate( if raw: client_raw_response = ClientRawResponse(None, response) return client_raw_response - validate.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/locations/{location}/workflows/{workflowName}/validate'} + validate_by_location.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logic/locations/{location}/workflows/{workflowName}/validate'} diff --git a/azure-mgmt-logic/azure/mgmt/logic/version.py b/azure-mgmt-logic/azure/mgmt/logic/version.py index 7f225c6aab41..c6d87df7a7b3 100644 --- a/azure-mgmt-logic/azure/mgmt/logic/version.py +++ b/azure-mgmt-logic/azure/mgmt/logic/version.py @@ -9,5 +9,5 @@ # regenerated. # -------------------------------------------------------------------------- -VERSION = "3.0.0" +VERSION = "4.0.0rc1" diff --git a/azure-mgmt-logic/tests/recordings/test_mgmt_apps.test_logic.yaml b/azure-mgmt-logic/tests/recordings/test_mgmt_apps.test_logic.yaml index 8777eac89e8d..7c11739b684c 100644 --- a/azure-mgmt-logic/tests/recordings/test_mgmt_apps.test_logic.yaml +++ b/azure-mgmt-logic/tests/recordings/test_mgmt_apps.test_logic.yaml @@ -1,34 +1,32 @@ interactions: - request: - body: '{"properties": {"definition": {"$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#", - "actions": {}, "outputs": {}, "triggers": {}, "parameters": {}, "contentVersion": - "1.0.0.0"}}, "location": "West US"}' + body: '{"location": "West US", "properties": {"definition": {"$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#", + "contentVersion": "1.0.0.0", "parameters": {}, "triggers": {}, "actions": {}, + "outputs": {}}}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Length: ['268'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.5.1 (Windows-10-10.0.14393-SP0) requests/2.12.1 msrest/0.4.6 - msrest_azure/0.4.7 logicmanagementclient/2.0.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.4 (Windows-10-10.0.17763-SP0) requests/2.20.1 msrest/0.5.5 + msrest_azure/0.4.34 azure-mgmt-logic/4.0.0rc1 Azure-SDK-For-Python] accept-language: [en-US] - x-ms-client-request-id: [19de47ca-0a83-11e7-b965-ecb1d756380e] method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_apps_test_logic86a60a43/providers/Microsoft.Logic/workflows/12HourHeartBeat?api-version=2016-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_apps_test_logic86a60a43/providers/Microsoft.Logic/workflows/12HourHeartBeat?api-version=2018-07-01-preview response: - body: {string: '{"properties":{"provisioningState":"Succeeded","createdTime":"2017-03-16T19:59:46.2363547Z","changedTime":"2017-03-16T19:59:46.2363547Z","state":"Enabled","version":"08587119124992771971","accessEndpoint":"https://prod-26.westus.logic.azure.com:443/workflows/30716e4017654266ac30fa93fa70a059","definition":{"$schema":"https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#","contentVersion":"1.0.0.0","parameters":{},"triggers":{},"actions":{},"outputs":{}},"parameters":{},"endpointsConfiguration":{"workflow":{"outgoingIpAddresses":[{"address":"52.160.92.112"},{"address":"40.118.244.241"},{"address":"40.118.241.243"}],"accessEndpointIpAddresses":[{"address":"52.160.90.237"},{"address":"138.91.188.137"},{"address":"13.91.252.184"}]},"connector":{"outgoingIpAddresses":[{"address":"104.40.51.248"}]}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_apps_test_logic86a60a43/providers/Microsoft.Logic/workflows/12HourHeartBeat","name":"12HourHeartBeat","type":"Microsoft.Logic/workflows","location":"West + body: {string: '{"properties":{"provisioningState":"Succeeded","createdTime":"2018-12-10T21:44:59.8075127Z","changedTime":"2018-12-10T21:44:59.793436Z","state":"Enabled","version":"08586571285857002143","accessEndpoint":"https://prod-39.westus.logic.azure.com:443/workflows/c16d097f07b74d8d845e4d08e4b96b87","definition":{"$schema":"https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#","contentVersion":"1.0.0.0","parameters":{},"triggers":{},"actions":{},"outputs":{}},"parameters":{},"endpointsConfiguration":{"workflow":{"outgoingIpAddresses":[{"address":"52.160.92.112"},{"address":"40.118.244.241"},{"address":"40.118.241.243"},{"address":"157.56.162.53"},{"address":"157.56.167.147"},{"address":"104.42.49.145"},{"address":"40.83.164.80"},{"address":"104.42.38.32"}],"accessEndpointIpAddresses":[{"address":"52.160.90.237"},{"address":"138.91.188.137"},{"address":"13.91.252.184"},{"address":"157.56.160.212 + "}]},"connector":{"outgoingIpAddresses":[{"address":"104.40.51.248"}]}}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_apps_test_logic86a60a43/providers/Microsoft.Logic/workflows/12HourHeartBeat","name":"12HourHeartBeat","type":"Microsoft.Logic/workflows","location":"West US"}'} headers: - Cache-Control: [no-cache] - Content-Length: ['1098'] - Content-Type: [application/json; charset=utf-8] - Date: ['Thu, 16 Mar 2017 19:59:46 GMT'] - Expires: ['-1'] - Pragma: [no-cache] - Strict-Transport-Security: [max-age=31536000; includeSubDomains] - x-ms-correlation-request-id: [562b4a8d-1dfc-41bc-ad96-ebae6dadb28f] + cache-control: [no-cache] + content-length: ['1266'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 10 Dec 2018 21:45:00 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] x-ms-ratelimit-remaining-subscription-writes: ['1199'] - x-ms-request-id: ['westus:0a51f962-b00f-4cba-b6b5-056156e3d6ea'] - x-ms-routing-request-id: ['CENTRALUS:20170316T195946Z:562b4a8d-1dfc-41bc-ad96-ebae6dadb28f'] status: {code: 201, message: Created} version: 1 From ba179ea71e684f9e5f8a8e3121cf9710c2b9bd31 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Tue, 11 Dec 2018 11:16:31 -0800 Subject: [PATCH 07/12] [AutoPR] cognitiveservices/data-plane/CustomWebSearch (#2597) * Generated from 8f44fce8ff071d239a14dbb1e074d39dccf38b3d (#2578) renaming custom search to custom web search * Generated from 59d29e5b9ede1195ac7ef5b826889226ad9a240d (#3771) Py conf in its own file * Update version.py * Deprecated file * ChangeLog * Packaging update of azure-cognitiveservices-search-customsearch * Update sdk_packaging.toml * Packaging update of azure-cognitiveservices-search-customsearch * Update HISTORY.rst --- .../HISTORY.rst | 31 ++ .../MANIFEST.in | 4 + .../search/customsearch/__init__.py | 4 +- ..._search_api.py => custom_search_client.py} | 16 +- .../search/customsearch/models/__init__.py | 49 +- .../search/customsearch/models/answer.py | 8 +- .../search/customsearch/models/answer_py3.py | 58 +++ .../customsearch/models/creative_work.py | 8 +- .../customsearch/models/creative_work_py3.py | 85 ++++ ...enums.py => custom_search_client_enums.py} | 8 +- .../search/customsearch/models/error.py | 16 +- .../search/customsearch/models/error_py3.py | 72 +++ .../customsearch/models/error_response.py | 14 +- .../customsearch/models/error_response_py3.py | 65 +++ .../customsearch/models/identifiable.py | 8 +- .../customsearch/models/identifiable_py3.py | 49 ++ .../search/customsearch/models/query.py | 12 +- .../customsearch/models/query_context.py | 11 +- .../customsearch/models/query_context_py3.py | 64 +++ .../search/customsearch/models/query_py3.py | 57 +++ .../search/customsearch/models/response.py | 8 +- .../customsearch/models/response_base.py | 8 +- .../customsearch/models/response_base_py3.py | 41 ++ .../customsearch/models/response_py3.py | 54 +++ .../customsearch/models/search_response.py | 8 +- .../models/search_response_py3.py | 61 +++ .../models/search_results_answer.py | 8 +- .../models/search_results_answer_py3.py | 75 ++++ .../search/customsearch/models/thing.py | 8 +- .../search/customsearch/models/thing_py3.py | 73 +++ .../customsearch/models/web_meta_tag.py | 4 +- .../customsearch/models/web_meta_tag_py3.py | 40 ++ .../search/customsearch/models/web_page.py | 8 +- .../customsearch/models/web_page_py3.py | 112 +++++ .../customsearch/models/web_web_answer.py | 12 +- .../customsearch/models/web_web_answer_py3.py | 78 ++++ .../operations/custom_instance_operations.py | 20 +- .../search/customsearch/version.py | 2 +- .../build.json | 420 ------------------ .../sdk_packaging.toml | 1 + 40 files changed, 1163 insertions(+), 517 deletions(-) rename azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/{custom_search_api.py => custom_search_client.py} (83%) create mode 100644 azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/answer_py3.py create mode 100644 azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/creative_work_py3.py rename azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/{custom_search_api_enums.py => custom_search_client_enums.py} (91%) create mode 100644 azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/error_py3.py create mode 100644 azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/error_response_py3.py create mode 100644 azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/identifiable_py3.py create mode 100644 azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/query_context_py3.py create mode 100644 azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/query_py3.py create mode 100644 azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/response_base_py3.py create mode 100644 azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/response_py3.py create mode 100644 azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/search_response_py3.py create mode 100644 azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/search_results_answer_py3.py create mode 100644 azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/thing_py3.py create mode 100644 azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/web_meta_tag_py3.py create mode 100644 azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/web_page_py3.py create mode 100644 azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/web_web_answer_py3.py delete mode 100644 azure-cognitiveservices-search-customsearch/build.json diff --git a/azure-cognitiveservices-search-customsearch/HISTORY.rst b/azure-cognitiveservices-search-customsearch/HISTORY.rst index d521caf0f949..2b96d841814b 100644 --- a/azure-cognitiveservices-search-customsearch/HISTORY.rst +++ b/azure-cognitiveservices-search-customsearch/HISTORY.rst @@ -3,6 +3,37 @@ Release History =============== +0.2.0 (2018-12-11) +++++++++++++++++++ + +**Features** + +- Client class can be used as a context manager to keep the underlying HTTP session open for performance + +**Breaking changes** + +- CustomSearchAPI main client has been renamed CustomSearchClient +- "search" method has changes in positional arguments + +**General Breaking changes** + +This version uses a next-generation code generator that *might* introduce breaking changes. + +- Model signatures now use only keyword-argument syntax. All positional arguments must be re-written as keyword-arguments. + To keep auto-completion in most cases, models are now generated for Python 2 and Python 3. Python 3 uses the "*" syntax for keyword-only arguments. +- Enum types now use the "str" mixin (class AzureEnum(str, Enum)) to improve the behavior when unrecognized enum values are encountered. + While this is not a breaking change, the distinctions are important, and are documented here: + https://docs.python.org/3/library/enum.html#others + At a glance: + + - "is" should not be used at all. + - "format" will return the string value, where "%s" string formatting will return `NameOfEnum.stringvalue`. Format syntax should be prefered. + +**Bugfixes** + +- Compatibility of the sdist with wheel 0.31.0 + + 0.1.0 (2018-01-12) ++++++++++++++++++ diff --git a/azure-cognitiveservices-search-customsearch/MANIFEST.in b/azure-cognitiveservices-search-customsearch/MANIFEST.in index bb37a2723dae..d1c7ea0ea56b 100644 --- a/azure-cognitiveservices-search-customsearch/MANIFEST.in +++ b/azure-cognitiveservices-search-customsearch/MANIFEST.in @@ -1 +1,5 @@ include *.rst +include azure/__init__.py +include azure/cognitiveservices/__init__.py +include azure/cognitiveservices/search/__init__.py + diff --git a/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/__init__.py b/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/__init__.py index fd6c0d40bb86..5e34711b52be 100644 --- a/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/__init__.py +++ b/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/__init__.py @@ -9,10 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- -from .custom_search_api import CustomSearchAPI +from .custom_search_client import CustomSearchClient from .version import VERSION -__all__ = ['CustomSearchAPI'] +__all__ = ['CustomSearchClient'] __version__ = VERSION diff --git a/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/custom_search_api.py b/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/custom_search_client.py similarity index 83% rename from azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/custom_search_api.py rename to azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/custom_search_client.py index 4804fae6a637..ce11760e895c 100644 --- a/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/custom_search_api.py +++ b/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/custom_search_client.py @@ -9,15 +9,15 @@ # regenerated. # -------------------------------------------------------------------------- -from msrest.service_client import ServiceClient +from msrest.service_client import SDKClient from msrest import Configuration, Serializer, Deserializer from .version import VERSION from .operations.custom_instance_operations import CustomInstanceOperations from . import models -class CustomSearchAPIConfiguration(Configuration): - """Configuration for CustomSearchAPI +class CustomSearchClientConfiguration(Configuration): + """Configuration for CustomSearchClient Note that all parameters used to create this instance are saved as instance attributes. @@ -35,18 +35,18 @@ def __init__( if not base_url: base_url = 'https://api.cognitive.microsoft.com/bingcustomsearch/v7.0' - super(CustomSearchAPIConfiguration, self).__init__(base_url) + super(CustomSearchClientConfiguration, self).__init__(base_url) self.add_user_agent('azure-cognitiveservices-search-customsearch/{}'.format(VERSION)) self.credentials = credentials -class CustomSearchAPI(object): +class CustomSearchClient(SDKClient): """The Bing Custom Search API lets you send a search query to Bing and get back search results customized to meet your custom search definition. :ivar config: Configuration for client. - :vartype config: CustomSearchAPIConfiguration + :vartype config: CustomSearchClientConfiguration :ivar custom_instance: CustomInstance operations :vartype custom_instance: azure.cognitiveservices.search.customsearch.operations.CustomInstanceOperations @@ -60,8 +60,8 @@ class CustomSearchAPI(object): def __init__( self, credentials, base_url=None): - self.config = CustomSearchAPIConfiguration(credentials, base_url) - self._client = ServiceClient(self.config.credentials, self.config) + self.config = CustomSearchClientConfiguration(credentials, base_url) + super(CustomSearchClient, self).__init__(self.config.credentials, self.config) client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} self.api_version = '1.0' diff --git a/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/__init__.py b/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/__init__.py index c8ae3f2bd636..291919880acb 100644 --- a/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/__init__.py +++ b/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/__init__.py @@ -9,22 +9,39 @@ # regenerated. # -------------------------------------------------------------------------- -from .query_context import QueryContext -from .web_meta_tag import WebMetaTag -from .web_page import WebPage -from .web_web_answer import WebWebAnswer -from .search_response import SearchResponse -from .response import Response -from .search_results_answer import SearchResultsAnswer -from .identifiable import Identifiable -from .error import Error -from .error_response import ErrorResponse, ErrorResponseException -from .query import Query -from .answer import Answer -from .thing import Thing -from .creative_work import CreativeWork -from .response_base import ResponseBase -from .custom_search_api_enums import ( +try: + from .query_context_py3 import QueryContext + from .web_meta_tag_py3 import WebMetaTag + from .web_page_py3 import WebPage + from .web_web_answer_py3 import WebWebAnswer + from .search_response_py3 import SearchResponse + from .response_py3 import Response + from .search_results_answer_py3 import SearchResultsAnswer + from .identifiable_py3 import Identifiable + from .error_py3 import Error + from .error_response_py3 import ErrorResponse, ErrorResponseException + from .query_py3 import Query + from .answer_py3 import Answer + from .thing_py3 import Thing + from .creative_work_py3 import CreativeWork + from .response_base_py3 import ResponseBase +except (SyntaxError, ImportError): + from .query_context import QueryContext + from .web_meta_tag import WebMetaTag + from .web_page import WebPage + from .web_web_answer import WebWebAnswer + from .search_response import SearchResponse + from .response import Response + from .search_results_answer import SearchResultsAnswer + from .identifiable import Identifiable + from .error import Error + from .error_response import ErrorResponse, ErrorResponseException + from .query import Query + from .answer import Answer + from .thing import Thing + from .creative_work import CreativeWork + from .response_base import ResponseBase +from .custom_search_client_enums import ( ErrorCode, ErrorSubCode, SafeSearch, diff --git a/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/answer.py b/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/answer.py index 50dd4581e363..643c7621a034 100644 --- a/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/answer.py +++ b/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/answer.py @@ -21,7 +21,9 @@ class Answer(Response): Variables are only populated by the server, and will be ignored when sending a request. - :param _type: Constant filled by server. + All required parameters must be populated in order to send to Azure. + + :param _type: Required. Constant filled by server. :type _type: str :ivar id: A String identifier. :vartype id: str @@ -50,7 +52,7 @@ class Answer(Response): '_type': {'SearchResultsAnswer': 'SearchResultsAnswer'} } - def __init__(self): - super(Answer, self).__init__() + def __init__(self, **kwargs): + super(Answer, self).__init__(**kwargs) self.follow_up_queries = None self._type = 'Answer' diff --git a/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/answer_py3.py b/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/answer_py3.py new file mode 100644 index 000000000000..db1b9e6ef1d5 --- /dev/null +++ b/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/answer_py3.py @@ -0,0 +1,58 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .response_py3 import Response + + +class Answer(Response): + """Answer. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: SearchResultsAnswer + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param _type: Required. Constant filled by server. + :type _type: str + :ivar id: A String identifier. + :vartype id: str + :ivar web_search_url: The URL To Bing's search result for this item. + :vartype web_search_url: str + :ivar follow_up_queries: + :vartype follow_up_queries: + list[~azure.cognitiveservices.search.customsearch.models.Query] + """ + + _validation = { + '_type': {'required': True}, + 'id': {'readonly': True}, + 'web_search_url': {'readonly': True}, + 'follow_up_queries': {'readonly': True}, + } + + _attribute_map = { + '_type': {'key': '_type', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'web_search_url': {'key': 'webSearchUrl', 'type': 'str'}, + 'follow_up_queries': {'key': 'followUpQueries', 'type': '[Query]'}, + } + + _subtype_map = { + '_type': {'SearchResultsAnswer': 'SearchResultsAnswer'} + } + + def __init__(self, **kwargs) -> None: + super(Answer, self).__init__(**kwargs) + self.follow_up_queries = None + self._type = 'Answer' diff --git a/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/creative_work.py b/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/creative_work.py index 4c3f34256369..117fb6eb062e 100644 --- a/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/creative_work.py +++ b/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/creative_work.py @@ -21,7 +21,9 @@ class CreativeWork(Thing): Variables are only populated by the server, and will be ignored when sending a request. - :param _type: Constant filled by server. + All required parameters must be populated in order to send to Azure. + + :param _type: Required. Constant filled by server. :type _type: str :ivar id: A String identifier. :vartype id: str @@ -75,8 +77,8 @@ class CreativeWork(Thing): '_type': {'WebPage': 'WebPage'} } - def __init__(self): - super(CreativeWork, self).__init__() + def __init__(self, **kwargs): + super(CreativeWork, self).__init__(**kwargs) self.thumbnail_url = None self.provider = None self.text = None diff --git a/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/creative_work_py3.py b/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/creative_work_py3.py new file mode 100644 index 000000000000..ae7d34b9ac3b --- /dev/null +++ b/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/creative_work_py3.py @@ -0,0 +1,85 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .thing_py3 import Thing + + +class CreativeWork(Thing): + """CreativeWork. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: WebPage + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param _type: Required. Constant filled by server. + :type _type: str + :ivar id: A String identifier. + :vartype id: str + :ivar web_search_url: The URL To Bing's search result for this item. + :vartype web_search_url: str + :ivar name: The name of the thing represented by this object. + :vartype name: str + :ivar url: The URL to get more information about the thing represented by + this object. + :vartype url: str + :ivar description: A short description of the item. + :vartype description: str + :ivar bing_id: An ID that uniquely identifies this item. + :vartype bing_id: str + :ivar thumbnail_url: The URL to a thumbnail of the item. + :vartype thumbnail_url: str + :ivar provider: The source of the creative work. + :vartype provider: + list[~azure.cognitiveservices.search.customsearch.models.Thing] + :ivar text: + :vartype text: str + """ + + _validation = { + '_type': {'required': True}, + 'id': {'readonly': True}, + 'web_search_url': {'readonly': True}, + 'name': {'readonly': True}, + 'url': {'readonly': True}, + 'description': {'readonly': True}, + 'bing_id': {'readonly': True}, + 'thumbnail_url': {'readonly': True}, + 'provider': {'readonly': True}, + 'text': {'readonly': True}, + } + + _attribute_map = { + '_type': {'key': '_type', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'web_search_url': {'key': 'webSearchUrl', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'bing_id': {'key': 'bingId', 'type': 'str'}, + 'thumbnail_url': {'key': 'thumbnailUrl', 'type': 'str'}, + 'provider': {'key': 'provider', 'type': '[Thing]'}, + 'text': {'key': 'text', 'type': 'str'}, + } + + _subtype_map = { + '_type': {'WebPage': 'WebPage'} + } + + def __init__(self, **kwargs) -> None: + super(CreativeWork, self).__init__(**kwargs) + self.thumbnail_url = None + self.provider = None + self.text = None + self._type = 'CreativeWork' diff --git a/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/custom_search_api_enums.py b/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/custom_search_client_enums.py similarity index 91% rename from azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/custom_search_api_enums.py rename to azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/custom_search_client_enums.py index 5d369cb9be38..7cac41b1f38c 100644 --- a/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/custom_search_api_enums.py +++ b/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/custom_search_client_enums.py @@ -12,7 +12,7 @@ from enum import Enum -class ErrorCode(Enum): +class ErrorCode(str, Enum): none = "None" server_error = "ServerError" @@ -22,7 +22,7 @@ class ErrorCode(Enum): insufficient_authorization = "InsufficientAuthorization" -class ErrorSubCode(Enum): +class ErrorSubCode(str, Enum): unexpected_error = "UnexpectedError" resource_error = "ResourceError" @@ -37,14 +37,14 @@ class ErrorSubCode(Enum): authorization_expired = "AuthorizationExpired" -class SafeSearch(Enum): +class SafeSearch(str, Enum): off = "Off" moderate = "Moderate" strict = "Strict" -class TextFormat(Enum): +class TextFormat(str, Enum): raw = "Raw" html = "Html" diff --git a/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/error.py b/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/error.py index 5e0da1332380..ca15821bf050 100644 --- a/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/error.py +++ b/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/error.py @@ -18,8 +18,10 @@ class Error(Model): Variables are only populated by the server, and will be ignored when sending a request. - :param code: The error code that identifies the category of error. - Possible values include: 'None', 'ServerError', 'InvalidRequest', + All required parameters must be populated in order to send to Azure. + + :param code: Required. The error code that identifies the category of + error. Possible values include: 'None', 'ServerError', 'InvalidRequest', 'RateLimitExceeded', 'InvalidAuthorization', 'InsufficientAuthorization'. Default value: "None" . :type code: str or @@ -31,7 +33,7 @@ class Error(Model): 'AuthorizationRedundancy', 'AuthorizationDisabled', 'AuthorizationExpired' :vartype sub_code: str or ~azure.cognitiveservices.search.customsearch.models.ErrorSubCode - :param message: A description of the error. + :param message: Required. A description of the error. :type message: str :ivar more_details: A description that provides additional information about the error. @@ -60,11 +62,11 @@ class Error(Model): 'value': {'key': 'value', 'type': 'str'}, } - def __init__(self, message, code="None"): - super(Error, self).__init__() - self.code = code + def __init__(self, **kwargs): + super(Error, self).__init__(**kwargs) + self.code = kwargs.get('code', "None") self.sub_code = None - self.message = message + self.message = kwargs.get('message', None) self.more_details = None self.parameter = None self.value = None diff --git a/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/error_py3.py b/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/error_py3.py new file mode 100644 index 000000000000..e23c4cbb6054 --- /dev/null +++ b/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/error_py3.py @@ -0,0 +1,72 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class Error(Model): + """Defines the error that occurred. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param code: Required. The error code that identifies the category of + error. Possible values include: 'None', 'ServerError', 'InvalidRequest', + 'RateLimitExceeded', 'InvalidAuthorization', 'InsufficientAuthorization'. + Default value: "None" . + :type code: str or + ~azure.cognitiveservices.search.customsearch.models.ErrorCode + :ivar sub_code: The error code that further helps to identify the error. + Possible values include: 'UnexpectedError', 'ResourceError', + 'NotImplemented', 'ParameterMissing', 'ParameterInvalidValue', + 'HttpNotAllowed', 'Blocked', 'AuthorizationMissing', + 'AuthorizationRedundancy', 'AuthorizationDisabled', 'AuthorizationExpired' + :vartype sub_code: str or + ~azure.cognitiveservices.search.customsearch.models.ErrorSubCode + :param message: Required. A description of the error. + :type message: str + :ivar more_details: A description that provides additional information + about the error. + :vartype more_details: str + :ivar parameter: The parameter in the request that caused the error. + :vartype parameter: str + :ivar value: The parameter's value in the request that was not valid. + :vartype value: str + """ + + _validation = { + 'code': {'required': True}, + 'sub_code': {'readonly': True}, + 'message': {'required': True}, + 'more_details': {'readonly': True}, + 'parameter': {'readonly': True}, + 'value': {'readonly': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'sub_code': {'key': 'subCode', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'more_details': {'key': 'moreDetails', 'type': 'str'}, + 'parameter': {'key': 'parameter', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__(self, *, message: str, code="None", **kwargs) -> None: + super(Error, self).__init__(**kwargs) + self.code = code + self.sub_code = None + self.message = message + self.more_details = None + self.parameter = None + self.value = None diff --git a/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/error_response.py b/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/error_response.py index 5300a6937eb2..8c6c08da049d 100644 --- a/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/error_response.py +++ b/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/error_response.py @@ -19,14 +19,16 @@ class ErrorResponse(Response): Variables are only populated by the server, and will be ignored when sending a request. - :param _type: Constant filled by server. + All required parameters must be populated in order to send to Azure. + + :param _type: Required. Constant filled by server. :type _type: str :ivar id: A String identifier. :vartype id: str :ivar web_search_url: The URL To Bing's search result for this item. :vartype web_search_url: str - :param errors: A list of errors that describe the reasons why the request - failed. + :param errors: Required. A list of errors that describe the reasons why + the request failed. :type errors: list[~azure.cognitiveservices.search.customsearch.models.Error] """ @@ -45,9 +47,9 @@ class ErrorResponse(Response): 'errors': {'key': 'errors', 'type': '[Error]'}, } - def __init__(self, errors): - super(ErrorResponse, self).__init__() - self.errors = errors + def __init__(self, **kwargs): + super(ErrorResponse, self).__init__(**kwargs) + self.errors = kwargs.get('errors', None) self._type = 'ErrorResponse' diff --git a/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/error_response_py3.py b/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/error_response_py3.py new file mode 100644 index 000000000000..405e466ad93d --- /dev/null +++ b/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/error_response_py3.py @@ -0,0 +1,65 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .response_py3 import Response +from msrest.exceptions import HttpOperationError + + +class ErrorResponse(Response): + """The top-level response that represents a failed request. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param _type: Required. Constant filled by server. + :type _type: str + :ivar id: A String identifier. + :vartype id: str + :ivar web_search_url: The URL To Bing's search result for this item. + :vartype web_search_url: str + :param errors: Required. A list of errors that describe the reasons why + the request failed. + :type errors: + list[~azure.cognitiveservices.search.customsearch.models.Error] + """ + + _validation = { + '_type': {'required': True}, + 'id': {'readonly': True}, + 'web_search_url': {'readonly': True}, + 'errors': {'required': True}, + } + + _attribute_map = { + '_type': {'key': '_type', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'web_search_url': {'key': 'webSearchUrl', 'type': 'str'}, + 'errors': {'key': 'errors', 'type': '[Error]'}, + } + + def __init__(self, *, errors, **kwargs) -> None: + super(ErrorResponse, self).__init__(**kwargs) + self.errors = errors + self._type = 'ErrorResponse' + + +class ErrorResponseException(HttpOperationError): + """Server responsed with exception of type: 'ErrorResponse'. + + :param deserialize: A deserializer + :param response: Server response to be deserialized. + """ + + def __init__(self, deserialize, response, *args): + + super(ErrorResponseException, self).__init__(deserialize, response, 'ErrorResponse', *args) diff --git a/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/identifiable.py b/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/identifiable.py index 133e93fa8f94..513e53d238bb 100644 --- a/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/identifiable.py +++ b/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/identifiable.py @@ -21,7 +21,9 @@ class Identifiable(ResponseBase): Variables are only populated by the server, and will be ignored when sending a request. - :param _type: Constant filled by server. + All required parameters must be populated in order to send to Azure. + + :param _type: Required. Constant filled by server. :type _type: str :ivar id: A String identifier. :vartype id: str @@ -41,7 +43,7 @@ class Identifiable(ResponseBase): '_type': {'Response': 'Response'} } - def __init__(self): - super(Identifiable, self).__init__() + def __init__(self, **kwargs): + super(Identifiable, self).__init__(**kwargs) self.id = None self._type = 'Identifiable' diff --git a/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/identifiable_py3.py b/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/identifiable_py3.py new file mode 100644 index 000000000000..2d24a2c45775 --- /dev/null +++ b/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/identifiable_py3.py @@ -0,0 +1,49 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .response_base_py3 import ResponseBase + + +class Identifiable(ResponseBase): + """Defines the identity of a resource. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: Response + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param _type: Required. Constant filled by server. + :type _type: str + :ivar id: A String identifier. + :vartype id: str + """ + + _validation = { + '_type': {'required': True}, + 'id': {'readonly': True}, + } + + _attribute_map = { + '_type': {'key': '_type', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + } + + _subtype_map = { + '_type': {'Response': 'Response'} + } + + def __init__(self, **kwargs) -> None: + super(Identifiable, self).__init__(**kwargs) + self.id = None + self._type = 'Identifiable' diff --git a/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/query.py b/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/query.py index adf7f2bbcef7..2cc49f11f355 100644 --- a/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/query.py +++ b/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/query.py @@ -18,8 +18,10 @@ class Query(Model): Variables are only populated by the server, and will be ignored when sending a request. - :param text: The query string. Use this string as the query term in a new - search request. + All required parameters must be populated in order to send to Azure. + + :param text: Required. The query string. Use this string as the query term + in a new search request. :type text: str :ivar display_text: The display version of the query term. This version of the query term may contain special characters that highlight the search @@ -47,9 +49,9 @@ class Query(Model): 'search_link': {'key': 'searchLink', 'type': 'str'}, } - def __init__(self, text): - super(Query, self).__init__() - self.text = text + def __init__(self, **kwargs): + super(Query, self).__init__(**kwargs) + self.text = kwargs.get('text', None) self.display_text = None self.web_search_url = None self.search_link = None diff --git a/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/query_context.py b/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/query_context.py index 0a1be85aaef0..410f31e10e27 100644 --- a/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/query_context.py +++ b/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/query_context.py @@ -18,7 +18,10 @@ class QueryContext(Model): Variables are only populated by the server, and will be ignored when sending a request. - :param original_query: The query string as specified in the request. + All required parameters must be populated in order to send to Azure. + + :param original_query: Required. The query string as specified in the + request. :type original_query: str :ivar altered_query: The query string used by Bing to perform the query. Bing uses the altered query string if the original query string contained @@ -53,9 +56,9 @@ class QueryContext(Model): 'adult_intent': {'key': 'adultIntent', 'type': 'bool'}, } - def __init__(self, original_query): - super(QueryContext, self).__init__() - self.original_query = original_query + def __init__(self, **kwargs): + super(QueryContext, self).__init__(**kwargs) + self.original_query = kwargs.get('original_query', None) self.altered_query = None self.alteration_override_query = None self.adult_intent = None diff --git a/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/query_context_py3.py b/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/query_context_py3.py new file mode 100644 index 000000000000..01c7f429d01e --- /dev/null +++ b/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/query_context_py3.py @@ -0,0 +1,64 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class QueryContext(Model): + """Defines the query context that Bing used for the request. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param original_query: Required. The query string as specified in the + request. + :type original_query: str + :ivar altered_query: The query string used by Bing to perform the query. + Bing uses the altered query string if the original query string contained + spelling mistakes. For example, if the query string is "saling downwind", + the altered query string will be "sailing downwind". This field is + included only if the original query string contains a spelling mistake. + :vartype altered_query: str + :ivar alteration_override_query: The query string to use to force Bing to + use the original string. For example, if the query string is "saling + downwind", the override query string will be "+saling downwind". Remember + to encode the query string which results in "%2Bsaling+downwind". This + field is included only if the original query string contains a spelling + mistake. + :vartype alteration_override_query: str + :ivar adult_intent: A Boolean value that indicates whether the specified + query has adult intent. The value is true if the query has adult intent; + otherwise, false. + :vartype adult_intent: bool + """ + + _validation = { + 'original_query': {'required': True}, + 'altered_query': {'readonly': True}, + 'alteration_override_query': {'readonly': True}, + 'adult_intent': {'readonly': True}, + } + + _attribute_map = { + 'original_query': {'key': 'originalQuery', 'type': 'str'}, + 'altered_query': {'key': 'alteredQuery', 'type': 'str'}, + 'alteration_override_query': {'key': 'alterationOverrideQuery', 'type': 'str'}, + 'adult_intent': {'key': 'adultIntent', 'type': 'bool'}, + } + + def __init__(self, *, original_query: str, **kwargs) -> None: + super(QueryContext, self).__init__(**kwargs) + self.original_query = original_query + self.altered_query = None + self.alteration_override_query = None + self.adult_intent = None diff --git a/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/query_py3.py b/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/query_py3.py new file mode 100644 index 000000000000..059f963bc37f --- /dev/null +++ b/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/query_py3.py @@ -0,0 +1,57 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class Query(Model): + """Defines a search query. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param text: Required. The query string. Use this string as the query term + in a new search request. + :type text: str + :ivar display_text: The display version of the query term. This version of + the query term may contain special characters that highlight the search + term found in the query string. The string contains the highlighting + characters only if the query enabled hit highlighting + :vartype display_text: str + :ivar web_search_url: The URL that takes the user to the Bing search + results page for the query.Only related search results include this field. + :vartype web_search_url: str + :ivar search_link: + :vartype search_link: str + """ + + _validation = { + 'text': {'required': True}, + 'display_text': {'readonly': True}, + 'web_search_url': {'readonly': True}, + 'search_link': {'readonly': True}, + } + + _attribute_map = { + 'text': {'key': 'text', 'type': 'str'}, + 'display_text': {'key': 'displayText', 'type': 'str'}, + 'web_search_url': {'key': 'webSearchUrl', 'type': 'str'}, + 'search_link': {'key': 'searchLink', 'type': 'str'}, + } + + def __init__(self, *, text: str, **kwargs) -> None: + super(Query, self).__init__(**kwargs) + self.text = text + self.display_text = None + self.web_search_url = None + self.search_link = None diff --git a/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/response.py b/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/response.py index 8f6f7ef2ed37..370004ddb0d7 100644 --- a/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/response.py +++ b/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/response.py @@ -22,7 +22,9 @@ class Response(Identifiable): Variables are only populated by the server, and will be ignored when sending a request. - :param _type: Constant filled by server. + All required parameters must be populated in order to send to Azure. + + :param _type: Required. Constant filled by server. :type _type: str :ivar id: A String identifier. :vartype id: str @@ -46,7 +48,7 @@ class Response(Identifiable): '_type': {'SearchResponse': 'SearchResponse', 'ErrorResponse': 'ErrorResponse', 'Answer': 'Answer', 'Thing': 'Thing'} } - def __init__(self): - super(Response, self).__init__() + def __init__(self, **kwargs): + super(Response, self).__init__(**kwargs) self.web_search_url = None self._type = 'Response' diff --git a/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/response_base.py b/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/response_base.py index 0b5b11b43039..5a09ce0f95d6 100644 --- a/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/response_base.py +++ b/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/response_base.py @@ -18,7 +18,9 @@ class ResponseBase(Model): You probably want to use the sub-classes and not this class directly. Known sub-classes are: Identifiable - :param _type: Constant filled by server. + All required parameters must be populated in order to send to Azure. + + :param _type: Required. Constant filled by server. :type _type: str """ @@ -34,6 +36,6 @@ class ResponseBase(Model): '_type': {'Identifiable': 'Identifiable'} } - def __init__(self): - super(ResponseBase, self).__init__() + def __init__(self, **kwargs): + super(ResponseBase, self).__init__(**kwargs) self._type = None diff --git a/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/response_base_py3.py b/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/response_base_py3.py new file mode 100644 index 000000000000..0ac9762f5cd7 --- /dev/null +++ b/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/response_base_py3.py @@ -0,0 +1,41 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ResponseBase(Model): + """ResponseBase. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: Identifiable + + All required parameters must be populated in order to send to Azure. + + :param _type: Required. Constant filled by server. + :type _type: str + """ + + _validation = { + '_type': {'required': True}, + } + + _attribute_map = { + '_type': {'key': '_type', 'type': 'str'}, + } + + _subtype_map = { + '_type': {'Identifiable': 'Identifiable'} + } + + def __init__(self, **kwargs) -> None: + super(ResponseBase, self).__init__(**kwargs) + self._type = None diff --git a/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/response_py3.py b/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/response_py3.py new file mode 100644 index 000000000000..76fcfc583c01 --- /dev/null +++ b/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/response_py3.py @@ -0,0 +1,54 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .identifiable_py3 import Identifiable + + +class Response(Identifiable): + """Defines a response. All schemas that could be returned at the root of a + response should inherit from this. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: SearchResponse, ErrorResponse, Answer, Thing + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param _type: Required. Constant filled by server. + :type _type: str + :ivar id: A String identifier. + :vartype id: str + :ivar web_search_url: The URL To Bing's search result for this item. + :vartype web_search_url: str + """ + + _validation = { + '_type': {'required': True}, + 'id': {'readonly': True}, + 'web_search_url': {'readonly': True}, + } + + _attribute_map = { + '_type': {'key': '_type', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'web_search_url': {'key': 'webSearchUrl', 'type': 'str'}, + } + + _subtype_map = { + '_type': {'SearchResponse': 'SearchResponse', 'ErrorResponse': 'ErrorResponse', 'Answer': 'Answer', 'Thing': 'Thing'} + } + + def __init__(self, **kwargs) -> None: + super(Response, self).__init__(**kwargs) + self.web_search_url = None + self._type = 'Response' diff --git a/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/search_response.py b/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/search_response.py index 6fe6dddaa472..3d3c95ef5424 100644 --- a/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/search_response.py +++ b/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/search_response.py @@ -19,7 +19,9 @@ class SearchResponse(Response): Variables are only populated by the server, and will be ignored when sending a request. - :param _type: Constant filled by server. + All required parameters must be populated in order to send to Azure. + + :param _type: Required. Constant filled by server. :type _type: str :ivar id: A String identifier. :vartype id: str @@ -52,8 +54,8 @@ class SearchResponse(Response): 'web_pages': {'key': 'webPages', 'type': 'WebWebAnswer'}, } - def __init__(self): - super(SearchResponse, self).__init__() + def __init__(self, **kwargs): + super(SearchResponse, self).__init__(**kwargs) self.query_context = None self.web_pages = None self._type = 'SearchResponse' diff --git a/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/search_response_py3.py b/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/search_response_py3.py new file mode 100644 index 000000000000..ac1a9455a539 --- /dev/null +++ b/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/search_response_py3.py @@ -0,0 +1,61 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .response_py3 import Response + + +class SearchResponse(Response): + """Defines the top-level object that the response includes when the request + succeeds. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param _type: Required. Constant filled by server. + :type _type: str + :ivar id: A String identifier. + :vartype id: str + :ivar web_search_url: The URL To Bing's search result for this item. + :vartype web_search_url: str + :ivar query_context: An object that contains the query string that Bing + used for the request. This object contains the query string as entered by + the user. It may also contain an altered query string that Bing used for + the query if the query string contained a spelling mistake. + :vartype query_context: + ~azure.cognitiveservices.search.customsearch.models.QueryContext + :ivar web_pages: A list of webpages that are relevant to the search query. + :vartype web_pages: + ~azure.cognitiveservices.search.customsearch.models.WebWebAnswer + """ + + _validation = { + '_type': {'required': True}, + 'id': {'readonly': True}, + 'web_search_url': {'readonly': True}, + 'query_context': {'readonly': True}, + 'web_pages': {'readonly': True}, + } + + _attribute_map = { + '_type': {'key': '_type', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'web_search_url': {'key': 'webSearchUrl', 'type': 'str'}, + 'query_context': {'key': 'queryContext', 'type': 'QueryContext'}, + 'web_pages': {'key': 'webPages', 'type': 'WebWebAnswer'}, + } + + def __init__(self, **kwargs) -> None: + super(SearchResponse, self).__init__(**kwargs) + self.query_context = None + self.web_pages = None + self._type = 'SearchResponse' diff --git a/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/search_results_answer.py b/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/search_results_answer.py index 3255878ef159..c0e0620953dd 100644 --- a/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/search_results_answer.py +++ b/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/search_results_answer.py @@ -21,7 +21,9 @@ class SearchResultsAnswer(Answer): Variables are only populated by the server, and will be ignored when sending a request. - :param _type: Constant filled by server. + All required parameters must be populated in order to send to Azure. + + :param _type: Required. Constant filled by server. :type _type: str :ivar id: A String identifier. :vartype id: str @@ -65,8 +67,8 @@ class SearchResultsAnswer(Answer): '_type': {'Web/WebAnswer': 'WebWebAnswer'} } - def __init__(self): - super(SearchResultsAnswer, self).__init__() + def __init__(self, **kwargs): + super(SearchResultsAnswer, self).__init__(**kwargs) self.query_context = None self.total_estimated_matches = None self.is_family_friendly = None diff --git a/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/search_results_answer_py3.py b/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/search_results_answer_py3.py new file mode 100644 index 000000000000..678c7ab989cb --- /dev/null +++ b/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/search_results_answer_py3.py @@ -0,0 +1,75 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .answer_py3 import Answer + + +class SearchResultsAnswer(Answer): + """SearchResultsAnswer. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: WebWebAnswer + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param _type: Required. Constant filled by server. + :type _type: str + :ivar id: A String identifier. + :vartype id: str + :ivar web_search_url: The URL To Bing's search result for this item. + :vartype web_search_url: str + :ivar follow_up_queries: + :vartype follow_up_queries: + list[~azure.cognitiveservices.search.customsearch.models.Query] + :ivar query_context: + :vartype query_context: + ~azure.cognitiveservices.search.customsearch.models.QueryContext + :ivar total_estimated_matches: The estimated number of webpages that are + relevant to the query. Use this number along with the count and offset + query parameters to page the results. + :vartype total_estimated_matches: long + :ivar is_family_friendly: + :vartype is_family_friendly: bool + """ + + _validation = { + '_type': {'required': True}, + 'id': {'readonly': True}, + 'web_search_url': {'readonly': True}, + 'follow_up_queries': {'readonly': True}, + 'query_context': {'readonly': True}, + 'total_estimated_matches': {'readonly': True}, + 'is_family_friendly': {'readonly': True}, + } + + _attribute_map = { + '_type': {'key': '_type', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'web_search_url': {'key': 'webSearchUrl', 'type': 'str'}, + 'follow_up_queries': {'key': 'followUpQueries', 'type': '[Query]'}, + 'query_context': {'key': 'queryContext', 'type': 'QueryContext'}, + 'total_estimated_matches': {'key': 'totalEstimatedMatches', 'type': 'long'}, + 'is_family_friendly': {'key': 'isFamilyFriendly', 'type': 'bool'}, + } + + _subtype_map = { + '_type': {'Web/WebAnswer': 'WebWebAnswer'} + } + + def __init__(self, **kwargs) -> None: + super(SearchResultsAnswer, self).__init__(**kwargs) + self.query_context = None + self.total_estimated_matches = None + self.is_family_friendly = None + self._type = 'SearchResultsAnswer' diff --git a/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/thing.py b/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/thing.py index d387cad847fd..9430456b9ff6 100644 --- a/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/thing.py +++ b/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/thing.py @@ -21,7 +21,9 @@ class Thing(Response): Variables are only populated by the server, and will be ignored when sending a request. - :param _type: Constant filled by server. + All required parameters must be populated in order to send to Azure. + + :param _type: Required. Constant filled by server. :type _type: str :ivar id: A String identifier. :vartype id: str @@ -62,8 +64,8 @@ class Thing(Response): '_type': {'CreativeWork': 'CreativeWork'} } - def __init__(self): - super(Thing, self).__init__() + def __init__(self, **kwargs): + super(Thing, self).__init__(**kwargs) self.name = None self.url = None self.description = None diff --git a/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/thing_py3.py b/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/thing_py3.py new file mode 100644 index 000000000000..57b9aa17688c --- /dev/null +++ b/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/thing_py3.py @@ -0,0 +1,73 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .response_py3 import Response + + +class Thing(Response): + """Thing. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: CreativeWork + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param _type: Required. Constant filled by server. + :type _type: str + :ivar id: A String identifier. + :vartype id: str + :ivar web_search_url: The URL To Bing's search result for this item. + :vartype web_search_url: str + :ivar name: The name of the thing represented by this object. + :vartype name: str + :ivar url: The URL to get more information about the thing represented by + this object. + :vartype url: str + :ivar description: A short description of the item. + :vartype description: str + :ivar bing_id: An ID that uniquely identifies this item. + :vartype bing_id: str + """ + + _validation = { + '_type': {'required': True}, + 'id': {'readonly': True}, + 'web_search_url': {'readonly': True}, + 'name': {'readonly': True}, + 'url': {'readonly': True}, + 'description': {'readonly': True}, + 'bing_id': {'readonly': True}, + } + + _attribute_map = { + '_type': {'key': '_type', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'web_search_url': {'key': 'webSearchUrl', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'bing_id': {'key': 'bingId', 'type': 'str'}, + } + + _subtype_map = { + '_type': {'CreativeWork': 'CreativeWork'} + } + + def __init__(self, **kwargs) -> None: + super(Thing, self).__init__(**kwargs) + self.name = None + self.url = None + self.description = None + self.bing_id = None + self._type = 'Thing' diff --git a/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/web_meta_tag.py b/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/web_meta_tag.py index 157658cda668..372f99be707a 100644 --- a/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/web_meta_tag.py +++ b/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/web_meta_tag.py @@ -34,7 +34,7 @@ class WebMetaTag(Model): 'content': {'key': 'content', 'type': 'str'}, } - def __init__(self): - super(WebMetaTag, self).__init__() + def __init__(self, **kwargs): + super(WebMetaTag, self).__init__(**kwargs) self.name = None self.content = None diff --git a/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/web_meta_tag_py3.py b/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/web_meta_tag_py3.py new file mode 100644 index 000000000000..042a76bfb86d --- /dev/null +++ b/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/web_meta_tag_py3.py @@ -0,0 +1,40 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class WebMetaTag(Model): + """Defines a webpage's metadata. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar name: The metadata. + :vartype name: str + :ivar content: The name of the metadata. + :vartype content: str + """ + + _validation = { + 'name': {'readonly': True}, + 'content': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'content': {'key': 'content', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(WebMetaTag, self).__init__(**kwargs) + self.name = None + self.content = None diff --git a/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/web_page.py b/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/web_page.py index bc27ab16bd86..6fd7b5b9a7dd 100644 --- a/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/web_page.py +++ b/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/web_page.py @@ -18,7 +18,9 @@ class WebPage(CreativeWork): Variables are only populated by the server, and will be ignored when sending a request. - :param _type: Constant filled by server. + All required parameters must be populated in order to send to Azure. + + :param _type: Required. Constant filled by server. :type _type: str :ivar id: A String identifier. :vartype id: str @@ -100,8 +102,8 @@ class WebPage(CreativeWork): 'search_tags': {'key': 'searchTags', 'type': '[WebMetaTag]'}, } - def __init__(self): - super(WebPage, self).__init__() + def __init__(self, **kwargs): + super(WebPage, self).__init__(**kwargs) self.display_url = None self.snippet = None self.deep_links = None diff --git a/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/web_page_py3.py b/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/web_page_py3.py new file mode 100644 index 000000000000..03765d9eef0f --- /dev/null +++ b/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/web_page_py3.py @@ -0,0 +1,112 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .creative_work_py3 import CreativeWork + + +class WebPage(CreativeWork): + """Defines a webpage that is relevant to the query. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param _type: Required. Constant filled by server. + :type _type: str + :ivar id: A String identifier. + :vartype id: str + :ivar web_search_url: The URL To Bing's search result for this item. + :vartype web_search_url: str + :ivar name: The name of the thing represented by this object. + :vartype name: str + :ivar url: The URL to get more information about the thing represented by + this object. + :vartype url: str + :ivar description: A short description of the item. + :vartype description: str + :ivar bing_id: An ID that uniquely identifies this item. + :vartype bing_id: str + :ivar thumbnail_url: The URL to a thumbnail of the item. + :vartype thumbnail_url: str + :ivar provider: The source of the creative work. + :vartype provider: + list[~azure.cognitiveservices.search.customsearch.models.Thing] + :ivar text: + :vartype text: str + :ivar display_url: The display URL of the webpage. The URL is meant for + display purposes only and is not well formed. + :vartype display_url: str + :ivar snippet: A snippet of text from the webpage that describes its + contents. + :vartype snippet: str + :ivar deep_links: A list of links to related content that Bing found in + the website that contains this webpage. The Webpage object in this context + includes only the name, url, urlPingSuffix, and snippet fields. + :vartype deep_links: + list[~azure.cognitiveservices.search.customsearch.models.WebPage] + :ivar date_last_crawled: The last time that Bing crawled the webpage. The + date is in the form, YYYY-MM-DDTHH:MM:SS. For example, + 2015-04-13T05:23:39. + :vartype date_last_crawled: str + :ivar search_tags: A list of search tags that the webpage owner specified + on the webpage. The API returns only indexed search tags. The name field + of the MetaTag object contains the indexed search tag. Search tags begin + with search.* (for example, search.assetId). The content field contains + the tag's value. + :vartype search_tags: + list[~azure.cognitiveservices.search.customsearch.models.WebMetaTag] + """ + + _validation = { + '_type': {'required': True}, + 'id': {'readonly': True}, + 'web_search_url': {'readonly': True}, + 'name': {'readonly': True}, + 'url': {'readonly': True}, + 'description': {'readonly': True}, + 'bing_id': {'readonly': True}, + 'thumbnail_url': {'readonly': True}, + 'provider': {'readonly': True}, + 'text': {'readonly': True}, + 'display_url': {'readonly': True}, + 'snippet': {'readonly': True}, + 'deep_links': {'readonly': True}, + 'date_last_crawled': {'readonly': True}, + 'search_tags': {'readonly': True}, + } + + _attribute_map = { + '_type': {'key': '_type', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'web_search_url': {'key': 'webSearchUrl', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'bing_id': {'key': 'bingId', 'type': 'str'}, + 'thumbnail_url': {'key': 'thumbnailUrl', 'type': 'str'}, + 'provider': {'key': 'provider', 'type': '[Thing]'}, + 'text': {'key': 'text', 'type': 'str'}, + 'display_url': {'key': 'displayUrl', 'type': 'str'}, + 'snippet': {'key': 'snippet', 'type': 'str'}, + 'deep_links': {'key': 'deepLinks', 'type': '[WebPage]'}, + 'date_last_crawled': {'key': 'dateLastCrawled', 'type': 'str'}, + 'search_tags': {'key': 'searchTags', 'type': '[WebMetaTag]'}, + } + + def __init__(self, **kwargs) -> None: + super(WebPage, self).__init__(**kwargs) + self.display_url = None + self.snippet = None + self.deep_links = None + self.date_last_crawled = None + self.search_tags = None + self._type = 'WebPage' diff --git a/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/web_web_answer.py b/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/web_web_answer.py index f2cf3706b1f3..8a28c6c9273f 100644 --- a/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/web_web_answer.py +++ b/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/web_web_answer.py @@ -18,7 +18,9 @@ class WebWebAnswer(SearchResultsAnswer): Variables are only populated by the server, and will be ignored when sending a request. - :param _type: Constant filled by server. + All required parameters must be populated in order to send to Azure. + + :param _type: Required. Constant filled by server. :type _type: str :ivar id: A String identifier. :vartype id: str @@ -36,7 +38,7 @@ class WebWebAnswer(SearchResultsAnswer): :vartype total_estimated_matches: long :ivar is_family_friendly: :vartype is_family_friendly: bool - :param value: A list of webpages that are relevant to the query. + :param value: Required. A list of webpages that are relevant to the query. :type value: list[~azure.cognitiveservices.search.customsearch.models.WebPage] :ivar some_results_removed: A Boolean value that indicates whether the @@ -69,8 +71,8 @@ class WebWebAnswer(SearchResultsAnswer): 'some_results_removed': {'key': 'someResultsRemoved', 'type': 'bool'}, } - def __init__(self, value): - super(WebWebAnswer, self).__init__() - self.value = value + def __init__(self, **kwargs): + super(WebWebAnswer, self).__init__(**kwargs) + self.value = kwargs.get('value', None) self.some_results_removed = None self._type = 'Web/WebAnswer' diff --git a/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/web_web_answer_py3.py b/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/web_web_answer_py3.py new file mode 100644 index 000000000000..62bedaaa5da3 --- /dev/null +++ b/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/models/web_web_answer_py3.py @@ -0,0 +1,78 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .search_results_answer_py3 import SearchResultsAnswer + + +class WebWebAnswer(SearchResultsAnswer): + """Defines a list of relevant webpage links. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param _type: Required. Constant filled by server. + :type _type: str + :ivar id: A String identifier. + :vartype id: str + :ivar web_search_url: The URL To Bing's search result for this item. + :vartype web_search_url: str + :ivar follow_up_queries: + :vartype follow_up_queries: + list[~azure.cognitiveservices.search.customsearch.models.Query] + :ivar query_context: + :vartype query_context: + ~azure.cognitiveservices.search.customsearch.models.QueryContext + :ivar total_estimated_matches: The estimated number of webpages that are + relevant to the query. Use this number along with the count and offset + query parameters to page the results. + :vartype total_estimated_matches: long + :ivar is_family_friendly: + :vartype is_family_friendly: bool + :param value: Required. A list of webpages that are relevant to the query. + :type value: + list[~azure.cognitiveservices.search.customsearch.models.WebPage] + :ivar some_results_removed: A Boolean value that indicates whether the + response excluded some results from the answer. If Bing excluded some + results, the value is true. + :vartype some_results_removed: bool + """ + + _validation = { + '_type': {'required': True}, + 'id': {'readonly': True}, + 'web_search_url': {'readonly': True}, + 'follow_up_queries': {'readonly': True}, + 'query_context': {'readonly': True}, + 'total_estimated_matches': {'readonly': True}, + 'is_family_friendly': {'readonly': True}, + 'value': {'required': True}, + 'some_results_removed': {'readonly': True}, + } + + _attribute_map = { + '_type': {'key': '_type', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'web_search_url': {'key': 'webSearchUrl', 'type': 'str'}, + 'follow_up_queries': {'key': 'followUpQueries', 'type': '[Query]'}, + 'query_context': {'key': 'queryContext', 'type': 'QueryContext'}, + 'total_estimated_matches': {'key': 'totalEstimatedMatches', 'type': 'long'}, + 'is_family_friendly': {'key': 'isFamilyFriendly', 'type': 'bool'}, + 'value': {'key': 'value', 'type': '[WebPage]'}, + 'some_results_removed': {'key': 'someResultsRemoved', 'type': 'bool'}, + } + + def __init__(self, *, value, **kwargs) -> None: + super(WebWebAnswer, self).__init__(**kwargs) + self.value = value + self.some_results_removed = None + self._type = 'Web/WebAnswer' diff --git a/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/operations/custom_instance_operations.py b/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/operations/custom_instance_operations.py index cf2e0a63be67..a90c6bfb63b3 100644 --- a/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/operations/custom_instance_operations.py +++ b/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/operations/custom_instance_operations.py @@ -36,10 +36,13 @@ def __init__(self, client, config, serializer, deserializer): self.x_bing_apis_sdk = "true" def search( - self, query, accept_language=None, user_agent=None, client_id=None, client_ip=None, location=None, custom_config=None, country_code=None, count=None, market="en-us", offset=None, safe_search=None, set_lang=None, text_decorations=None, text_format=None, custom_headers=None, raw=False, **operation_config): + self, custom_config, query, accept_language=None, user_agent=None, client_id=None, client_ip=None, location=None, country_code=None, count=None, market="en-us", offset=None, safe_search=None, set_lang=None, text_decorations=None, text_format=None, custom_headers=None, raw=False, **operation_config): """The Custom Search API lets you send a search query to Bing and get back web pages found in your custom view of the web. + :param custom_config: The identifier for the custom search + configuration + :type custom_config: str :param query: The user's search query term. The term may not be empty. The term may contain Bing Advanced Operators. For example, to limit results to a specific domain, use the site: operator. @@ -151,9 +154,6 @@ def search( you should include this header and the X-MSEdge-ClientIP header, but at a minimum, you should include this header. :type location: str - :param custom_config: The identifier for the custom search - configuration - :type custom_config: int :param country_code: A 2-character country code of the country where the results come from. This API supports only the United States market. If you specify this query parameter, it must be set to us. If @@ -258,12 +258,11 @@ def search( :class:`ErrorResponseException` """ # Construct URL - url = '/search' + url = self.search.metadata['url'] # Construct parameters query_parameters = {} - if custom_config is not None: - query_parameters['customConfig'] = self._serialize.query("custom_config", custom_config, 'int') + query_parameters['customConfig'] = self._serialize.query("custom_config", custom_config, 'str') if country_code is not None: query_parameters['cc'] = self._serialize.query("country_code", country_code, 'str') if count is not None: @@ -284,7 +283,7 @@ def search( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if custom_headers: header_parameters.update(custom_headers) header_parameters['X-BingApis-SDK'] = self._serialize.header("self.x_bing_apis_sdk", self.x_bing_apis_sdk, 'str') @@ -300,8 +299,8 @@ def search( header_parameters['X-Search-Location'] = self._serialize.header("location", location, 'str') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.ErrorResponseException(self._deserialize, response) @@ -316,3 +315,4 @@ def search( return client_raw_response return deserialized + search.metadata = {'url': '/search'} diff --git a/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/version.py b/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/version.py index e0ec669828cb..9bd1dfac7ecb 100644 --- a/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/version.py +++ b/azure-cognitiveservices-search-customsearch/azure/cognitiveservices/search/customsearch/version.py @@ -9,5 +9,5 @@ # regenerated. # -------------------------------------------------------------------------- -VERSION = "0.1.0" +VERSION = "0.2.0" diff --git a/azure-cognitiveservices-search-customsearch/build.json b/azure-cognitiveservices-search-customsearch/build.json deleted file mode 100644 index 0e4165b06a67..000000000000 --- a/azure-cognitiveservices-search-customsearch/build.json +++ /dev/null @@ -1,420 +0,0 @@ -{ - "autorest": [ - { - "resolvedInfo": null, - "packageMetadata": { - "name": "@microsoft.azure/autorest-core", - "version": "2.0.4228", - "engines": { - "node": ">=7.10.0" - }, - "dependencies": {}, - "optionalDependencies": {}, - "devDependencies": { - "@types/commonmark": "^0.27.0", - "@types/js-yaml": "^3.10.0", - "@types/jsonpath": "^0.1.29", - "@types/node": "^8.0.53", - "@types/source-map": "^0.5.0", - "@types/yargs": "^8.0.2", - "@types/z-schema": "^3.16.31", - "dts-generator": "^2.1.0", - "mocha": "^4.0.1", - "mocha-typescript": "^1.1.7", - "shx": "0.2.2", - "static-link": "^0.2.3", - "vscode-jsonrpc": "^3.3.1" - }, - "bundleDependencies": false, - "peerDependencies": {}, - "deprecated": false, - "_resolved": "C:/Users/lmazuel/.autorest/@microsoft.azure_autorest-core@2.0.4228/node_modules/@microsoft.azure/autorest-core", - "_shasum": "b3897b8615417aa07cf9113d4bd18862b32f82f8", - "_shrinkwrap": null, - "bin": { - "autorest-core": "./dist/app.js", - "autorest-language-service": "dist/language-service/language-service.js" - }, - "_id": "@microsoft.azure/autorest-core@2.0.4228", - "_from": "file:C:/Users/lmazuel/.autorest/@microsoft.azure_autorest-core@2.0.4228/node_modules/@microsoft.azure/autorest-core", - "_requested": { - "type": "directory", - "where": "D:\\VSProjects\\swagger-to-sdk", - "raw": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest-core@2.0.4228\\node_modules\\@microsoft.azure\\autorest-core", - "rawSpec": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest-core@2.0.4228\\node_modules\\@microsoft.azure\\autorest-core", - "saveSpec": "file:C:/Users/lmazuel/.autorest/@microsoft.azure_autorest-core@2.0.4228/node_modules/@microsoft.azure/autorest-core", - "fetchSpec": "C:/Users/lmazuel/.autorest/@microsoft.azure_autorest-core@2.0.4228/node_modules/@microsoft.azure/autorest-core" - }, - "_spec": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest-core@2.0.4228\\node_modules\\@microsoft.azure\\autorest-core", - "_where": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest-core@2.0.4228\\node_modules\\@microsoft.azure\\autorest-core" - }, - "extensionManager": { - "installationPath": "C:\\Users\\lmazuel\\.autorest", - "sharedLock": { - "name": "C:\\Users\\lmazuel\\.autorest", - "exclusiveLock": { - "name": "C__Users_lmazuel_.autorest.exclusive-lock", - "pipe": "\\\\.\\pipe\\C__Users_lmazuel_.autorest.exclusive-lock", - "options": { - "path": "\\\\.\\pipe\\C__Users_lmazuel_.autorest.exclusive-lock", - "exclusive": true - } - }, - "busyLock": { - "name": "C__Users_lmazuel_.autorest.busy-lock", - "pipe": "\\\\.\\pipe\\C__Users_lmazuel_.autorest.busy-lock", - "options": { - "path": "\\\\.\\pipe\\C__Users_lmazuel_.autorest.busy-lock", - "exclusive": true - } - }, - "personalLock": { - "name": "C__Users_lmazuel_.autorest.4614.508749763692.personal-lock", - "pipe": "\\\\.\\pipe\\C__Users_lmazuel_.autorest.4614.508749763692.personal-lock", - "options": { - "path": "\\\\.\\pipe\\C__Users_lmazuel_.autorest.4614.508749763692.personal-lock", - "exclusive": true - } - }, - "file": "C:\\Users\\lmazuel\\AppData\\Local\\Temp/C__Users_lmazuel_.autorest.lock" - }, - "dotnetPath": "C:\\Users\\lmazuel\\.dotnet" - }, - "installationPath": "C:\\Users\\lmazuel\\.autorest" - }, - { - "resolvedInfo": null, - "packageMetadata": { - "name": "@microsoft.azure/autorest-core", - "version": "2.0.4230", - "engines": { - "node": ">=7.10.0" - }, - "dependencies": {}, - "optionalDependencies": {}, - "devDependencies": { - "@types/commonmark": "^0.27.0", - "@types/js-yaml": "^3.10.0", - "@types/jsonpath": "^0.1.29", - "@types/node": "^8.0.53", - "@types/source-map": "0.5.0", - "@types/yargs": "^8.0.2", - "@types/z-schema": "^3.16.31", - "dts-generator": "^2.1.0", - "mocha": "^4.0.1", - "mocha-typescript": "^1.1.7", - "shx": "0.2.2", - "static-link": "^0.2.3", - "vscode-jsonrpc": "^3.3.1" - }, - "bundleDependencies": false, - "peerDependencies": {}, - "deprecated": false, - "_resolved": "C:/Users/lmazuel/.autorest/@microsoft.azure_autorest-core@2.0.4230/node_modules/@microsoft.azure/autorest-core", - "_shasum": "3c9b387fbe18ce3a54b68bc0c24ddb0a4c850f25", - "_shrinkwrap": null, - "bin": { - "autorest-core": "./dist/app.js", - "autorest-language-service": "dist/language-service/language-service.js" - }, - "_id": "@microsoft.azure/autorest-core@2.0.4230", - "_from": "file:C:/Users/lmazuel/.autorest/@microsoft.azure_autorest-core@2.0.4230/node_modules/@microsoft.azure/autorest-core", - "_requested": { - "type": "directory", - "where": "D:\\VSProjects\\swagger-to-sdk", - "raw": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest-core@2.0.4230\\node_modules\\@microsoft.azure\\autorest-core", - "rawSpec": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest-core@2.0.4230\\node_modules\\@microsoft.azure\\autorest-core", - "saveSpec": "file:C:/Users/lmazuel/.autorest/@microsoft.azure_autorest-core@2.0.4230/node_modules/@microsoft.azure/autorest-core", - "fetchSpec": "C:/Users/lmazuel/.autorest/@microsoft.azure_autorest-core@2.0.4230/node_modules/@microsoft.azure/autorest-core" - }, - "_spec": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest-core@2.0.4230\\node_modules\\@microsoft.azure\\autorest-core", - "_where": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest-core@2.0.4230\\node_modules\\@microsoft.azure\\autorest-core" - }, - "extensionManager": { - "installationPath": "C:\\Users\\lmazuel\\.autorest", - "sharedLock": { - "name": "C:\\Users\\lmazuel\\.autorest", - "exclusiveLock": { - "name": "C__Users_lmazuel_.autorest.exclusive-lock", - "pipe": "\\\\.\\pipe\\C__Users_lmazuel_.autorest.exclusive-lock", - "options": { - "path": "\\\\.\\pipe\\C__Users_lmazuel_.autorest.exclusive-lock", - "exclusive": true - } - }, - "busyLock": { - "name": "C__Users_lmazuel_.autorest.busy-lock", - "pipe": "\\\\.\\pipe\\C__Users_lmazuel_.autorest.busy-lock", - "options": { - "path": "\\\\.\\pipe\\C__Users_lmazuel_.autorest.busy-lock", - "exclusive": true - } - }, - "personalLock": { - "name": "C__Users_lmazuel_.autorest.4614.508749763692.personal-lock", - "pipe": "\\\\.\\pipe\\C__Users_lmazuel_.autorest.4614.508749763692.personal-lock", - "options": { - "path": "\\\\.\\pipe\\C__Users_lmazuel_.autorest.4614.508749763692.personal-lock", - "exclusive": true - } - }, - "file": "C:\\Users\\lmazuel\\AppData\\Local\\Temp/C__Users_lmazuel_.autorest.lock" - }, - "dotnetPath": "C:\\Users\\lmazuel\\.dotnet" - }, - "installationPath": "C:\\Users\\lmazuel\\.autorest" - }, - { - "resolvedInfo": null, - "packageMetadata": { - "name": "@microsoft.azure/autorest.modeler", - "version": "2.3.38", - "dependencies": { - "dotnet-2.0.0": "^1.4.4" - }, - "optionalDependencies": {}, - "devDependencies": { - "@microsoft.azure/autorest.testserver": "2.3.1", - "autorest": "^2.0.4201", - "coffee-script": "^1.11.1", - "dotnet-sdk-2.0.0": "^1.4.4", - "gulp": "^3.9.1", - "gulp-filter": "^5.0.0", - "gulp-line-ending-corrector": "^1.0.1", - "iced-coffee-script": "^108.0.11", - "marked": "^0.3.6", - "marked-terminal": "^2.0.0", - "moment": "^2.17.1", - "run-sequence": "*", - "shx": "^0.2.2", - "through2-parallel": "^0.1.3", - "yargs": "^8.0.2", - "yarn": "^1.0.2" - }, - "bundleDependencies": false, - "peerDependencies": {}, - "deprecated": false, - "_resolved": "C:/Users/lmazuel/.autorest/@microsoft.azure_autorest.modeler@2.3.38/node_modules/@microsoft.azure/autorest.modeler", - "_shasum": "903bb77932e4ed1b8bc3b25cc39b167143494f6c", - "_shrinkwrap": null, - "bin": null, - "_id": "@microsoft.azure/autorest.modeler@2.3.38", - "_from": "file:C:/Users/lmazuel/.autorest/@microsoft.azure_autorest.modeler@2.3.38/node_modules/@microsoft.azure/autorest.modeler", - "_requested": { - "type": "directory", - "where": "D:\\VSProjects\\swagger-to-sdk", - "raw": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest.modeler@2.3.38\\node_modules\\@microsoft.azure\\autorest.modeler", - "rawSpec": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest.modeler@2.3.38\\node_modules\\@microsoft.azure\\autorest.modeler", - "saveSpec": "file:C:/Users/lmazuel/.autorest/@microsoft.azure_autorest.modeler@2.3.38/node_modules/@microsoft.azure/autorest.modeler", - "fetchSpec": "C:/Users/lmazuel/.autorest/@microsoft.azure_autorest.modeler@2.3.38/node_modules/@microsoft.azure/autorest.modeler" - }, - "_spec": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest.modeler@2.3.38\\node_modules\\@microsoft.azure\\autorest.modeler", - "_where": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest.modeler@2.3.38\\node_modules\\@microsoft.azure\\autorest.modeler" - }, - "extensionManager": { - "installationPath": "C:\\Users\\lmazuel\\.autorest", - "sharedLock": { - "name": "C:\\Users\\lmazuel\\.autorest", - "exclusiveLock": { - "name": "C__Users_lmazuel_.autorest.exclusive-lock", - "pipe": "\\\\.\\pipe\\C__Users_lmazuel_.autorest.exclusive-lock", - "options": { - "path": "\\\\.\\pipe\\C__Users_lmazuel_.autorest.exclusive-lock", - "exclusive": true - } - }, - "busyLock": { - "name": "C__Users_lmazuel_.autorest.busy-lock", - "pipe": "\\\\.\\pipe\\C__Users_lmazuel_.autorest.busy-lock", - "options": { - "path": "\\\\.\\pipe\\C__Users_lmazuel_.autorest.busy-lock", - "exclusive": true - } - }, - "personalLock": { - "name": "C__Users_lmazuel_.autorest.4614.508749763692.personal-lock", - "pipe": "\\\\.\\pipe\\C__Users_lmazuel_.autorest.4614.508749763692.personal-lock", - "options": { - "path": "\\\\.\\pipe\\C__Users_lmazuel_.autorest.4614.508749763692.personal-lock", - "exclusive": true - } - }, - "file": "C:\\Users\\lmazuel\\AppData\\Local\\Temp/C__Users_lmazuel_.autorest.lock" - }, - "dotnetPath": "C:\\Users\\lmazuel\\.dotnet" - }, - "installationPath": "C:\\Users\\lmazuel\\.autorest" - }, - { - "resolvedInfo": null, - "packageMetadata": { - "name": "@microsoft.azure/autorest.modeler", - "version": "2.3.44", - "dependencies": { - "dotnet-2.0.0": "^1.4.4" - }, - "optionalDependencies": {}, - "devDependencies": { - "@microsoft.azure/autorest.testserver": "2.3.17", - "autorest": "^2.0.4225", - "coffee-script": "^1.11.1", - "dotnet-sdk-2.0.0": "^1.4.4", - "gulp": "^3.9.1", - "gulp-filter": "^5.0.0", - "gulp-line-ending-corrector": "^1.0.1", - "iced-coffee-script": "^108.0.11", - "marked": "^0.3.6", - "marked-terminal": "^2.0.0", - "moment": "^2.17.1", - "run-sequence": "*", - "shx": "^0.2.2", - "through2-parallel": "^0.1.3", - "yargs": "^8.0.2", - "yarn": "^1.0.2" - }, - "bundleDependencies": false, - "peerDependencies": {}, - "deprecated": false, - "_resolved": "C:/Users/lmazuel/.autorest/@microsoft.azure_autorest.modeler@2.3.44/node_modules/@microsoft.azure/autorest.modeler", - "_shasum": "9b5a880a77467be33a77f002f03230d3ccc21266", - "_shrinkwrap": null, - "bin": null, - "_id": "@microsoft.azure/autorest.modeler@2.3.44", - "_from": "file:C:/Users/lmazuel/.autorest/@microsoft.azure_autorest.modeler@2.3.44/node_modules/@microsoft.azure/autorest.modeler", - "_requested": { - "type": "directory", - "where": "D:\\VSProjects\\swagger-to-sdk", - "raw": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest.modeler@2.3.44\\node_modules\\@microsoft.azure\\autorest.modeler", - "rawSpec": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest.modeler@2.3.44\\node_modules\\@microsoft.azure\\autorest.modeler", - "saveSpec": "file:C:/Users/lmazuel/.autorest/@microsoft.azure_autorest.modeler@2.3.44/node_modules/@microsoft.azure/autorest.modeler", - "fetchSpec": "C:/Users/lmazuel/.autorest/@microsoft.azure_autorest.modeler@2.3.44/node_modules/@microsoft.azure/autorest.modeler" - }, - "_spec": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest.modeler@2.3.44\\node_modules\\@microsoft.azure\\autorest.modeler", - "_where": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest.modeler@2.3.44\\node_modules\\@microsoft.azure\\autorest.modeler" - }, - "extensionManager": { - "installationPath": "C:\\Users\\lmazuel\\.autorest", - "sharedLock": { - "name": "C:\\Users\\lmazuel\\.autorest", - "exclusiveLock": { - "name": "C__Users_lmazuel_.autorest.exclusive-lock", - "pipe": "\\\\.\\pipe\\C__Users_lmazuel_.autorest.exclusive-lock", - "options": { - "path": "\\\\.\\pipe\\C__Users_lmazuel_.autorest.exclusive-lock", - "exclusive": true - } - }, - "busyLock": { - "name": "C__Users_lmazuel_.autorest.busy-lock", - "pipe": "\\\\.\\pipe\\C__Users_lmazuel_.autorest.busy-lock", - "options": { - "path": "\\\\.\\pipe\\C__Users_lmazuel_.autorest.busy-lock", - "exclusive": true - } - }, - "personalLock": { - "name": "C__Users_lmazuel_.autorest.4614.508749763692.personal-lock", - "pipe": "\\\\.\\pipe\\C__Users_lmazuel_.autorest.4614.508749763692.personal-lock", - "options": { - "path": "\\\\.\\pipe\\C__Users_lmazuel_.autorest.4614.508749763692.personal-lock", - "exclusive": true - } - }, - "file": "C:\\Users\\lmazuel\\AppData\\Local\\Temp/C__Users_lmazuel_.autorest.lock" - }, - "dotnetPath": "C:\\Users\\lmazuel\\.dotnet" - }, - "installationPath": "C:\\Users\\lmazuel\\.autorest" - }, - { - "resolvedInfo": null, - "packageMetadata": { - "name": "@microsoft.azure/autorest.python", - "version": "2.1.34", - "dependencies": { - "dotnet-2.0.0": "^1.4.4" - }, - "optionalDependencies": {}, - "devDependencies": { - "@microsoft.azure/autorest.testserver": "^2.3.13", - "autorest": "^2.0.4203", - "coffee-script": "^1.11.1", - "dotnet-sdk-2.0.0": "^1.4.4", - "gulp": "^3.9.1", - "gulp-filter": "^5.0.0", - "gulp-line-ending-corrector": "^1.0.1", - "iced-coffee-script": "^108.0.11", - "marked": "^0.3.6", - "marked-terminal": "^2.0.0", - "moment": "^2.17.1", - "run-sequence": "*", - "shx": "^0.2.2", - "through2-parallel": "^0.1.3", - "yargs": "^8.0.2", - "yarn": "^1.0.2" - }, - "bundleDependencies": false, - "peerDependencies": {}, - "deprecated": false, - "_resolved": "C:/Users/lmazuel/.autorest/@microsoft.azure_autorest.python@2.1.34/node_modules/@microsoft.azure/autorest.python", - "_shasum": "b58d7e0542e081cf410fdbcdf8c14acf9cee16a7", - "_shrinkwrap": null, - "bin": null, - "_id": "@microsoft.azure/autorest.python@2.1.34", - "_from": "file:C:/Users/lmazuel/.autorest/@microsoft.azure_autorest.python@2.1.34/node_modules/@microsoft.azure/autorest.python", - "_requested": { - "type": "directory", - "where": "D:\\VSProjects\\swagger-to-sdk", - "raw": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest.python@2.1.34\\node_modules\\@microsoft.azure\\autorest.python", - "rawSpec": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest.python@2.1.34\\node_modules\\@microsoft.azure\\autorest.python", - "saveSpec": "file:C:/Users/lmazuel/.autorest/@microsoft.azure_autorest.python@2.1.34/node_modules/@microsoft.azure/autorest.python", - "fetchSpec": "C:/Users/lmazuel/.autorest/@microsoft.azure_autorest.python@2.1.34/node_modules/@microsoft.azure/autorest.python" - }, - "_spec": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest.python@2.1.34\\node_modules\\@microsoft.azure\\autorest.python", - "_where": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest.python@2.1.34\\node_modules\\@microsoft.azure\\autorest.python" - }, - "extensionManager": { - "installationPath": "C:\\Users\\lmazuel\\.autorest", - "sharedLock": { - "name": "C:\\Users\\lmazuel\\.autorest", - "exclusiveLock": { - "name": "C__Users_lmazuel_.autorest.exclusive-lock", - "pipe": "\\\\.\\pipe\\C__Users_lmazuel_.autorest.exclusive-lock", - "options": { - "path": "\\\\.\\pipe\\C__Users_lmazuel_.autorest.exclusive-lock", - "exclusive": true - } - }, - "busyLock": { - "name": "C__Users_lmazuel_.autorest.busy-lock", - "pipe": "\\\\.\\pipe\\C__Users_lmazuel_.autorest.busy-lock", - "options": { - "path": "\\\\.\\pipe\\C__Users_lmazuel_.autorest.busy-lock", - "exclusive": true - } - }, - "personalLock": { - "name": "C__Users_lmazuel_.autorest.4614.508749763692.personal-lock", - "pipe": "\\\\.\\pipe\\C__Users_lmazuel_.autorest.4614.508749763692.personal-lock", - "options": { - "path": "\\\\.\\pipe\\C__Users_lmazuel_.autorest.4614.508749763692.personal-lock", - "exclusive": true - } - }, - "file": "C:\\Users\\lmazuel\\AppData\\Local\\Temp/C__Users_lmazuel_.autorest.lock" - }, - "dotnetPath": "C:\\Users\\lmazuel\\.dotnet" - }, - "installationPath": "C:\\Users\\lmazuel\\.autorest" - } - ], - "autorest_bootstrap": { - "dependencies": { - "autorest": { - "version": "2.0.4215", - "from": "autorest@latest", - "resolved": "https://registry.npmjs.org/autorest/-/autorest-2.0.4215.tgz" - } - } - } -} \ No newline at end of file diff --git a/azure-cognitiveservices-search-customsearch/sdk_packaging.toml b/azure-cognitiveservices-search-customsearch/sdk_packaging.toml index d97eacc3aaab..b43cfdf4d599 100644 --- a/azure-cognitiveservices-search-customsearch/sdk_packaging.toml +++ b/azure-cognitiveservices-search-customsearch/sdk_packaging.toml @@ -5,3 +5,4 @@ package_pprint_name = "Cognitive Services Custom Search" package_doc_id = "cognitive-services" is_stable = false is_arm = false +need_msrestazure = false From d78382abc3327daf2d7221b3367ca1441005e855 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Tue, 11 Dec 2018 11:18:05 -0800 Subject: [PATCH 08/12] [AutoPR] hdinsight/resource-manager (#3460) * [AutoPR hdinsight/resource-manager] [HDInsight] Added additional parameters for security profile (#3440) * Generated from 8bf74387f7be3983a5b31f6957ef4c289cd795c4 [HDInsight] Added additional parameters for security profile * Packaging update of azure-mgmt-hdinsight * Generated from f99eb282c2ff4d338081525e31c0951f2a521332 (#3550) Added HDInsight support for MSI * [HDInsight] Rerecorded tests * Packaging update of azure-mgmt-hdinsight * Generated from 4470c45fbc3ee7fef05111908a961c64dec8f97f (#3721) Fixed non-existent extra parameter (bug) * Generated from de07e1b451ebc32e2150c85225702957853cccaf (#3785) [HDInsight] - Support KV URL * Packaging update of azure-mgmt-hdinsight * [HDInsight] - Generate code for API version package-2018-06-preview (#4023) * Rebuild by https://github.com/Azure/azure-sdk-for-python/pull/3460 * 0.2.0 --- .github/CODEOWNERS | 2 +- azure-mgmt-hdinsight/HISTORY.rst | 29 + azure-mgmt-hdinsight/MANIFEST.in | 3 + .../hdinsight/hd_insight_management_client.py | 10 +- .../azure/mgmt/hdinsight/models/__init__.py | 40 +- .../models/application_get_https_endpoint.py | 5 - .../application_get_https_endpoint_py3.py | 7 +- .../models/application_properties.py | 4 - .../models/application_properties_py3.py | 6 +- .../hdinsight/models/capabilities_result.py | 49 - .../models/capabilities_result_py3.py | 49 - .../azure/mgmt/hdinsight/models/cluster.py | 4 + .../cluster_create_parameters_extended.py | 4 + .../cluster_create_parameters_extended_py3.py | 6 +- .../models/cluster_create_properties.py | 5 + .../models/cluster_create_properties_py3.py | 7 +- .../cluster_disk_encryption_parameters.py | 38 + .../cluster_disk_encryption_parameters_py3.py | 38 + .../models/cluster_get_properties.py | 5 + .../models/cluster_get_properties_py3.py | 7 +- .../mgmt/hdinsight/models/cluster_identity.py | 57 ++ .../hdinsight/models/cluster_identity_py3.py | 57 ++ ...identity_user_assigned_identities_value.py | 40 + ...tity_user_assigned_identities_value_py3.py | 40 + .../mgmt/hdinsight/models/cluster_py3.py | 6 +- .../models/disk_encryption_properties.py | 49 + .../models/disk_encryption_properties_py3.py | 49 + .../hd_insight_management_client_enums.py | 15 + .../mgmt/hdinsight/models/quota_capability.py | 29 - .../hdinsight/models/quota_capability_py3.py | 29 - .../models/regional_quota_capability.py | 36 - .../models/regional_quota_capability_py3.py | 36 - .../hdinsight/models/regions_capability.py | 28 - .../models/regions_capability_py3.py | 28 - .../mgmt/hdinsight/models/security_profile.py | 10 + .../hdinsight/models/security_profile_py3.py | 12 +- .../mgmt/hdinsight/models/storage_account.py | 2 +- .../hdinsight/models/storage_account_py3.py | 2 +- .../mgmt/hdinsight/models/version_spec.py | 40 - .../mgmt/hdinsight/models/version_spec_py3.py | 40 - .../hdinsight/models/versions_capability.py | 28 - .../models/versions_capability_py3.py | 28 - .../models/vm_size_compatibility_filter.py | 48 - .../vm_size_compatibility_filter_py3.py | 48 - .../hdinsight/models/vm_sizes_capability.py | 28 - .../models/vm_sizes_capability_py3.py | 28 - .../mgmt/hdinsight/operations/__init__.py | 4 +- .../operations/applications_operations.py | 12 +- .../operations/clusters_operations.py | 90 +- .../operations/configurations_operations.py | 16 +- ...operations.py => extensions_operations.py} | 152 ++- .../operations/locations_operations.py | 64 +- .../mgmt/hdinsight/operations/operations.py | 4 +- .../operations/script_actions_operations.py | 10 +- .../script_execution_history_operations.py | 10 +- .../azure/mgmt/hdinsight/version.py | 2 +- ...st_mgmt_hdinsight.test_cluster_create.yaml | 899 +++++++++++------- .../test/test_mgmt_hdinsight.py | 41 +- 58 files changed, 1321 insertions(+), 1114 deletions(-) delete mode 100644 azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/capabilities_result.py delete mode 100644 azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/capabilities_result_py3.py create mode 100644 azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_disk_encryption_parameters.py create mode 100644 azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_disk_encryption_parameters_py3.py create mode 100644 azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_identity.py create mode 100644 azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_identity_py3.py create mode 100644 azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_identity_user_assigned_identities_value.py create mode 100644 azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_identity_user_assigned_identities_value_py3.py create mode 100644 azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/disk_encryption_properties.py create mode 100644 azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/disk_encryption_properties_py3.py delete mode 100644 azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/quota_capability.py delete mode 100644 azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/quota_capability_py3.py delete mode 100644 azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/regional_quota_capability.py delete mode 100644 azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/regional_quota_capability_py3.py delete mode 100644 azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/regions_capability.py delete mode 100644 azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/regions_capability_py3.py delete mode 100644 azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/version_spec.py delete mode 100644 azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/version_spec_py3.py delete mode 100644 azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/versions_capability.py delete mode 100644 azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/versions_capability_py3.py delete mode 100644 azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/vm_size_compatibility_filter.py delete mode 100644 azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/vm_size_compatibility_filter_py3.py delete mode 100644 azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/vm_sizes_capability.py delete mode 100644 azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/vm_sizes_capability_py3.py rename azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/{extension_operations.py => extensions_operations.py} (86%) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 90cfff5147be..9f849066d399 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -18,7 +18,7 @@ /azure-mgmt-datalake-store/ @ro-joowan /azure-mgmt-datamigration/ @vchske /azure-mgmt-eventgrid/ @kalyanaj -/azure-mgmt-hdinsight/ @wawon-msft +/azure-mgmt-hdinsight/ @idear1203 /azure-mgmt-keyvault/ @schaabs /azure-mgmt-machinelearningcompute/ @shutchings /azure-mgmt-recoveryservices/ @DheerendraRathor diff --git a/azure-mgmt-hdinsight/HISTORY.rst b/azure-mgmt-hdinsight/HISTORY.rst index e67398f65bb4..fadd54d6fbc2 100644 --- a/azure-mgmt-hdinsight/HISTORY.rst +++ b/azure-mgmt-hdinsight/HISTORY.rst @@ -3,6 +3,35 @@ Release History =============== +0.2.0 (2018-12-11) +++++++++++++++++++ + +**Features** + +- Model SecurityProfile has a new parameter msi_resource_id +- Model SecurityProfile has a new parameter aadds_resource_id +- Model ClusterCreateProperties has a new parameter disk_encryption_properties +- Model ClusterGetProperties has a new parameter disk_encryption_properties +- Model Cluster has a new parameter identity +- Model ClusterCreateParametersExtended has a new parameter identity +- Added operation ClustersOperations.rotate_disk_encryption_key +- Added operation ScriptActionsOperations.list_by_cluster +- Added operation ScriptExecutionHistoryOperations.list_by_cluster +- Added operation ConfigurationsOperations.update +- Added operation ApplicationsOperations.list_by_cluster +- Added operation group ExtensionsOperations + +**Breaking changes** + +- Model ApplicationProperties no longer has parameter additional_properties +- Model ApplicationGetHttpsEndpoint no longer has parameter additional_properties +- Removed operation ScriptActionsOperations.list_persisted_scripts +- Removed operation ScriptExecutionHistoryOperations.list +- Removed operation ConfigurationsOperations.update_http_settings +- Removed operation ApplicationsOperations.list +- Removed operation LocationsOperations.get_capabilities +- Removed operation group ExtensionOperations + 0.1.0 (2018-08-08) ++++++++++++++++++ diff --git a/azure-mgmt-hdinsight/MANIFEST.in b/azure-mgmt-hdinsight/MANIFEST.in index bb37a2723dae..6ceb27f7a96e 100644 --- a/azure-mgmt-hdinsight/MANIFEST.in +++ b/azure-mgmt-hdinsight/MANIFEST.in @@ -1 +1,4 @@ include *.rst +include azure/__init__.py +include azure/mgmt/__init__.py + diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/hd_insight_management_client.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/hd_insight_management_client.py index 43afe47bc32b..817668024088 100644 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/hd_insight_management_client.py +++ b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/hd_insight_management_client.py @@ -17,7 +17,7 @@ from .operations.applications_operations import ApplicationsOperations from .operations.locations_operations import LocationsOperations from .operations.configurations_operations import ConfigurationsOperations -from .operations.extension_operations import ExtensionOperations +from .operations.extensions_operations import ExtensionsOperations from .operations.script_actions_operations import ScriptActionsOperations from .operations.script_execution_history_operations import ScriptExecutionHistoryOperations from .operations.operations import Operations @@ -72,8 +72,8 @@ class HDInsightManagementClient(SDKClient): :vartype locations: azure.mgmt.hdinsight.operations.LocationsOperations :ivar configurations: Configurations operations :vartype configurations: azure.mgmt.hdinsight.operations.ConfigurationsOperations - :ivar extension: Extension operations - :vartype extension: azure.mgmt.hdinsight.operations.ExtensionOperations + :ivar extensions: Extensions operations + :vartype extensions: azure.mgmt.hdinsight.operations.ExtensionsOperations :ivar script_actions: ScriptActions operations :vartype script_actions: azure.mgmt.hdinsight.operations.ScriptActionsOperations :ivar script_execution_history: ScriptExecutionHistory operations @@ -98,7 +98,7 @@ def __init__( super(HDInsightManagementClient, self).__init__(self.config.credentials, self.config) client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self.api_version = '2015-03-01-preview' + self.api_version = '2018-06-01-preview' self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) @@ -110,7 +110,7 @@ def __init__( self._client, self.config, self._serialize, self._deserialize) self.configurations = ConfigurationsOperations( self._client, self.config, self._serialize, self._deserialize) - self.extension = ExtensionOperations( + self.extensions = ExtensionsOperations( self._client, self.config, self._serialize, self._deserialize) self.script_actions = ScriptActionsOperations( self._client, self.config, self._serialize, self._deserialize) diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/__init__.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/__init__.py index 20db57166905..a99d4b7ecd87 100644 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/__init__.py +++ b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/__init__.py @@ -24,7 +24,10 @@ from .compute_profile_py3 import ComputeProfile from .storage_account_py3 import StorageAccount from .storage_profile_py3 import StorageProfile + from .disk_encryption_properties_py3 import DiskEncryptionProperties from .cluster_create_properties_py3 import ClusterCreateProperties + from .cluster_identity_user_assigned_identities_value_py3 import ClusterIdentityUserAssignedIdentitiesValue + from .cluster_identity_py3 import ClusterIdentity from .cluster_create_parameters_extended_py3 import ClusterCreateParametersExtended from .cluster_patch_parameters_py3 import ClusterPatchParameters from .quota_info_py3 import QuotaInfo @@ -39,6 +42,7 @@ from .runtime_script_action_detail_py3 import RuntimeScriptActionDetail from .cluster_list_runtime_script_action_detail_result_py3 import ClusterListRuntimeScriptActionDetailResult from .cluster_resize_parameters_py3 import ClusterResizeParameters + from .cluster_disk_encryption_parameters_py3 import ClusterDiskEncryptionParameters from .operation_resource_py3 import OperationResource from .resource_py3 import Resource from .tracked_resource_py3 import TrackedResource @@ -48,14 +52,6 @@ from .application_get_endpoint_py3 import ApplicationGetEndpoint from .application_properties_py3 import ApplicationProperties from .application_py3 import Application - from .version_spec_py3 import VersionSpec - from .versions_capability_py3 import VersionsCapability - from .regions_capability_py3 import RegionsCapability - from .vm_sizes_capability_py3 import VmSizesCapability - from .vm_size_compatibility_filter_py3 import VmSizeCompatibilityFilter - from .regional_quota_capability_py3 import RegionalQuotaCapability - from .quota_capability_py3 import QuotaCapability - from .capabilities_result_py3 import CapabilitiesResult from .localized_name_py3 import LocalizedName from .usage_py3 import Usage from .usages_list_result_py3 import UsagesListResult @@ -80,7 +76,10 @@ from .compute_profile import ComputeProfile from .storage_account import StorageAccount from .storage_profile import StorageProfile + from .disk_encryption_properties import DiskEncryptionProperties from .cluster_create_properties import ClusterCreateProperties + from .cluster_identity_user_assigned_identities_value import ClusterIdentityUserAssignedIdentitiesValue + from .cluster_identity import ClusterIdentity from .cluster_create_parameters_extended import ClusterCreateParametersExtended from .cluster_patch_parameters import ClusterPatchParameters from .quota_info import QuotaInfo @@ -95,6 +94,7 @@ from .runtime_script_action_detail import RuntimeScriptActionDetail from .cluster_list_runtime_script_action_detail_result import ClusterListRuntimeScriptActionDetailResult from .cluster_resize_parameters import ClusterResizeParameters + from .cluster_disk_encryption_parameters import ClusterDiskEncryptionParameters from .operation_resource import OperationResource from .resource import Resource from .tracked_resource import TrackedResource @@ -104,14 +104,6 @@ from .application_get_endpoint import ApplicationGetEndpoint from .application_properties import ApplicationProperties from .application import Application - from .version_spec import VersionSpec - from .versions_capability import VersionsCapability - from .regions_capability import RegionsCapability - from .vm_sizes_capability import VmSizesCapability - from .vm_size_compatibility_filter import VmSizeCompatibilityFilter - from .regional_quota_capability import RegionalQuotaCapability - from .quota_capability import QuotaCapability - from .capabilities_result import CapabilitiesResult from .localized_name import LocalizedName from .usage import Usage from .usages_list_result import UsagesListResult @@ -129,6 +121,8 @@ DirectoryType, OSType, Tier, + JsonWebKeyEncryptionAlgorithm, + ResourceIdentityType, HDInsightClusterProvisioningState, AsyncOperationState, ) @@ -148,7 +142,10 @@ 'ComputeProfile', 'StorageAccount', 'StorageProfile', + 'DiskEncryptionProperties', 'ClusterCreateProperties', + 'ClusterIdentityUserAssignedIdentitiesValue', + 'ClusterIdentity', 'ClusterCreateParametersExtended', 'ClusterPatchParameters', 'QuotaInfo', @@ -163,6 +160,7 @@ 'RuntimeScriptActionDetail', 'ClusterListRuntimeScriptActionDetailResult', 'ClusterResizeParameters', + 'ClusterDiskEncryptionParameters', 'OperationResource', 'Resource', 'TrackedResource', @@ -172,14 +170,6 @@ 'ApplicationGetEndpoint', 'ApplicationProperties', 'Application', - 'VersionSpec', - 'VersionsCapability', - 'RegionsCapability', - 'VmSizesCapability', - 'VmSizeCompatibilityFilter', - 'RegionalQuotaCapability', - 'QuotaCapability', - 'CapabilitiesResult', 'LocalizedName', 'Usage', 'UsagesListResult', @@ -196,6 +186,8 @@ 'DirectoryType', 'OSType', 'Tier', + 'JsonWebKeyEncryptionAlgorithm', + 'ResourceIdentityType', 'HDInsightClusterProvisioningState', 'AsyncOperationState', ] diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/application_get_https_endpoint.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/application_get_https_endpoint.py index b8f265d5e4d4..b4536fc4f42d 100644 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/application_get_https_endpoint.py +++ b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/application_get_https_endpoint.py @@ -15,9 +15,6 @@ class ApplicationGetHttpsEndpoint(Model): """Gets the application HTTP endpoints. - :param additional_properties: Unmatched properties from the message are - deserialized this collection - :type additional_properties: dict[str, str] :param access_modes: The list of access modes for the application. :type access_modes: list[str] :param location: The location of the endpoint. @@ -29,7 +26,6 @@ class ApplicationGetHttpsEndpoint(Model): """ _attribute_map = { - 'additional_properties': {'key': '', 'type': '{str}'}, 'access_modes': {'key': 'accessModes', 'type': '[str]'}, 'location': {'key': 'location', 'type': 'str'}, 'destination_port': {'key': 'destinationPort', 'type': 'int'}, @@ -38,7 +34,6 @@ class ApplicationGetHttpsEndpoint(Model): def __init__(self, **kwargs): super(ApplicationGetHttpsEndpoint, self).__init__(**kwargs) - self.additional_properties = kwargs.get('additional_properties', None) self.access_modes = kwargs.get('access_modes', None) self.location = kwargs.get('location', None) self.destination_port = kwargs.get('destination_port', None) diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/application_get_https_endpoint_py3.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/application_get_https_endpoint_py3.py index 48942687a50a..e23d24ac3368 100644 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/application_get_https_endpoint_py3.py +++ b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/application_get_https_endpoint_py3.py @@ -15,9 +15,6 @@ class ApplicationGetHttpsEndpoint(Model): """Gets the application HTTP endpoints. - :param additional_properties: Unmatched properties from the message are - deserialized this collection - :type additional_properties: dict[str, str] :param access_modes: The list of access modes for the application. :type access_modes: list[str] :param location: The location of the endpoint. @@ -29,16 +26,14 @@ class ApplicationGetHttpsEndpoint(Model): """ _attribute_map = { - 'additional_properties': {'key': '', 'type': '{str}'}, 'access_modes': {'key': 'accessModes', 'type': '[str]'}, 'location': {'key': 'location', 'type': 'str'}, 'destination_port': {'key': 'destinationPort', 'type': 'int'}, 'public_port': {'key': 'publicPort', 'type': 'int'}, } - def __init__(self, *, additional_properties=None, access_modes=None, location: str=None, destination_port: int=None, public_port: int=None, **kwargs) -> None: + def __init__(self, *, access_modes=None, location: str=None, destination_port: int=None, public_port: int=None, **kwargs) -> None: super(ApplicationGetHttpsEndpoint, self).__init__(**kwargs) - self.additional_properties = additional_properties self.access_modes = access_modes self.location = location self.destination_port = destination_port diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/application_properties.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/application_properties.py index 5f5e67ca6d47..3318ebcc61dd 100644 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/application_properties.py +++ b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/application_properties.py @@ -44,8 +44,6 @@ class ApplicationProperties(Model): :vartype created_date: str :ivar marketplace_identifier: The marketplace identifier. :vartype marketplace_identifier: str - :param additional_properties: The additional properties for application. - :type additional_properties: str """ _validation = { @@ -67,7 +65,6 @@ class ApplicationProperties(Model): 'errors': {'key': 'errors', 'type': '[Errors]'}, 'created_date': {'key': 'createdDate', 'type': 'str'}, 'marketplace_identifier': {'key': 'marketplaceIdentifier', 'type': 'str'}, - 'additional_properties': {'key': 'additionalProperties', 'type': 'str'}, } def __init__(self, **kwargs): @@ -83,4 +80,3 @@ def __init__(self, **kwargs): self.errors = kwargs.get('errors', None) self.created_date = None self.marketplace_identifier = None - self.additional_properties = kwargs.get('additional_properties', None) diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/application_properties_py3.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/application_properties_py3.py index 81d958ec3648..9c3c4e55d5d4 100644 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/application_properties_py3.py +++ b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/application_properties_py3.py @@ -44,8 +44,6 @@ class ApplicationProperties(Model): :vartype created_date: str :ivar marketplace_identifier: The marketplace identifier. :vartype marketplace_identifier: str - :param additional_properties: The additional properties for application. - :type additional_properties: str """ _validation = { @@ -67,10 +65,9 @@ class ApplicationProperties(Model): 'errors': {'key': 'errors', 'type': '[Errors]'}, 'created_date': {'key': 'createdDate', 'type': 'str'}, 'marketplace_identifier': {'key': 'marketplaceIdentifier', 'type': 'str'}, - 'additional_properties': {'key': 'additionalProperties', 'type': 'str'}, } - def __init__(self, *, compute_profile=None, install_script_actions=None, uninstall_script_actions=None, https_endpoints=None, ssh_endpoints=None, application_type: str=None, errors=None, additional_properties: str=None, **kwargs) -> None: + def __init__(self, *, compute_profile=None, install_script_actions=None, uninstall_script_actions=None, https_endpoints=None, ssh_endpoints=None, application_type: str=None, errors=None, **kwargs) -> None: super(ApplicationProperties, self).__init__(**kwargs) self.compute_profile = compute_profile self.install_script_actions = install_script_actions @@ -83,4 +80,3 @@ def __init__(self, *, compute_profile=None, install_script_actions=None, uninsta self.errors = errors self.created_date = None self.marketplace_identifier = None - self.additional_properties = additional_properties diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/capabilities_result.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/capabilities_result.py deleted file mode 100644 index cbb4cd877acc..000000000000 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/capabilities_result.py +++ /dev/null @@ -1,49 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class CapabilitiesResult(Model): - """The Get Capabilities operation response. - - :param versions: The version capability. - :type versions: dict[str, ~azure.mgmt.hdinsight.models.VersionsCapability] - :param regions: The virtual machine size compatibilty features. - :type regions: dict[str, ~azure.mgmt.hdinsight.models.RegionsCapability] - :param vm_sizes: The virtual machine sizes. - :type vm_sizes: dict[str, ~azure.mgmt.hdinsight.models.VmSizesCapability] - :param vm_size_filters: The virtual machine size compatibilty filters. - :type vm_size_filters: - list[~azure.mgmt.hdinsight.models.VmSizeCompatibilityFilter] - :param features: The capabilty features. - :type features: list[str] - :param quota: The quota capability. - :type quota: ~azure.mgmt.hdinsight.models.QuotaCapability - """ - - _attribute_map = { - 'versions': {'key': 'versions', 'type': '{VersionsCapability}'}, - 'regions': {'key': 'regions', 'type': '{RegionsCapability}'}, - 'vm_sizes': {'key': 'vmSizes', 'type': '{VmSizesCapability}'}, - 'vm_size_filters': {'key': 'vmSize_filters', 'type': '[VmSizeCompatibilityFilter]'}, - 'features': {'key': 'features', 'type': '[str]'}, - 'quota': {'key': 'quota', 'type': 'QuotaCapability'}, - } - - def __init__(self, **kwargs): - super(CapabilitiesResult, self).__init__(**kwargs) - self.versions = kwargs.get('versions', None) - self.regions = kwargs.get('regions', None) - self.vm_sizes = kwargs.get('vm_sizes', None) - self.vm_size_filters = kwargs.get('vm_size_filters', None) - self.features = kwargs.get('features', None) - self.quota = kwargs.get('quota', None) diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/capabilities_result_py3.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/capabilities_result_py3.py deleted file mode 100644 index e057697f9f3f..000000000000 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/capabilities_result_py3.py +++ /dev/null @@ -1,49 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class CapabilitiesResult(Model): - """The Get Capabilities operation response. - - :param versions: The version capability. - :type versions: dict[str, ~azure.mgmt.hdinsight.models.VersionsCapability] - :param regions: The virtual machine size compatibilty features. - :type regions: dict[str, ~azure.mgmt.hdinsight.models.RegionsCapability] - :param vm_sizes: The virtual machine sizes. - :type vm_sizes: dict[str, ~azure.mgmt.hdinsight.models.VmSizesCapability] - :param vm_size_filters: The virtual machine size compatibilty filters. - :type vm_size_filters: - list[~azure.mgmt.hdinsight.models.VmSizeCompatibilityFilter] - :param features: The capabilty features. - :type features: list[str] - :param quota: The quota capability. - :type quota: ~azure.mgmt.hdinsight.models.QuotaCapability - """ - - _attribute_map = { - 'versions': {'key': 'versions', 'type': '{VersionsCapability}'}, - 'regions': {'key': 'regions', 'type': '{RegionsCapability}'}, - 'vm_sizes': {'key': 'vmSizes', 'type': '{VmSizesCapability}'}, - 'vm_size_filters': {'key': 'vmSize_filters', 'type': '[VmSizeCompatibilityFilter]'}, - 'features': {'key': 'features', 'type': '[str]'}, - 'quota': {'key': 'quota', 'type': 'QuotaCapability'}, - } - - def __init__(self, *, versions=None, regions=None, vm_sizes=None, vm_size_filters=None, features=None, quota=None, **kwargs) -> None: - super(CapabilitiesResult, self).__init__(**kwargs) - self.versions = versions - self.regions = regions - self.vm_sizes = vm_sizes - self.vm_size_filters = vm_size_filters - self.features = features - self.quota = quota diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster.py index cff55f384b0c..a9789d7e0561 100644 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster.py +++ b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster.py @@ -32,6 +32,8 @@ class Cluster(TrackedResource): :type etag: str :param properties: The properties of the cluster. :type properties: ~azure.mgmt.hdinsight.models.ClusterGetProperties + :param identity: The identity of the cluster, if configured. + :type identity: ~azure.mgmt.hdinsight.models.ClusterIdentity """ _validation = { @@ -48,9 +50,11 @@ class Cluster(TrackedResource): 'tags': {'key': 'tags', 'type': '{str}'}, 'etag': {'key': 'etag', 'type': 'str'}, 'properties': {'key': 'properties', 'type': 'ClusterGetProperties'}, + 'identity': {'key': 'identity', 'type': 'ClusterIdentity'}, } def __init__(self, **kwargs): super(Cluster, self).__init__(**kwargs) self.etag = kwargs.get('etag', None) self.properties = kwargs.get('properties', None) + self.identity = kwargs.get('identity', None) diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_create_parameters_extended.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_create_parameters_extended.py index 898754c65466..cf52365c9f99 100644 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_create_parameters_extended.py +++ b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_create_parameters_extended.py @@ -21,12 +21,15 @@ class ClusterCreateParametersExtended(Model): :type tags: dict[str, str] :param properties: The cluster create parameters. :type properties: ~azure.mgmt.hdinsight.models.ClusterCreateProperties + :param identity: The identity of the cluster, if configured. + :type identity: ~azure.mgmt.hdinsight.models.ClusterIdentity """ _attribute_map = { 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'properties': {'key': 'properties', 'type': 'ClusterCreateProperties'}, + 'identity': {'key': 'identity', 'type': 'ClusterIdentity'}, } def __init__(self, **kwargs): @@ -34,3 +37,4 @@ def __init__(self, **kwargs): self.location = kwargs.get('location', None) self.tags = kwargs.get('tags', None) self.properties = kwargs.get('properties', None) + self.identity = kwargs.get('identity', None) diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_create_parameters_extended_py3.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_create_parameters_extended_py3.py index 31dfb47324d2..ab3cc3ffb567 100644 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_create_parameters_extended_py3.py +++ b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_create_parameters_extended_py3.py @@ -21,16 +21,20 @@ class ClusterCreateParametersExtended(Model): :type tags: dict[str, str] :param properties: The cluster create parameters. :type properties: ~azure.mgmt.hdinsight.models.ClusterCreateProperties + :param identity: The identity of the cluster, if configured. + :type identity: ~azure.mgmt.hdinsight.models.ClusterIdentity """ _attribute_map = { 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'properties': {'key': 'properties', 'type': 'ClusterCreateProperties'}, + 'identity': {'key': 'identity', 'type': 'ClusterIdentity'}, } - def __init__(self, *, location: str=None, tags=None, properties=None, **kwargs) -> None: + def __init__(self, *, location: str=None, tags=None, properties=None, identity=None, **kwargs) -> None: super(ClusterCreateParametersExtended, self).__init__(**kwargs) self.location = location self.tags = tags self.properties = properties + self.identity = identity diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_create_properties.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_create_properties.py index 2a3d9d82b770..1c8ded609314 100644 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_create_properties.py +++ b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_create_properties.py @@ -31,6 +31,9 @@ class ClusterCreateProperties(Model): :type compute_profile: ~azure.mgmt.hdinsight.models.ComputeProfile :param storage_profile: The storage profile. :type storage_profile: ~azure.mgmt.hdinsight.models.StorageProfile + :param disk_encryption_properties: The disk encryption properties. + :type disk_encryption_properties: + ~azure.mgmt.hdinsight.models.DiskEncryptionProperties """ _attribute_map = { @@ -41,6 +44,7 @@ class ClusterCreateProperties(Model): 'security_profile': {'key': 'securityProfile', 'type': 'SecurityProfile'}, 'compute_profile': {'key': 'computeProfile', 'type': 'ComputeProfile'}, 'storage_profile': {'key': 'storageProfile', 'type': 'StorageProfile'}, + 'disk_encryption_properties': {'key': 'diskEncryptionProperties', 'type': 'DiskEncryptionProperties'}, } def __init__(self, **kwargs): @@ -52,3 +56,4 @@ def __init__(self, **kwargs): self.security_profile = kwargs.get('security_profile', None) self.compute_profile = kwargs.get('compute_profile', None) self.storage_profile = kwargs.get('storage_profile', None) + self.disk_encryption_properties = kwargs.get('disk_encryption_properties', None) diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_create_properties_py3.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_create_properties_py3.py index 116d6af0eb95..4a20afc19233 100644 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_create_properties_py3.py +++ b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_create_properties_py3.py @@ -31,6 +31,9 @@ class ClusterCreateProperties(Model): :type compute_profile: ~azure.mgmt.hdinsight.models.ComputeProfile :param storage_profile: The storage profile. :type storage_profile: ~azure.mgmt.hdinsight.models.StorageProfile + :param disk_encryption_properties: The disk encryption properties. + :type disk_encryption_properties: + ~azure.mgmt.hdinsight.models.DiskEncryptionProperties """ _attribute_map = { @@ -41,9 +44,10 @@ class ClusterCreateProperties(Model): 'security_profile': {'key': 'securityProfile', 'type': 'SecurityProfile'}, 'compute_profile': {'key': 'computeProfile', 'type': 'ComputeProfile'}, 'storage_profile': {'key': 'storageProfile', 'type': 'StorageProfile'}, + 'disk_encryption_properties': {'key': 'diskEncryptionProperties', 'type': 'DiskEncryptionProperties'}, } - def __init__(self, *, cluster_version: str=None, os_type=None, tier=None, cluster_definition=None, security_profile=None, compute_profile=None, storage_profile=None, **kwargs) -> None: + def __init__(self, *, cluster_version: str=None, os_type=None, tier=None, cluster_definition=None, security_profile=None, compute_profile=None, storage_profile=None, disk_encryption_properties=None, **kwargs) -> None: super(ClusterCreateProperties, self).__init__(**kwargs) self.cluster_version = cluster_version self.os_type = os_type @@ -52,3 +56,4 @@ def __init__(self, *, cluster_version: str=None, os_type=None, tier=None, cluste self.security_profile = security_profile self.compute_profile = compute_profile self.storage_profile = storage_profile + self.disk_encryption_properties = disk_encryption_properties diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_disk_encryption_parameters.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_disk_encryption_parameters.py new file mode 100644 index 000000000000..5be4b8a8baf4 --- /dev/null +++ b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_disk_encryption_parameters.py @@ -0,0 +1,38 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ClusterDiskEncryptionParameters(Model): + """The Disk Encryption Cluster request parameters. + + :param vault_uri: Base key vault URI where the customers key is located + eg. https://myvault.vault.azure.net + :type vault_uri: str + :param key_name: Key name that is used for enabling disk encryption. + :type key_name: str + :param key_version: Specific key version that is used for enabling disk + encryption. + :type key_version: str + """ + + _attribute_map = { + 'vault_uri': {'key': 'vaultUri', 'type': 'str'}, + 'key_name': {'key': 'keyName', 'type': 'str'}, + 'key_version': {'key': 'keyVersion', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ClusterDiskEncryptionParameters, self).__init__(**kwargs) + self.vault_uri = kwargs.get('vault_uri', None) + self.key_name = kwargs.get('key_name', None) + self.key_version = kwargs.get('key_version', None) diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_disk_encryption_parameters_py3.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_disk_encryption_parameters_py3.py new file mode 100644 index 000000000000..daca29d0db38 --- /dev/null +++ b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_disk_encryption_parameters_py3.py @@ -0,0 +1,38 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ClusterDiskEncryptionParameters(Model): + """The Disk Encryption Cluster request parameters. + + :param vault_uri: Base key vault URI where the customers key is located + eg. https://myvault.vault.azure.net + :type vault_uri: str + :param key_name: Key name that is used for enabling disk encryption. + :type key_name: str + :param key_version: Specific key version that is used for enabling disk + encryption. + :type key_version: str + """ + + _attribute_map = { + 'vault_uri': {'key': 'vaultUri', 'type': 'str'}, + 'key_name': {'key': 'keyName', 'type': 'str'}, + 'key_version': {'key': 'keyVersion', 'type': 'str'}, + } + + def __init__(self, *, vault_uri: str=None, key_name: str=None, key_version: str=None, **kwargs) -> None: + super(ClusterDiskEncryptionParameters, self).__init__(**kwargs) + self.vault_uri = vault_uri + self.key_name = key_name + self.key_version = key_version diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_get_properties.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_get_properties.py index 988d03dbf1a7..09d5d4e34216 100644 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_get_properties.py +++ b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_get_properties.py @@ -47,6 +47,9 @@ class ClusterGetProperties(Model): :param connectivity_endpoints: The list of connectivity endpoints. :type connectivity_endpoints: list[~azure.mgmt.hdinsight.models.ConnectivityEndpoint] + :param disk_encryption_properties: The disk encryption properties. + :type disk_encryption_properties: + ~azure.mgmt.hdinsight.models.DiskEncryptionProperties """ _validation = { @@ -66,6 +69,7 @@ class ClusterGetProperties(Model): 'quota_info': {'key': 'quotaInfo', 'type': 'QuotaInfo'}, 'errors': {'key': 'errors', 'type': '[Errors]'}, 'connectivity_endpoints': {'key': 'connectivityEndpoints', 'type': '[ConnectivityEndpoint]'}, + 'disk_encryption_properties': {'key': 'diskEncryptionProperties', 'type': 'DiskEncryptionProperties'}, } def __init__(self, **kwargs): @@ -82,3 +86,4 @@ def __init__(self, **kwargs): self.quota_info = kwargs.get('quota_info', None) self.errors = kwargs.get('errors', None) self.connectivity_endpoints = kwargs.get('connectivity_endpoints', None) + self.disk_encryption_properties = kwargs.get('disk_encryption_properties', None) diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_get_properties_py3.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_get_properties_py3.py index 1c9024117dab..0709f53630c7 100644 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_get_properties_py3.py +++ b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_get_properties_py3.py @@ -47,6 +47,9 @@ class ClusterGetProperties(Model): :param connectivity_endpoints: The list of connectivity endpoints. :type connectivity_endpoints: list[~azure.mgmt.hdinsight.models.ConnectivityEndpoint] + :param disk_encryption_properties: The disk encryption properties. + :type disk_encryption_properties: + ~azure.mgmt.hdinsight.models.DiskEncryptionProperties """ _validation = { @@ -66,9 +69,10 @@ class ClusterGetProperties(Model): 'quota_info': {'key': 'quotaInfo', 'type': 'QuotaInfo'}, 'errors': {'key': 'errors', 'type': '[Errors]'}, 'connectivity_endpoints': {'key': 'connectivityEndpoints', 'type': '[ConnectivityEndpoint]'}, + 'disk_encryption_properties': {'key': 'diskEncryptionProperties', 'type': 'DiskEncryptionProperties'}, } - def __init__(self, *, cluster_definition, cluster_version: str=None, os_type=None, tier=None, security_profile=None, compute_profile=None, provisioning_state=None, created_date: str=None, cluster_state: str=None, quota_info=None, errors=None, connectivity_endpoints=None, **kwargs) -> None: + def __init__(self, *, cluster_definition, cluster_version: str=None, os_type=None, tier=None, security_profile=None, compute_profile=None, provisioning_state=None, created_date: str=None, cluster_state: str=None, quota_info=None, errors=None, connectivity_endpoints=None, disk_encryption_properties=None, **kwargs) -> None: super(ClusterGetProperties, self).__init__(**kwargs) self.cluster_version = cluster_version self.os_type = os_type @@ -82,3 +86,4 @@ def __init__(self, *, cluster_definition, cluster_version: str=None, os_type=Non self.quota_info = quota_info self.errors = errors self.connectivity_endpoints = connectivity_endpoints + self.disk_encryption_properties = disk_encryption_properties diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_identity.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_identity.py new file mode 100644 index 000000000000..faaf1bd05360 --- /dev/null +++ b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_identity.py @@ -0,0 +1,57 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ClusterIdentity(Model): + """Identity for the cluster. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar principal_id: The principal id of cluster identity. This property + will only be provided for a system assigned identity. + :vartype principal_id: str + :ivar tenant_id: The tenant id associated with the cluster. This property + will only be provided for a system assigned identity. + :vartype tenant_id: str + :param type: The type of identity used for the cluster. The type + 'SystemAssigned, UserAssigned' includes both an implicitly created + identity and a set of user assigned identities. Possible values include: + 'SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned', 'None' + :type type: str or ~azure.mgmt.hdinsight.models.ResourceIdentityType + :param user_assigned_identities: The list of user identities associated + with the cluster. The user identity dictionary key references will be ARM + resource ids in the form: + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. + :type user_assigned_identities: dict[str, + ~azure.mgmt.hdinsight.models.ClusterIdentityUserAssignedIdentitiesValue] + """ + + _validation = { + 'principal_id': {'readonly': True}, + 'tenant_id': {'readonly': True}, + } + + _attribute_map = { + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'ResourceIdentityType'}, + 'user_assigned_identities': {'key': 'userAssignedIdentities', 'type': '{ClusterIdentityUserAssignedIdentitiesValue}'}, + } + + def __init__(self, **kwargs): + super(ClusterIdentity, self).__init__(**kwargs) + self.principal_id = None + self.tenant_id = None + self.type = kwargs.get('type', None) + self.user_assigned_identities = kwargs.get('user_assigned_identities', None) diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_identity_py3.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_identity_py3.py new file mode 100644 index 000000000000..01df7592337f --- /dev/null +++ b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_identity_py3.py @@ -0,0 +1,57 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ClusterIdentity(Model): + """Identity for the cluster. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar principal_id: The principal id of cluster identity. This property + will only be provided for a system assigned identity. + :vartype principal_id: str + :ivar tenant_id: The tenant id associated with the cluster. This property + will only be provided for a system assigned identity. + :vartype tenant_id: str + :param type: The type of identity used for the cluster. The type + 'SystemAssigned, UserAssigned' includes both an implicitly created + identity and a set of user assigned identities. Possible values include: + 'SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned', 'None' + :type type: str or ~azure.mgmt.hdinsight.models.ResourceIdentityType + :param user_assigned_identities: The list of user identities associated + with the cluster. The user identity dictionary key references will be ARM + resource ids in the form: + '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. + :type user_assigned_identities: dict[str, + ~azure.mgmt.hdinsight.models.ClusterIdentityUserAssignedIdentitiesValue] + """ + + _validation = { + 'principal_id': {'readonly': True}, + 'tenant_id': {'readonly': True}, + } + + _attribute_map = { + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'ResourceIdentityType'}, + 'user_assigned_identities': {'key': 'userAssignedIdentities', 'type': '{ClusterIdentityUserAssignedIdentitiesValue}'}, + } + + def __init__(self, *, type=None, user_assigned_identities=None, **kwargs) -> None: + super(ClusterIdentity, self).__init__(**kwargs) + self.principal_id = None + self.tenant_id = None + self.type = type + self.user_assigned_identities = user_assigned_identities diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_identity_user_assigned_identities_value.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_identity_user_assigned_identities_value.py new file mode 100644 index 000000000000..c72247be9c88 --- /dev/null +++ b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_identity_user_assigned_identities_value.py @@ -0,0 +1,40 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ClusterIdentityUserAssignedIdentitiesValue(Model): + """ClusterIdentityUserAssignedIdentitiesValue. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar principal_id: The principal id of user assigned identity. + :vartype principal_id: str + :ivar client_id: The client id of user assigned identity. + :vartype client_id: str + """ + + _validation = { + 'principal_id': {'readonly': True}, + 'client_id': {'readonly': True}, + } + + _attribute_map = { + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'client_id': {'key': 'clientId', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ClusterIdentityUserAssignedIdentitiesValue, self).__init__(**kwargs) + self.principal_id = None + self.client_id = None diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_identity_user_assigned_identities_value_py3.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_identity_user_assigned_identities_value_py3.py new file mode 100644 index 000000000000..697dfdb82627 --- /dev/null +++ b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_identity_user_assigned_identities_value_py3.py @@ -0,0 +1,40 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ClusterIdentityUserAssignedIdentitiesValue(Model): + """ClusterIdentityUserAssignedIdentitiesValue. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar principal_id: The principal id of user assigned identity. + :vartype principal_id: str + :ivar client_id: The client id of user assigned identity. + :vartype client_id: str + """ + + _validation = { + 'principal_id': {'readonly': True}, + 'client_id': {'readonly': True}, + } + + _attribute_map = { + 'principal_id': {'key': 'principalId', 'type': 'str'}, + 'client_id': {'key': 'clientId', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(ClusterIdentityUserAssignedIdentitiesValue, self).__init__(**kwargs) + self.principal_id = None + self.client_id = None diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_py3.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_py3.py index c73049d9c383..795bea63608f 100644 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_py3.py +++ b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/cluster_py3.py @@ -32,6 +32,8 @@ class Cluster(TrackedResource): :type etag: str :param properties: The properties of the cluster. :type properties: ~azure.mgmt.hdinsight.models.ClusterGetProperties + :param identity: The identity of the cluster, if configured. + :type identity: ~azure.mgmt.hdinsight.models.ClusterIdentity """ _validation = { @@ -48,9 +50,11 @@ class Cluster(TrackedResource): 'tags': {'key': 'tags', 'type': '{str}'}, 'etag': {'key': 'etag', 'type': 'str'}, 'properties': {'key': 'properties', 'type': 'ClusterGetProperties'}, + 'identity': {'key': 'identity', 'type': 'ClusterIdentity'}, } - def __init__(self, *, location: str=None, tags=None, etag: str=None, properties=None, **kwargs) -> None: + def __init__(self, *, location: str=None, tags=None, etag: str=None, properties=None, identity=None, **kwargs) -> None: super(Cluster, self).__init__(location=location, tags=tags, **kwargs) self.etag = etag self.properties = properties + self.identity = identity diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/disk_encryption_properties.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/disk_encryption_properties.py new file mode 100644 index 000000000000..1a18762417b0 --- /dev/null +++ b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/disk_encryption_properties.py @@ -0,0 +1,49 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class DiskEncryptionProperties(Model): + """The disk encryption properties. + + :param vault_uri: Base key vault URI where the customers key is located + eg. https://myvault.vault.azure.net + :type vault_uri: str + :param key_name: Key name that is used for enabling disk encryption. + :type key_name: str + :param key_version: Specific key version that is used for enabling disk + encryption. + :type key_version: str + :param encryption_algorithm: Algorithm identifier for encryption, default + RSA-OAEP. Possible values include: 'RSA-OAEP', 'RSA-OAEP-256', 'RSA1_5' + :type encryption_algorithm: str or + ~azure.mgmt.hdinsight.models.JsonWebKeyEncryptionAlgorithm + :param msi_resource_id: Resource ID of Managed Identity that is used to + access the key vault. + :type msi_resource_id: str + """ + + _attribute_map = { + 'vault_uri': {'key': 'vaultUri', 'type': 'str'}, + 'key_name': {'key': 'keyName', 'type': 'str'}, + 'key_version': {'key': 'keyVersion', 'type': 'str'}, + 'encryption_algorithm': {'key': 'encryptionAlgorithm', 'type': 'str'}, + 'msi_resource_id': {'key': 'msiResourceId', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(DiskEncryptionProperties, self).__init__(**kwargs) + self.vault_uri = kwargs.get('vault_uri', None) + self.key_name = kwargs.get('key_name', None) + self.key_version = kwargs.get('key_version', None) + self.encryption_algorithm = kwargs.get('encryption_algorithm', None) + self.msi_resource_id = kwargs.get('msi_resource_id', None) diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/disk_encryption_properties_py3.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/disk_encryption_properties_py3.py new file mode 100644 index 000000000000..f95aa5550a6b --- /dev/null +++ b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/disk_encryption_properties_py3.py @@ -0,0 +1,49 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class DiskEncryptionProperties(Model): + """The disk encryption properties. + + :param vault_uri: Base key vault URI where the customers key is located + eg. https://myvault.vault.azure.net + :type vault_uri: str + :param key_name: Key name that is used for enabling disk encryption. + :type key_name: str + :param key_version: Specific key version that is used for enabling disk + encryption. + :type key_version: str + :param encryption_algorithm: Algorithm identifier for encryption, default + RSA-OAEP. Possible values include: 'RSA-OAEP', 'RSA-OAEP-256', 'RSA1_5' + :type encryption_algorithm: str or + ~azure.mgmt.hdinsight.models.JsonWebKeyEncryptionAlgorithm + :param msi_resource_id: Resource ID of Managed Identity that is used to + access the key vault. + :type msi_resource_id: str + """ + + _attribute_map = { + 'vault_uri': {'key': 'vaultUri', 'type': 'str'}, + 'key_name': {'key': 'keyName', 'type': 'str'}, + 'key_version': {'key': 'keyVersion', 'type': 'str'}, + 'encryption_algorithm': {'key': 'encryptionAlgorithm', 'type': 'str'}, + 'msi_resource_id': {'key': 'msiResourceId', 'type': 'str'}, + } + + def __init__(self, *, vault_uri: str=None, key_name: str=None, key_version: str=None, encryption_algorithm=None, msi_resource_id: str=None, **kwargs) -> None: + super(DiskEncryptionProperties, self).__init__(**kwargs) + self.vault_uri = vault_uri + self.key_name = key_name + self.key_version = key_version + self.encryption_algorithm = encryption_algorithm + self.msi_resource_id = msi_resource_id diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/hd_insight_management_client_enums.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/hd_insight_management_client_enums.py index 5c9779b9846e..34fee1d526d2 100644 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/hd_insight_management_client_enums.py +++ b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/hd_insight_management_client_enums.py @@ -29,6 +29,21 @@ class Tier(str, Enum): premium = "Premium" +class JsonWebKeyEncryptionAlgorithm(str, Enum): + + rsa_oaep = "RSA-OAEP" + rsa_oaep_256 = "RSA-OAEP-256" + rsa1_5 = "RSA1_5" + + +class ResourceIdentityType(str, Enum): + + system_assigned = "SystemAssigned" + user_assigned = "UserAssigned" + system_assigned_user_assigned = "SystemAssigned, UserAssigned" + none = "None" + + class HDInsightClusterProvisioningState(str, Enum): in_progress = "InProgress" diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/quota_capability.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/quota_capability.py deleted file mode 100644 index 49e7fae6b6d5..000000000000 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/quota_capability.py +++ /dev/null @@ -1,29 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class QuotaCapability(Model): - """The regional quota capability. - - :param regional_quotas: The list of region quota capabilities. - :type regional_quotas: - list[~azure.mgmt.hdinsight.models.RegionalQuotaCapability] - """ - - _attribute_map = { - 'regional_quotas': {'key': 'regionalQuotas', 'type': '[RegionalQuotaCapability]'}, - } - - def __init__(self, **kwargs): - super(QuotaCapability, self).__init__(**kwargs) - self.regional_quotas = kwargs.get('regional_quotas', None) diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/quota_capability_py3.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/quota_capability_py3.py deleted file mode 100644 index 486c9832fd7d..000000000000 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/quota_capability_py3.py +++ /dev/null @@ -1,29 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class QuotaCapability(Model): - """The regional quota capability. - - :param regional_quotas: The list of region quota capabilities. - :type regional_quotas: - list[~azure.mgmt.hdinsight.models.RegionalQuotaCapability] - """ - - _attribute_map = { - 'regional_quotas': {'key': 'regionalQuotas', 'type': '[RegionalQuotaCapability]'}, - } - - def __init__(self, *, regional_quotas=None, **kwargs) -> None: - super(QuotaCapability, self).__init__(**kwargs) - self.regional_quotas = regional_quotas diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/regional_quota_capability.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/regional_quota_capability.py deleted file mode 100644 index 4e8819bbfeb0..000000000000 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/regional_quota_capability.py +++ /dev/null @@ -1,36 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class RegionalQuotaCapability(Model): - """The regional quota capacity. - - :param region_name: The region name. - :type region_name: str - :param cores_used: The number of cores used in the region. - :type cores_used: long - :param cores_available: The number of courses available in the region. - :type cores_available: long - """ - - _attribute_map = { - 'region_name': {'key': 'region_name', 'type': 'str'}, - 'cores_used': {'key': 'cores_used', 'type': 'long'}, - 'cores_available': {'key': 'cores_available', 'type': 'long'}, - } - - def __init__(self, **kwargs): - super(RegionalQuotaCapability, self).__init__(**kwargs) - self.region_name = kwargs.get('region_name', None) - self.cores_used = kwargs.get('cores_used', None) - self.cores_available = kwargs.get('cores_available', None) diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/regional_quota_capability_py3.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/regional_quota_capability_py3.py deleted file mode 100644 index 70ce7a01fa75..000000000000 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/regional_quota_capability_py3.py +++ /dev/null @@ -1,36 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class RegionalQuotaCapability(Model): - """The regional quota capacity. - - :param region_name: The region name. - :type region_name: str - :param cores_used: The number of cores used in the region. - :type cores_used: long - :param cores_available: The number of courses available in the region. - :type cores_available: long - """ - - _attribute_map = { - 'region_name': {'key': 'region_name', 'type': 'str'}, - 'cores_used': {'key': 'cores_used', 'type': 'long'}, - 'cores_available': {'key': 'cores_available', 'type': 'long'}, - } - - def __init__(self, *, region_name: str=None, cores_used: int=None, cores_available: int=None, **kwargs) -> None: - super(RegionalQuotaCapability, self).__init__(**kwargs) - self.region_name = region_name - self.cores_used = cores_used - self.cores_available = cores_available diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/regions_capability.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/regions_capability.py deleted file mode 100644 index d6fa51ff1f94..000000000000 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/regions_capability.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class RegionsCapability(Model): - """The regions capability. - - :param available: The list of region capabilities. - :type available: list[str] - """ - - _attribute_map = { - 'available': {'key': 'available', 'type': '[str]'}, - } - - def __init__(self, **kwargs): - super(RegionsCapability, self).__init__(**kwargs) - self.available = kwargs.get('available', None) diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/regions_capability_py3.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/regions_capability_py3.py deleted file mode 100644 index aa424b372b14..000000000000 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/regions_capability_py3.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class RegionsCapability(Model): - """The regions capability. - - :param available: The list of region capabilities. - :type available: list[str] - """ - - _attribute_map = { - 'available': {'key': 'available', 'type': '[str]'}, - } - - def __init__(self, *, available=None, **kwargs) -> None: - super(RegionsCapability, self).__init__(**kwargs) - self.available = available diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/security_profile.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/security_profile.py index 8b75c890167d..ecb3c04b3289 100644 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/security_profile.py +++ b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/security_profile.py @@ -35,6 +35,12 @@ class SecurityProfile(Model): :param cluster_users_group_dns: Optional. The Distinguished Names for cluster user groups :type cluster_users_group_dns: list[str] + :param aadds_resource_id: The resource ID of the user's Azure Active + Directory Domain Service. + :type aadds_resource_id: str + :param msi_resource_id: User assigned identity that has permissions to + read and create cluster-related artifacts in the user's AADDS. + :type msi_resource_id: str """ _attribute_map = { @@ -45,6 +51,8 @@ class SecurityProfile(Model): 'domain_username': {'key': 'domainUsername', 'type': 'str'}, 'domain_user_password': {'key': 'domainUserPassword', 'type': 'str'}, 'cluster_users_group_dns': {'key': 'clusterUsersGroupDNs', 'type': '[str]'}, + 'aadds_resource_id': {'key': 'aaddsResourceId', 'type': 'str'}, + 'msi_resource_id': {'key': 'msiResourceId', 'type': 'str'}, } def __init__(self, **kwargs): @@ -56,3 +64,5 @@ def __init__(self, **kwargs): self.domain_username = kwargs.get('domain_username', None) self.domain_user_password = kwargs.get('domain_user_password', None) self.cluster_users_group_dns = kwargs.get('cluster_users_group_dns', None) + self.aadds_resource_id = kwargs.get('aadds_resource_id', None) + self.msi_resource_id = kwargs.get('msi_resource_id', None) diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/security_profile_py3.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/security_profile_py3.py index 08abec9760cb..44a2ad7904af 100644 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/security_profile_py3.py +++ b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/security_profile_py3.py @@ -35,6 +35,12 @@ class SecurityProfile(Model): :param cluster_users_group_dns: Optional. The Distinguished Names for cluster user groups :type cluster_users_group_dns: list[str] + :param aadds_resource_id: The resource ID of the user's Azure Active + Directory Domain Service. + :type aadds_resource_id: str + :param msi_resource_id: User assigned identity that has permissions to + read and create cluster-related artifacts in the user's AADDS. + :type msi_resource_id: str """ _attribute_map = { @@ -45,9 +51,11 @@ class SecurityProfile(Model): 'domain_username': {'key': 'domainUsername', 'type': 'str'}, 'domain_user_password': {'key': 'domainUserPassword', 'type': 'str'}, 'cluster_users_group_dns': {'key': 'clusterUsersGroupDNs', 'type': '[str]'}, + 'aadds_resource_id': {'key': 'aaddsResourceId', 'type': 'str'}, + 'msi_resource_id': {'key': 'msiResourceId', 'type': 'str'}, } - def __init__(self, *, directory_type=None, domain: str=None, organizational_unit_dn: str=None, ldaps_urls=None, domain_username: str=None, domain_user_password: str=None, cluster_users_group_dns=None, **kwargs) -> None: + def __init__(self, *, directory_type=None, domain: str=None, organizational_unit_dn: str=None, ldaps_urls=None, domain_username: str=None, domain_user_password: str=None, cluster_users_group_dns=None, aadds_resource_id: str=None, msi_resource_id: str=None, **kwargs) -> None: super(SecurityProfile, self).__init__(**kwargs) self.directory_type = directory_type self.domain = domain @@ -56,3 +64,5 @@ def __init__(self, *, directory_type=None, domain: str=None, organizational_unit self.domain_username = domain_username self.domain_user_password = domain_user_password self.cluster_users_group_dns = cluster_users_group_dns + self.aadds_resource_id = aadds_resource_id + self.msi_resource_id = msi_resource_id diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/storage_account.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/storage_account.py index d5bde1b626bb..c65f5dc49529 100644 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/storage_account.py +++ b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/storage_account.py @@ -24,7 +24,7 @@ class StorageAccount(Model): specified for WASB storage accounts. :type container: str :param file_system: The filesystem, only to be specified for Azure Data - Lake Storage Gen 2. + Lake Storage type Gen 2. :type file_system: str :param key: The storage account access key. :type key: str diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/storage_account_py3.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/storage_account_py3.py index 544b49927dde..41f9ea602657 100644 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/storage_account_py3.py +++ b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/storage_account_py3.py @@ -24,7 +24,7 @@ class StorageAccount(Model): specified for WASB storage accounts. :type container: str :param file_system: The filesystem, only to be specified for Azure Data - Lake Storage Gen 2. + Lake Storage type Gen 2. :type file_system: str :param key: The storage account access key. :type key: str diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/version_spec.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/version_spec.py deleted file mode 100644 index d3d95d985f43..000000000000 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/version_spec.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class VersionSpec(Model): - """The version properties. - - :param friendly_name: The friendly name - :type friendly_name: str - :param display_name: The display name - :type display_name: str - :param is_default: Whether or not the version is the default version. - :type is_default: str - :param component_versions: The component version property. - :type component_versions: dict[str, str] - """ - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'is_default': {'key': 'isDefault', 'type': 'str'}, - 'component_versions': {'key': 'componentVersions', 'type': '{str}'}, - } - - def __init__(self, **kwargs): - super(VersionSpec, self).__init__(**kwargs) - self.friendly_name = kwargs.get('friendly_name', None) - self.display_name = kwargs.get('display_name', None) - self.is_default = kwargs.get('is_default', None) - self.component_versions = kwargs.get('component_versions', None) diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/version_spec_py3.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/version_spec_py3.py deleted file mode 100644 index a993e923a313..000000000000 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/version_spec_py3.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class VersionSpec(Model): - """The version properties. - - :param friendly_name: The friendly name - :type friendly_name: str - :param display_name: The display name - :type display_name: str - :param is_default: Whether or not the version is the default version. - :type is_default: str - :param component_versions: The component version property. - :type component_versions: dict[str, str] - """ - - _attribute_map = { - 'friendly_name': {'key': 'friendlyName', 'type': 'str'}, - 'display_name': {'key': 'displayName', 'type': 'str'}, - 'is_default': {'key': 'isDefault', 'type': 'str'}, - 'component_versions': {'key': 'componentVersions', 'type': '{str}'}, - } - - def __init__(self, *, friendly_name: str=None, display_name: str=None, is_default: str=None, component_versions=None, **kwargs) -> None: - super(VersionSpec, self).__init__(**kwargs) - self.friendly_name = friendly_name - self.display_name = display_name - self.is_default = is_default - self.component_versions = component_versions diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/versions_capability.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/versions_capability.py deleted file mode 100644 index 9b059cd8058f..000000000000 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/versions_capability.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class VersionsCapability(Model): - """The version capability. - - :param available: The list of version capabilities. - :type available: list[~azure.mgmt.hdinsight.models.VersionSpec] - """ - - _attribute_map = { - 'available': {'key': 'available', 'type': '[VersionSpec]'}, - } - - def __init__(self, **kwargs): - super(VersionsCapability, self).__init__(**kwargs) - self.available = kwargs.get('available', None) diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/versions_capability_py3.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/versions_capability_py3.py deleted file mode 100644 index 869811057316..000000000000 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/versions_capability_py3.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class VersionsCapability(Model): - """The version capability. - - :param available: The list of version capabilities. - :type available: list[~azure.mgmt.hdinsight.models.VersionSpec] - """ - - _attribute_map = { - 'available': {'key': 'available', 'type': '[VersionSpec]'}, - } - - def __init__(self, *, available=None, **kwargs) -> None: - super(VersionsCapability, self).__init__(**kwargs) - self.available = available diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/vm_size_compatibility_filter.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/vm_size_compatibility_filter.py deleted file mode 100644 index de0164b831e6..000000000000 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/vm_size_compatibility_filter.py +++ /dev/null @@ -1,48 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class VmSizeCompatibilityFilter(Model): - """The virtual machine type compatibility filter. - - :param filter_mode: The mode for the filter. - :type filter_mode: str - :param regions: The list of regions. - :type regions: list[str] - :param cluster_flavors: The list of cluster types available. - :type cluster_flavors: list[str] - :param node_types: The list of node types. - :type node_types: list[str] - :param cluster_versions: The list of cluster versions. - :type cluster_versions: list[str] - :param vmsizes: The list of virtual machine sizes. - :type vmsizes: list[str] - """ - - _attribute_map = { - 'filter_mode': {'key': 'FilterMode', 'type': 'str'}, - 'regions': {'key': 'Regions', 'type': '[str]'}, - 'cluster_flavors': {'key': 'ClusterFlavors', 'type': '[str]'}, - 'node_types': {'key': 'NodeTypes', 'type': '[str]'}, - 'cluster_versions': {'key': 'ClusterVersions', 'type': '[str]'}, - 'vmsizes': {'key': 'vmsizes', 'type': '[str]'}, - } - - def __init__(self, **kwargs): - super(VmSizeCompatibilityFilter, self).__init__(**kwargs) - self.filter_mode = kwargs.get('filter_mode', None) - self.regions = kwargs.get('regions', None) - self.cluster_flavors = kwargs.get('cluster_flavors', None) - self.node_types = kwargs.get('node_types', None) - self.cluster_versions = kwargs.get('cluster_versions', None) - self.vmsizes = kwargs.get('vmsizes', None) diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/vm_size_compatibility_filter_py3.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/vm_size_compatibility_filter_py3.py deleted file mode 100644 index 0e1e15cdf30b..000000000000 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/vm_size_compatibility_filter_py3.py +++ /dev/null @@ -1,48 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class VmSizeCompatibilityFilter(Model): - """The virtual machine type compatibility filter. - - :param filter_mode: The mode for the filter. - :type filter_mode: str - :param regions: The list of regions. - :type regions: list[str] - :param cluster_flavors: The list of cluster types available. - :type cluster_flavors: list[str] - :param node_types: The list of node types. - :type node_types: list[str] - :param cluster_versions: The list of cluster versions. - :type cluster_versions: list[str] - :param vmsizes: The list of virtual machine sizes. - :type vmsizes: list[str] - """ - - _attribute_map = { - 'filter_mode': {'key': 'FilterMode', 'type': 'str'}, - 'regions': {'key': 'Regions', 'type': '[str]'}, - 'cluster_flavors': {'key': 'ClusterFlavors', 'type': '[str]'}, - 'node_types': {'key': 'NodeTypes', 'type': '[str]'}, - 'cluster_versions': {'key': 'ClusterVersions', 'type': '[str]'}, - 'vmsizes': {'key': 'vmsizes', 'type': '[str]'}, - } - - def __init__(self, *, filter_mode: str=None, regions=None, cluster_flavors=None, node_types=None, cluster_versions=None, vmsizes=None, **kwargs) -> None: - super(VmSizeCompatibilityFilter, self).__init__(**kwargs) - self.filter_mode = filter_mode - self.regions = regions - self.cluster_flavors = cluster_flavors - self.node_types = node_types - self.cluster_versions = cluster_versions - self.vmsizes = vmsizes diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/vm_sizes_capability.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/vm_sizes_capability.py deleted file mode 100644 index 4ea9c0b45ae5..000000000000 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/vm_sizes_capability.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class VmSizesCapability(Model): - """The virtual machine sizes capability. - - :param available: The list of virtual machine size capabilities. - :type available: list[str] - """ - - _attribute_map = { - 'available': {'key': 'available', 'type': '[str]'}, - } - - def __init__(self, **kwargs): - super(VmSizesCapability, self).__init__(**kwargs) - self.available = kwargs.get('available', None) diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/vm_sizes_capability_py3.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/vm_sizes_capability_py3.py deleted file mode 100644 index eb83370cbc7c..000000000000 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/vm_sizes_capability_py3.py +++ /dev/null @@ -1,28 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class VmSizesCapability(Model): - """The virtual machine sizes capability. - - :param available: The list of virtual machine size capabilities. - :type available: list[str] - """ - - _attribute_map = { - 'available': {'key': 'available', 'type': '[str]'}, - } - - def __init__(self, *, available=None, **kwargs) -> None: - super(VmSizesCapability, self).__init__(**kwargs) - self.available = available diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/__init__.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/__init__.py index 4775164d2e41..bb15f585c444 100644 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/__init__.py +++ b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/__init__.py @@ -13,7 +13,7 @@ from .applications_operations import ApplicationsOperations from .locations_operations import LocationsOperations from .configurations_operations import ConfigurationsOperations -from .extension_operations import ExtensionOperations +from .extensions_operations import ExtensionsOperations from .script_actions_operations import ScriptActionsOperations from .script_execution_history_operations import ScriptExecutionHistoryOperations from .operations import Operations @@ -23,7 +23,7 @@ 'ApplicationsOperations', 'LocationsOperations', 'ConfigurationsOperations', - 'ExtensionOperations', + 'ExtensionsOperations', 'ScriptActionsOperations', 'ScriptExecutionHistoryOperations', 'Operations', diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/applications_operations.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/applications_operations.py index ac32a4c915fb..72a5618c5fba 100644 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/applications_operations.py +++ b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/applications_operations.py @@ -24,7 +24,7 @@ class ApplicationsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The HDInsight client API Version. Constant value: "2015-03-01-preview". + :ivar api_version: The HDInsight client API Version. Constant value: "2018-06-01-preview". """ models = models @@ -34,11 +34,11 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2015-03-01-preview" + self.api_version = "2018-06-01-preview" self.config = config - def list( + def list_by_cluster( self, resource_group_name, cluster_name, custom_headers=None, raw=False, **operation_config): """Lists all of the applications for the HDInsight cluster. @@ -61,7 +61,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = self.list.metadata['url'] + url = self.list_by_cluster.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), @@ -105,11 +105,11 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized - list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/applications'} + list_by_cluster.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/applications'} def get( self, resource_group_name, cluster_name, application_name, custom_headers=None, raw=False, **operation_config): - """Lists properties of the specified application. + """Gets properties of the specified application. :param resource_group_name: The name of the resource group. :type resource_group_name: str diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/clusters_operations.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/clusters_operations.py index fd2103ccfcbb..7b8df20b343d 100644 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/clusters_operations.py +++ b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/clusters_operations.py @@ -24,7 +24,7 @@ class ClustersOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The HDInsight client API Version. Constant value: "2015-03-01-preview". + :ivar api_version: The HDInsight client API Version. Constant value: "2018-06-01-preview". :ivar role_name: The constant value for the roleName. Constant value: "workernode". """ @@ -35,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2015-03-01-preview" + self.api_version = "2018-06-01-preview" self.role_name = "workernode" self.config = config @@ -567,6 +567,92 @@ def internal_paging(next_link=None, raw=False): list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.HDInsight/clusters'} + def _rotate_disk_encryption_key_initial( + self, resource_group_name, cluster_name, parameters, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.rotate_disk_encryption_key.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'clusterName': self._serialize.url("cluster_name", cluster_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'ClusterDiskEncryptionParameters') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 202]: + raise models.ErrorResponseException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def rotate_disk_encryption_key( + self, resource_group_name, cluster_name, parameters, custom_headers=None, raw=False, polling=True, **operation_config): + """Rotate disk encryption key of the specified HDInsight cluster. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param cluster_name: The name of the cluster. + :type cluster_name: str + :param parameters: The parameters for the disk encryption operation. + :type parameters: + ~azure.mgmt.hdinsight.models.ClusterDiskEncryptionParameters + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: + :class:`ErrorResponseException` + """ + raw_result = self._rotate_disk_encryption_key_initial( + resource_group_name=resource_group_name, + cluster_name=cluster_name, + parameters=parameters, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + rotate_disk_encryption_key.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/rotatediskencryptionkey'} + + def _execute_script_actions_initial( self, resource_group_name, cluster_name, persist_on_success, script_actions=None, custom_headers=None, raw=False, **operation_config): parameters = models.ExecuteScriptActionParameters(script_actions=script_actions, persist_on_success=persist_on_success) diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/configurations_operations.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/configurations_operations.py index c34316103990..c0b9a95c02f9 100644 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/configurations_operations.py +++ b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/configurations_operations.py @@ -24,7 +24,7 @@ class ConfigurationsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The HDInsight client API Version. Constant value: "2015-03-01-preview". + :ivar api_version: The HDInsight client API Version. Constant value: "2018-06-01-preview". """ models = models @@ -34,15 +34,15 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2015-03-01-preview" + self.api_version = "2018-06-01-preview" self.config = config - def _update_http_settings_initial( + def _update_initial( self, resource_group_name, cluster_name, configuration_name, parameters, custom_headers=None, raw=False, **operation_config): # Construct URL - url = self.update_http_settings.metadata['url'] + url = self.update.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), @@ -79,9 +79,9 @@ def _update_http_settings_initial( client_raw_response = ClientRawResponse(None, response) return client_raw_response - def update_http_settings( + def update( self, resource_group_name, cluster_name, configuration_name, parameters, custom_headers=None, raw=False, polling=True, **operation_config): - """Configures the HTTP settings on the specified cluster. + """Configures the configuration on the specified cluster. :param resource_group_name: The name of the resource group. :type resource_group_name: str @@ -103,7 +103,7 @@ def update_http_settings( :raises: :class:`ErrorResponseException` """ - raw_result = self._update_http_settings_initial( + raw_result = self._update_initial( resource_group_name=resource_group_name, cluster_name=cluster_name, configuration_name=configuration_name, @@ -125,7 +125,7 @@ def get_long_running_output(response): elif polling is False: polling_method = NoPolling() else: polling_method = polling return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - update_http_settings.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/configurations/{configurationName}'} + update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/configurations/{configurationName}'} def get( self, resource_group_name, cluster_name, configuration_name, custom_headers=None, raw=False, **operation_config): diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/extension_operations.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/extensions_operations.py similarity index 86% rename from azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/extension_operations.py rename to azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/extensions_operations.py index a9296779ebed..b7c857f73ac3 100644 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/extension_operations.py +++ b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/extensions_operations.py @@ -17,14 +17,14 @@ from .. import models -class ExtensionOperations(object): - """ExtensionOperations operations. +class ExtensionsOperations(object): + """ExtensionsOperations operations. :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The HDInsight client API Version. Constant value: "2015-03-01-preview". + :ivar api_version: The HDInsight client API Version. Constant value: "2018-06-01-preview". """ models = models @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2015-03-01-preview" + self.api_version = "2018-06-01-preview" self.config = config @@ -271,32 +271,9 @@ def get_long_running_output(response): return LROPoller(self._client, raw_result, get_long_running_output, polling_method) disable_monitoring.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/clustermonitoring'} - def create( - self, resource_group_name, cluster_name, extension_name, workspace_id=None, primary_key=None, custom_headers=None, raw=False, **operation_config): - """Creates an HDInsight cluster extension. - :param resource_group_name: The name of the resource group. - :type resource_group_name: str - :param cluster_name: The name of the cluster. - :type cluster_name: str - :param extension_name: The name of the cluster extension. - :type extension_name: str - :param workspace_id: The workspace ID for the cluster monitoring - extension. - :type workspace_id: str - :param primary_key: The certificate for the cluster monitoring - extensions. - :type primary_key: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: None or ClientRawResponse if raw=true - :rtype: None or ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ + def _create_initial( + self, resource_group_name, cluster_name, extension_name, workspace_id=None, primary_key=None, custom_headers=None, raw=False, **operation_config): parameters = models.Extension(workspace_id=workspace_id, primary_key=primary_key) # Construct URL @@ -336,6 +313,58 @@ def create( if raw: client_raw_response = ClientRawResponse(None, response) return client_raw_response + + def create( + self, resource_group_name, cluster_name, extension_name, workspace_id=None, primary_key=None, custom_headers=None, raw=False, polling=True, **operation_config): + """Creates an HDInsight cluster extension. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param cluster_name: The name of the cluster. + :type cluster_name: str + :param extension_name: The name of the cluster extension. + :type extension_name: str + :param workspace_id: The workspace ID for the cluster monitoring + extension. + :type workspace_id: str + :param primary_key: The certificate for the cluster monitoring + extensions. + :type primary_key: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: + :class:`ErrorResponseException` + """ + raw_result = self._create_initial( + resource_group_name=resource_group_name, + cluster_name=cluster_name, + extension_name=extension_name, + workspace_id=workspace_id, + primary_key=primary_key, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/{extensionName}'} def get( @@ -403,26 +432,9 @@ def get( return deserialized get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/{extensionName}'} - def delete( - self, resource_group_name, cluster_name, extension_name, custom_headers=None, raw=False, **operation_config): - """Deletes the specified extension for HDInsight cluster. - :param resource_group_name: The name of the resource group. - :type resource_group_name: str - :param cluster_name: The name of the cluster. - :type cluster_name: str - :param extension_name: The name of the cluster extension. - :type extension_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: None or ClientRawResponse if raw=true - :rtype: None or ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ + def _delete_initial( + self, resource_group_name, cluster_name, extension_name, custom_headers=None, raw=False, **operation_config): # Construct URL url = self.delete.metadata['url'] path_format_arguments = { @@ -456,4 +468,48 @@ def delete( if raw: client_raw_response = ClientRawResponse(None, response) return client_raw_response + + def delete( + self, resource_group_name, cluster_name, extension_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Deletes the specified extension for HDInsight cluster. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param cluster_name: The name of the cluster. + :type cluster_name: str + :param extension_name: The name of the cluster extension. + :type extension_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: + :class:`ErrorResponseException` + """ + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + cluster_name=cluster_name, + extension_name=extension_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/extensions/{extensionName}'} diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/locations_operations.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/locations_operations.py index fddc5bd6cbd8..a23feb791349 100644 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/locations_operations.py +++ b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/locations_operations.py @@ -22,7 +22,7 @@ class LocationsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The HDInsight client API Version. Constant value: "2015-03-01-preview". + :ivar api_version: The HDInsight client API Version. Constant value: "2018-06-01-preview". """ models = models @@ -32,73 +32,15 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2015-03-01-preview" + self.api_version = "2018-06-01-preview" self.config = config - def get_capabilities( - self, location, custom_headers=None, raw=False, **operation_config): - """Gets the capabilities for the specified location. - - :param location: The location. - :type location: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: CapabilitiesResult or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.hdinsight.models.CapabilitiesResult or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = self.get_capabilities.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'location': self._serialize.url("location", location, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Accept'] = 'application/json' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters, header_parameters) - response = self._client.send(request, stream=False, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('CapabilitiesResult', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get_capabilities.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.HDInsight/locations/{location}/capabilities'} - def list_usages( self, location, custom_headers=None, raw=False, **operation_config): """Lists the usages for the specified location. - :param location: The location. + :param location: The location to get capabilities for. :type location: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/operations.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/operations.py index 8978d9d1a856..518df6a15b9c 100644 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/operations.py +++ b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/operations.py @@ -22,7 +22,7 @@ class Operations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The HDInsight client API Version. Constant value: "2015-03-01-preview". + :ivar api_version: The HDInsight client API Version. Constant value: "2018-06-01-preview". """ models = models @@ -32,7 +32,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2015-03-01-preview" + self.api_version = "2018-06-01-preview" self.config = config diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/script_actions_operations.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/script_actions_operations.py index 23b9d13e4e60..f69fe8b17673 100644 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/script_actions_operations.py +++ b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/script_actions_operations.py @@ -22,7 +22,7 @@ class ScriptActionsOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The HDInsight client API Version. Constant value: "2015-03-01-preview". + :ivar api_version: The HDInsight client API Version. Constant value: "2018-06-01-preview". """ models = models @@ -32,7 +32,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2015-03-01-preview" + self.api_version = "2018-06-01-preview" self.config = config @@ -91,7 +91,7 @@ def delete( return client_raw_response delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/scriptActions/{scriptName}'} - def list_persisted_scripts( + def list_by_cluster( self, resource_group_name, cluster_name, custom_headers=None, raw=False, **operation_config): """Lists all the persisted script actions for the specified cluster. @@ -114,7 +114,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = self.list_persisted_scripts.metadata['url'] + url = self.list_by_cluster.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), @@ -158,7 +158,7 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized - list_persisted_scripts.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/scriptActions'} + list_by_cluster.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/scriptActions'} def get_execution_detail( self, resource_group_name, cluster_name, script_execution_id, custom_headers=None, raw=False, **operation_config): diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/script_execution_history_operations.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/script_execution_history_operations.py index 1deb836e4bbb..36cfbb6fdb97 100644 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/script_execution_history_operations.py +++ b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/operations/script_execution_history_operations.py @@ -22,7 +22,7 @@ class ScriptExecutionHistoryOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The HDInsight client API Version. Constant value: "2015-03-01-preview". + :ivar api_version: The HDInsight client API Version. Constant value: "2018-06-01-preview". """ models = models @@ -32,11 +32,11 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2015-03-01-preview" + self.api_version = "2018-06-01-preview" self.config = config - def list( + def list_by_cluster( self, resource_group_name, cluster_name, custom_headers=None, raw=False, **operation_config): """Lists all scripts' execution history for the specified cluster. @@ -59,7 +59,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = self.list.metadata['url'] + url = self.list_by_cluster.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), @@ -103,7 +103,7 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized - list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/scriptExecutionHistory'} + list_by_cluster.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/scriptExecutionHistory'} def promote( self, resource_group_name, cluster_name, script_execution_id, custom_headers=None, raw=False, **operation_config): diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/version.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/version.py index e0ec669828cb..9bd1dfac7ecb 100644 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/version.py +++ b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/version.py @@ -9,5 +9,5 @@ # regenerated. # -------------------------------------------------------------------------- -VERSION = "0.1.0" +VERSION = "0.2.0" diff --git a/azure-mgmt-hdinsight/test/recordings/test_mgmt_hdinsight.test_cluster_create.yaml b/azure-mgmt-hdinsight/test/recordings/test_mgmt_hdinsight.test_cluster_create.yaml index 81678ca067be..39754e01cef5 100644 --- a/azure-mgmt-hdinsight/test/recordings/test_mgmt_hdinsight.test_cluster_create.yaml +++ b/azure-mgmt-hdinsight/test/recordings/test_mgmt_hdinsight.test_cluster_create.yaml @@ -1,45 +1,44 @@ interactions: - request: - body: !!python/unicode '{"tags": {}, "properties": {"computeProfile": {"roles": - [{"hardwareProfile": {"vmSize": "Large"}, "osProfile": {"linuxOperatingSystemProfile": - {"username": "sshuser", "password": "Password1!"}}, "targetInstanceCount": 2, - "name": "headnode"}, {"hardwareProfile": {"vmSize": "Large"}, "osProfile": {"linuxOperatingSystemProfile": - {"username": "sshuser", "password": "Password1!"}}, "targetInstanceCount": 1, - "name": "workernode"}]}, "tier": "Standard", "clusterVersion": "3.6", "clusterDefinition": - {"kind": "hadoop", "configurations": {"gateway": {"restAuthCredential.enabled_credential": + body: '{"location": "North Central US", "tags": {}, "properties": {"clusterVersion": + "3.6", "osType": "Linux", "tier": "Standard", "clusterDefinition": {"kind": + "hadoop", "configurations": {"gateway": {"restAuthCredential.enabled_credential": "True", "restAuthCredential.username": "admin", "restAuthCredential.password": - "Password1!"}}}, "storageProfile": {"storageaccounts": [{"key": "E9Rz4cwkow1pdAXMEheSehexmUM2gqO455grmiK48TwgBqbAbBfUKLF78MRdkhBPo69qc4UX+BDUHpeJffHLOA==", - "container": "hdisdk-py-humboldt42fd1018", "name": "wawonsdkncentralus.blob.core.windows.net", - "isDefault": true}]}, "osType": "Linux"}, "location": "North Central US"}' + "Password1!"}}}, "computeProfile": {"roles": [{"name": "headnode", "targetInstanceCount": + 2, "hardwareProfile": {"vmSize": "Large"}, "osProfile": {"linuxOperatingSystemProfile": + {"username": "sshuser", "password": "Password1!"}}}, {"name": "workernode", + "targetInstanceCount": 1, "hardwareProfile": {"vmSize": "Large"}, "osProfile": + {"linuxOperatingSystemProfile": {"username": "sshuser", "password": "Password1!"}}}]}, + "storageProfile": {"storageaccounts": [{"name": "hdipy42fd1018.blob.core.windows.net", + "isDefault": true, "container": "hdisdk-py-humboldt42fd1018", "key": "Qt30F256o/9CBXlI63MPOhBI7aGSem+1Ub1hivqizOAjynp7hEgKrJN/+7pUZKy+KRuUS46SSYV5ztQvXWP+oQ=="}]}}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - Content-Length: ['991'] + Content-Length: ['986'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] accept-language: [en-US] method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018","name":"hdisdk-py-humboldt42fd1018","type":"Microsoft.HDInsight/clusters","location":"North - Central US","etag":"32e11f66-c84d-4f5f-b65a-b4c10f79be41","tags":{},"properties":{"clusterVersion":"3.6.1000.65","osType":"Linux","clusterDefinition":{"blueprint":"https://blueprints.azurehdinsight.net/hadoop-3.6.1000.65.1807162004.json","kind":"hadoop","componentVersion":{"hadoop":"2.7"}},"computeProfile":{"roles":[{"name":"headnode","targetInstanceCount":2,"hardwareProfile":{"vmSize":"Large"},"osProfile":{"linuxOperatingSystemProfile":{"username":"sshuser"}},"encryptDataDisks":false},{"name":"workernode","targetInstanceCount":1,"hardwareProfile":{"vmSize":"Large"},"osProfile":{"linuxOperatingSystemProfile":{"username":"sshuser"}},"encryptDataDisks":false}]},"provisioningState":"InProgress","clusterState":"Accepted","createdDate":"2018-08-07T03:02:48.57","quotaInfo":{"coresUsed":12},"tier":"standard"}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018","name":"hdisdk-py-humboldt42fd1018","type":"Microsoft.HDInsight/clusters","location":"North + Central US","etag":"9ed0dec5-36b8-44ba-ad50-047ca398114f","tags":{},"properties":{"clusterVersion":"3.6.1000.67","clusterHdpVersion":"","osType":"Linux","clusterDefinition":{"blueprint":"https://blueprints.azurehdinsight.net/hadoop-3.6.1000.67.1812021626.json","kind":"hadoop","componentVersion":{"hadoop":"2.7"}},"computeProfile":{"roles":[{"name":"headnode","targetInstanceCount":2,"hardwareProfile":{"vmSize":"Large"},"osProfile":{"linuxOperatingSystemProfile":{"username":"sshuser"}},"encryptDataDisks":false},{"name":"workernode","targetInstanceCount":1,"hardwareProfile":{"vmSize":"Large"},"osProfile":{"linuxOperatingSystemProfile":{"username":"sshuser"}},"encryptDataDisks":false}]},"provisioningState":"InProgress","clusterState":"Accepted","createdDate":"2018-12-11T09:41:55.573","quotaInfo":{"coresUsed":12},"tier":"standard"}}'} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2015-03-01-preview'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview'] cache-control: [no-cache] - content-length: ['1095'] + content-length: ['1119'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:02:48 GMT'] - etag: ['"32e11f66-c84d-4f5f-b65a-b4c10f79be41"'] + date: ['Tue, 11 Dec 2018 09:41:56 GMT'] + etag: ['"9ed0dec5-36b8-44ba-ad50-047ca398114f"'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff] - x-ms-hdi-clusteruri: ['https://management.azure.com/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018?api-version=2015-03-01-preview'] + x-ms-hdi-clusteruri: ['https://management.azure.com/subscriptions/964c10bb-8a6c-43bc-83d3-6b318c6c7305/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018?api-version=2018-06-01-preview'] x-ms-hdi-matched-rule: [ClusterResourcesAndSubResources] x-ms-hdi-routed-to: [RegionalRp] x-ms-hdi-served-by: [northcentralus] @@ -51,18 +50,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:03:19 GMT'] + date: ['Tue, 11 Dec 2018 09:42:26 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -79,18 +77,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:03:50 GMT'] + date: ['Tue, 11 Dec 2018 09:42:57 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -107,18 +104,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:04:21 GMT'] + date: ['Tue, 11 Dec 2018 09:43:28 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -135,18 +131,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:04:51 GMT'] + date: ['Tue, 11 Dec 2018 09:44:00 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -163,18 +158,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:05:22 GMT'] + date: ['Tue, 11 Dec 2018 09:44:30 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -191,18 +185,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:05:53 GMT'] + date: ['Tue, 11 Dec 2018 09:45:01 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -219,18 +212,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:06:24 GMT'] + date: ['Tue, 11 Dec 2018 09:45:32 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -247,18 +239,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:06:54 GMT'] + date: ['Tue, 11 Dec 2018 09:46:03 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -275,18 +266,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:07:25 GMT'] + date: ['Tue, 11 Dec 2018 09:46:34 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -303,18 +293,43 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"error":{"code":"GatewayTimeout","message":"The gateway did not + receive a response from ''Microsoft.HDInsight'' within the specified time + period."}}'} + headers: + cache-control: [no-cache] + connection: [close] + content-length: ['147'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 11 Dec 2018 09:47:24 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-failure-cause: [service] + status: {code: 504, message: Gateway Timeout} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview + response: + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:07:56 GMT'] + date: ['Tue, 11 Dec 2018 09:47:26 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -331,18 +346,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:08:26 GMT'] + date: ['Tue, 11 Dec 2018 09:47:56 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -359,18 +373,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:08:57 GMT'] + date: ['Tue, 11 Dec 2018 09:48:27 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -387,18 +400,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:09:27 GMT'] + date: ['Tue, 11 Dec 2018 09:48:58 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -415,18 +427,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:09:59 GMT'] + date: ['Tue, 11 Dec 2018 09:49:30 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -443,18 +454,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:10:30 GMT'] + date: ['Tue, 11 Dec 2018 09:50:01 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -471,18 +481,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:11:01 GMT'] + date: ['Tue, 11 Dec 2018 09:50:31 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -499,18 +508,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:11:32 GMT'] + date: ['Tue, 11 Dec 2018 09:51:02 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -527,18 +535,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:12:02 GMT'] + date: ['Tue, 11 Dec 2018 09:51:33 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -555,18 +562,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:12:33 GMT'] + date: ['Tue, 11 Dec 2018 09:52:04 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -583,18 +589,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:13:03 GMT'] + date: ['Tue, 11 Dec 2018 09:52:35 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -611,18 +616,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:13:35 GMT'] + date: ['Tue, 11 Dec 2018 09:53:06 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -639,18 +643,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:14:06 GMT'] + date: ['Tue, 11 Dec 2018 09:53:37 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -667,18 +670,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:14:36 GMT'] + date: ['Tue, 11 Dec 2018 09:54:07 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -695,18 +697,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:15:07 GMT'] + date: ['Tue, 11 Dec 2018 09:54:39 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -723,18 +724,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:15:37 GMT'] + date: ['Tue, 11 Dec 2018 09:55:10 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -751,18 +751,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:16:08 GMT'] + date: ['Tue, 11 Dec 2018 09:55:41 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -779,18 +778,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:16:38 GMT'] + date: ['Tue, 11 Dec 2018 09:56:11 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -807,18 +805,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:17:09 GMT'] + date: ['Tue, 11 Dec 2018 09:56:42 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -835,18 +832,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"Succeeded"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] - content-length: ['22'] + content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:17:40 GMT'] + date: ['Tue, 11 Dec 2018 09:57:13 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -863,19 +859,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018","name":"hdisdk-py-humboldt42fd1018","type":"Microsoft.HDInsight/clusters","location":"North - Central US","etag":"32e11f66-c84d-4f5f-b65a-b4c10f79be41","tags":{},"properties":{"clusterVersion":"3.6.1000.65","osType":"Linux","clusterDefinition":{"blueprint":"https://blueprints.azurehdinsight.net/hadoop-3.6.1000.65.1807162004.json","kind":"hadoop","componentVersion":{"hadoop":"2.7"}},"computeProfile":{"roles":[{"name":"headnode","targetInstanceCount":2,"hardwareProfile":{"vmSize":"Large"},"osProfile":{"linuxOperatingSystemProfile":{"username":"sshuser"}},"encryptDataDisks":false},{"name":"workernode","targetInstanceCount":1,"hardwareProfile":{"vmSize":"Large"},"osProfile":{"linuxOperatingSystemProfile":{"username":"sshuser"}},"encryptDataDisks":false},{"name":"zookeepernode","targetInstanceCount":3,"hardwareProfile":{"vmSize":"Medium"},"osProfile":{"linuxOperatingSystemProfile":{"username":"sshuser"}},"encryptDataDisks":false}]},"provisioningState":"Succeeded","clusterState":"Running","createdDate":"2018-08-07T03:02:48.57","quotaInfo":{"coresUsed":12},"connectivityEndpoints":[{"name":"SSH","protocol":"TCP","location":"hdisdk-py-humboldt42fd1018-ssh.azurehdinsight.net","port":22},{"name":"HTTPS","protocol":"TCP","location":"hdisdk-py-humboldt42fd1018.azurehdinsight.net","port":443}],"tier":"standard"}}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] - content-length: ['1507'] + content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:17:41 GMT'] + date: ['Tue, 11 Dec 2018 09:57:44 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -887,54 +881,49 @@ interactions: x-ms-hdi-served-by: [northcentralus] status: {code: 200, message: OK} - request: - body: !!python/unicode '{"targetInstanceCount": 2}' + body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - Content-Length: ['26'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/roles/workernode/resize?api-version=2015-03-01-preview + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview response: - body: {string: !!python/unicode ''} + body: {string: '{"status":"InProgress"}'} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/a2c15844-f76e-4c87-b05f-77b3ded0a44e-0-r?api-version=2015-03-01-preview'] cache-control: [no-cache] - content-length: ['0'] - date: ['Tue, 07 Aug 2018 03:17:42 GMT'] + content-length: ['23'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 11 Dec 2018 09:58:15 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/operationresults/a2c15844-f76e-4c87-b05f-77b3ded0a44e-0-r?api-version=2015-03-01-preview'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] x-content-type-options: [nosniff] x-ms-hdi-matched-rule: [ClusterResourcesAndSubResources] x-ms-hdi-routed-to: [RegionalRp] x-ms-hdi-served-by: [northcentralus] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 202, message: Accepted} + status: {code: 200, message: OK} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/a2c15844-f76e-4c87-b05f-77b3ded0a44e-0-r?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:18:43 GMT'] + date: ['Tue, 11 Dec 2018 09:58:47 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -951,18 +940,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/a2c15844-f76e-4c87-b05f-77b3ded0a44e-0-r?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:19:14 GMT'] + date: ['Tue, 11 Dec 2018 09:59:18 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -979,18 +967,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/a2c15844-f76e-4c87-b05f-77b3ded0a44e-0-r?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:19:45 GMT'] + date: ['Tue, 11 Dec 2018 09:59:49 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -1007,18 +994,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/a2c15844-f76e-4c87-b05f-77b3ded0a44e-0-r?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:20:15 GMT'] + date: ['Tue, 11 Dec 2018 10:00:19 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -1035,18 +1021,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/a2c15844-f76e-4c87-b05f-77b3ded0a44e-0-r?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:20:46 GMT'] + date: ['Tue, 11 Dec 2018 10:00:51 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -1063,18 +1048,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/a2c15844-f76e-4c87-b05f-77b3ded0a44e-0-r?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:21:17 GMT'] + date: ['Tue, 11 Dec 2018 10:01:21 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -1091,18 +1075,71 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/a2c15844-f76e-4c87-b05f-77b3ded0a44e-0-r?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:21:47 GMT'] + date: ['Tue, 11 Dec 2018 10:01:52 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-ms-hdi-matched-rule: [ClusterResourcesAndSubResources] + x-ms-hdi-routed-to: [RegionalRp] + x-ms-hdi-served-by: [northcentralus] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview + response: + body: {string: '{"status":"InProgress"}'} + headers: + cache-control: [no-cache] + content-length: ['23'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 11 Dec 2018 10:02:23 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-ms-hdi-matched-rule: [ClusterResourcesAndSubResources] + x-ms-hdi-routed-to: [RegionalRp] + x-ms-hdi-served-by: [northcentralus] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/create?api-version=2018-06-01-preview + response: + body: {string: '{"status":"Succeeded"}'} + headers: + cache-control: [no-cache] + content-length: ['22'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 11 Dec 2018 10:02:54 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -1119,18 +1156,75 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/a2c15844-f76e-4c87-b05f-77b3ded0a44e-0-r?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018","name":"hdisdk-py-humboldt42fd1018","type":"Microsoft.HDInsight/clusters","location":"North + Central US","etag":"9ed0dec5-36b8-44ba-ad50-047ca398114f","tags":{},"properties":{"clusterVersion":"3.6.1000.67","clusterHdpVersion":"2.6.5.3005-23","osType":"Linux","clusterDefinition":{"blueprint":"https://blueprints.azurehdinsight.net/hadoop-3.6.1000.67.1812021626.json","kind":"hadoop","componentVersion":{"hadoop":"2.7"}},"computeProfile":{"roles":[{"name":"headnode","targetInstanceCount":2,"hardwareProfile":{"vmSize":"Large"},"osProfile":{"linuxOperatingSystemProfile":{"username":"sshuser"}},"encryptDataDisks":false},{"name":"workernode","targetInstanceCount":1,"hardwareProfile":{"vmSize":"Large"},"osProfile":{"linuxOperatingSystemProfile":{"username":"sshuser"}},"encryptDataDisks":false},{"name":"zookeepernode","targetInstanceCount":3,"hardwareProfile":{"vmSize":"Medium"},"osProfile":{"linuxOperatingSystemProfile":{"username":"sshuser"}},"encryptDataDisks":false}]},"provisioningState":"Succeeded","clusterState":"Running","createdDate":"2018-12-11T09:41:55.573","quotaInfo":{"coresUsed":12},"connectivityEndpoints":[{"name":"SSH","protocol":"TCP","location":"hdisdk-py-humboldt42fd1018-ssh.azurehdinsight.net","port":22},{"name":"HTTPS","protocol":"TCP","location":"hdisdk-py-humboldt42fd1018.azurehdinsight.net","port":443}],"tier":"standard"}}'} + headers: + cache-control: [no-cache] + content-length: ['1544'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 11 Dec 2018 10:02:56 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-ms-hdi-matched-rule: [ClusterResourcesAndSubResources] + x-ms-hdi-routed-to: [RegionalRp] + x-ms-hdi-served-by: [northcentralus] + status: {code: 200, message: OK} +- request: + body: '{"targetInstanceCount": 2}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + Content-Length: ['26'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] + accept-language: [en-US] + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/roles/workernode/resize?api-version=2018-06-01-preview + response: + body: {string: ''} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/2e073859-7036-4eb6-845b-09d3abf956d0-0-r?api-version=2018-06-01-preview'] + cache-control: [no-cache] + content-length: ['0'] + date: ['Tue, 11 Dec 2018 10:02:57 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/operationresults/2e073859-7036-4eb6-845b-09d3abf956d0-0-r?api-version=2018-06-01-preview'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-hdi-matched-rule: [ClusterResourcesAndSubResources] + x-ms-hdi-routed-to: [RegionalRp] + x-ms-hdi-served-by: [northcentralus] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/2e073859-7036-4eb6-845b-09d3abf956d0-0-r?api-version=2018-06-01-preview + response: + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:22:17 GMT'] + date: ['Tue, 11 Dec 2018 10:03:58 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -1147,18 +1241,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/a2c15844-f76e-4c87-b05f-77b3ded0a44e-0-r?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/2e073859-7036-4eb6-845b-09d3abf956d0-0-r?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:22:48 GMT'] + date: ['Tue, 11 Dec 2018 10:04:29 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -1175,18 +1268,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/a2c15844-f76e-4c87-b05f-77b3ded0a44e-0-r?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/2e073859-7036-4eb6-845b-09d3abf956d0-0-r?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:23:20 GMT'] + date: ['Tue, 11 Dec 2018 10:05:00 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -1203,18 +1295,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/a2c15844-f76e-4c87-b05f-77b3ded0a44e-0-r?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/2e073859-7036-4eb6-845b-09d3abf956d0-0-r?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:23:49 GMT'] + date: ['Tue, 11 Dec 2018 10:05:30 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -1231,18 +1322,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/a2c15844-f76e-4c87-b05f-77b3ded0a44e-0-r?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/2e073859-7036-4eb6-845b-09d3abf956d0-0-r?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:24:20 GMT'] + date: ['Tue, 11 Dec 2018 10:06:00 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -1259,18 +1349,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/a2c15844-f76e-4c87-b05f-77b3ded0a44e-0-r?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/2e073859-7036-4eb6-845b-09d3abf956d0-0-r?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:24:50 GMT'] + date: ['Tue, 11 Dec 2018 10:06:31 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -1287,18 +1376,152 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/a2c15844-f76e-4c87-b05f-77b3ded0a44e-0-r?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/2e073859-7036-4eb6-845b-09d3abf956d0-0-r?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"Succeeded"}'} + body: {string: '{"status":"InProgress"}'} + headers: + cache-control: [no-cache] + content-length: ['23'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 11 Dec 2018 10:07:02 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-ms-hdi-matched-rule: [ClusterResourcesAndSubResources] + x-ms-hdi-routed-to: [RegionalRp] + x-ms-hdi-served-by: [northcentralus] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/2e073859-7036-4eb6-845b-09d3abf956d0-0-r?api-version=2018-06-01-preview + response: + body: {string: '{"status":"InProgress"}'} + headers: + cache-control: [no-cache] + content-length: ['23'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 11 Dec 2018 10:07:33 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-ms-hdi-matched-rule: [ClusterResourcesAndSubResources] + x-ms-hdi-routed-to: [RegionalRp] + x-ms-hdi-served-by: [northcentralus] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/2e073859-7036-4eb6-845b-09d3abf956d0-0-r?api-version=2018-06-01-preview + response: + body: {string: '{"status":"InProgress"}'} + headers: + cache-control: [no-cache] + content-length: ['23'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 11 Dec 2018 10:08:03 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-ms-hdi-matched-rule: [ClusterResourcesAndSubResources] + x-ms-hdi-routed-to: [RegionalRp] + x-ms-hdi-served-by: [northcentralus] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/2e073859-7036-4eb6-845b-09d3abf956d0-0-r?api-version=2018-06-01-preview + response: + body: {string: '{"status":"InProgress"}'} + headers: + cache-control: [no-cache] + content-length: ['23'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 11 Dec 2018 10:08:34 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-ms-hdi-matched-rule: [ClusterResourcesAndSubResources] + x-ms-hdi-routed-to: [RegionalRp] + x-ms-hdi-served-by: [northcentralus] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/2e073859-7036-4eb6-845b-09d3abf956d0-0-r?api-version=2018-06-01-preview + response: + body: {string: '{"status":"InProgress"}'} + headers: + cache-control: [no-cache] + content-length: ['23'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 11 Dec 2018 10:09:05 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-ms-hdi-matched-rule: [ClusterResourcesAndSubResources] + x-ms-hdi-routed-to: [RegionalRp] + x-ms-hdi-served-by: [northcentralus] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018/azureasyncoperations/2e073859-7036-4eb6-845b-09d3abf956d0-0-r?api-version=2018-06-01-preview + response: + body: {string: '{"status":"Succeeded"}'} headers: cache-control: [no-cache] content-length: ['22'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:25:21 GMT'] + date: ['Tue, 11 Dec 2018 10:09:36 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -1317,21 +1540,20 @@ interactions: Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] accept-language: [en-US] method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_mgmt_hdinsight_test_cluster_create42fd1018/providers/Microsoft.HDInsight/clusters/hdisdk-py-humboldt42fd1018?api-version=2018-06-01-preview response: - body: {string: !!python/unicode ''} + body: {string: ''} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HDInsight/locations/North%20Central%20US/azureasyncoperations/58fac6c1-5dc4-4462-bfcd-881dee581f12-0-r?api-version=2015-03-01-preview'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HDInsight/locations/North%20Central%20US/azureasyncoperations/e83cb369-bb18-4e9e-9cd7-8ba4b9e88643-0-r?api-version=2018-06-01-preview'] cache-control: [no-cache] content-length: ['0'] - date: ['Tue, 07 Aug 2018 03:25:23 GMT'] + date: ['Tue, 11 Dec 2018 10:09:38 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HDInsight/locations/North%20Central%20US/operationresults/58fac6c1-5dc4-4462-bfcd-881dee581f12-0-r?api-version=2015-03-01-preview'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HDInsight/locations/North%20Central%20US/operationresults/e83cb369-bb18-4e9e-9cd7-8ba4b9e88643-0-r?api-version=2018-06-01-preview'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] @@ -1346,18 +1568,44 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HDInsight/locations/North%20Central%20US/azureasyncoperations/e83cb369-bb18-4e9e-9cd7-8ba4b9e88643-0-r?api-version=2018-06-01-preview + response: + body: {string: '{"status":"InProgress"}'} + headers: + cache-control: [no-cache] + content-length: ['23'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 11 Dec 2018 10:10:39 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-ms-hdi-matched-rule: [AsyncOperationsWithRegionalSuffix] + x-ms-hdi-routed-to: [RegionalRp] + x-ms-hdi-served-by: [northcentralus] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + Connection: [keep-alive] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HDInsight/locations/North%20Central%20US/azureasyncoperations/58fac6c1-5dc4-4462-bfcd-881dee581f12-0-r?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HDInsight/locations/North%20Central%20US/azureasyncoperations/e83cb369-bb18-4e9e-9cd7-8ba4b9e88643-0-r?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"InProgress"}'} + body: {string: '{"status":"InProgress"}'} headers: cache-control: [no-cache] content-length: ['23'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:26:24 GMT'] + date: ['Tue, 11 Dec 2018 10:11:09 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -1374,18 +1622,17 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - User-Agent: [python/2.7.15rc1 (Linux-4.15.0-1018-azure-x86_64-with-Ubuntu-18.04-bionic) - requests/2.19.1 msrest/0.5.4 msrest_azure/0.4.34 azure-mgmt-hdinsight/0.1.0 - Azure-SDK-For-Python] + User-Agent: [python/3.7.1 (Windows-10-10.0.14393-SP0) msrest/0.6.2 msrest_azure/0.4.34 + azure-mgmt-hdinsight/0.1.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HDInsight/locations/North%20Central%20US/azureasyncoperations/58fac6c1-5dc4-4462-bfcd-881dee581f12-0-r?api-version=2015-03-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.HDInsight/locations/North%20Central%20US/azureasyncoperations/e83cb369-bb18-4e9e-9cd7-8ba4b9e88643-0-r?api-version=2018-06-01-preview response: - body: {string: !!python/unicode '{"status":"Succeeded"}'} + body: {string: '{"status":"Succeeded"}'} headers: cache-control: [no-cache] content-length: ['22'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Aug 2018 03:26:54 GMT'] + date: ['Tue, 11 Dec 2018 10:11:40 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -1396,4 +1643,4 @@ interactions: x-ms-hdi-routed-to: [RegionalRp] x-ms-hdi-served-by: [northcentralus] status: {code: 200, message: OK} -version: 1 +version: 1 \ No newline at end of file diff --git a/azure-mgmt-hdinsight/test/test_mgmt_hdinsight.py b/azure-mgmt-hdinsight/test/test_mgmt_hdinsight.py index 5896b748f483..0d76464b8587 100644 --- a/azure-mgmt-hdinsight/test/test_mgmt_hdinsight.py +++ b/azure-mgmt-hdinsight/test/test_mgmt_hdinsight.py @@ -9,7 +9,7 @@ from azure.mgmt.hdinsight import HDInsightManagementClient from azure.mgmt.hdinsight.models import * -from devtools_testutils import AzureMgmtTestCase, ResourceGroupPreparer +from devtools_testutils import AzureMgmtTestCase, ResourceGroupPreparer, StorageAccountPreparer, FakeStorageAccount class HDInsightTestConfig: @@ -19,11 +19,12 @@ class HDInsightTestConfig: cluster_password = "Password1!" ssh_username = "sshuser" ssh_password = "Password1!" - storage_account = "wawonsdkncentralus.blob.core.windows.net" - - # Sensitive test configs - storage_account_key = "" + storage_account_suffix = ".blob.core.windows.net" + FAKE_STORAGE = FakeStorageAccount( + name='pyhdi', + id='', + ) class MgmtHDInsightTest(AzureMgmtTestCase): @@ -34,10 +35,22 @@ def setUp(self): ) @ResourceGroupPreparer(location=HDInsightTestConfig.location) - def test_cluster_create(self, resource_group, location): + @StorageAccountPreparer(name_prefix='hdipy', location=HDInsightTestConfig.location, playback_fake_resource=HDInsightTestConfig.FAKE_STORAGE) + def test_cluster_create(self, resource_group, location, storage_account, storage_account_key): cluster_name = self.get_resource_name('hdisdk-py-humboldt') + create_params = self.get_extended_create_params(location, cluster_name, storage_account.name, storage_account_key) + create_poller = self.hdinsight_client.clusters.create(resource_group.name, cluster_name, create_params) + cluster = create_poller.result() + self.validate_cluster(create_params, cluster) + + scale_poller = self.hdinsight_client.clusters.resize(resource_group.name, cluster_name, target_instance_count=2) + scale_poller.wait() + + delete_poller = self.hdinsight_client.clusters.delete(resource_group.name, cluster_name) + delete_poller.wait() - create_params = ClusterCreateParametersExtended( + def get_extended_create_params(self, location, cluster_name, storage_account_name, storage_account_key): + return ClusterCreateParametersExtended( location=location, tags={}, properties=ClusterCreateProperties( @@ -82,8 +95,8 @@ def test_cluster_create(self, resource_group, location): ), storage_profile=StorageProfile( storageaccounts=[StorageAccount( - name=HDInsightTestConfig.storage_account, - key=HDInsightTestConfig.storage_account_key, + name=storage_account_name + HDInsightTestConfig.storage_account_suffix, + key=storage_account_key, container=cluster_name.lower(), is_default=True )] @@ -91,16 +104,6 @@ def test_cluster_create(self, resource_group, location): ) ) - create_poller = self.hdinsight_client.clusters.create(resource_group.name, cluster_name, create_params) - cluster = create_poller.result() - self.validate_cluster(create_params, cluster) - - scale_poller = self.hdinsight_client.clusters.resize(resource_group.name, cluster_name, target_instance_count=2) - scale_poller.wait() - - delete_poller = self.hdinsight_client.clusters.delete(resource_group.name, cluster_name) - delete_poller.wait() - def validate_cluster(self, create_parameters, cluster_response): self.assertEqual(create_parameters.properties.tier, cluster_response.properties.tier) self.assertEqual("Running", cluster_response.properties.cluster_state) From 9d220512ef213af9b60a395ae292025262ef3586 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Tue, 11 Dec 2018 11:23:14 -0800 Subject: [PATCH 09/12] [AutoPR] cognitiveservices/data-plane/CustomImageSearch (#2555) * [AutoPR cognitiveservices/data-plane/CustomImageSearch] Adding custom image search swagger spec (#2514) * Generated from c9d4d41fb69f65f205c2ecbcdde8d1d1262ecbb7 Adding custom image search * Generated from 9f5bcc92bfd5f05be333758d433ffa36c96e40a2 Adding custom image search * Generated from e8d819e50515f9b0ba463341a2a38b3a9ebc6210 Adding custom image search * Packaging update of azure-cognitiveservices-search-customimagesearch * Update packaging info for Custom Image Search * Packaging update of azure-cognitiveservices-search-customimagesearch * Update version.py * Update HISTORY.rst --- .../HISTORY.rst | 9 + .../MANIFEST.in | 5 + .../README.rst | 43 ++ .../azure/__init__.py | 1 + .../azure/cognitiveservices/__init__.py | 1 + .../cognitiveservices/search/__init__.py | 1 + .../search/customimagesearch/__init__.py | 18 + .../custom_image_search_api.py | 72 +++ .../customimagesearch/models/__init__.py | 80 +++ .../search/customimagesearch/models/answer.py | 56 ++ .../customimagesearch/models/answer_py3.py | 56 ++ .../customimagesearch/models/creative_work.py | 99 ++++ .../models/creative_work_py3.py | 99 ++++ .../models/custom_image_search_api_enums.py | 113 ++++ .../search/customimagesearch/models/error.py | 72 +++ .../customimagesearch/models/error_py3.py | 72 +++ .../models/error_response.py | 69 +++ .../models/error_response_py3.py | 69 +++ .../customimagesearch/models/identifiable.py | 49 ++ .../models/identifiable_py3.py | 49 ++ .../customimagesearch/models/image_object.py | 150 ++++++ .../models/image_object_py3.py | 150 ++++++ .../search/customimagesearch/models/images.py | 68 +++ .../customimagesearch/models/images_py3.py | 68 +++ .../customimagesearch/models/media_object.py | 133 +++++ .../models/media_object_py3.py | 133 +++++ .../search/customimagesearch/models/query.py | 67 +++ .../customimagesearch/models/query_py3.py | 67 +++ .../customimagesearch/models/response.py | 59 +++ .../customimagesearch/models/response_base.py | 41 ++ .../models/response_base_py3.py | 41 ++ .../customimagesearch/models/response_py3.py | 59 +++ .../models/search_results_answer.py | 63 +++ .../models/search_results_answer_py3.py | 63 +++ .../search/customimagesearch/models/thing.py | 88 ++++ .../customimagesearch/models/thing_py3.py | 88 ++++ .../customimagesearch/models/web_page.py | 88 ++++ .../customimagesearch/models/web_page_py3.py | 88 ++++ .../customimagesearch/operations/__init__.py | 16 + .../operations/custom_instance_operations.py | 498 ++++++++++++++++++ .../search/customimagesearch/version.py | 13 + .../sdk_packaging.toml | 8 + .../setup.cfg | 2 + .../setup.py | 87 +++ 44 files changed, 3171 insertions(+) create mode 100644 azure-cognitiveservices-search-customimagesearch/HISTORY.rst create mode 100644 azure-cognitiveservices-search-customimagesearch/MANIFEST.in create mode 100644 azure-cognitiveservices-search-customimagesearch/README.rst create mode 100644 azure-cognitiveservices-search-customimagesearch/azure/__init__.py create mode 100644 azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/__init__.py create mode 100644 azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/__init__.py create mode 100644 azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/__init__.py create mode 100644 azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/custom_image_search_api.py create mode 100644 azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/__init__.py create mode 100644 azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/answer.py create mode 100644 azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/answer_py3.py create mode 100644 azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/creative_work.py create mode 100644 azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/creative_work_py3.py create mode 100644 azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/custom_image_search_api_enums.py create mode 100644 azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/error.py create mode 100644 azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/error_py3.py create mode 100644 azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/error_response.py create mode 100644 azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/error_response_py3.py create mode 100644 azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/identifiable.py create mode 100644 azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/identifiable_py3.py create mode 100644 azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/image_object.py create mode 100644 azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/image_object_py3.py create mode 100644 azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/images.py create mode 100644 azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/images_py3.py create mode 100644 azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/media_object.py create mode 100644 azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/media_object_py3.py create mode 100644 azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/query.py create mode 100644 azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/query_py3.py create mode 100644 azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/response.py create mode 100644 azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/response_base.py create mode 100644 azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/response_base_py3.py create mode 100644 azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/response_py3.py create mode 100644 azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/search_results_answer.py create mode 100644 azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/search_results_answer_py3.py create mode 100644 azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/thing.py create mode 100644 azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/thing_py3.py create mode 100644 azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/web_page.py create mode 100644 azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/web_page_py3.py create mode 100644 azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/operations/__init__.py create mode 100644 azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/operations/custom_instance_operations.py create mode 100644 azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/version.py create mode 100644 azure-cognitiveservices-search-customimagesearch/sdk_packaging.toml create mode 100644 azure-cognitiveservices-search-customimagesearch/setup.cfg create mode 100644 azure-cognitiveservices-search-customimagesearch/setup.py diff --git a/azure-cognitiveservices-search-customimagesearch/HISTORY.rst b/azure-cognitiveservices-search-customimagesearch/HISTORY.rst new file mode 100644 index 000000000000..08f967bb4654 --- /dev/null +++ b/azure-cognitiveservices-search-customimagesearch/HISTORY.rst @@ -0,0 +1,9 @@ +.. :changelog: + +Release History +=============== + +0.1.0 (2018-12-11) +++++++++++++++++++ + +* Initial Release diff --git a/azure-cognitiveservices-search-customimagesearch/MANIFEST.in b/azure-cognitiveservices-search-customimagesearch/MANIFEST.in new file mode 100644 index 000000000000..d1c7ea0ea56b --- /dev/null +++ b/azure-cognitiveservices-search-customimagesearch/MANIFEST.in @@ -0,0 +1,5 @@ +include *.rst +include azure/__init__.py +include azure/cognitiveservices/__init__.py +include azure/cognitiveservices/search/__init__.py + diff --git a/azure-cognitiveservices-search-customimagesearch/README.rst b/azure-cognitiveservices-search-customimagesearch/README.rst new file mode 100644 index 000000000000..ef3b595cb14b --- /dev/null +++ b/azure-cognitiveservices-search-customimagesearch/README.rst @@ -0,0 +1,43 @@ +Microsoft Azure SDK for Python +============================== + +This is the Microsoft Azure Cognitive Services Custom Image Search Client Library. + +This package has been tested with Python 2.7, 3.4, 3.5, 3.6 and 3.7. + +For a more complete set of Azure libraries, see the `azure `__ bundle package. + + +Compatibility +============= + +**IMPORTANT**: If you have an earlier version of the azure package +(version < 1.0), you should uninstall it before installing this package. + +You can check the version using pip: + +.. code:: shell + + pip freeze + +If you see azure==0.11.0 (or any version below 1.0), uninstall it first: + +.. code:: shell + + pip uninstall azure + + +Usage +===== + +For code examples, see `Cognitive Services Custom Image Search +`__ +on docs.microsoft.com. + + +Provide Feedback +================ + +If you encounter any bugs or have suggestions, please file an issue in the +`Issues `__ +section of the project. diff --git a/azure-cognitiveservices-search-customimagesearch/azure/__init__.py b/azure-cognitiveservices-search-customimagesearch/azure/__init__.py new file mode 100644 index 000000000000..0260537a02bb --- /dev/null +++ b/azure-cognitiveservices-search-customimagesearch/azure/__init__.py @@ -0,0 +1 @@ +__path__ = __import__('pkgutil').extend_path(__path__, __name__) \ No newline at end of file diff --git a/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/__init__.py b/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/__init__.py new file mode 100644 index 000000000000..0260537a02bb --- /dev/null +++ b/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/__init__.py @@ -0,0 +1 @@ +__path__ = __import__('pkgutil').extend_path(__path__, __name__) \ No newline at end of file diff --git a/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/__init__.py b/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/__init__.py new file mode 100644 index 000000000000..0260537a02bb --- /dev/null +++ b/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/__init__.py @@ -0,0 +1 @@ +__path__ = __import__('pkgutil').extend_path(__path__, __name__) \ No newline at end of file diff --git a/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/__init__.py b/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/__init__.py new file mode 100644 index 000000000000..83f11ed1d00c --- /dev/null +++ b/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/__init__.py @@ -0,0 +1,18 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .custom_image_search_api import CustomImageSearchAPI +from .version import VERSION + +__all__ = ['CustomImageSearchAPI'] + +__version__ = VERSION + diff --git a/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/custom_image_search_api.py b/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/custom_image_search_api.py new file mode 100644 index 000000000000..8d30acda7659 --- /dev/null +++ b/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/custom_image_search_api.py @@ -0,0 +1,72 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.service_client import SDKClient +from msrest import Configuration, Serializer, Deserializer +from .version import VERSION +from .operations.custom_instance_operations import CustomInstanceOperations +from . import models + + +class CustomImageSearchAPIConfiguration(Configuration): + """Configuration for CustomImageSearchAPI + Note that all parameters used to create this instance are saved as instance + attributes. + + :param credentials: Subscription credentials which uniquely identify + client subscription. + :type credentials: None + :param str base_url: Service URL + """ + + def __init__( + self, credentials, base_url=None): + + if credentials is None: + raise ValueError("Parameter 'credentials' must not be None.") + if not base_url: + base_url = 'https://api.cognitive.microsoft.com/bingcustomsearch/v7.0' + + super(CustomImageSearchAPIConfiguration, self).__init__(base_url) + + self.add_user_agent('azure-cognitiveservices-search-customimagesearch/{}'.format(VERSION)) + + self.credentials = credentials + + +class CustomImageSearchAPI(SDKClient): + """The Bing Custom Image Search API lets you send an image search query to Bing and get back image search results customized to meet your custom search definition. + + :ivar config: Configuration for client. + :vartype config: CustomImageSearchAPIConfiguration + + :ivar custom_instance: CustomInstance operations + :vartype custom_instance: azure.cognitiveservices.search.customimagesearch.operations.CustomInstanceOperations + + :param credentials: Subscription credentials which uniquely identify + client subscription. + :type credentials: None + :param str base_url: Service URL + """ + + def __init__( + self, credentials, base_url=None): + + self.config = CustomImageSearchAPIConfiguration(credentials, base_url) + super(CustomImageSearchAPI, self).__init__(self.config.credentials, self.config) + + client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} + self.api_version = '1.0' + self._serialize = Serializer(client_models) + self._deserialize = Deserializer(client_models) + + self.custom_instance = CustomInstanceOperations( + self._client, self.config, self._serialize, self._deserialize) diff --git a/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/__init__.py b/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/__init__.py new file mode 100644 index 000000000000..f432220de68e --- /dev/null +++ b/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/__init__.py @@ -0,0 +1,80 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +try: + from .image_object_py3 import ImageObject + from .images_py3 import Images + from .search_results_answer_py3 import SearchResultsAnswer + from .query_py3 import Query + from .answer_py3 import Answer + from .media_object_py3 import MediaObject + from .response_py3 import Response + from .thing_py3 import Thing + from .creative_work_py3 import CreativeWork + from .identifiable_py3 import Identifiable + from .error_py3 import Error + from .error_response_py3 import ErrorResponse, ErrorResponseException + from .web_page_py3 import WebPage + from .response_base_py3 import ResponseBase +except (SyntaxError, ImportError): + from .image_object import ImageObject + from .images import Images + from .search_results_answer import SearchResultsAnswer + from .query import Query + from .answer import Answer + from .media_object import MediaObject + from .response import Response + from .thing import Thing + from .creative_work import CreativeWork + from .identifiable import Identifiable + from .error import Error + from .error_response import ErrorResponse, ErrorResponseException + from .web_page import WebPage + from .response_base import ResponseBase +from .custom_image_search_api_enums import ( + ErrorCode, + ErrorSubCode, + ImageAspect, + ImageColor, + Freshness, + ImageContent, + ImageType, + ImageLicense, + SafeSearch, + ImageSize, +) + +__all__ = [ + 'ImageObject', + 'Images', + 'SearchResultsAnswer', + 'Query', + 'Answer', + 'MediaObject', + 'Response', + 'Thing', + 'CreativeWork', + 'Identifiable', + 'Error', + 'ErrorResponse', 'ErrorResponseException', + 'WebPage', + 'ResponseBase', + 'ErrorCode', + 'ErrorSubCode', + 'ImageAspect', + 'ImageColor', + 'Freshness', + 'ImageContent', + 'ImageType', + 'ImageLicense', + 'SafeSearch', + 'ImageSize', +] diff --git a/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/answer.py b/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/answer.py new file mode 100644 index 000000000000..d3c464d0ffc7 --- /dev/null +++ b/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/answer.py @@ -0,0 +1,56 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .response import Response + + +class Answer(Response): + """Defines an answer. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: SearchResultsAnswer + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param _type: Required. Constant filled by server. + :type _type: str + :ivar id: A String identifier. + :vartype id: str + :ivar read_link: The URL that returns this resource. + :vartype read_link: str + :ivar web_search_url: The URL To Bing's search result for this item. + :vartype web_search_url: str + """ + + _validation = { + '_type': {'required': True}, + 'id': {'readonly': True}, + 'read_link': {'readonly': True}, + 'web_search_url': {'readonly': True}, + } + + _attribute_map = { + '_type': {'key': '_type', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'read_link': {'key': 'readLink', 'type': 'str'}, + 'web_search_url': {'key': 'webSearchUrl', 'type': 'str'}, + } + + _subtype_map = { + '_type': {'SearchResultsAnswer': 'SearchResultsAnswer'} + } + + def __init__(self, **kwargs): + super(Answer, self).__init__(**kwargs) + self._type = 'Answer' diff --git a/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/answer_py3.py b/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/answer_py3.py new file mode 100644 index 000000000000..d7d5df488ee5 --- /dev/null +++ b/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/answer_py3.py @@ -0,0 +1,56 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .response import Response + + +class Answer(Response): + """Defines an answer. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: SearchResultsAnswer + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param _type: Required. Constant filled by server. + :type _type: str + :ivar id: A String identifier. + :vartype id: str + :ivar read_link: The URL that returns this resource. + :vartype read_link: str + :ivar web_search_url: The URL To Bing's search result for this item. + :vartype web_search_url: str + """ + + _validation = { + '_type': {'required': True}, + 'id': {'readonly': True}, + 'read_link': {'readonly': True}, + 'web_search_url': {'readonly': True}, + } + + _attribute_map = { + '_type': {'key': '_type', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'read_link': {'key': 'readLink', 'type': 'str'}, + 'web_search_url': {'key': 'webSearchUrl', 'type': 'str'}, + } + + _subtype_map = { + '_type': {'SearchResultsAnswer': 'SearchResultsAnswer'} + } + + def __init__(self, **kwargs) -> None: + super(Answer, self).__init__(**kwargs) + self._type = 'Answer' diff --git a/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/creative_work.py b/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/creative_work.py new file mode 100644 index 000000000000..83e710546837 --- /dev/null +++ b/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/creative_work.py @@ -0,0 +1,99 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .thing import Thing + + +class CreativeWork(Thing): + """The most generic kind of creative work, including books, movies, + photographs, software programs, etc. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: MediaObject, WebPage + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param _type: Required. Constant filled by server. + :type _type: str + :ivar id: A String identifier. + :vartype id: str + :ivar read_link: The URL that returns this resource. + :vartype read_link: str + :ivar web_search_url: The URL To Bing's search result for this item. + :vartype web_search_url: str + :ivar name: The name of the thing represented by this object. + :vartype name: str + :ivar url: The URL to get more information about the thing represented by + this object. + :vartype url: str + :ivar image: An image of the item. + :vartype image: + ~azure.cognitiveservices.search.customimagesearch.models.ImageObject + :ivar description: A short description of the item. + :vartype description: str + :ivar alternate_name: An alias for the item + :vartype alternate_name: str + :ivar bing_id: An ID that uniquely identifies this item. + :vartype bing_id: str + :ivar thumbnail_url: The URL to a thumbnail of the item. + :vartype thumbnail_url: str + :ivar provider: The source of the creative work. + :vartype provider: + list[~azure.cognitiveservices.search.customimagesearch.models.Thing] + :ivar text: Text content of this creative work + :vartype text: str + """ + + _validation = { + '_type': {'required': True}, + 'id': {'readonly': True}, + 'read_link': {'readonly': True}, + 'web_search_url': {'readonly': True}, + 'name': {'readonly': True}, + 'url': {'readonly': True}, + 'image': {'readonly': True}, + 'description': {'readonly': True}, + 'alternate_name': {'readonly': True}, + 'bing_id': {'readonly': True}, + 'thumbnail_url': {'readonly': True}, + 'provider': {'readonly': True}, + 'text': {'readonly': True}, + } + + _attribute_map = { + '_type': {'key': '_type', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'read_link': {'key': 'readLink', 'type': 'str'}, + 'web_search_url': {'key': 'webSearchUrl', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'image': {'key': 'image', 'type': 'ImageObject'}, + 'description': {'key': 'description', 'type': 'str'}, + 'alternate_name': {'key': 'alternateName', 'type': 'str'}, + 'bing_id': {'key': 'bingId', 'type': 'str'}, + 'thumbnail_url': {'key': 'thumbnailUrl', 'type': 'str'}, + 'provider': {'key': 'provider', 'type': '[Thing]'}, + 'text': {'key': 'text', 'type': 'str'}, + } + + _subtype_map = { + '_type': {'MediaObject': 'MediaObject', 'WebPage': 'WebPage'} + } + + def __init__(self, **kwargs): + super(CreativeWork, self).__init__(**kwargs) + self.thumbnail_url = None + self.provider = None + self.text = None + self._type = 'CreativeWork' diff --git a/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/creative_work_py3.py b/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/creative_work_py3.py new file mode 100644 index 000000000000..e7f5c314dbd8 --- /dev/null +++ b/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/creative_work_py3.py @@ -0,0 +1,99 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .thing import Thing + + +class CreativeWork(Thing): + """The most generic kind of creative work, including books, movies, + photographs, software programs, etc. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: MediaObject, WebPage + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param _type: Required. Constant filled by server. + :type _type: str + :ivar id: A String identifier. + :vartype id: str + :ivar read_link: The URL that returns this resource. + :vartype read_link: str + :ivar web_search_url: The URL To Bing's search result for this item. + :vartype web_search_url: str + :ivar name: The name of the thing represented by this object. + :vartype name: str + :ivar url: The URL to get more information about the thing represented by + this object. + :vartype url: str + :ivar image: An image of the item. + :vartype image: + ~azure.cognitiveservices.search.customimagesearch.models.ImageObject + :ivar description: A short description of the item. + :vartype description: str + :ivar alternate_name: An alias for the item + :vartype alternate_name: str + :ivar bing_id: An ID that uniquely identifies this item. + :vartype bing_id: str + :ivar thumbnail_url: The URL to a thumbnail of the item. + :vartype thumbnail_url: str + :ivar provider: The source of the creative work. + :vartype provider: + list[~azure.cognitiveservices.search.customimagesearch.models.Thing] + :ivar text: Text content of this creative work + :vartype text: str + """ + + _validation = { + '_type': {'required': True}, + 'id': {'readonly': True}, + 'read_link': {'readonly': True}, + 'web_search_url': {'readonly': True}, + 'name': {'readonly': True}, + 'url': {'readonly': True}, + 'image': {'readonly': True}, + 'description': {'readonly': True}, + 'alternate_name': {'readonly': True}, + 'bing_id': {'readonly': True}, + 'thumbnail_url': {'readonly': True}, + 'provider': {'readonly': True}, + 'text': {'readonly': True}, + } + + _attribute_map = { + '_type': {'key': '_type', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'read_link': {'key': 'readLink', 'type': 'str'}, + 'web_search_url': {'key': 'webSearchUrl', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'image': {'key': 'image', 'type': 'ImageObject'}, + 'description': {'key': 'description', 'type': 'str'}, + 'alternate_name': {'key': 'alternateName', 'type': 'str'}, + 'bing_id': {'key': 'bingId', 'type': 'str'}, + 'thumbnail_url': {'key': 'thumbnailUrl', 'type': 'str'}, + 'provider': {'key': 'provider', 'type': '[Thing]'}, + 'text': {'key': 'text', 'type': 'str'}, + } + + _subtype_map = { + '_type': {'MediaObject': 'MediaObject', 'WebPage': 'WebPage'} + } + + def __init__(self, **kwargs) -> None: + super(CreativeWork, self).__init__(**kwargs) + self.thumbnail_url = None + self.provider = None + self.text = None + self._type = 'CreativeWork' diff --git a/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/custom_image_search_api_enums.py b/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/custom_image_search_api_enums.py new file mode 100644 index 000000000000..94e2847c058c --- /dev/null +++ b/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/custom_image_search_api_enums.py @@ -0,0 +1,113 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from enum import Enum + + +class ErrorCode(str, Enum): + + none = "None" + server_error = "ServerError" + invalid_request = "InvalidRequest" + rate_limit_exceeded = "RateLimitExceeded" + invalid_authorization = "InvalidAuthorization" + insufficient_authorization = "InsufficientAuthorization" + + +class ErrorSubCode(str, Enum): + + unexpected_error = "UnexpectedError" + resource_error = "ResourceError" + not_implemented = "NotImplemented" + parameter_missing = "ParameterMissing" + parameter_invalid_value = "ParameterInvalidValue" + http_not_allowed = "HttpNotAllowed" + blocked = "Blocked" + authorization_missing = "AuthorizationMissing" + authorization_redundancy = "AuthorizationRedundancy" + authorization_disabled = "AuthorizationDisabled" + authorization_expired = "AuthorizationExpired" + + +class ImageAspect(str, Enum): + + all = "All" + square = "Square" + wide = "Wide" + tall = "Tall" + + +class ImageColor(str, Enum): + + color_only = "ColorOnly" + monochrome = "Monochrome" + black = "Black" + blue = "Blue" + brown = "Brown" + gray = "Gray" + green = "Green" + orange = "Orange" + pink = "Pink" + purple = "Purple" + red = "Red" + teal = "Teal" + white = "White" + yellow = "Yellow" + + +class Freshness(str, Enum): + + day = "Day" + week = "Week" + month = "Month" + + +class ImageContent(str, Enum): + + face = "Face" + portrait = "Portrait" + + +class ImageType(str, Enum): + + animated_gif = "AnimatedGif" + clipart = "Clipart" + line = "Line" + photo = "Photo" + shopping = "Shopping" + transparent = "Transparent" + + +class ImageLicense(str, Enum): + + all = "All" + any = "Any" + public = "Public" + share = "Share" + share_commercially = "ShareCommercially" + modify = "Modify" + modify_commercially = "ModifyCommercially" + + +class SafeSearch(str, Enum): + + off = "Off" + moderate = "Moderate" + strict = "Strict" + + +class ImageSize(str, Enum): + + all = "All" + small = "Small" + medium = "Medium" + large = "Large" + wallpaper = "Wallpaper" diff --git a/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/error.py b/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/error.py new file mode 100644 index 000000000000..135fea28aa51 --- /dev/null +++ b/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/error.py @@ -0,0 +1,72 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class Error(Model): + """Defines the error that occurred. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param code: Required. The error code that identifies the category of + error. Possible values include: 'None', 'ServerError', 'InvalidRequest', + 'RateLimitExceeded', 'InvalidAuthorization', 'InsufficientAuthorization'. + Default value: "None" . + :type code: str or + ~azure.cognitiveservices.search.customimagesearch.models.ErrorCode + :ivar sub_code: The error code that further helps to identify the error. + Possible values include: 'UnexpectedError', 'ResourceError', + 'NotImplemented', 'ParameterMissing', 'ParameterInvalidValue', + 'HttpNotAllowed', 'Blocked', 'AuthorizationMissing', + 'AuthorizationRedundancy', 'AuthorizationDisabled', 'AuthorizationExpired' + :vartype sub_code: str or + ~azure.cognitiveservices.search.customimagesearch.models.ErrorSubCode + :param message: Required. A description of the error. + :type message: str + :ivar more_details: A description that provides additional information + about the error. + :vartype more_details: str + :ivar parameter: The parameter in the request that caused the error. + :vartype parameter: str + :ivar value: The parameter's value in the request that was not valid. + :vartype value: str + """ + + _validation = { + 'code': {'required': True}, + 'sub_code': {'readonly': True}, + 'message': {'required': True}, + 'more_details': {'readonly': True}, + 'parameter': {'readonly': True}, + 'value': {'readonly': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'sub_code': {'key': 'subCode', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'more_details': {'key': 'moreDetails', 'type': 'str'}, + 'parameter': {'key': 'parameter', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Error, self).__init__(**kwargs) + self.code = kwargs.get('code', "None") + self.sub_code = None + self.message = kwargs.get('message', None) + self.more_details = None + self.parameter = None + self.value = None diff --git a/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/error_py3.py b/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/error_py3.py new file mode 100644 index 000000000000..0bcd0299e8e4 --- /dev/null +++ b/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/error_py3.py @@ -0,0 +1,72 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class Error(Model): + """Defines the error that occurred. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param code: Required. The error code that identifies the category of + error. Possible values include: 'None', 'ServerError', 'InvalidRequest', + 'RateLimitExceeded', 'InvalidAuthorization', 'InsufficientAuthorization'. + Default value: "None" . + :type code: str or + ~azure.cognitiveservices.search.customimagesearch.models.ErrorCode + :ivar sub_code: The error code that further helps to identify the error. + Possible values include: 'UnexpectedError', 'ResourceError', + 'NotImplemented', 'ParameterMissing', 'ParameterInvalidValue', + 'HttpNotAllowed', 'Blocked', 'AuthorizationMissing', + 'AuthorizationRedundancy', 'AuthorizationDisabled', 'AuthorizationExpired' + :vartype sub_code: str or + ~azure.cognitiveservices.search.customimagesearch.models.ErrorSubCode + :param message: Required. A description of the error. + :type message: str + :ivar more_details: A description that provides additional information + about the error. + :vartype more_details: str + :ivar parameter: The parameter in the request that caused the error. + :vartype parameter: str + :ivar value: The parameter's value in the request that was not valid. + :vartype value: str + """ + + _validation = { + 'code': {'required': True}, + 'sub_code': {'readonly': True}, + 'message': {'required': True}, + 'more_details': {'readonly': True}, + 'parameter': {'readonly': True}, + 'value': {'readonly': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'sub_code': {'key': 'subCode', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'more_details': {'key': 'moreDetails', 'type': 'str'}, + 'parameter': {'key': 'parameter', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__(self, *, message: str, code="None", **kwargs) -> None: + super(Error, self).__init__(**kwargs) + self.code = code + self.sub_code = None + self.message = message + self.more_details = None + self.parameter = None + self.value = None diff --git a/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/error_response.py b/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/error_response.py new file mode 100644 index 000000000000..fd2dab8b29b7 --- /dev/null +++ b/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/error_response.py @@ -0,0 +1,69 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .response import Response +from msrest.exceptions import HttpOperationError + + +class ErrorResponse(Response): + """The top-level response that represents a failed request. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param _type: Required. Constant filled by server. + :type _type: str + :ivar id: A String identifier. + :vartype id: str + :ivar read_link: The URL that returns this resource. + :vartype read_link: str + :ivar web_search_url: The URL To Bing's search result for this item. + :vartype web_search_url: str + :param errors: Required. A list of errors that describe the reasons why + the request failed. + :type errors: + list[~azure.cognitiveservices.search.customimagesearch.models.Error] + """ + + _validation = { + '_type': {'required': True}, + 'id': {'readonly': True}, + 'read_link': {'readonly': True}, + 'web_search_url': {'readonly': True}, + 'errors': {'required': True}, + } + + _attribute_map = { + '_type': {'key': '_type', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'read_link': {'key': 'readLink', 'type': 'str'}, + 'web_search_url': {'key': 'webSearchUrl', 'type': 'str'}, + 'errors': {'key': 'errors', 'type': '[Error]'}, + } + + def __init__(self, **kwargs): + super(ErrorResponse, self).__init__(**kwargs) + self.errors = kwargs.get('errors', None) + self._type = 'ErrorResponse' + + +class ErrorResponseException(HttpOperationError): + """Server responsed with exception of type: 'ErrorResponse'. + + :param deserialize: A deserializer + :param response: Server response to be deserialized. + """ + + def __init__(self, deserialize, response, *args): + + super(ErrorResponseException, self).__init__(deserialize, response, 'ErrorResponse', *args) diff --git a/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/error_response_py3.py b/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/error_response_py3.py new file mode 100644 index 000000000000..1e409096538e --- /dev/null +++ b/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/error_response_py3.py @@ -0,0 +1,69 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .response import Response +from msrest.exceptions import HttpOperationError + + +class ErrorResponse(Response): + """The top-level response that represents a failed request. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param _type: Required. Constant filled by server. + :type _type: str + :ivar id: A String identifier. + :vartype id: str + :ivar read_link: The URL that returns this resource. + :vartype read_link: str + :ivar web_search_url: The URL To Bing's search result for this item. + :vartype web_search_url: str + :param errors: Required. A list of errors that describe the reasons why + the request failed. + :type errors: + list[~azure.cognitiveservices.search.customimagesearch.models.Error] + """ + + _validation = { + '_type': {'required': True}, + 'id': {'readonly': True}, + 'read_link': {'readonly': True}, + 'web_search_url': {'readonly': True}, + 'errors': {'required': True}, + } + + _attribute_map = { + '_type': {'key': '_type', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'read_link': {'key': 'readLink', 'type': 'str'}, + 'web_search_url': {'key': 'webSearchUrl', 'type': 'str'}, + 'errors': {'key': 'errors', 'type': '[Error]'}, + } + + def __init__(self, *, errors, **kwargs) -> None: + super(ErrorResponse, self).__init__(**kwargs) + self.errors = errors + self._type = 'ErrorResponse' + + +class ErrorResponseException(HttpOperationError): + """Server responsed with exception of type: 'ErrorResponse'. + + :param deserialize: A deserializer + :param response: Server response to be deserialized. + """ + + def __init__(self, deserialize, response, *args): + + super(ErrorResponseException, self).__init__(deserialize, response, 'ErrorResponse', *args) diff --git a/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/identifiable.py b/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/identifiable.py new file mode 100644 index 000000000000..513e53d238bb --- /dev/null +++ b/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/identifiable.py @@ -0,0 +1,49 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .response_base import ResponseBase + + +class Identifiable(ResponseBase): + """Defines the identity of a resource. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: Response + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param _type: Required. Constant filled by server. + :type _type: str + :ivar id: A String identifier. + :vartype id: str + """ + + _validation = { + '_type': {'required': True}, + 'id': {'readonly': True}, + } + + _attribute_map = { + '_type': {'key': '_type', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + } + + _subtype_map = { + '_type': {'Response': 'Response'} + } + + def __init__(self, **kwargs): + super(Identifiable, self).__init__(**kwargs) + self.id = None + self._type = 'Identifiable' diff --git a/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/identifiable_py3.py b/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/identifiable_py3.py new file mode 100644 index 000000000000..c87dc0347e3d --- /dev/null +++ b/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/identifiable_py3.py @@ -0,0 +1,49 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .response_base import ResponseBase + + +class Identifiable(ResponseBase): + """Defines the identity of a resource. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: Response + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param _type: Required. Constant filled by server. + :type _type: str + :ivar id: A String identifier. + :vartype id: str + """ + + _validation = { + '_type': {'required': True}, + 'id': {'readonly': True}, + } + + _attribute_map = { + '_type': {'key': '_type', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + } + + _subtype_map = { + '_type': {'Response': 'Response'} + } + + def __init__(self, **kwargs) -> None: + super(Identifiable, self).__init__(**kwargs) + self.id = None + self._type = 'Identifiable' diff --git a/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/image_object.py b/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/image_object.py new file mode 100644 index 000000000000..08eb83f3532e --- /dev/null +++ b/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/image_object.py @@ -0,0 +1,150 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .media_object import MediaObject + + +class ImageObject(MediaObject): + """Defines an image. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param _type: Required. Constant filled by server. + :type _type: str + :ivar id: A String identifier. + :vartype id: str + :ivar read_link: The URL that returns this resource. + :vartype read_link: str + :ivar web_search_url: The URL To Bing's search result for this item. + :vartype web_search_url: str + :ivar name: The name of the thing represented by this object. + :vartype name: str + :ivar url: The URL to get more information about the thing represented by + this object. + :vartype url: str + :ivar image: An image of the item. + :vartype image: + ~azure.cognitiveservices.search.customimagesearch.models.ImageObject + :ivar description: A short description of the item. + :vartype description: str + :ivar alternate_name: An alias for the item + :vartype alternate_name: str + :ivar bing_id: An ID that uniquely identifies this item. + :vartype bing_id: str + :ivar thumbnail_url: The URL to a thumbnail of the item. + :vartype thumbnail_url: str + :ivar provider: The source of the creative work. + :vartype provider: + list[~azure.cognitiveservices.search.customimagesearch.models.Thing] + :ivar text: Text content of this creative work + :vartype text: str + :ivar content_url: Original URL to retrieve the source (file) for the + media object (e.g the source URL for the image). + :vartype content_url: str + :ivar host_page_url: URL of the page that hosts the media object. + :vartype host_page_url: str + :ivar content_size: Size of the media object content (use format "value + unit" e.g "1024 B"). + :vartype content_size: str + :ivar encoding_format: Encoding format (e.g mp3, mp4, jpeg, etc). + :vartype encoding_format: str + :ivar host_page_display_url: Display URL of the page that hosts the media + object. + :vartype host_page_display_url: str + :ivar width: The width of the media object, in pixels. + :vartype width: int + :ivar height: The height of the media object, in pixels. + :vartype height: int + :ivar thumbnail: The URL to a thumbnail of the image + :vartype thumbnail: + ~azure.cognitiveservices.search.customimagesearch.models.ImageObject + :ivar image_insights_token: The token that you use in a subsequent call to + the Image Search API to get additional information about the image. For + information about using this token, see the insightsToken query parameter. + :vartype image_insights_token: str + :ivar image_id: Unique Id for the image + :vartype image_id: str + :ivar accent_color: A three-byte hexadecimal number that represents the + color that dominates the image. Use the color as the temporary background + in your client until the image is loaded. + :vartype accent_color: str + :ivar visual_words: Visual representation of the image. Used for getting + more sizes + :vartype visual_words: str + """ + + _validation = { + '_type': {'required': True}, + 'id': {'readonly': True}, + 'read_link': {'readonly': True}, + 'web_search_url': {'readonly': True}, + 'name': {'readonly': True}, + 'url': {'readonly': True}, + 'image': {'readonly': True}, + 'description': {'readonly': True}, + 'alternate_name': {'readonly': True}, + 'bing_id': {'readonly': True}, + 'thumbnail_url': {'readonly': True}, + 'provider': {'readonly': True}, + 'text': {'readonly': True}, + 'content_url': {'readonly': True}, + 'host_page_url': {'readonly': True}, + 'content_size': {'readonly': True}, + 'encoding_format': {'readonly': True}, + 'host_page_display_url': {'readonly': True}, + 'width': {'readonly': True}, + 'height': {'readonly': True}, + 'thumbnail': {'readonly': True}, + 'image_insights_token': {'readonly': True}, + 'image_id': {'readonly': True}, + 'accent_color': {'readonly': True}, + 'visual_words': {'readonly': True}, + } + + _attribute_map = { + '_type': {'key': '_type', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'read_link': {'key': 'readLink', 'type': 'str'}, + 'web_search_url': {'key': 'webSearchUrl', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'image': {'key': 'image', 'type': 'ImageObject'}, + 'description': {'key': 'description', 'type': 'str'}, + 'alternate_name': {'key': 'alternateName', 'type': 'str'}, + 'bing_id': {'key': 'bingId', 'type': 'str'}, + 'thumbnail_url': {'key': 'thumbnailUrl', 'type': 'str'}, + 'provider': {'key': 'provider', 'type': '[Thing]'}, + 'text': {'key': 'text', 'type': 'str'}, + 'content_url': {'key': 'contentUrl', 'type': 'str'}, + 'host_page_url': {'key': 'hostPageUrl', 'type': 'str'}, + 'content_size': {'key': 'contentSize', 'type': 'str'}, + 'encoding_format': {'key': 'encodingFormat', 'type': 'str'}, + 'host_page_display_url': {'key': 'hostPageDisplayUrl', 'type': 'str'}, + 'width': {'key': 'width', 'type': 'int'}, + 'height': {'key': 'height', 'type': 'int'}, + 'thumbnail': {'key': 'thumbnail', 'type': 'ImageObject'}, + 'image_insights_token': {'key': 'imageInsightsToken', 'type': 'str'}, + 'image_id': {'key': 'imageId', 'type': 'str'}, + 'accent_color': {'key': 'accentColor', 'type': 'str'}, + 'visual_words': {'key': 'visualWords', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ImageObject, self).__init__(**kwargs) + self.thumbnail = None + self.image_insights_token = None + self.image_id = None + self.accent_color = None + self.visual_words = None + self._type = 'ImageObject' diff --git a/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/image_object_py3.py b/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/image_object_py3.py new file mode 100644 index 000000000000..a170461e6462 --- /dev/null +++ b/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/image_object_py3.py @@ -0,0 +1,150 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .media_object import MediaObject + + +class ImageObject(MediaObject): + """Defines an image. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param _type: Required. Constant filled by server. + :type _type: str + :ivar id: A String identifier. + :vartype id: str + :ivar read_link: The URL that returns this resource. + :vartype read_link: str + :ivar web_search_url: The URL To Bing's search result for this item. + :vartype web_search_url: str + :ivar name: The name of the thing represented by this object. + :vartype name: str + :ivar url: The URL to get more information about the thing represented by + this object. + :vartype url: str + :ivar image: An image of the item. + :vartype image: + ~azure.cognitiveservices.search.customimagesearch.models.ImageObject + :ivar description: A short description of the item. + :vartype description: str + :ivar alternate_name: An alias for the item + :vartype alternate_name: str + :ivar bing_id: An ID that uniquely identifies this item. + :vartype bing_id: str + :ivar thumbnail_url: The URL to a thumbnail of the item. + :vartype thumbnail_url: str + :ivar provider: The source of the creative work. + :vartype provider: + list[~azure.cognitiveservices.search.customimagesearch.models.Thing] + :ivar text: Text content of this creative work + :vartype text: str + :ivar content_url: Original URL to retrieve the source (file) for the + media object (e.g the source URL for the image). + :vartype content_url: str + :ivar host_page_url: URL of the page that hosts the media object. + :vartype host_page_url: str + :ivar content_size: Size of the media object content (use format "value + unit" e.g "1024 B"). + :vartype content_size: str + :ivar encoding_format: Encoding format (e.g mp3, mp4, jpeg, etc). + :vartype encoding_format: str + :ivar host_page_display_url: Display URL of the page that hosts the media + object. + :vartype host_page_display_url: str + :ivar width: The width of the media object, in pixels. + :vartype width: int + :ivar height: The height of the media object, in pixels. + :vartype height: int + :ivar thumbnail: The URL to a thumbnail of the image + :vartype thumbnail: + ~azure.cognitiveservices.search.customimagesearch.models.ImageObject + :ivar image_insights_token: The token that you use in a subsequent call to + the Image Search API to get additional information about the image. For + information about using this token, see the insightsToken query parameter. + :vartype image_insights_token: str + :ivar image_id: Unique Id for the image + :vartype image_id: str + :ivar accent_color: A three-byte hexadecimal number that represents the + color that dominates the image. Use the color as the temporary background + in your client until the image is loaded. + :vartype accent_color: str + :ivar visual_words: Visual representation of the image. Used for getting + more sizes + :vartype visual_words: str + """ + + _validation = { + '_type': {'required': True}, + 'id': {'readonly': True}, + 'read_link': {'readonly': True}, + 'web_search_url': {'readonly': True}, + 'name': {'readonly': True}, + 'url': {'readonly': True}, + 'image': {'readonly': True}, + 'description': {'readonly': True}, + 'alternate_name': {'readonly': True}, + 'bing_id': {'readonly': True}, + 'thumbnail_url': {'readonly': True}, + 'provider': {'readonly': True}, + 'text': {'readonly': True}, + 'content_url': {'readonly': True}, + 'host_page_url': {'readonly': True}, + 'content_size': {'readonly': True}, + 'encoding_format': {'readonly': True}, + 'host_page_display_url': {'readonly': True}, + 'width': {'readonly': True}, + 'height': {'readonly': True}, + 'thumbnail': {'readonly': True}, + 'image_insights_token': {'readonly': True}, + 'image_id': {'readonly': True}, + 'accent_color': {'readonly': True}, + 'visual_words': {'readonly': True}, + } + + _attribute_map = { + '_type': {'key': '_type', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'read_link': {'key': 'readLink', 'type': 'str'}, + 'web_search_url': {'key': 'webSearchUrl', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'image': {'key': 'image', 'type': 'ImageObject'}, + 'description': {'key': 'description', 'type': 'str'}, + 'alternate_name': {'key': 'alternateName', 'type': 'str'}, + 'bing_id': {'key': 'bingId', 'type': 'str'}, + 'thumbnail_url': {'key': 'thumbnailUrl', 'type': 'str'}, + 'provider': {'key': 'provider', 'type': '[Thing]'}, + 'text': {'key': 'text', 'type': 'str'}, + 'content_url': {'key': 'contentUrl', 'type': 'str'}, + 'host_page_url': {'key': 'hostPageUrl', 'type': 'str'}, + 'content_size': {'key': 'contentSize', 'type': 'str'}, + 'encoding_format': {'key': 'encodingFormat', 'type': 'str'}, + 'host_page_display_url': {'key': 'hostPageDisplayUrl', 'type': 'str'}, + 'width': {'key': 'width', 'type': 'int'}, + 'height': {'key': 'height', 'type': 'int'}, + 'thumbnail': {'key': 'thumbnail', 'type': 'ImageObject'}, + 'image_insights_token': {'key': 'imageInsightsToken', 'type': 'str'}, + 'image_id': {'key': 'imageId', 'type': 'str'}, + 'accent_color': {'key': 'accentColor', 'type': 'str'}, + 'visual_words': {'key': 'visualWords', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(ImageObject, self).__init__(**kwargs) + self.thumbnail = None + self.image_insights_token = None + self.image_id = None + self.accent_color = None + self.visual_words = None + self._type = 'ImageObject' diff --git a/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/images.py b/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/images.py new file mode 100644 index 000000000000..b5a28a74f76d --- /dev/null +++ b/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/images.py @@ -0,0 +1,68 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .search_results_answer import SearchResultsAnswer + + +class Images(SearchResultsAnswer): + """Defines an image answer. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param _type: Required. Constant filled by server. + :type _type: str + :ivar id: A String identifier. + :vartype id: str + :ivar read_link: The URL that returns this resource. + :vartype read_link: str + :ivar web_search_url: The URL To Bing's search result for this item. + :vartype web_search_url: str + :ivar total_estimated_matches: The estimated number of webpages that are + relevant to the query. Use this number along with the count and offset + query parameters to page the results. + :vartype total_estimated_matches: long + :ivar next_offset: Used as part of deduping. Tells client the next offset + that client should use in the next pagination request + :vartype next_offset: int + :param value: Required. A list of image objects that are relevant to the + query. If there are no results, the List is empty. + :type value: + list[~azure.cognitiveservices.search.customimagesearch.models.ImageObject] + """ + + _validation = { + '_type': {'required': True}, + 'id': {'readonly': True}, + 'read_link': {'readonly': True}, + 'web_search_url': {'readonly': True}, + 'total_estimated_matches': {'readonly': True}, + 'next_offset': {'readonly': True}, + 'value': {'required': True}, + } + + _attribute_map = { + '_type': {'key': '_type', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'read_link': {'key': 'readLink', 'type': 'str'}, + 'web_search_url': {'key': 'webSearchUrl', 'type': 'str'}, + 'total_estimated_matches': {'key': 'totalEstimatedMatches', 'type': 'long'}, + 'next_offset': {'key': 'nextOffset', 'type': 'int'}, + 'value': {'key': 'value', 'type': '[ImageObject]'}, + } + + def __init__(self, **kwargs): + super(Images, self).__init__(**kwargs) + self.next_offset = None + self.value = kwargs.get('value', None) + self._type = 'Images' diff --git a/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/images_py3.py b/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/images_py3.py new file mode 100644 index 000000000000..5b8c6b5997bd --- /dev/null +++ b/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/images_py3.py @@ -0,0 +1,68 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .search_results_answer import SearchResultsAnswer + + +class Images(SearchResultsAnswer): + """Defines an image answer. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param _type: Required. Constant filled by server. + :type _type: str + :ivar id: A String identifier. + :vartype id: str + :ivar read_link: The URL that returns this resource. + :vartype read_link: str + :ivar web_search_url: The URL To Bing's search result for this item. + :vartype web_search_url: str + :ivar total_estimated_matches: The estimated number of webpages that are + relevant to the query. Use this number along with the count and offset + query parameters to page the results. + :vartype total_estimated_matches: long + :ivar next_offset: Used as part of deduping. Tells client the next offset + that client should use in the next pagination request + :vartype next_offset: int + :param value: Required. A list of image objects that are relevant to the + query. If there are no results, the List is empty. + :type value: + list[~azure.cognitiveservices.search.customimagesearch.models.ImageObject] + """ + + _validation = { + '_type': {'required': True}, + 'id': {'readonly': True}, + 'read_link': {'readonly': True}, + 'web_search_url': {'readonly': True}, + 'total_estimated_matches': {'readonly': True}, + 'next_offset': {'readonly': True}, + 'value': {'required': True}, + } + + _attribute_map = { + '_type': {'key': '_type', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'read_link': {'key': 'readLink', 'type': 'str'}, + 'web_search_url': {'key': 'webSearchUrl', 'type': 'str'}, + 'total_estimated_matches': {'key': 'totalEstimatedMatches', 'type': 'long'}, + 'next_offset': {'key': 'nextOffset', 'type': 'int'}, + 'value': {'key': 'value', 'type': '[ImageObject]'}, + } + + def __init__(self, *, value, **kwargs) -> None: + super(Images, self).__init__(**kwargs) + self.next_offset = None + self.value = value + self._type = 'Images' diff --git a/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/media_object.py b/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/media_object.py new file mode 100644 index 000000000000..9ab87d259487 --- /dev/null +++ b/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/media_object.py @@ -0,0 +1,133 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .creative_work import CreativeWork + + +class MediaObject(CreativeWork): + """Defines a media object. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: ImageObject + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param _type: Required. Constant filled by server. + :type _type: str + :ivar id: A String identifier. + :vartype id: str + :ivar read_link: The URL that returns this resource. + :vartype read_link: str + :ivar web_search_url: The URL To Bing's search result for this item. + :vartype web_search_url: str + :ivar name: The name of the thing represented by this object. + :vartype name: str + :ivar url: The URL to get more information about the thing represented by + this object. + :vartype url: str + :ivar image: An image of the item. + :vartype image: + ~azure.cognitiveservices.search.customimagesearch.models.ImageObject + :ivar description: A short description of the item. + :vartype description: str + :ivar alternate_name: An alias for the item + :vartype alternate_name: str + :ivar bing_id: An ID that uniquely identifies this item. + :vartype bing_id: str + :ivar thumbnail_url: The URL to a thumbnail of the item. + :vartype thumbnail_url: str + :ivar provider: The source of the creative work. + :vartype provider: + list[~azure.cognitiveservices.search.customimagesearch.models.Thing] + :ivar text: Text content of this creative work + :vartype text: str + :ivar content_url: Original URL to retrieve the source (file) for the + media object (e.g the source URL for the image). + :vartype content_url: str + :ivar host_page_url: URL of the page that hosts the media object. + :vartype host_page_url: str + :ivar content_size: Size of the media object content (use format "value + unit" e.g "1024 B"). + :vartype content_size: str + :ivar encoding_format: Encoding format (e.g mp3, mp4, jpeg, etc). + :vartype encoding_format: str + :ivar host_page_display_url: Display URL of the page that hosts the media + object. + :vartype host_page_display_url: str + :ivar width: The width of the media object, in pixels. + :vartype width: int + :ivar height: The height of the media object, in pixels. + :vartype height: int + """ + + _validation = { + '_type': {'required': True}, + 'id': {'readonly': True}, + 'read_link': {'readonly': True}, + 'web_search_url': {'readonly': True}, + 'name': {'readonly': True}, + 'url': {'readonly': True}, + 'image': {'readonly': True}, + 'description': {'readonly': True}, + 'alternate_name': {'readonly': True}, + 'bing_id': {'readonly': True}, + 'thumbnail_url': {'readonly': True}, + 'provider': {'readonly': True}, + 'text': {'readonly': True}, + 'content_url': {'readonly': True}, + 'host_page_url': {'readonly': True}, + 'content_size': {'readonly': True}, + 'encoding_format': {'readonly': True}, + 'host_page_display_url': {'readonly': True}, + 'width': {'readonly': True}, + 'height': {'readonly': True}, + } + + _attribute_map = { + '_type': {'key': '_type', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'read_link': {'key': 'readLink', 'type': 'str'}, + 'web_search_url': {'key': 'webSearchUrl', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'image': {'key': 'image', 'type': 'ImageObject'}, + 'description': {'key': 'description', 'type': 'str'}, + 'alternate_name': {'key': 'alternateName', 'type': 'str'}, + 'bing_id': {'key': 'bingId', 'type': 'str'}, + 'thumbnail_url': {'key': 'thumbnailUrl', 'type': 'str'}, + 'provider': {'key': 'provider', 'type': '[Thing]'}, + 'text': {'key': 'text', 'type': 'str'}, + 'content_url': {'key': 'contentUrl', 'type': 'str'}, + 'host_page_url': {'key': 'hostPageUrl', 'type': 'str'}, + 'content_size': {'key': 'contentSize', 'type': 'str'}, + 'encoding_format': {'key': 'encodingFormat', 'type': 'str'}, + 'host_page_display_url': {'key': 'hostPageDisplayUrl', 'type': 'str'}, + 'width': {'key': 'width', 'type': 'int'}, + 'height': {'key': 'height', 'type': 'int'}, + } + + _subtype_map = { + '_type': {'ImageObject': 'ImageObject'} + } + + def __init__(self, **kwargs): + super(MediaObject, self).__init__(**kwargs) + self.content_url = None + self.host_page_url = None + self.content_size = None + self.encoding_format = None + self.host_page_display_url = None + self.width = None + self.height = None + self._type = 'MediaObject' diff --git a/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/media_object_py3.py b/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/media_object_py3.py new file mode 100644 index 000000000000..f7fdbd064c1f --- /dev/null +++ b/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/media_object_py3.py @@ -0,0 +1,133 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .creative_work import CreativeWork + + +class MediaObject(CreativeWork): + """Defines a media object. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: ImageObject + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param _type: Required. Constant filled by server. + :type _type: str + :ivar id: A String identifier. + :vartype id: str + :ivar read_link: The URL that returns this resource. + :vartype read_link: str + :ivar web_search_url: The URL To Bing's search result for this item. + :vartype web_search_url: str + :ivar name: The name of the thing represented by this object. + :vartype name: str + :ivar url: The URL to get more information about the thing represented by + this object. + :vartype url: str + :ivar image: An image of the item. + :vartype image: + ~azure.cognitiveservices.search.customimagesearch.models.ImageObject + :ivar description: A short description of the item. + :vartype description: str + :ivar alternate_name: An alias for the item + :vartype alternate_name: str + :ivar bing_id: An ID that uniquely identifies this item. + :vartype bing_id: str + :ivar thumbnail_url: The URL to a thumbnail of the item. + :vartype thumbnail_url: str + :ivar provider: The source of the creative work. + :vartype provider: + list[~azure.cognitiveservices.search.customimagesearch.models.Thing] + :ivar text: Text content of this creative work + :vartype text: str + :ivar content_url: Original URL to retrieve the source (file) for the + media object (e.g the source URL for the image). + :vartype content_url: str + :ivar host_page_url: URL of the page that hosts the media object. + :vartype host_page_url: str + :ivar content_size: Size of the media object content (use format "value + unit" e.g "1024 B"). + :vartype content_size: str + :ivar encoding_format: Encoding format (e.g mp3, mp4, jpeg, etc). + :vartype encoding_format: str + :ivar host_page_display_url: Display URL of the page that hosts the media + object. + :vartype host_page_display_url: str + :ivar width: The width of the media object, in pixels. + :vartype width: int + :ivar height: The height of the media object, in pixels. + :vartype height: int + """ + + _validation = { + '_type': {'required': True}, + 'id': {'readonly': True}, + 'read_link': {'readonly': True}, + 'web_search_url': {'readonly': True}, + 'name': {'readonly': True}, + 'url': {'readonly': True}, + 'image': {'readonly': True}, + 'description': {'readonly': True}, + 'alternate_name': {'readonly': True}, + 'bing_id': {'readonly': True}, + 'thumbnail_url': {'readonly': True}, + 'provider': {'readonly': True}, + 'text': {'readonly': True}, + 'content_url': {'readonly': True}, + 'host_page_url': {'readonly': True}, + 'content_size': {'readonly': True}, + 'encoding_format': {'readonly': True}, + 'host_page_display_url': {'readonly': True}, + 'width': {'readonly': True}, + 'height': {'readonly': True}, + } + + _attribute_map = { + '_type': {'key': '_type', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'read_link': {'key': 'readLink', 'type': 'str'}, + 'web_search_url': {'key': 'webSearchUrl', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'image': {'key': 'image', 'type': 'ImageObject'}, + 'description': {'key': 'description', 'type': 'str'}, + 'alternate_name': {'key': 'alternateName', 'type': 'str'}, + 'bing_id': {'key': 'bingId', 'type': 'str'}, + 'thumbnail_url': {'key': 'thumbnailUrl', 'type': 'str'}, + 'provider': {'key': 'provider', 'type': '[Thing]'}, + 'text': {'key': 'text', 'type': 'str'}, + 'content_url': {'key': 'contentUrl', 'type': 'str'}, + 'host_page_url': {'key': 'hostPageUrl', 'type': 'str'}, + 'content_size': {'key': 'contentSize', 'type': 'str'}, + 'encoding_format': {'key': 'encodingFormat', 'type': 'str'}, + 'host_page_display_url': {'key': 'hostPageDisplayUrl', 'type': 'str'}, + 'width': {'key': 'width', 'type': 'int'}, + 'height': {'key': 'height', 'type': 'int'}, + } + + _subtype_map = { + '_type': {'ImageObject': 'ImageObject'} + } + + def __init__(self, **kwargs) -> None: + super(MediaObject, self).__init__(**kwargs) + self.content_url = None + self.host_page_url = None + self.content_size = None + self.encoding_format = None + self.host_page_display_url = None + self.width = None + self.height = None + self._type = 'MediaObject' diff --git a/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/query.py b/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/query.py new file mode 100644 index 000000000000..fa369326e778 --- /dev/null +++ b/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/query.py @@ -0,0 +1,67 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class Query(Model): + """Defines a search query. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param text: Required. The query string. Use this string as the query term + in a new search request. + :type text: str + :ivar display_text: The display version of the query term. This version of + the query term may contain special characters that highlight the search + term found in the query string. The string contains the highlighting + characters only if the query enabled hit highlighting + :vartype display_text: str + :ivar web_search_url: The URL that takes the user to the Bing search + results page for the query.Only related search results include this field. + :vartype web_search_url: str + :ivar search_link: The URL that you use to get the results of the related + search. Before using the URL, you must append query parameters as + appropriate and include the Ocp-Apim-Subscription-Key header. Use this URL + if you're displaying the results in your own user interface. Otherwise, + use the webSearchUrl URL. + :vartype search_link: str + :ivar thumbnail: The URL to a thumbnail of a related image. + :vartype thumbnail: + ~azure.cognitiveservices.search.customimagesearch.models.ImageObject + """ + + _validation = { + 'text': {'required': True}, + 'display_text': {'readonly': True}, + 'web_search_url': {'readonly': True}, + 'search_link': {'readonly': True}, + 'thumbnail': {'readonly': True}, + } + + _attribute_map = { + 'text': {'key': 'text', 'type': 'str'}, + 'display_text': {'key': 'displayText', 'type': 'str'}, + 'web_search_url': {'key': 'webSearchUrl', 'type': 'str'}, + 'search_link': {'key': 'searchLink', 'type': 'str'}, + 'thumbnail': {'key': 'thumbnail', 'type': 'ImageObject'}, + } + + def __init__(self, **kwargs): + super(Query, self).__init__(**kwargs) + self.text = kwargs.get('text', None) + self.display_text = None + self.web_search_url = None + self.search_link = None + self.thumbnail = None diff --git a/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/query_py3.py b/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/query_py3.py new file mode 100644 index 000000000000..e49097c01c59 --- /dev/null +++ b/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/query_py3.py @@ -0,0 +1,67 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class Query(Model): + """Defines a search query. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param text: Required. The query string. Use this string as the query term + in a new search request. + :type text: str + :ivar display_text: The display version of the query term. This version of + the query term may contain special characters that highlight the search + term found in the query string. The string contains the highlighting + characters only if the query enabled hit highlighting + :vartype display_text: str + :ivar web_search_url: The URL that takes the user to the Bing search + results page for the query.Only related search results include this field. + :vartype web_search_url: str + :ivar search_link: The URL that you use to get the results of the related + search. Before using the URL, you must append query parameters as + appropriate and include the Ocp-Apim-Subscription-Key header. Use this URL + if you're displaying the results in your own user interface. Otherwise, + use the webSearchUrl URL. + :vartype search_link: str + :ivar thumbnail: The URL to a thumbnail of a related image. + :vartype thumbnail: + ~azure.cognitiveservices.search.customimagesearch.models.ImageObject + """ + + _validation = { + 'text': {'required': True}, + 'display_text': {'readonly': True}, + 'web_search_url': {'readonly': True}, + 'search_link': {'readonly': True}, + 'thumbnail': {'readonly': True}, + } + + _attribute_map = { + 'text': {'key': 'text', 'type': 'str'}, + 'display_text': {'key': 'displayText', 'type': 'str'}, + 'web_search_url': {'key': 'webSearchUrl', 'type': 'str'}, + 'search_link': {'key': 'searchLink', 'type': 'str'}, + 'thumbnail': {'key': 'thumbnail', 'type': 'ImageObject'}, + } + + def __init__(self, *, text: str, **kwargs) -> None: + super(Query, self).__init__(**kwargs) + self.text = text + self.display_text = None + self.web_search_url = None + self.search_link = None + self.thumbnail = None diff --git a/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/response.py b/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/response.py new file mode 100644 index 000000000000..1abf5a458dcf --- /dev/null +++ b/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/response.py @@ -0,0 +1,59 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .identifiable import Identifiable + + +class Response(Identifiable): + """Defines a response. All schemas that could be returned at the root of a + response should inherit from this. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: Answer, Thing, ErrorResponse + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param _type: Required. Constant filled by server. + :type _type: str + :ivar id: A String identifier. + :vartype id: str + :ivar read_link: The URL that returns this resource. + :vartype read_link: str + :ivar web_search_url: The URL To Bing's search result for this item. + :vartype web_search_url: str + """ + + _validation = { + '_type': {'required': True}, + 'id': {'readonly': True}, + 'read_link': {'readonly': True}, + 'web_search_url': {'readonly': True}, + } + + _attribute_map = { + '_type': {'key': '_type', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'read_link': {'key': 'readLink', 'type': 'str'}, + 'web_search_url': {'key': 'webSearchUrl', 'type': 'str'}, + } + + _subtype_map = { + '_type': {'Answer': 'Answer', 'Thing': 'Thing', 'ErrorResponse': 'ErrorResponse'} + } + + def __init__(self, **kwargs): + super(Response, self).__init__(**kwargs) + self.read_link = None + self.web_search_url = None + self._type = 'Response' diff --git a/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/response_base.py b/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/response_base.py new file mode 100644 index 000000000000..fd44632cfc0a --- /dev/null +++ b/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/response_base.py @@ -0,0 +1,41 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ResponseBase(Model): + """Response base. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: Identifiable + + All required parameters must be populated in order to send to Azure. + + :param _type: Required. Constant filled by server. + :type _type: str + """ + + _validation = { + '_type': {'required': True}, + } + + _attribute_map = { + '_type': {'key': '_type', 'type': 'str'}, + } + + _subtype_map = { + '_type': {'Identifiable': 'Identifiable'} + } + + def __init__(self, **kwargs): + super(ResponseBase, self).__init__(**kwargs) + self._type = None diff --git a/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/response_base_py3.py b/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/response_base_py3.py new file mode 100644 index 000000000000..680e0fe98ab4 --- /dev/null +++ b/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/response_base_py3.py @@ -0,0 +1,41 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ResponseBase(Model): + """Response base. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: Identifiable + + All required parameters must be populated in order to send to Azure. + + :param _type: Required. Constant filled by server. + :type _type: str + """ + + _validation = { + '_type': {'required': True}, + } + + _attribute_map = { + '_type': {'key': '_type', 'type': 'str'}, + } + + _subtype_map = { + '_type': {'Identifiable': 'Identifiable'} + } + + def __init__(self, **kwargs) -> None: + super(ResponseBase, self).__init__(**kwargs) + self._type = None diff --git a/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/response_py3.py b/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/response_py3.py new file mode 100644 index 000000000000..b72996474b2a --- /dev/null +++ b/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/response_py3.py @@ -0,0 +1,59 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .identifiable import Identifiable + + +class Response(Identifiable): + """Defines a response. All schemas that could be returned at the root of a + response should inherit from this. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: Answer, Thing, ErrorResponse + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param _type: Required. Constant filled by server. + :type _type: str + :ivar id: A String identifier. + :vartype id: str + :ivar read_link: The URL that returns this resource. + :vartype read_link: str + :ivar web_search_url: The URL To Bing's search result for this item. + :vartype web_search_url: str + """ + + _validation = { + '_type': {'required': True}, + 'id': {'readonly': True}, + 'read_link': {'readonly': True}, + 'web_search_url': {'readonly': True}, + } + + _attribute_map = { + '_type': {'key': '_type', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'read_link': {'key': 'readLink', 'type': 'str'}, + 'web_search_url': {'key': 'webSearchUrl', 'type': 'str'}, + } + + _subtype_map = { + '_type': {'Answer': 'Answer', 'Thing': 'Thing', 'ErrorResponse': 'ErrorResponse'} + } + + def __init__(self, **kwargs) -> None: + super(Response, self).__init__(**kwargs) + self.read_link = None + self.web_search_url = None + self._type = 'Response' diff --git a/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/search_results_answer.py b/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/search_results_answer.py new file mode 100644 index 000000000000..3ce089b82a6c --- /dev/null +++ b/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/search_results_answer.py @@ -0,0 +1,63 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .answer import Answer + + +class SearchResultsAnswer(Answer): + """Defines a search result answer. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: Images + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param _type: Required. Constant filled by server. + :type _type: str + :ivar id: A String identifier. + :vartype id: str + :ivar read_link: The URL that returns this resource. + :vartype read_link: str + :ivar web_search_url: The URL To Bing's search result for this item. + :vartype web_search_url: str + :ivar total_estimated_matches: The estimated number of webpages that are + relevant to the query. Use this number along with the count and offset + query parameters to page the results. + :vartype total_estimated_matches: long + """ + + _validation = { + '_type': {'required': True}, + 'id': {'readonly': True}, + 'read_link': {'readonly': True}, + 'web_search_url': {'readonly': True}, + 'total_estimated_matches': {'readonly': True}, + } + + _attribute_map = { + '_type': {'key': '_type', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'read_link': {'key': 'readLink', 'type': 'str'}, + 'web_search_url': {'key': 'webSearchUrl', 'type': 'str'}, + 'total_estimated_matches': {'key': 'totalEstimatedMatches', 'type': 'long'}, + } + + _subtype_map = { + '_type': {'Images': 'Images'} + } + + def __init__(self, **kwargs): + super(SearchResultsAnswer, self).__init__(**kwargs) + self.total_estimated_matches = None + self._type = 'SearchResultsAnswer' diff --git a/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/search_results_answer_py3.py b/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/search_results_answer_py3.py new file mode 100644 index 000000000000..f0bb1b5cf65b --- /dev/null +++ b/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/search_results_answer_py3.py @@ -0,0 +1,63 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .answer import Answer + + +class SearchResultsAnswer(Answer): + """Defines a search result answer. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: Images + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param _type: Required. Constant filled by server. + :type _type: str + :ivar id: A String identifier. + :vartype id: str + :ivar read_link: The URL that returns this resource. + :vartype read_link: str + :ivar web_search_url: The URL To Bing's search result for this item. + :vartype web_search_url: str + :ivar total_estimated_matches: The estimated number of webpages that are + relevant to the query. Use this number along with the count and offset + query parameters to page the results. + :vartype total_estimated_matches: long + """ + + _validation = { + '_type': {'required': True}, + 'id': {'readonly': True}, + 'read_link': {'readonly': True}, + 'web_search_url': {'readonly': True}, + 'total_estimated_matches': {'readonly': True}, + } + + _attribute_map = { + '_type': {'key': '_type', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'read_link': {'key': 'readLink', 'type': 'str'}, + 'web_search_url': {'key': 'webSearchUrl', 'type': 'str'}, + 'total_estimated_matches': {'key': 'totalEstimatedMatches', 'type': 'long'}, + } + + _subtype_map = { + '_type': {'Images': 'Images'} + } + + def __init__(self, **kwargs) -> None: + super(SearchResultsAnswer, self).__init__(**kwargs) + self.total_estimated_matches = None + self._type = 'SearchResultsAnswer' diff --git a/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/thing.py b/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/thing.py new file mode 100644 index 000000000000..9d686d477dce --- /dev/null +++ b/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/thing.py @@ -0,0 +1,88 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .response import Response + + +class Thing(Response): + """Defines a thing. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: CreativeWork + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param _type: Required. Constant filled by server. + :type _type: str + :ivar id: A String identifier. + :vartype id: str + :ivar read_link: The URL that returns this resource. + :vartype read_link: str + :ivar web_search_url: The URL To Bing's search result for this item. + :vartype web_search_url: str + :ivar name: The name of the thing represented by this object. + :vartype name: str + :ivar url: The URL to get more information about the thing represented by + this object. + :vartype url: str + :ivar image: An image of the item. + :vartype image: + ~azure.cognitiveservices.search.customimagesearch.models.ImageObject + :ivar description: A short description of the item. + :vartype description: str + :ivar alternate_name: An alias for the item + :vartype alternate_name: str + :ivar bing_id: An ID that uniquely identifies this item. + :vartype bing_id: str + """ + + _validation = { + '_type': {'required': True}, + 'id': {'readonly': True}, + 'read_link': {'readonly': True}, + 'web_search_url': {'readonly': True}, + 'name': {'readonly': True}, + 'url': {'readonly': True}, + 'image': {'readonly': True}, + 'description': {'readonly': True}, + 'alternate_name': {'readonly': True}, + 'bing_id': {'readonly': True}, + } + + _attribute_map = { + '_type': {'key': '_type', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'read_link': {'key': 'readLink', 'type': 'str'}, + 'web_search_url': {'key': 'webSearchUrl', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'image': {'key': 'image', 'type': 'ImageObject'}, + 'description': {'key': 'description', 'type': 'str'}, + 'alternate_name': {'key': 'alternateName', 'type': 'str'}, + 'bing_id': {'key': 'bingId', 'type': 'str'}, + } + + _subtype_map = { + '_type': {'CreativeWork': 'CreativeWork'} + } + + def __init__(self, **kwargs): + super(Thing, self).__init__(**kwargs) + self.name = None + self.url = None + self.image = None + self.description = None + self.alternate_name = None + self.bing_id = None + self._type = 'Thing' diff --git a/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/thing_py3.py b/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/thing_py3.py new file mode 100644 index 000000000000..3b814fc190db --- /dev/null +++ b/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/thing_py3.py @@ -0,0 +1,88 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .response import Response + + +class Thing(Response): + """Defines a thing. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: CreativeWork + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param _type: Required. Constant filled by server. + :type _type: str + :ivar id: A String identifier. + :vartype id: str + :ivar read_link: The URL that returns this resource. + :vartype read_link: str + :ivar web_search_url: The URL To Bing's search result for this item. + :vartype web_search_url: str + :ivar name: The name of the thing represented by this object. + :vartype name: str + :ivar url: The URL to get more information about the thing represented by + this object. + :vartype url: str + :ivar image: An image of the item. + :vartype image: + ~azure.cognitiveservices.search.customimagesearch.models.ImageObject + :ivar description: A short description of the item. + :vartype description: str + :ivar alternate_name: An alias for the item + :vartype alternate_name: str + :ivar bing_id: An ID that uniquely identifies this item. + :vartype bing_id: str + """ + + _validation = { + '_type': {'required': True}, + 'id': {'readonly': True}, + 'read_link': {'readonly': True}, + 'web_search_url': {'readonly': True}, + 'name': {'readonly': True}, + 'url': {'readonly': True}, + 'image': {'readonly': True}, + 'description': {'readonly': True}, + 'alternate_name': {'readonly': True}, + 'bing_id': {'readonly': True}, + } + + _attribute_map = { + '_type': {'key': '_type', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'read_link': {'key': 'readLink', 'type': 'str'}, + 'web_search_url': {'key': 'webSearchUrl', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'image': {'key': 'image', 'type': 'ImageObject'}, + 'description': {'key': 'description', 'type': 'str'}, + 'alternate_name': {'key': 'alternateName', 'type': 'str'}, + 'bing_id': {'key': 'bingId', 'type': 'str'}, + } + + _subtype_map = { + '_type': {'CreativeWork': 'CreativeWork'} + } + + def __init__(self, **kwargs) -> None: + super(Thing, self).__init__(**kwargs) + self.name = None + self.url = None + self.image = None + self.description = None + self.alternate_name = None + self.bing_id = None + self._type = 'Thing' diff --git a/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/web_page.py b/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/web_page.py new file mode 100644 index 000000000000..d2c1e4c4a8d6 --- /dev/null +++ b/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/web_page.py @@ -0,0 +1,88 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .creative_work import CreativeWork + + +class WebPage(CreativeWork): + """Defines a webpage that is relevant to the query. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param _type: Required. Constant filled by server. + :type _type: str + :ivar id: A String identifier. + :vartype id: str + :ivar read_link: The URL that returns this resource. + :vartype read_link: str + :ivar web_search_url: The URL To Bing's search result for this item. + :vartype web_search_url: str + :ivar name: The name of the thing represented by this object. + :vartype name: str + :ivar url: The URL to get more information about the thing represented by + this object. + :vartype url: str + :ivar image: An image of the item. + :vartype image: + ~azure.cognitiveservices.search.customimagesearch.models.ImageObject + :ivar description: A short description of the item. + :vartype description: str + :ivar alternate_name: An alias for the item + :vartype alternate_name: str + :ivar bing_id: An ID that uniquely identifies this item. + :vartype bing_id: str + :ivar thumbnail_url: The URL to a thumbnail of the item. + :vartype thumbnail_url: str + :ivar provider: The source of the creative work. + :vartype provider: + list[~azure.cognitiveservices.search.customimagesearch.models.Thing] + :ivar text: Text content of this creative work + :vartype text: str + """ + + _validation = { + '_type': {'required': True}, + 'id': {'readonly': True}, + 'read_link': {'readonly': True}, + 'web_search_url': {'readonly': True}, + 'name': {'readonly': True}, + 'url': {'readonly': True}, + 'image': {'readonly': True}, + 'description': {'readonly': True}, + 'alternate_name': {'readonly': True}, + 'bing_id': {'readonly': True}, + 'thumbnail_url': {'readonly': True}, + 'provider': {'readonly': True}, + 'text': {'readonly': True}, + } + + _attribute_map = { + '_type': {'key': '_type', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'read_link': {'key': 'readLink', 'type': 'str'}, + 'web_search_url': {'key': 'webSearchUrl', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'image': {'key': 'image', 'type': 'ImageObject'}, + 'description': {'key': 'description', 'type': 'str'}, + 'alternate_name': {'key': 'alternateName', 'type': 'str'}, + 'bing_id': {'key': 'bingId', 'type': 'str'}, + 'thumbnail_url': {'key': 'thumbnailUrl', 'type': 'str'}, + 'provider': {'key': 'provider', 'type': '[Thing]'}, + 'text': {'key': 'text', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(WebPage, self).__init__(**kwargs) + self._type = 'WebPage' diff --git a/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/web_page_py3.py b/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/web_page_py3.py new file mode 100644 index 000000000000..e8c8f00a3dd5 --- /dev/null +++ b/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/models/web_page_py3.py @@ -0,0 +1,88 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .creative_work import CreativeWork + + +class WebPage(CreativeWork): + """Defines a webpage that is relevant to the query. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param _type: Required. Constant filled by server. + :type _type: str + :ivar id: A String identifier. + :vartype id: str + :ivar read_link: The URL that returns this resource. + :vartype read_link: str + :ivar web_search_url: The URL To Bing's search result for this item. + :vartype web_search_url: str + :ivar name: The name of the thing represented by this object. + :vartype name: str + :ivar url: The URL to get more information about the thing represented by + this object. + :vartype url: str + :ivar image: An image of the item. + :vartype image: + ~azure.cognitiveservices.search.customimagesearch.models.ImageObject + :ivar description: A short description of the item. + :vartype description: str + :ivar alternate_name: An alias for the item + :vartype alternate_name: str + :ivar bing_id: An ID that uniquely identifies this item. + :vartype bing_id: str + :ivar thumbnail_url: The URL to a thumbnail of the item. + :vartype thumbnail_url: str + :ivar provider: The source of the creative work. + :vartype provider: + list[~azure.cognitiveservices.search.customimagesearch.models.Thing] + :ivar text: Text content of this creative work + :vartype text: str + """ + + _validation = { + '_type': {'required': True}, + 'id': {'readonly': True}, + 'read_link': {'readonly': True}, + 'web_search_url': {'readonly': True}, + 'name': {'readonly': True}, + 'url': {'readonly': True}, + 'image': {'readonly': True}, + 'description': {'readonly': True}, + 'alternate_name': {'readonly': True}, + 'bing_id': {'readonly': True}, + 'thumbnail_url': {'readonly': True}, + 'provider': {'readonly': True}, + 'text': {'readonly': True}, + } + + _attribute_map = { + '_type': {'key': '_type', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'read_link': {'key': 'readLink', 'type': 'str'}, + 'web_search_url': {'key': 'webSearchUrl', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'image': {'key': 'image', 'type': 'ImageObject'}, + 'description': {'key': 'description', 'type': 'str'}, + 'alternate_name': {'key': 'alternateName', 'type': 'str'}, + 'bing_id': {'key': 'bingId', 'type': 'str'}, + 'thumbnail_url': {'key': 'thumbnailUrl', 'type': 'str'}, + 'provider': {'key': 'provider', 'type': '[Thing]'}, + 'text': {'key': 'text', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(WebPage, self).__init__(**kwargs) + self._type = 'WebPage' diff --git a/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/operations/__init__.py b/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/operations/__init__.py new file mode 100644 index 000000000000..ce2670033a78 --- /dev/null +++ b/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/operations/__init__.py @@ -0,0 +1,16 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .custom_instance_operations import CustomInstanceOperations + +__all__ = [ + 'CustomInstanceOperations', +] diff --git a/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/operations/custom_instance_operations.py b/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/operations/custom_instance_operations.py new file mode 100644 index 000000000000..79c41ab87ad5 --- /dev/null +++ b/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/operations/custom_instance_operations.py @@ -0,0 +1,498 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.pipeline import ClientRawResponse + +from .. import models + + +class CustomInstanceOperations(object): + """CustomInstanceOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar x_bing_apis_sdk: Activate swagger compliance. Constant value: "true". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + + self.config = config + self.x_bing_apis_sdk = "true" + + def image_search( + self, custom_config, query, accept_language=None, user_agent=None, client_id=None, client_ip=None, location=None, aspect=None, color=None, country_code=None, count=None, freshness=None, height=None, id=None, image_content=None, image_type=None, license=None, market=None, max_file_size=None, max_height=None, max_width=None, min_file_size=None, min_height=None, min_width=None, offset=None, safe_search=None, size=None, set_lang=None, width=None, custom_headers=None, raw=False, **operation_config): + """The Custom Image Search API lets you send an image search query to Bing + and get image results found in your custom view of the web. + + :param custom_config: The identifier for the custom search + configuration + :type custom_config: long + :param query: The user's search query term. The term cannot be empty. + The term may contain [Bing Advanced + Operators](http://msdn.microsoft.com/library/ff795620.aspx). For + example, to limit images to a specific domain, use the + [site:](http://msdn.microsoft.com/library/ff795613.aspx) operator. To + help improve relevance of an insights query (see + [insightsToken](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#insightstoken)), + you should always include the user's query term. Use this parameter + only with the Image Search API.Do not specify this parameter when + calling the Trending Images API. + :type query: str + :param accept_language: A comma-delimited list of one or more + languages to use for user interface strings. The list is in decreasing + order of preference. For additional information, including expected + format, see + [RFC2616](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html). + This header and the + [setLang](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#setlang) + query parameter are mutually exclusive; do not specify both. If you + set this header, you must also specify the + [cc](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#cc) + query parameter. To determine the market to return results for, Bing + uses the first supported language it finds from the list and combines + it with the cc parameter value. If the list does not include a + supported language, Bing finds the closest language and market that + supports the request or it uses an aggregated or default market for + the results. To determine the market that Bing used, see the + BingAPIs-Market header. Use this header and the cc query parameter + only if you specify multiple languages. Otherwise, use the + [mkt](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#mkt) + and + [setLang](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#setlang) + query parameters. A user interface string is a string that's used as a + label in a user interface. There are few user interface strings in the + JSON response objects. Any links to Bing.com properties in the + response objects apply the specified language. + :type accept_language: str + :param user_agent: The user agent originating the request. Bing uses + the user agent to provide mobile users with an optimized experience. + Although optional, you are encouraged to always specify this header. + The user-agent should be the same string that any commonly used + browser sends. For information about user agents, see [RFC + 2616](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html). The + following are examples of user-agent strings. Windows Phone: + Mozilla/5.0 (compatible; MSIE 10.0; Windows Phone 8.0; Trident/6.0; + IEMobile/10.0; ARM; Touch; NOKIA; Lumia 822). Android: Mozilla / 5.0 + (Linux; U; Android 2.3.5; en - us; SCH - I500 Build / GINGERBREAD) + AppleWebKit / 533.1 (KHTML; like Gecko) Version / 4.0 Mobile Safari / + 533.1. iPhone: Mozilla / 5.0 (iPhone; CPU iPhone OS 6_1 like Mac OS X) + AppleWebKit / 536.26 (KHTML; like Gecko) Mobile / 10B142 iPhone4; 1 + BingWeb / 3.03.1428.20120423. PC: Mozilla / 5.0 (Windows NT 6.3; + WOW64; Trident / 7.0; Touch; rv:11.0) like Gecko. iPad: Mozilla / 5.0 + (iPad; CPU OS 7_0 like Mac OS X) AppleWebKit / 537.51.1 (KHTML, like + Gecko) Version / 7.0 Mobile / 11A465 Safari / 9537.53 + :type user_agent: str + :param client_id: Bing uses this header to provide users with + consistent behavior across Bing API calls. Bing often flights new + features and improvements, and it uses the client ID as a key for + assigning traffic on different flights. If you do not use the same + client ID for a user across multiple requests, then Bing may assign + the user to multiple conflicting flights. Being assigned to multiple + conflicting flights can lead to an inconsistent user experience. For + example, if the second request has a different flight assignment than + the first, the experience may be unexpected. Also, Bing can use the + client ID to tailor web results to that client ID’s search history, + providing a richer experience for the user. Bing also uses this header + to help improve result rankings by analyzing the activity generated by + a client ID. The relevance improvements help with better quality of + results delivered by Bing APIs and in turn enables higher + click-through rates for the API consumer. IMPORTANT: Although + optional, you should consider this header required. Persisting the + client ID across multiple requests for the same end user and device + combination enables 1) the API consumer to receive a consistent user + experience, and 2) higher click-through rates via better quality of + results from the Bing APIs. Each user that uses your application on + the device must have a unique, Bing generated client ID. If you do not + include this header in the request, Bing generates an ID and returns + it in the X-MSEdge-ClientID response header. The only time that you + should NOT include this header in a request is the first time the user + uses your app on that device. Use the client ID for each Bing API + request that your app makes for this user on the device. Persist the + client ID. To persist the ID in a browser app, use a persistent HTTP + cookie to ensure the ID is used across all sessions. Do not use a + session cookie. For other apps such as mobile apps, use the device's + persistent storage to persist the ID. The next time the user uses your + app on that device, get the client ID that you persisted. Bing + responses may or may not include this header. If the response includes + this header, capture the client ID and use it for all subsequent Bing + requests for the user on that device. If you include the + X-MSEdge-ClientID, you must not include cookies in the request. + :type client_id: str + :param client_ip: The IPv4 or IPv6 address of the client device. The + IP address is used to discover the user's location. Bing uses the + location information to determine safe search behavior. Although + optional, you are encouraged to always specify this header and the + X-Search-Location header. Do not obfuscate the address (for example, + by changing the last octet to 0). Obfuscating the address results in + the location not being anywhere near the device's actual location, + which may result in Bing serving erroneous results. + :type client_ip: str + :param location: A semicolon-delimited list of key/value pairs that + describe the client's geographical location. Bing uses the location + information to determine safe search behavior and to return relevant + local content. Specify the key/value pair as :. The + following are the keys that you use to specify the user's location. + lat (required): The latitude of the client's location, in degrees. The + latitude must be greater than or equal to -90.0 and less than or equal + to +90.0. Negative values indicate southern latitudes and positive + values indicate northern latitudes. long (required): The longitude of + the client's location, in degrees. The longitude must be greater than + or equal to -180.0 and less than or equal to +180.0. Negative values + indicate western longitudes and positive values indicate eastern + longitudes. re (required): The radius, in meters, which specifies the + horizontal accuracy of the coordinates. Pass the value returned by the + device's location service. Typical values might be 22m for GPS/Wi-Fi, + 380m for cell tower triangulation, and 18,000m for reverse IP lookup. + ts (optional): The UTC UNIX timestamp of when the client was at the + location. (The UNIX timestamp is the number of seconds since January + 1, 1970.) head (optional): The client's relative heading or direction + of travel. Specify the direction of travel as degrees from 0 through + 360, counting clockwise relative to true north. Specify this key only + if the sp key is nonzero. sp (optional): The horizontal velocity + (speed), in meters per second, that the client device is traveling. + alt (optional): The altitude of the client device, in meters. are + (optional): The radius, in meters, that specifies the vertical + accuracy of the coordinates. Specify this key only if you specify the + alt key. Although many of the keys are optional, the more information + that you provide, the more accurate the location results are. Although + optional, you are encouraged to always specify the user's geographical + location. Providing the location is especially important if the + client's IP address does not accurately reflect the user's physical + location (for example, if the client uses VPN). For optimal results, + you should include this header and the X-MSEdge-ClientIP header, but + at a minimum, you should include this header. + :type location: str + :param aspect: Filter images by the following aspect ratios. All: Do + not filter by aspect.Specifying this value is the same as not + specifying the aspect parameter. Square: Return images with standard + aspect ratio. Wide: Return images with wide screen aspect ratio. Tall: + Return images with tall aspect ratio. Possible values include: 'All', + 'Square', 'Wide', 'Tall' + :type aspect: str or + ~azure.cognitiveservices.search.customimagesearch.models.ImageAspect + :param color: Filter images by the following color options. ColorOnly: + Return color images. Monochrome: Return black and white images. Return + images with one of the following dominant colors: Black, Blue, Brown, + Gray, Green, Orange, Pink, Purple, Red, Teal, White, Yellow. Possible + values include: 'ColorOnly', 'Monochrome', 'Black', 'Blue', 'Brown', + 'Gray', 'Green', 'Orange', 'Pink', 'Purple', 'Red', 'Teal', 'White', + 'Yellow' + :type color: str or + ~azure.cognitiveservices.search.customimagesearch.models.ImageColor + :param country_code: A 2-character country code of the country where + the results come from. For a list of possible values, see [Market + Codes](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#market-codes). + If you set this parameter, you must also specify the + [Accept-Language](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#acceptlanguage) + header. Bing uses the first supported language it finds from the + languages list, and combine that language with the country code that + you specify to determine the market to return results for. If the + languages list does not include a supported language, Bing finds the + closest language and market that supports the request, or it may use + an aggregated or default market for the results instead of a specified + one. You should use this query parameter and the Accept-Language query + parameter only if you specify multiple languages; otherwise, you + should use the mkt and setLang query parameters. This parameter and + the + [mkt](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#mkt) + query parameter are mutually exclusive—do not specify both. + :type country_code: str + :param count: The number of images to return in the response. The + actual number delivered may be less than requested. The default is 35. + The maximum value is 150. You use this parameter along with the offset + parameter to page results.For example, if your user interface displays + 20 images per page, set count to 20 and offset to 0 to get the first + page of results.For each subsequent page, increment offset by 20 (for + example, 0, 20, 40). Use this parameter only with the Image Search + API.Do not specify this parameter when calling the Insights, Trending + Images, or Web Search APIs. + :type count: int + :param freshness: Filter images by the following discovery options. + Day: Return images discovered by Bing within the last 24 hours. Week: + Return images discovered by Bing within the last 7 days. Month: Return + images discovered by Bing within the last 30 days. Possible values + include: 'Day', 'Week', 'Month' + :type freshness: str or + ~azure.cognitiveservices.search.customimagesearch.models.Freshness + :param height: Filter images that have the specified height, in + pixels. You may use this filter with the size filter to return small + images that have a height of 150 pixels. + :type height: int + :param id: An ID that uniquely identifies an image. Use this parameter + to ensure that the specified image is the first image in the list of + images that Bing returns. The + [Image](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#image) + object's imageId field contains the ID that you set this parameter to. + :type id: str + :param image_content: Filter images by the following content types. + Face: Return images that show only a person's face. Portrait: Return + images that show only a person's head and shoulders. Possible values + include: 'Face', 'Portrait' + :type image_content: str or + ~azure.cognitiveservices.search.customimagesearch.models.ImageContent + :param image_type: Filter images by the following image types. + AnimatedGif: Return only animated GIFs. Clipart: Return only clip art + images. Line: Return only line drawings. Photo: Return only + photographs(excluding line drawings, animated Gifs, and clip art). + Shopping: Return only images that contain items where Bing knows of a + merchant that is selling the items. This option is valid in the en - + US market only.Transparent: Return only images with a transparent + background. Possible values include: 'AnimatedGif', 'Clipart', 'Line', + 'Photo', 'Shopping', 'Transparent' + :type image_type: str or + ~azure.cognitiveservices.search.customimagesearch.models.ImageType + :param license: Filter images by the following license types. All: Do + not filter by license type.Specifying this value is the same as not + specifying the license parameter. Any: Return images that are under + any license type. The response doesn't include images that do not + specify a license or the license is unknown. Public: Return images + where the creator has waived their exclusive rights, to the fullest + extent allowed by law. Share: Return images that may be shared with + others. Changing or editing the image might not be allowed. Also, + modifying, sharing, and using the image for commercial purposes might + not be allowed. Typically, this option returns the most images. + ShareCommercially: Return images that may be shared with others for + personal or commercial purposes. Changing or editing the image might + not be allowed. Modify: Return images that may be modified, shared, + and used. Changing or editing the image might not be allowed. + Modifying, sharing, and using the image for commercial purposes might + not be allowed. ModifyCommercially: Return images that may be + modified, shared, and used for personal or commercial purposes. + Typically, this option returns the fewest images. For more information + about these license types, see [Filter Images By License + Type](http://go.microsoft.com/fwlink/?LinkId=309768). Possible values + include: 'All', 'Any', 'Public', 'Share', 'ShareCommercially', + 'Modify', 'ModifyCommercially' + :type license: str or + ~azure.cognitiveservices.search.customimagesearch.models.ImageLicense + :param market: The market where the results come from. Typically, mkt + is the country where the user is making the request from. However, it + could be a different country if the user is not located in a country + where Bing delivers results. The market must be in the form -. For example, en-US. The string is case + insensitive. For a list of possible market values, see [Market + Codes](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#market-codes). + NOTE: If known, you are encouraged to always specify the market. + Specifying the market helps Bing route the request and return an + appropriate and optimal response. If you specify a market that is not + listed in [Market + Codes](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#market-codes), + Bing uses a best fit market code based on an internal mapping that is + subject to change. This parameter and the + [cc](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#cc) + query parameter are mutually exclusive—do not specify both. + :type market: str + :param max_file_size: Filter images that are less than or equal to the + specified file size. The maximum file size that you may specify is + 520,192 bytes. If you specify a larger value, the API uses 520,192. It + is possible that the response may include images that are slightly + larger than the specified maximum. You may specify this filter and + minFileSize to filter images within a range of file sizes. + :type max_file_size: long + :param max_height: Filter images that have a height that is less than + or equal to the specified height. Specify the height in pixels. You + may specify this filter and minHeight to filter images within a range + of heights. This filter and the height filter are mutually exclusive. + :type max_height: long + :param max_width: Filter images that have a width that is less than or + equal to the specified width. Specify the width in pixels. You may + specify this filter and maxWidth to filter images within a range of + widths. This filter and the width filter are mutually exclusive. + :type max_width: long + :param min_file_size: Filter images that are greater than or equal to + the specified file size. The maximum file size that you may specify is + 520,192 bytes. If you specify a larger value, the API uses 520,192. It + is possible that the response may include images that are slightly + smaller than the specified minimum. You may specify this filter and + maxFileSize to filter images within a range of file sizes. + :type min_file_size: long + :param min_height: Filter images that have a height that is greater + than or equal to the specified height. Specify the height in pixels. + You may specify this filter and maxHeight to filter images within a + range of heights. This filter and the height filter are mutually + exclusive. + :type min_height: long + :param min_width: Filter images that have a width that is greater than + or equal to the specified width. Specify the width in pixels. You may + specify this filter and maxWidth to filter images within a range of + widths. This filter and the width filter are mutually exclusive. + :type min_width: long + :param offset: The zero-based offset that indicates the number of + images to skip before returning images. The default is 0. The offset + should be less than + ([totalEstimatedMatches](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#totalestimatedmatches) + - count). Use this parameter along with the count parameter to page + results. For example, if your user interface displays 20 images per + page, set count to 20 and offset to 0 to get the first page of + results. For each subsequent page, increment offset by 20 (for + example, 0, 20, 40). It is possible for multiple pages to include some + overlap in results. To prevent duplicates, see + [nextOffset](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#nextoffset). + Use this parameter only with the Image API. Do not specify this + parameter when calling the Trending Images API or the Web Search API. + :type offset: long + :param safe_search: Filter images for adult content. The following are + the possible filter values. Off: May return images with adult content. + If the request is through the Image Search API, the response includes + thumbnail images that are clear (non-fuzzy). However, if the request + is through the Web Search API, the response includes thumbnail images + that are pixelated (fuzzy). Moderate: If the request is through the + Image Search API, the response doesn't include images with adult + content. If the request is through the Web Search API, the response + may include images with adult content (the thumbnail images are + pixelated (fuzzy)). Strict: Do not return images with adult content. + The default is Moderate. If the request comes from a market that + Bing's adult policy requires that safeSearch is set to Strict, Bing + ignores the safeSearch value and uses Strict. If you use the site: + query operator, there is the chance that the response may contain + adult content regardless of what the safeSearch query parameter is set + to. Use site: only if you are aware of the content on the site and + your scenario supports the possibility of adult content. Possible + values include: 'Off', 'Moderate', 'Strict' + :type safe_search: str or + ~azure.cognitiveservices.search.customimagesearch.models.SafeSearch + :param size: Filter images by the following sizes. All: Do not filter + by size. Specifying this value is the same as not specifying the size + parameter. Small: Return images that are less than 200x200 pixels. + Medium: Return images that are greater than or equal to 200x200 pixels + but less than 500x500 pixels. Large: Return images that are 500x500 + pixels or larger. Wallpaper: Return wallpaper images. You may use this + parameter along with the height or width parameters. For example, you + may use height and size to request small images that are 150 pixels + tall. Possible values include: 'All', 'Small', 'Medium', 'Large', + 'Wallpaper' + :type size: str or + ~azure.cognitiveservices.search.customimagesearch.models.ImageSize + :param set_lang: The language to use for user interface strings. + Specify the language using the ISO 639-1 2-letter language code. For + example, the language code for English is EN. The default is EN + (English). Although optional, you should always specify the language. + Typically, you set setLang to the same language specified by mkt + unless the user wants the user interface strings displayed in a + different language. This parameter and the + [Accept-Language](https://docs.microsoft.com/en-us/rest/api/cognitiveservices/bing-images-api-v7-reference#acceptlanguage) + header are mutually exclusive; do not specify both. A user interface + string is a string that's used as a label in a user interface. There + are few user interface strings in the JSON response objects. Also, any + links to Bing.com properties in the response objects apply the + specified language. + :type set_lang: str + :param width: Filter images that have the specified width, in pixels. + You may use this filter with the size filter to return small images + that have a width of 150 pixels. + :type width: int + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: Images or ClientRawResponse if raw=true + :rtype: + ~azure.cognitiveservices.search.customimagesearch.models.Images or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorResponseException` + """ + # Construct URL + url = self.image_search.metadata['url'] + + # Construct parameters + query_parameters = {} + query_parameters['customConfig'] = self._serialize.query("custom_config", custom_config, 'long', minimum=0) + if aspect is not None: + query_parameters['aspect'] = self._serialize.query("aspect", aspect, 'str') + if color is not None: + query_parameters['color'] = self._serialize.query("color", color, 'str') + if country_code is not None: + query_parameters['cc'] = self._serialize.query("country_code", country_code, 'str') + if count is not None: + query_parameters['count'] = self._serialize.query("count", count, 'int') + if freshness is not None: + query_parameters['freshness'] = self._serialize.query("freshness", freshness, 'str') + if height is not None: + query_parameters['height'] = self._serialize.query("height", height, 'int') + if id is not None: + query_parameters['id'] = self._serialize.query("id", id, 'str') + if image_content is not None: + query_parameters['imageContent'] = self._serialize.query("image_content", image_content, 'str') + if image_type is not None: + query_parameters['imageType'] = self._serialize.query("image_type", image_type, 'str') + if license is not None: + query_parameters['license'] = self._serialize.query("license", license, 'str') + if market is not None: + query_parameters['mkt'] = self._serialize.query("market", market, 'str') + if max_file_size is not None: + query_parameters['maxFileSize'] = self._serialize.query("max_file_size", max_file_size, 'long') + if max_height is not None: + query_parameters['maxHeight'] = self._serialize.query("max_height", max_height, 'long') + if max_width is not None: + query_parameters['maxWidth'] = self._serialize.query("max_width", max_width, 'long') + if min_file_size is not None: + query_parameters['minFileSize'] = self._serialize.query("min_file_size", min_file_size, 'long') + if min_height is not None: + query_parameters['minHeight'] = self._serialize.query("min_height", min_height, 'long') + if min_width is not None: + query_parameters['minWidth'] = self._serialize.query("min_width", min_width, 'long') + if offset is not None: + query_parameters['offset'] = self._serialize.query("offset", offset, 'long') + query_parameters['q'] = self._serialize.query("query", query, 'str') + if safe_search is not None: + query_parameters['safeSearch'] = self._serialize.query("safe_search", safe_search, 'str') + if size is not None: + query_parameters['size'] = self._serialize.query("size", size, 'str') + if set_lang is not None: + query_parameters['setLang'] = self._serialize.query("set_lang", set_lang, 'str') + if width is not None: + query_parameters['width'] = self._serialize.query("width", width, 'int') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + header_parameters['X-BingApis-SDK'] = self._serialize.header("self.x_bing_apis_sdk", self.x_bing_apis_sdk, 'str') + if accept_language is not None: + header_parameters['Accept-Language'] = self._serialize.header("accept_language", accept_language, 'str') + if user_agent is not None: + header_parameters['User-Agent'] = self._serialize.header("user_agent", user_agent, 'str') + if client_id is not None: + header_parameters['X-MSEdge-ClientID'] = self._serialize.header("client_id", client_id, 'str') + if client_ip is not None: + header_parameters['X-MSEdge-ClientIP'] = self._serialize.header("client_ip", client_ip, 'str') + if location is not None: + header_parameters['X-Search-Location'] = self._serialize.header("location", location, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorResponseException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('Images', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + image_search.metadata = {'url': '/images/search'} diff --git a/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/version.py b/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/version.py new file mode 100644 index 000000000000..e0ec669828cb --- /dev/null +++ b/azure-cognitiveservices-search-customimagesearch/azure/cognitiveservices/search/customimagesearch/version.py @@ -0,0 +1,13 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +VERSION = "0.1.0" + diff --git a/azure-cognitiveservices-search-customimagesearch/sdk_packaging.toml b/azure-cognitiveservices-search-customimagesearch/sdk_packaging.toml new file mode 100644 index 000000000000..03d5530c9540 --- /dev/null +++ b/azure-cognitiveservices-search-customimagesearch/sdk_packaging.toml @@ -0,0 +1,8 @@ +[packaging] +package_name = "azure-cognitiveservices-search-customimagesearch" +package_nspkg = "azure-cognitiveservices-search-nspkg" +package_pprint_name = "Cognitive Services Custom Image Search" +package_doc_id = "cognitive-services" +is_stable = false +is_arm = false +need_msrestazure = false diff --git a/azure-cognitiveservices-search-customimagesearch/setup.cfg b/azure-cognitiveservices-search-customimagesearch/setup.cfg new file mode 100644 index 000000000000..3c6e79cf31da --- /dev/null +++ b/azure-cognitiveservices-search-customimagesearch/setup.cfg @@ -0,0 +1,2 @@ +[bdist_wheel] +universal=1 diff --git a/azure-cognitiveservices-search-customimagesearch/setup.py b/azure-cognitiveservices-search-customimagesearch/setup.py new file mode 100644 index 000000000000..455120b62d93 --- /dev/null +++ b/azure-cognitiveservices-search-customimagesearch/setup.py @@ -0,0 +1,87 @@ +#!/usr/bin/env python + +#------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +#-------------------------------------------------------------------------- + +import re +import os.path +from io import open +from setuptools import find_packages, setup + +# Change the PACKAGE_NAME only to change folder and different name +PACKAGE_NAME = "azure-cognitiveservices-search-customimagesearch" +PACKAGE_PPRINT_NAME = "Cognitive Services Custom Image Search" + +# a-b-c => a/b/c +package_folder_path = PACKAGE_NAME.replace('-', '/') +# a-b-c => a.b.c +namespace_name = PACKAGE_NAME.replace('-', '.') + +# azure v0.x is not compatible with this package +# azure v0.x used to have a __version__ attribute (newer versions don't) +try: + import azure + try: + ver = azure.__version__ + raise Exception( + 'This package is incompatible with azure=={}. '.format(ver) + + 'Uninstall it with "pip uninstall azure".' + ) + except AttributeError: + pass +except ImportError: + pass + +# Version extraction inspired from 'requests' +with open(os.path.join(package_folder_path, 'version.py'), 'r') as fd: + version = re.search(r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]', + fd.read(), re.MULTILINE).group(1) + +if not version: + raise RuntimeError('Cannot find version information') + +with open('README.rst', encoding='utf-8') as f: + readme = f.read() +with open('HISTORY.rst', encoding='utf-8') as f: + history = f.read() + +setup( + name=PACKAGE_NAME, + version=version, + description='Microsoft Azure {} Client Library for Python'.format(PACKAGE_PPRINT_NAME), + long_description=readme + '\n\n' + history, + license='MIT License', + author='Microsoft Corporation', + author_email='azpysdkhelp@microsoft.com', + url='https://github.com/Azure/azure-sdk-for-python', + classifiers=[ + 'Development Status :: 4 - Beta', + 'Programming Language :: Python', + 'Programming Language :: Python :: 2', + 'Programming Language :: Python :: 2.7', + 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3.4', + 'Programming Language :: Python :: 3.5', + 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', + 'License :: OSI Approved :: MIT License', + ], + zip_safe=False, + packages=find_packages(exclude=[ + 'tests', + # Exclude packages that will be covered by PEP420 or nspkg + 'azure', + 'azure.cognitiveservices', + 'azure.cognitiveservices.search', + ]), + install_requires=[ + 'msrest>=0.5.0', + 'azure-common~=1.1', + ], + extras_require={ + ":python_version<'3.0'": ['azure-cognitiveservices-search-nspkg'], + } +) From 150224eb4aca9af4a28a49ec5181a0b00d16767c Mon Sep 17 00:00:00 2001 From: Laurent Mazuel Date: Tue, 11 Dec 2018 11:55:17 -0800 Subject: [PATCH 10/12] Packaging details fix (#4048) --- azure-keyvault/HISTORY.rst | 1 + azure-keyvault/MANIFEST.in | 1 + 2 files changed, 2 insertions(+) diff --git a/azure-keyvault/HISTORY.rst b/azure-keyvault/HISTORY.rst index 9487de1412ee..b4fade16d78e 100644 --- a/azure-keyvault/HISTORY.rst +++ b/azure-keyvault/HISTORY.rst @@ -2,6 +2,7 @@ Release History =============== + 1.1.0 (2018-08-07) ++++++++++++++++++++ diff --git a/azure-keyvault/MANIFEST.in b/azure-keyvault/MANIFEST.in index bb37a2723dae..0b7e52aea79a 100644 --- a/azure-keyvault/MANIFEST.in +++ b/azure-keyvault/MANIFEST.in @@ -1 +1,2 @@ include *.rst +include azure/__init__.py From b286fca1a383d9f1821f4ff1f626866dfcfb754c Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Thu, 13 Dec 2018 13:20:54 -0800 Subject: [PATCH 11/12] [AutoPR] containerservices/resource-manager (#3378) * Generated from 19c94f3e6c0b83241ce012d44f5db47765d5e6a4 (#3376) Remove serverAppSecret which is not required for AKS cluster updates * [AutoPR containerservices/resource-manager] Support two apiversion for container service (#3618) * Generated from 663fe8f24bfa51bd8ea47b8e047d1c7d27dd776d rebase and resolve conflict * Packaging update of azure-mgmt-containerservice * Generated from 902f5cc7a0d60d80fd13c9cf75c5081aac3e69d9 add osMC resource in the readme * Generated from 3f9220b29a0180bf1a037013514ea859e6a0bf22 add listcredential api back * Packaging update of azure-mgmt-containerservice * Generated from de4b057ff9497a76da9201e5a339fa4f90022320 Merge branch 'support-two-apiversion' of github.com:zqingqing1/azure-rest-api-specs into support-two-apiversion * Generated from feb703f2baba9455e3f4e671fc7ef0479111392f change default tag to 2018-09-30-preview * Generated from 6da165da530980a01c317254a5807602731621df udpate tag to lastest version * Packaging update of azure-mgmt-containerservice * ACS multi-api * ACS 4.3.0 * [AutoPR containerservices/resource-manager] ContainerServices - OpenShift - Add new routes and update (#3891) * Generated from 6b22760d25bbe32479e70eb08a6222f9e4157b50 remove private preview count limitations * Generated from ad95dc3aa4cc2e6d9948b79432cf1ac9c0d50641 Update description to remove min and max limitations * Update HISTORY.rst --- azure-mgmt-containerservice/HISTORY.rst | 27 + azure-mgmt-containerservice/MANIFEST.in | 3 + .../container_service_client.py | 142 +++- .../azure/mgmt/containerservice/models.py | 15 + .../containerservice/v2017_07_01/__init__.py | 18 + .../v2017_07_01/container_service_client.py | 84 ++ .../v2017_07_01/models/__init__.py | 79 ++ .../models/container_service.py | 16 +- .../container_service_agent_pool_profile.py | 7 +- ...ontainer_service_agent_pool_profile_py3.py | 7 +- .../models/container_service_client_enums.py | 11 - .../container_service_custom_profile.py | 0 .../container_service_custom_profile_py3.py | 0 .../container_service_diagnostics_profile.py | 2 +- ...ntainer_service_diagnostics_profile_py3.py | 2 +- .../models/container_service_linux_profile.py | 2 +- .../container_service_linux_profile_py3.py | 2 +- .../container_service_master_profile.py | 4 +- .../container_service_master_profile_py3.py | 4 +- .../container_service_orchestrator_profile.py | 2 +- ...tainer_service_orchestrator_profile_py3.py | 2 +- .../models/container_service_paged.py | 2 +- .../models/container_service_py3.py | 16 +- ...ainer_service_service_principal_profile.py | 2 +- ...r_service_service_principal_profile_py3.py | 2 +- .../container_service_ssh_configuration.py | 2 +- ...container_service_ssh_configuration_py3.py | 2 +- .../container_service_ssh_public_key.py | 0 .../container_service_ssh_public_key_py3.py | 0 .../container_service_vm_diagnostics.py | 0 .../container_service_vm_diagnostics_py3.py | 0 .../container_service_windows_profile.py | 0 .../container_service_windows_profile_py3.py | 0 .../models/key_vault_secret_ref.py | 0 .../models/key_vault_secret_ref_py3.py | 0 .../models/orchestrator_profile.py | 0 .../models/orchestrator_profile_py3.py | 0 .../models/orchestrator_version_profile.py | 2 +- ...rchestrator_version_profile_list_result.py | 2 +- ...strator_version_profile_list_result_py3.py | 2 +- .../orchestrator_version_profile_py3.py | 2 +- .../{ => v2017_07_01}/models/resource.py | 0 .../{ => v2017_07_01}/models/resource_py3.py | 0 .../v2017_07_01/operations/__init__.py | 16 + .../container_services_operations.py | 16 +- .../containerservice/v2017_07_01/version.py | 13 + .../containerservice/v2018_03_31/__init__.py | 18 + .../v2018_03_31/container_service_client.py | 90 ++ .../{ => v2018_03_31}/models/__init__.py | 58 +- .../models/container_service_client_enums.py | 213 +++++ .../container_service_diagnostics_profile.py | 36 + ...ntainer_service_diagnostics_profile_py3.py | 36 + .../models/container_service_linux_profile.py | 42 + .../container_service_linux_profile_py3.py | 42 + .../container_service_master_profile.py | 128 +++ .../container_service_master_profile_py3.py | 128 +++ .../container_service_network_profile.py | 4 +- .../container_service_network_profile_py3.py | 4 +- .../container_service_ssh_configuration.py | 36 + ...container_service_ssh_configuration_py3.py | 36 + .../container_service_ssh_public_key.py | 36 + .../container_service_ssh_public_key_py3.py | 36 + .../container_service_vm_diagnostics.py | 44 + .../container_service_vm_diagnostics_py3.py | 44 + .../container_service_windows_profile.py | 41 + .../container_service_windows_profile_py3.py | 41 + .../models/credential_result.py | 0 .../models/credential_result_py3.py | 0 .../models/credential_results.py | 2 +- .../models/credential_results_py3.py | 2 +- .../models/managed_cluster.py | 12 +- .../models/managed_cluster_aad_profile.py | 3 +- .../models/managed_cluster_aad_profile_py3.py | 5 +- .../models/managed_cluster_access_profile.py | 0 .../managed_cluster_access_profile_py3.py | 0 .../models/managed_cluster_addon_profile.py | 0 .../managed_cluster_addon_profile_py3.py | 0 .../managed_cluster_agent_pool_profile.py | 7 +- .../managed_cluster_agent_pool_profile_py3.py | 7 +- .../models/managed_cluster_paged.py | 2 +- .../managed_cluster_pool_upgrade_profile.py | 3 +- ...anaged_cluster_pool_upgrade_profile_py3.py | 3 +- .../models/managed_cluster_py3.py | 12 +- ...naged_cluster_service_principal_profile.py | 0 ...d_cluster_service_principal_profile_py3.py | 0 .../models/managed_cluster_upgrade_profile.py | 4 +- .../managed_cluster_upgrade_profile_py3.py | 4 +- .../models/operation_value.py | 0 .../models/operation_value_paged.py | 2 +- .../models/operation_value_py3.py | 0 .../models/orchestrator_profile.py | 40 + .../models/orchestrator_profile_py3.py | 40 + .../v2018_03_31/models/resource.py | 56 ++ .../v2018_03_31/models/resource_py3.py | 56 ++ .../{ => v2018_03_31}/models/tags_object.py | 0 .../models/tags_object_py3.py | 0 .../{ => v2018_03_31}/operations/__init__.py | 2 - .../operations/managed_clusters_operations.py | 33 +- .../operations/operations.py | 2 +- .../containerservice/v2018_03_31/version.py | 13 + .../v2018_08_01_preview/__init__.py | 18 + .../container_service_client.py | 90 ++ .../v2018_08_01_preview/models/__init__.py | 100 +++ .../models/container_service_client_enums.py | 219 +++++ .../container_service_diagnostics_profile.py | 36 + ...ntainer_service_diagnostics_profile_py3.py | 36 + .../models/container_service_linux_profile.py | 42 + .../container_service_linux_profile_py3.py | 42 + .../container_service_master_profile.py | 128 +++ .../container_service_master_profile_py3.py | 128 +++ .../container_service_network_profile.py | 67 ++ .../container_service_network_profile_py3.py | 67 ++ .../container_service_ssh_configuration.py | 36 + ...container_service_ssh_configuration_py3.py | 36 + .../container_service_ssh_public_key.py | 36 + .../container_service_ssh_public_key_py3.py | 36 + .../container_service_vm_diagnostics.py | 44 + .../container_service_vm_diagnostics_py3.py | 44 + .../container_service_windows_profile.py | 41 + .../container_service_windows_profile_py3.py | 41 + .../models/credential_result.py | 40 + .../models/credential_result_py3.py | 40 + .../models/credential_results.py | 36 + .../models/credential_results_py3.py | 36 + .../models/managed_cluster.py | 114 +++ .../models/managed_cluster_aad_profile.py | 48 ++ .../models/managed_cluster_aad_profile_py3.py | 48 ++ .../models/managed_cluster_access_profile.py | 55 ++ .../managed_cluster_access_profile_py3.py | 55 ++ .../models/managed_cluster_addon_profile.py | 38 + .../managed_cluster_addon_profile_py3.py | 38 + .../managed_cluster_agent_pool_profile.py | 138 +++ .../managed_cluster_agent_pool_profile_py3.py | 138 +++ .../models/managed_cluster_paged.py | 27 + .../managed_cluster_pool_upgrade_profile.py | 52 ++ ...anaged_cluster_pool_upgrade_profile_py3.py | 52 ++ .../models/managed_cluster_py3.py | 114 +++ ...naged_cluster_service_principal_profile.py | 40 + ...d_cluster_service_principal_profile_py3.py | 40 + .../models/managed_cluster_upgrade_profile.py | 61 ++ .../managed_cluster_upgrade_profile_py3.py | 61 ++ .../models/operation_value.py | 60 ++ .../models/operation_value_paged.py | 27 + .../models/operation_value_py3.py | 60 ++ .../models/orchestrator_profile.py | 40 + .../models/orchestrator_profile_py3.py | 40 + .../v2018_08_01_preview/models/resource.py | 56 ++ .../models/resource_py3.py | 56 ++ .../v2018_08_01_preview/models/tags_object.py | 28 + .../models/tags_object_py3.py | 28 + .../operations/__init__.py | 18 + .../operations/managed_clusters_operations.py | 804 ++++++++++++++++++ .../operations/operations.py | 98 +++ .../v2018_08_01_preview/version.py | 13 + .../v2018_09_30_preview/__init__.py | 18 + .../container_service_client.py | 85 ++ .../v2018_09_30_preview/models/__init__.py | 62 ++ .../models/container_service_client_enums.py | 61 ++ .../models/network_profile.py | 33 + .../models/network_profile_py3.py | 33 + .../models/open_shift_managed_cluster.py | 104 +++ ...t_managed_cluster_aad_identity_provider.py | 46 + ...naged_cluster_aad_identity_provider_py3.py | 46 + ...hift_managed_cluster_agent_pool_profile.py | 74 ++ ..._managed_cluster_agent_pool_profile_py3.py | 74 ++ ...open_shift_managed_cluster_auth_profile.py | 29 + ..._shift_managed_cluster_auth_profile_py3.py | 29 + ..._managed_cluster_base_identity_provider.py | 41 + ...aged_cluster_base_identity_provider_py3.py | 41 + ...shift_managed_cluster_identity_provider.py | 34 + ...t_managed_cluster_identity_provider_py3.py | 34 + ...ift_managed_cluster_master_pool_profile.py | 68 ++ ...managed_cluster_master_pool_profile_py3.py | 68 ++ .../open_shift_managed_cluster_paged.py | 27 + .../models/open_shift_managed_cluster_py3.py | 104 +++ .../models/open_shift_router_profile.py | 43 + .../models/open_shift_router_profile_py3.py | 43 + .../models/purchase_plan.py | 42 + .../models/purchase_plan_py3.py | 42 + .../v2018_09_30_preview/models/resource.py | 56 ++ .../models/resource_py3.py | 56 ++ .../v2018_09_30_preview/models/tags_object.py | 28 + .../models/tags_object_py3.py | 28 + .../operations/__init__.py | 16 + .../open_shift_managed_clusters_operations.py | 544 ++++++++++++ .../v2018_09_30_preview/version.py | 13 + .../azure/mgmt/containerservice/version.py | 2 +- 187 files changed, 7656 insertions(+), 185 deletions(-) create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/models.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/__init__.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/container_service_client.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/__init__.py rename azure-mgmt-containerservice/azure/mgmt/containerservice/{ => v2017_07_01}/models/container_service.py (86%) rename azure-mgmt-containerservice/azure/mgmt/containerservice/{ => v2017_07_01}/models/container_service_agent_pool_profile.py (96%) rename azure-mgmt-containerservice/azure/mgmt/containerservice/{ => v2017_07_01}/models/container_service_agent_pool_profile_py3.py (96%) rename azure-mgmt-containerservice/azure/mgmt/containerservice/{ => v2017_07_01}/models/container_service_client_enums.py (98%) rename azure-mgmt-containerservice/azure/mgmt/containerservice/{ => v2017_07_01}/models/container_service_custom_profile.py (100%) rename azure-mgmt-containerservice/azure/mgmt/containerservice/{ => v2017_07_01}/models/container_service_custom_profile_py3.py (100%) rename azure-mgmt-containerservice/azure/mgmt/containerservice/{ => v2017_07_01}/models/container_service_diagnostics_profile.py (93%) rename azure-mgmt-containerservice/azure/mgmt/containerservice/{ => v2017_07_01}/models/container_service_diagnostics_profile_py3.py (93%) rename azure-mgmt-containerservice/azure/mgmt/containerservice/{ => v2017_07_01}/models/container_service_linux_profile.py (94%) rename azure-mgmt-containerservice/azure/mgmt/containerservice/{ => v2017_07_01}/models/container_service_linux_profile_py3.py (94%) rename azure-mgmt-containerservice/azure/mgmt/containerservice/{ => v2017_07_01}/models/container_service_master_profile.py (97%) rename azure-mgmt-containerservice/azure/mgmt/containerservice/{ => v2017_07_01}/models/container_service_master_profile_py3.py (97%) rename azure-mgmt-containerservice/azure/mgmt/containerservice/{ => v2017_07_01}/models/container_service_orchestrator_profile.py (95%) rename azure-mgmt-containerservice/azure/mgmt/containerservice/{ => v2017_07_01}/models/container_service_orchestrator_profile_py3.py (95%) rename azure-mgmt-containerservice/azure/mgmt/containerservice/{ => v2017_07_01}/models/container_service_paged.py (91%) rename azure-mgmt-containerservice/azure/mgmt/containerservice/{ => v2017_07_01}/models/container_service_py3.py (87%) rename azure-mgmt-containerservice/azure/mgmt/containerservice/{ => v2017_07_01}/models/container_service_service_principal_profile.py (96%) rename azure-mgmt-containerservice/azure/mgmt/containerservice/{ => v2017_07_01}/models/container_service_service_principal_profile_py3.py (96%) rename azure-mgmt-containerservice/azure/mgmt/containerservice/{ => v2017_07_01}/models/container_service_ssh_configuration.py (93%) rename azure-mgmt-containerservice/azure/mgmt/containerservice/{ => v2017_07_01}/models/container_service_ssh_configuration_py3.py (93%) rename azure-mgmt-containerservice/azure/mgmt/containerservice/{ => v2017_07_01}/models/container_service_ssh_public_key.py (100%) rename azure-mgmt-containerservice/azure/mgmt/containerservice/{ => v2017_07_01}/models/container_service_ssh_public_key_py3.py (100%) rename azure-mgmt-containerservice/azure/mgmt/containerservice/{ => v2017_07_01}/models/container_service_vm_diagnostics.py (100%) rename azure-mgmt-containerservice/azure/mgmt/containerservice/{ => v2017_07_01}/models/container_service_vm_diagnostics_py3.py (100%) rename azure-mgmt-containerservice/azure/mgmt/containerservice/{ => v2017_07_01}/models/container_service_windows_profile.py (100%) rename azure-mgmt-containerservice/azure/mgmt/containerservice/{ => v2017_07_01}/models/container_service_windows_profile_py3.py (100%) rename azure-mgmt-containerservice/azure/mgmt/containerservice/{ => v2017_07_01}/models/key_vault_secret_ref.py (100%) rename azure-mgmt-containerservice/azure/mgmt/containerservice/{ => v2017_07_01}/models/key_vault_secret_ref_py3.py (100%) rename azure-mgmt-containerservice/azure/mgmt/containerservice/{ => v2017_07_01}/models/orchestrator_profile.py (100%) rename azure-mgmt-containerservice/azure/mgmt/containerservice/{ => v2017_07_01}/models/orchestrator_profile_py3.py (100%) rename azure-mgmt-containerservice/azure/mgmt/containerservice/{ => v2017_07_01}/models/orchestrator_version_profile.py (96%) rename azure-mgmt-containerservice/azure/mgmt/containerservice/{ => v2017_07_01}/models/orchestrator_version_profile_list_result.py (95%) rename azure-mgmt-containerservice/azure/mgmt/containerservice/{ => v2017_07_01}/models/orchestrator_version_profile_list_result_py3.py (95%) rename azure-mgmt-containerservice/azure/mgmt/containerservice/{ => v2017_07_01}/models/orchestrator_version_profile_py3.py (96%) rename azure-mgmt-containerservice/azure/mgmt/containerservice/{ => v2017_07_01}/models/resource.py (100%) rename azure-mgmt-containerservice/azure/mgmt/containerservice/{ => v2017_07_01}/models/resource_py3.py (100%) create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/operations/__init__.py rename azure-mgmt-containerservice/azure/mgmt/containerservice/{ => v2017_07_01}/operations/container_services_operations.py (97%) create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/version.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/__init__.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/container_service_client.py rename azure-mgmt-containerservice/azure/mgmt/containerservice/{ => v2018_03_31}/models/__init__.py (73%) create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/container_service_client_enums.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/container_service_diagnostics_profile.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/container_service_diagnostics_profile_py3.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/container_service_linux_profile.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/container_service_linux_profile_py3.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/container_service_master_profile.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/container_service_master_profile_py3.py rename azure-mgmt-containerservice/azure/mgmt/containerservice/{ => v2018_03_31}/models/container_service_network_profile.py (96%) rename azure-mgmt-containerservice/azure/mgmt/containerservice/{ => v2018_03_31}/models/container_service_network_profile_py3.py (96%) create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/container_service_ssh_configuration.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/container_service_ssh_configuration_py3.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/container_service_ssh_public_key.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/container_service_ssh_public_key_py3.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/container_service_vm_diagnostics.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/container_service_vm_diagnostics_py3.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/container_service_windows_profile.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/container_service_windows_profile_py3.py rename azure-mgmt-containerservice/azure/mgmt/containerservice/{ => v2018_03_31}/models/credential_result.py (100%) rename azure-mgmt-containerservice/azure/mgmt/containerservice/{ => v2018_03_31}/models/credential_result_py3.py (100%) rename azure-mgmt-containerservice/azure/mgmt/containerservice/{ => v2018_03_31}/models/credential_results.py (93%) rename azure-mgmt-containerservice/azure/mgmt/containerservice/{ => v2018_03_31}/models/credential_results_py3.py (93%) rename azure-mgmt-containerservice/azure/mgmt/containerservice/{ => v2018_03_31}/models/managed_cluster.py (90%) rename azure-mgmt-containerservice/azure/mgmt/containerservice/{ => v2018_03_31}/models/managed_cluster_aad_profile.py (93%) rename azure-mgmt-containerservice/azure/mgmt/containerservice/{ => v2018_03_31}/models/managed_cluster_aad_profile_py3.py (90%) rename azure-mgmt-containerservice/azure/mgmt/containerservice/{ => v2018_03_31}/models/managed_cluster_access_profile.py (100%) rename azure-mgmt-containerservice/azure/mgmt/containerservice/{ => v2018_03_31}/models/managed_cluster_access_profile_py3.py (100%) rename azure-mgmt-containerservice/azure/mgmt/containerservice/{ => v2018_03_31}/models/managed_cluster_addon_profile.py (100%) rename azure-mgmt-containerservice/azure/mgmt/containerservice/{ => v2018_03_31}/models/managed_cluster_addon_profile_py3.py (100%) rename azure-mgmt-containerservice/azure/mgmt/containerservice/{ => v2018_03_31}/models/managed_cluster_agent_pool_profile.py (96%) rename azure-mgmt-containerservice/azure/mgmt/containerservice/{ => v2018_03_31}/models/managed_cluster_agent_pool_profile_py3.py (96%) rename azure-mgmt-containerservice/azure/mgmt/containerservice/{ => v2018_03_31}/models/managed_cluster_paged.py (91%) rename azure-mgmt-containerservice/azure/mgmt/containerservice/{ => v2018_03_31}/models/managed_cluster_pool_upgrade_profile.py (95%) rename azure-mgmt-containerservice/azure/mgmt/containerservice/{ => v2018_03_31}/models/managed_cluster_pool_upgrade_profile_py3.py (95%) rename azure-mgmt-containerservice/azure/mgmt/containerservice/{ => v2018_03_31}/models/managed_cluster_py3.py (90%) rename azure-mgmt-containerservice/azure/mgmt/containerservice/{ => v2018_03_31}/models/managed_cluster_service_principal_profile.py (100%) rename azure-mgmt-containerservice/azure/mgmt/containerservice/{ => v2018_03_31}/models/managed_cluster_service_principal_profile_py3.py (100%) rename azure-mgmt-containerservice/azure/mgmt/containerservice/{ => v2018_03_31}/models/managed_cluster_upgrade_profile.py (92%) rename azure-mgmt-containerservice/azure/mgmt/containerservice/{ => v2018_03_31}/models/managed_cluster_upgrade_profile_py3.py (92%) rename azure-mgmt-containerservice/azure/mgmt/containerservice/{ => v2018_03_31}/models/operation_value.py (100%) rename azure-mgmt-containerservice/azure/mgmt/containerservice/{ => v2018_03_31}/models/operation_value_paged.py (91%) rename azure-mgmt-containerservice/azure/mgmt/containerservice/{ => v2018_03_31}/models/operation_value_py3.py (100%) create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/orchestrator_profile.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/orchestrator_profile_py3.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/resource.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/resource_py3.py rename azure-mgmt-containerservice/azure/mgmt/containerservice/{ => v2018_03_31}/models/tags_object.py (100%) rename azure-mgmt-containerservice/azure/mgmt/containerservice/{ => v2018_03_31}/models/tags_object_py3.py (100%) rename azure-mgmt-containerservice/azure/mgmt/containerservice/{ => v2018_03_31}/operations/__init__.py (85%) rename azure-mgmt-containerservice/azure/mgmt/containerservice/{ => v2018_03_31}/operations/managed_clusters_operations.py (96%) rename azure-mgmt-containerservice/azure/mgmt/containerservice/{ => v2018_03_31}/operations/operations.py (96%) create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/version.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/__init__.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/container_service_client.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/__init__.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/container_service_client_enums.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/container_service_diagnostics_profile.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/container_service_diagnostics_profile_py3.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/container_service_linux_profile.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/container_service_linux_profile_py3.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/container_service_master_profile.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/container_service_master_profile_py3.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/container_service_network_profile.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/container_service_network_profile_py3.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/container_service_ssh_configuration.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/container_service_ssh_configuration_py3.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/container_service_ssh_public_key.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/container_service_ssh_public_key_py3.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/container_service_vm_diagnostics.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/container_service_vm_diagnostics_py3.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/container_service_windows_profile.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/container_service_windows_profile_py3.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/credential_result.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/credential_result_py3.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/credential_results.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/credential_results_py3.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/managed_cluster.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/managed_cluster_aad_profile.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/managed_cluster_aad_profile_py3.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/managed_cluster_access_profile.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/managed_cluster_access_profile_py3.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/managed_cluster_addon_profile.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/managed_cluster_addon_profile_py3.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/managed_cluster_agent_pool_profile.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/managed_cluster_agent_pool_profile_py3.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/managed_cluster_paged.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/managed_cluster_pool_upgrade_profile.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/managed_cluster_pool_upgrade_profile_py3.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/managed_cluster_py3.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/managed_cluster_service_principal_profile.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/managed_cluster_service_principal_profile_py3.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/managed_cluster_upgrade_profile.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/managed_cluster_upgrade_profile_py3.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/operation_value.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/operation_value_paged.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/operation_value_py3.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/orchestrator_profile.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/orchestrator_profile_py3.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/resource.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/resource_py3.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/tags_object.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/tags_object_py3.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/operations/__init__.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/operations/managed_clusters_operations.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/operations/operations.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/version.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/__init__.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/container_service_client.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/__init__.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/container_service_client_enums.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/network_profile.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/network_profile_py3.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/open_shift_managed_cluster.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/open_shift_managed_cluster_aad_identity_provider.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/open_shift_managed_cluster_aad_identity_provider_py3.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/open_shift_managed_cluster_agent_pool_profile.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/open_shift_managed_cluster_agent_pool_profile_py3.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/open_shift_managed_cluster_auth_profile.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/open_shift_managed_cluster_auth_profile_py3.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/open_shift_managed_cluster_base_identity_provider.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/open_shift_managed_cluster_base_identity_provider_py3.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/open_shift_managed_cluster_identity_provider.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/open_shift_managed_cluster_identity_provider_py3.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/open_shift_managed_cluster_master_pool_profile.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/open_shift_managed_cluster_master_pool_profile_py3.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/open_shift_managed_cluster_paged.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/open_shift_managed_cluster_py3.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/open_shift_router_profile.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/open_shift_router_profile_py3.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/purchase_plan.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/purchase_plan_py3.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/resource.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/resource_py3.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/tags_object.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/tags_object_py3.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/operations/__init__.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/operations/open_shift_managed_clusters_operations.py create mode 100644 azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/version.py diff --git a/azure-mgmt-containerservice/HISTORY.rst b/azure-mgmt-containerservice/HISTORY.rst index daa7e410fdc8..b33496ca7a39 100644 --- a/azure-mgmt-containerservice/HISTORY.rst +++ b/azure-mgmt-containerservice/HISTORY.rst @@ -3,6 +3,33 @@ Release History =============== +4.3.0 (2018-12-13) +++++++++++++++++++ + +**Features** + +- Support for Azure Profiles +- OpenShift ManagedCluster (preview) + +This package also adds +Preview version of ManagedCluster (AKS 2018-08-01-preview), this includes the following breaking changes and features, if you optin for this new API version: + +**Features** + +- Model ManagedClusterAgentPoolProfile has a new parameter type +- Model ManagedClusterAgentPoolProfile has a new parameter max_count +- Model ManagedClusterAgentPoolProfile has a new parameter enable_auto_scaling +- Model ManagedClusterAgentPoolProfile has a new parameter min_count + +**Breaking changes** + +- Parameter count of model ManagedClusterAgentPoolProfile is now required +- Model ManagedClusterAgentPoolProfile no longer has parameter storage_profile + +**Note** + +- azure-mgmt-nspkg is not installed anymore on Python 3 (PEP420-based namespace package) + 4.2.2 (2018-08-09) ++++++++++++++++++ diff --git a/azure-mgmt-containerservice/MANIFEST.in b/azure-mgmt-containerservice/MANIFEST.in index bb37a2723dae..6ceb27f7a96e 100644 --- a/azure-mgmt-containerservice/MANIFEST.in +++ b/azure-mgmt-containerservice/MANIFEST.in @@ -1 +1,4 @@ include *.rst +include azure/__init__.py +include azure/mgmt/__init__.py + diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/container_service_client.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/container_service_client.py index a5d7eb651da6..789f9ff71835 100644 --- a/azure-mgmt-containerservice/azure/mgmt/containerservice/container_service_client.py +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/container_service_client.py @@ -12,11 +12,10 @@ from msrest.service_client import SDKClient from msrest import Serializer, Deserializer from msrestazure import AzureConfiguration + +from azure.profiles import KnownProfiles, ProfileDefinition +from azure.profiles.multiapiclient import MultiApiClientMixin from .version import VERSION -from .operations.container_services_operations import ContainerServicesOperations -from .operations.operations import Operations -from .operations.managed_clusters_operations import ManagedClustersOperations -from . import models class ContainerServiceClientConfiguration(AzureConfiguration): @@ -53,19 +52,12 @@ def __init__( self.subscription_id = subscription_id -class ContainerServiceClient(SDKClient): +class ContainerServiceClient(MultiApiClientMixin, SDKClient): """The Container Service Client. :ivar config: Configuration for client. :vartype config: ContainerServiceClientConfiguration - :ivar container_services: ContainerServices operations - :vartype container_services: azure.mgmt.containerservice.operations.ContainerServicesOperations - :ivar operations: Operations operations - :vartype operations: azure.mgmt.containerservice.operations.Operations - :ivar managed_clusters: ManagedClusters operations - :vartype managed_clusters: azure.mgmt.containerservice.operations.ManagedClustersOperations - :param credentials: Credentials needed for the client to connect to Azure. :type credentials: :mod:`A msrestazure Credentials object` @@ -73,22 +65,118 @@ class ContainerServiceClient(SDKClient): Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. :type subscription_id: str + :param str api_version: API version to use if no profile is provided, or if + missing in profile. :param str base_url: Service URL + :param profile: A dict using operation group name to API version. + :type profile: dict[str, str] """ - def __init__( - self, credentials, subscription_id, base_url=None): - + DEFAULT_API_VERSION = '2018-09-01' + _PROFILE_TAG = "azure.mgmt.containerservice.ContainerServiceClient" + LATEST_PROFILE = ProfileDefinition({ + _PROFILE_TAG: { + 'open_shift_managed_clusters': '2018-09-30-preview', + 'container_services': '2017-07-01', + 'managed_clusters': '2018-03-31', + 'operations': '2018-03-31', + None: DEFAULT_API_VERSION + }}, + _PROFILE_TAG + " latest" + ) + + def __init__(self, credentials, subscription_id, api_version=None, base_url=None, profile=KnownProfiles.default): self.config = ContainerServiceClientConfiguration(credentials, subscription_id, base_url) - super(ContainerServiceClient, self).__init__(self.config.credentials, self.config) - - client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - - self.container_services = ContainerServicesOperations( - self._client, self.config, self._serialize, self._deserialize) - self.operations = Operations( - self._client, self.config, self._serialize, self._deserialize) - self.managed_clusters = ManagedClustersOperations( - self._client, self.config, self._serialize, self._deserialize) + super(ContainerServiceClient, self).__init__( + credentials, + self.config, + api_version=api_version, + profile=profile + ) + +############ Generated from here ############ + + @classmethod + def _models_dict(cls, api_version): + return {k: v for k, v in cls.models(api_version).__dict__.items() if isinstance(v, type)} + + @classmethod + def models(cls, api_version=DEFAULT_API_VERSION): + """Module depends on the API version: + + * 2017-07-01: :mod:`v2017_07_01.models` + * 2018-03-31: :mod:`v2018_03_31.models` + * 2018-08-01-preview: :mod:`v2018_08_01_preview.models` + * 2018-09-30-preview: :mod:`v2018_09_30_preview.models` + """ + if api_version == '2017-07-01': + from .v2017_07_01 import models + return models + elif api_version == '2018-03-31': + from .v2018_03_31 import models + return models + elif api_version == '2018-08-01-preview': + from .v2018_08_01_preview import models + return models + elif api_version == '2018-09-30-preview': + from .v2018_09_30_preview import models + return models + raise NotImplementedError("APIVersion {} is not available".format(api_version)) + + @property + def container_services(self): + """Instance depends on the API version: + + * 2017-07-01: :class:`ContainerServicesOperations` + """ + api_version = self._get_api_version('container_services') + if api_version == '2017-07-01': + from .v2017_07_01.operations import ContainerServicesOperations as OperationClass + else: + raise NotImplementedError("APIVersion {} is not available".format(api_version)) + return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) + + @property + def managed_clusters(self): + """Instance depends on the API version: + + * 2018-03-31: :class:`ManagedClustersOperations` + * 2018-08-01-preview: :class:`ManagedClustersOperations` + """ + api_version = self._get_api_version('managed_clusters') + if api_version == '2018-03-31': + from .v2018_03_31.operations import ManagedClustersOperations as OperationClass + elif api_version == '2018-08-01-preview': + from .v2018_08_01_preview.operations import ManagedClustersOperations as OperationClass + else: + raise NotImplementedError("APIVersion {} is not available".format(api_version)) + return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) + + @property + def open_shift_managed_clusters(self): + """Instance depends on the API version: + + * 2018-09-30-preview: :class:`OpenShiftManagedClustersOperations` + """ + api_version = self._get_api_version('open_shift_managed_clusters') + if api_version == '2018-09-30-preview': + from .v2018_09_30_preview.operations import OpenShiftManagedClustersOperations as OperationClass + else: + raise NotImplementedError("APIVersion {} is not available".format(api_version)) + return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) + + @property + def operations(self): + """Instance depends on the API version: + + * 2018-03-31: :class:`Operations` + * 2018-08-01-preview: :class:`Operations` + """ + api_version = self._get_api_version('operations') + if api_version == '2018-03-31': + from .v2018_03_31.operations import Operations as OperationClass + elif api_version == '2018-08-01-preview': + from .v2018_08_01_preview.operations import Operations as OperationClass + else: + raise NotImplementedError("APIVersion {} is not available".format(api_version)) + return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version))) diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/models.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/models.py new file mode 100644 index 000000000000..beea13796ae2 --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/models.py @@ -0,0 +1,15 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .v2017_07_01.models import * +from .v2018_03_31.models import * +from .v2018_08_01_preview.models import * +from .v2018_09_30_preview.models import * diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/__init__.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/__init__.py new file mode 100644 index 000000000000..9854e4f7645e --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/__init__.py @@ -0,0 +1,18 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .container_service_client import ContainerServiceClient +from .version import VERSION + +__all__ = ['ContainerServiceClient'] + +__version__ = VERSION + diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/container_service_client.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/container_service_client.py new file mode 100644 index 000000000000..49b7a85a1631 --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/container_service_client.py @@ -0,0 +1,84 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.service_client import SDKClient +from msrest import Serializer, Deserializer +from msrestazure import AzureConfiguration +from .version import VERSION +from .operations.container_services_operations import ContainerServicesOperations +from . import models + + +class ContainerServiceClientConfiguration(AzureConfiguration): + """Configuration for ContainerServiceClient + Note that all parameters used to create this instance are saved as instance + attributes. + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param subscription_id: Subscription credentials which uniquely identify + Microsoft Azure subscription. The subscription ID forms part of the URI + for every service call. + :type subscription_id: str + :param str base_url: Service URL + """ + + def __init__( + self, credentials, subscription_id, base_url=None): + + if credentials is None: + raise ValueError("Parameter 'credentials' must not be None.") + if subscription_id is None: + raise ValueError("Parameter 'subscription_id' must not be None.") + if not base_url: + base_url = 'https://management.azure.com' + + super(ContainerServiceClientConfiguration, self).__init__(base_url) + + self.add_user_agent('azure-mgmt-containerservice/{}'.format(VERSION)) + self.add_user_agent('Azure-SDK-For-Python') + + self.credentials = credentials + self.subscription_id = subscription_id + + +class ContainerServiceClient(SDKClient): + """The Container Service Client. + + :ivar config: Configuration for client. + :vartype config: ContainerServiceClientConfiguration + + :ivar container_services: ContainerServices operations + :vartype container_services: azure.mgmt.containerservice.v2017_07_01.operations.ContainerServicesOperations + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param subscription_id: Subscription credentials which uniquely identify + Microsoft Azure subscription. The subscription ID forms part of the URI + for every service call. + :type subscription_id: str + :param str base_url: Service URL + """ + + def __init__( + self, credentials, subscription_id, base_url=None): + + self.config = ContainerServiceClientConfiguration(credentials, subscription_id, base_url) + super(ContainerServiceClient, self).__init__(self.config.credentials, self.config) + + client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} + self._serialize = Serializer(client_models) + self._deserialize = Deserializer(client_models) + + self.container_services = ContainerServicesOperations( + self._client, self.config, self._serialize, self._deserialize) diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/__init__.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/__init__.py new file mode 100644 index 000000000000..992a7b991716 --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/__init__.py @@ -0,0 +1,79 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +try: + from .resource_py3 import Resource + from .container_service_custom_profile_py3 import ContainerServiceCustomProfile + from .key_vault_secret_ref_py3 import KeyVaultSecretRef + from .container_service_service_principal_profile_py3 import ContainerServiceServicePrincipalProfile + from .container_service_orchestrator_profile_py3 import ContainerServiceOrchestratorProfile + from .container_service_master_profile_py3 import ContainerServiceMasterProfile + from .container_service_agent_pool_profile_py3 import ContainerServiceAgentPoolProfile + from .container_service_windows_profile_py3 import ContainerServiceWindowsProfile + from .container_service_ssh_public_key_py3 import ContainerServiceSshPublicKey + from .container_service_ssh_configuration_py3 import ContainerServiceSshConfiguration + from .container_service_linux_profile_py3 import ContainerServiceLinuxProfile + from .container_service_vm_diagnostics_py3 import ContainerServiceVMDiagnostics + from .container_service_diagnostics_profile_py3 import ContainerServiceDiagnosticsProfile + from .container_service_py3 import ContainerService + from .orchestrator_profile_py3 import OrchestratorProfile + from .orchestrator_version_profile_py3 import OrchestratorVersionProfile + from .orchestrator_version_profile_list_result_py3 import OrchestratorVersionProfileListResult +except (SyntaxError, ImportError): + from .resource import Resource + from .container_service_custom_profile import ContainerServiceCustomProfile + from .key_vault_secret_ref import KeyVaultSecretRef + from .container_service_service_principal_profile import ContainerServiceServicePrincipalProfile + from .container_service_orchestrator_profile import ContainerServiceOrchestratorProfile + from .container_service_master_profile import ContainerServiceMasterProfile + from .container_service_agent_pool_profile import ContainerServiceAgentPoolProfile + from .container_service_windows_profile import ContainerServiceWindowsProfile + from .container_service_ssh_public_key import ContainerServiceSshPublicKey + from .container_service_ssh_configuration import ContainerServiceSshConfiguration + from .container_service_linux_profile import ContainerServiceLinuxProfile + from .container_service_vm_diagnostics import ContainerServiceVMDiagnostics + from .container_service_diagnostics_profile import ContainerServiceDiagnosticsProfile + from .container_service import ContainerService + from .orchestrator_profile import OrchestratorProfile + from .orchestrator_version_profile import OrchestratorVersionProfile + from .orchestrator_version_profile_list_result import OrchestratorVersionProfileListResult +from .container_service_paged import ContainerServicePaged +from .container_service_client_enums import ( + ContainerServiceStorageProfileTypes, + ContainerServiceVMSizeTypes, + ContainerServiceOrchestratorTypes, + OSType, +) + +__all__ = [ + 'Resource', + 'ContainerServiceCustomProfile', + 'KeyVaultSecretRef', + 'ContainerServiceServicePrincipalProfile', + 'ContainerServiceOrchestratorProfile', + 'ContainerServiceMasterProfile', + 'ContainerServiceAgentPoolProfile', + 'ContainerServiceWindowsProfile', + 'ContainerServiceSshPublicKey', + 'ContainerServiceSshConfiguration', + 'ContainerServiceLinuxProfile', + 'ContainerServiceVMDiagnostics', + 'ContainerServiceDiagnosticsProfile', + 'ContainerService', + 'OrchestratorProfile', + 'OrchestratorVersionProfile', + 'OrchestratorVersionProfileListResult', + 'ContainerServicePaged', + 'ContainerServiceStorageProfileTypes', + 'ContainerServiceVMSizeTypes', + 'ContainerServiceOrchestratorTypes', + 'OSType', +] diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/container_service.py similarity index 86% rename from azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service.py rename to azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/container_service.py index ffc12f82ffbe..06fff928cebf 100644 --- a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service.py +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/container_service.py @@ -36,34 +36,34 @@ class ContainerService(Resource): :param orchestrator_profile: Required. Profile for the container service orchestrator. :type orchestrator_profile: - ~azure.mgmt.containerservice.models.ContainerServiceOrchestratorProfile + ~azure.mgmt.containerservice.v2017_07_01.models.ContainerServiceOrchestratorProfile :param custom_profile: Properties to configure a custom container service cluster. :type custom_profile: - ~azure.mgmt.containerservice.models.ContainerServiceCustomProfile + ~azure.mgmt.containerservice.v2017_07_01.models.ContainerServiceCustomProfile :param service_principal_profile: Information about a service principal identity for the cluster to use for manipulating Azure APIs. Exact one of secret or keyVaultSecretRef need to be specified. :type service_principal_profile: - ~azure.mgmt.containerservice.models.ContainerServiceServicePrincipalProfile + ~azure.mgmt.containerservice.v2017_07_01.models.ContainerServiceServicePrincipalProfile :param master_profile: Required. Profile for the container service master. :type master_profile: - ~azure.mgmt.containerservice.models.ContainerServiceMasterProfile + ~azure.mgmt.containerservice.v2017_07_01.models.ContainerServiceMasterProfile :param agent_pool_profiles: Properties of the agent pool. :type agent_pool_profiles: - list[~azure.mgmt.containerservice.models.ContainerServiceAgentPoolProfile] + list[~azure.mgmt.containerservice.v2017_07_01.models.ContainerServiceAgentPoolProfile] :param windows_profile: Profile for Windows VMs in the container service cluster. :type windows_profile: - ~azure.mgmt.containerservice.models.ContainerServiceWindowsProfile + ~azure.mgmt.containerservice.v2017_07_01.models.ContainerServiceWindowsProfile :param linux_profile: Required. Profile for Linux VMs in the container service cluster. :type linux_profile: - ~azure.mgmt.containerservice.models.ContainerServiceLinuxProfile + ~azure.mgmt.containerservice.v2017_07_01.models.ContainerServiceLinuxProfile :param diagnostics_profile: Profile for diagnostics in the container service cluster. :type diagnostics_profile: - ~azure.mgmt.containerservice.models.ContainerServiceDiagnosticsProfile + ~azure.mgmt.containerservice.v2017_07_01.models.ContainerServiceDiagnosticsProfile """ _validation = { diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_agent_pool_profile.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/container_service_agent_pool_profile.py similarity index 96% rename from azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_agent_pool_profile.py rename to azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/container_service_agent_pool_profile.py index e0d5dd777aaa..b4d2c29a6a5e 100644 --- a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_agent_pool_profile.py +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/container_service_agent_pool_profile.py @@ -79,7 +79,7 @@ class ContainerServiceAgentPoolProfile(Model): 'Standard_NC6s_v3', 'Standard_ND12s', 'Standard_ND24rs', 'Standard_ND24s', 'Standard_ND6s', 'Standard_NV12', 'Standard_NV24', 'Standard_NV6' :type vm_size: str or - ~azure.mgmt.containerservice.models.ContainerServiceVMSizeTypes + ~azure.mgmt.containerservice.v2017_07_01.models.ContainerServiceVMSizeTypes :param os_disk_size_gb: OS Disk Size in GB to be used to specify the disk size for every machine in this master/agent pool. If you specify 0, it will apply the default osDisk size according to the vmSize specified. @@ -97,14 +97,15 @@ class ContainerServiceAgentPoolProfile(Model): choose for you based on the orchestrator choice. Possible values include: 'StorageAccount', 'ManagedDisks' :type storage_profile: str or - ~azure.mgmt.containerservice.models.ContainerServiceStorageProfileTypes + ~azure.mgmt.containerservice.v2017_07_01.models.ContainerServiceStorageProfileTypes :param vnet_subnet_id: VNet SubnetID specifies the vnet's subnet identifier. :type vnet_subnet_id: str :param os_type: OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux. Possible values include: 'Linux', 'Windows'. Default value: "Linux" . - :type os_type: str or ~azure.mgmt.containerservice.models.OSType + :type os_type: str or + ~azure.mgmt.containerservice.v2017_07_01.models.OSType """ _validation = { diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_agent_pool_profile_py3.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/container_service_agent_pool_profile_py3.py similarity index 96% rename from azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_agent_pool_profile_py3.py rename to azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/container_service_agent_pool_profile_py3.py index dcb5bd830a96..8ec48b89b765 100644 --- a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_agent_pool_profile_py3.py +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/container_service_agent_pool_profile_py3.py @@ -79,7 +79,7 @@ class ContainerServiceAgentPoolProfile(Model): 'Standard_NC6s_v3', 'Standard_ND12s', 'Standard_ND24rs', 'Standard_ND24s', 'Standard_ND6s', 'Standard_NV12', 'Standard_NV24', 'Standard_NV6' :type vm_size: str or - ~azure.mgmt.containerservice.models.ContainerServiceVMSizeTypes + ~azure.mgmt.containerservice.v2017_07_01.models.ContainerServiceVMSizeTypes :param os_disk_size_gb: OS Disk Size in GB to be used to specify the disk size for every machine in this master/agent pool. If you specify 0, it will apply the default osDisk size according to the vmSize specified. @@ -97,14 +97,15 @@ class ContainerServiceAgentPoolProfile(Model): choose for you based on the orchestrator choice. Possible values include: 'StorageAccount', 'ManagedDisks' :type storage_profile: str or - ~azure.mgmt.containerservice.models.ContainerServiceStorageProfileTypes + ~azure.mgmt.containerservice.v2017_07_01.models.ContainerServiceStorageProfileTypes :param vnet_subnet_id: VNet SubnetID specifies the vnet's subnet identifier. :type vnet_subnet_id: str :param os_type: OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux. Possible values include: 'Linux', 'Windows'. Default value: "Linux" . - :type os_type: str or ~azure.mgmt.containerservice.models.OSType + :type os_type: str or + ~azure.mgmt.containerservice.v2017_07_01.models.OSType """ _validation = { diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_client_enums.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/container_service_client_enums.py similarity index 98% rename from azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_client_enums.py rename to azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/container_service_client_enums.py index 4fe56768c577..d35c6bd6a364 100644 --- a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_client_enums.py +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/container_service_client_enums.py @@ -209,14 +209,3 @@ class OSType(str, Enum): linux = "Linux" windows = "Windows" - - -class NetworkPlugin(str, Enum): - - azure = "azure" - kubenet = "kubenet" - - -class NetworkPolicy(str, Enum): - - calico = "calico" diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_custom_profile.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/container_service_custom_profile.py similarity index 100% rename from azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_custom_profile.py rename to azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/container_service_custom_profile.py diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_custom_profile_py3.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/container_service_custom_profile_py3.py similarity index 100% rename from azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_custom_profile_py3.py rename to azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/container_service_custom_profile_py3.py diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_diagnostics_profile.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/container_service_diagnostics_profile.py similarity index 93% rename from azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_diagnostics_profile.py rename to azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/container_service_diagnostics_profile.py index 8cee39284dc2..a9474e87f434 100644 --- a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_diagnostics_profile.py +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/container_service_diagnostics_profile.py @@ -20,7 +20,7 @@ class ContainerServiceDiagnosticsProfile(Model): :param vm_diagnostics: Required. Profile for diagnostics on the container service VMs. :type vm_diagnostics: - ~azure.mgmt.containerservice.models.ContainerServiceVMDiagnostics + ~azure.mgmt.containerservice.v2017_07_01.models.ContainerServiceVMDiagnostics """ _validation = { diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_diagnostics_profile_py3.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/container_service_diagnostics_profile_py3.py similarity index 93% rename from azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_diagnostics_profile_py3.py rename to azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/container_service_diagnostics_profile_py3.py index e444694e8a95..33a5acdae710 100644 --- a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_diagnostics_profile_py3.py +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/container_service_diagnostics_profile_py3.py @@ -20,7 +20,7 @@ class ContainerServiceDiagnosticsProfile(Model): :param vm_diagnostics: Required. Profile for diagnostics on the container service VMs. :type vm_diagnostics: - ~azure.mgmt.containerservice.models.ContainerServiceVMDiagnostics + ~azure.mgmt.containerservice.v2017_07_01.models.ContainerServiceVMDiagnostics """ _validation = { diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_linux_profile.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/container_service_linux_profile.py similarity index 94% rename from azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_linux_profile.py rename to azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/container_service_linux_profile.py index 4ae1aa042b59..5cdc876fa69f 100644 --- a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_linux_profile.py +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/container_service_linux_profile.py @@ -23,7 +23,7 @@ class ContainerServiceLinuxProfile(Model): :param ssh: Required. SSH configuration for Linux-based VMs running on Azure. :type ssh: - ~azure.mgmt.containerservice.models.ContainerServiceSshConfiguration + ~azure.mgmt.containerservice.v2017_07_01.models.ContainerServiceSshConfiguration """ _validation = { diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_linux_profile_py3.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/container_service_linux_profile_py3.py similarity index 94% rename from azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_linux_profile_py3.py rename to azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/container_service_linux_profile_py3.py index 9756107e1c7c..43c0586a78af 100644 --- a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_linux_profile_py3.py +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/container_service_linux_profile_py3.py @@ -23,7 +23,7 @@ class ContainerServiceLinuxProfile(Model): :param ssh: Required. SSH configuration for Linux-based VMs running on Azure. :type ssh: - ~azure.mgmt.containerservice.models.ContainerServiceSshConfiguration + ~azure.mgmt.containerservice.v2017_07_01.models.ContainerServiceSshConfiguration """ _validation = { diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_master_profile.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/container_service_master_profile.py similarity index 97% rename from azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_master_profile.py rename to azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/container_service_master_profile.py index 07a8ce1266ea..2701fa4ae317 100644 --- a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_master_profile.py +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/container_service_master_profile.py @@ -78,7 +78,7 @@ class ContainerServiceMasterProfile(Model): 'Standard_NC6s_v3', 'Standard_ND12s', 'Standard_ND24rs', 'Standard_ND24s', 'Standard_ND6s', 'Standard_NV12', 'Standard_NV24', 'Standard_NV6' :type vm_size: str or - ~azure.mgmt.containerservice.models.ContainerServiceVMSizeTypes + ~azure.mgmt.containerservice.v2017_07_01.models.ContainerServiceVMSizeTypes :param os_disk_size_gb: OS Disk Size in GB to be used to specify the disk size for every machine in this master/agent pool. If you specify 0, it will apply the default osDisk size according to the vmSize specified. @@ -94,7 +94,7 @@ class ContainerServiceMasterProfile(Model): choose for you based on the orchestrator choice. Possible values include: 'StorageAccount', 'ManagedDisks' :type storage_profile: str or - ~azure.mgmt.containerservice.models.ContainerServiceStorageProfileTypes + ~azure.mgmt.containerservice.v2017_07_01.models.ContainerServiceStorageProfileTypes :ivar fqdn: FDQN for the master pool. :vartype fqdn: str """ diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_master_profile_py3.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/container_service_master_profile_py3.py similarity index 97% rename from azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_master_profile_py3.py rename to azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/container_service_master_profile_py3.py index 15457f5e44dc..1cb0617a03a2 100644 --- a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_master_profile_py3.py +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/container_service_master_profile_py3.py @@ -78,7 +78,7 @@ class ContainerServiceMasterProfile(Model): 'Standard_NC6s_v3', 'Standard_ND12s', 'Standard_ND24rs', 'Standard_ND24s', 'Standard_ND6s', 'Standard_NV12', 'Standard_NV24', 'Standard_NV6' :type vm_size: str or - ~azure.mgmt.containerservice.models.ContainerServiceVMSizeTypes + ~azure.mgmt.containerservice.v2017_07_01.models.ContainerServiceVMSizeTypes :param os_disk_size_gb: OS Disk Size in GB to be used to specify the disk size for every machine in this master/agent pool. If you specify 0, it will apply the default osDisk size according to the vmSize specified. @@ -94,7 +94,7 @@ class ContainerServiceMasterProfile(Model): choose for you based on the orchestrator choice. Possible values include: 'StorageAccount', 'ManagedDisks' :type storage_profile: str or - ~azure.mgmt.containerservice.models.ContainerServiceStorageProfileTypes + ~azure.mgmt.containerservice.v2017_07_01.models.ContainerServiceStorageProfileTypes :ivar fqdn: FDQN for the master pool. :vartype fqdn: str """ diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_orchestrator_profile.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/container_service_orchestrator_profile.py similarity index 95% rename from azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_orchestrator_profile.py rename to azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/container_service_orchestrator_profile.py index 8f1edad11b9d..e9825ec47f79 100644 --- a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_orchestrator_profile.py +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/container_service_orchestrator_profile.py @@ -22,7 +22,7 @@ class ContainerServiceOrchestratorProfile(Model): DCOS, DockerCE and Custom. Possible values include: 'Kubernetes', 'Swarm', 'DCOS', 'DockerCE', 'Custom' :type orchestrator_type: str or - ~azure.mgmt.containerservice.models.ContainerServiceOrchestratorTypes + ~azure.mgmt.containerservice.v2017_07_01.models.ContainerServiceOrchestratorTypes :param orchestrator_version: The version of the orchestrator to use. You can specify the major.minor.patch part of the actual version.For example, you can specify version as "1.6.11". diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_orchestrator_profile_py3.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/container_service_orchestrator_profile_py3.py similarity index 95% rename from azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_orchestrator_profile_py3.py rename to azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/container_service_orchestrator_profile_py3.py index 54d8bc6aa86a..5c67959dc8af 100644 --- a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_orchestrator_profile_py3.py +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/container_service_orchestrator_profile_py3.py @@ -22,7 +22,7 @@ class ContainerServiceOrchestratorProfile(Model): DCOS, DockerCE and Custom. Possible values include: 'Kubernetes', 'Swarm', 'DCOS', 'DockerCE', 'Custom' :type orchestrator_type: str or - ~azure.mgmt.containerservice.models.ContainerServiceOrchestratorTypes + ~azure.mgmt.containerservice.v2017_07_01.models.ContainerServiceOrchestratorTypes :param orchestrator_version: The version of the orchestrator to use. You can specify the major.minor.patch part of the actual version.For example, you can specify version as "1.6.11". diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_paged.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/container_service_paged.py similarity index 91% rename from azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_paged.py rename to azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/container_service_paged.py index 10e9c7579276..c01ddcc4c9e5 100644 --- a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_paged.py +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/container_service_paged.py @@ -14,7 +14,7 @@ class ContainerServicePaged(Paged): """ - A paging container for iterating over a list of :class:`ContainerService ` object + A paging container for iterating over a list of :class:`ContainerService ` object """ _attribute_map = { diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_py3.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/container_service_py3.py similarity index 87% rename from azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_py3.py rename to azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/container_service_py3.py index ddec4057c76f..bbe85632b332 100644 --- a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_py3.py +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/container_service_py3.py @@ -36,34 +36,34 @@ class ContainerService(Resource): :param orchestrator_profile: Required. Profile for the container service orchestrator. :type orchestrator_profile: - ~azure.mgmt.containerservice.models.ContainerServiceOrchestratorProfile + ~azure.mgmt.containerservice.v2017_07_01.models.ContainerServiceOrchestratorProfile :param custom_profile: Properties to configure a custom container service cluster. :type custom_profile: - ~azure.mgmt.containerservice.models.ContainerServiceCustomProfile + ~azure.mgmt.containerservice.v2017_07_01.models.ContainerServiceCustomProfile :param service_principal_profile: Information about a service principal identity for the cluster to use for manipulating Azure APIs. Exact one of secret or keyVaultSecretRef need to be specified. :type service_principal_profile: - ~azure.mgmt.containerservice.models.ContainerServiceServicePrincipalProfile + ~azure.mgmt.containerservice.v2017_07_01.models.ContainerServiceServicePrincipalProfile :param master_profile: Required. Profile for the container service master. :type master_profile: - ~azure.mgmt.containerservice.models.ContainerServiceMasterProfile + ~azure.mgmt.containerservice.v2017_07_01.models.ContainerServiceMasterProfile :param agent_pool_profiles: Properties of the agent pool. :type agent_pool_profiles: - list[~azure.mgmt.containerservice.models.ContainerServiceAgentPoolProfile] + list[~azure.mgmt.containerservice.v2017_07_01.models.ContainerServiceAgentPoolProfile] :param windows_profile: Profile for Windows VMs in the container service cluster. :type windows_profile: - ~azure.mgmt.containerservice.models.ContainerServiceWindowsProfile + ~azure.mgmt.containerservice.v2017_07_01.models.ContainerServiceWindowsProfile :param linux_profile: Required. Profile for Linux VMs in the container service cluster. :type linux_profile: - ~azure.mgmt.containerservice.models.ContainerServiceLinuxProfile + ~azure.mgmt.containerservice.v2017_07_01.models.ContainerServiceLinuxProfile :param diagnostics_profile: Profile for diagnostics in the container service cluster. :type diagnostics_profile: - ~azure.mgmt.containerservice.models.ContainerServiceDiagnosticsProfile + ~azure.mgmt.containerservice.v2017_07_01.models.ContainerServiceDiagnosticsProfile """ _validation = { diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_service_principal_profile.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/container_service_service_principal_profile.py similarity index 96% rename from azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_service_principal_profile.py rename to azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/container_service_service_principal_profile.py index acef0ac89b5a..e371ee1abbdd 100644 --- a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_service_principal_profile.py +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/container_service_service_principal_profile.py @@ -27,7 +27,7 @@ class ContainerServiceServicePrincipalProfile(Model): :param key_vault_secret_ref: Reference to a secret stored in Azure Key Vault. :type key_vault_secret_ref: - ~azure.mgmt.containerservice.models.KeyVaultSecretRef + ~azure.mgmt.containerservice.v2017_07_01.models.KeyVaultSecretRef """ _validation = { diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_service_principal_profile_py3.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/container_service_service_principal_profile_py3.py similarity index 96% rename from azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_service_principal_profile_py3.py rename to azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/container_service_service_principal_profile_py3.py index f08ef052ac13..d62251d4ab03 100644 --- a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_service_principal_profile_py3.py +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/container_service_service_principal_profile_py3.py @@ -27,7 +27,7 @@ class ContainerServiceServicePrincipalProfile(Model): :param key_vault_secret_ref: Reference to a secret stored in Azure Key Vault. :type key_vault_secret_ref: - ~azure.mgmt.containerservice.models.KeyVaultSecretRef + ~azure.mgmt.containerservice.v2017_07_01.models.KeyVaultSecretRef """ _validation = { diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_ssh_configuration.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/container_service_ssh_configuration.py similarity index 93% rename from azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_ssh_configuration.py rename to azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/container_service_ssh_configuration.py index cce2acd87900..fbf5801f27d0 100644 --- a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_ssh_configuration.py +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/container_service_ssh_configuration.py @@ -20,7 +20,7 @@ class ContainerServiceSshConfiguration(Model): :param public_keys: Required. The list of SSH public keys used to authenticate with Linux-based VMs. Only expect one key specified. :type public_keys: - list[~azure.mgmt.containerservice.models.ContainerServiceSshPublicKey] + list[~azure.mgmt.containerservice.v2017_07_01.models.ContainerServiceSshPublicKey] """ _validation = { diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_ssh_configuration_py3.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/container_service_ssh_configuration_py3.py similarity index 93% rename from azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_ssh_configuration_py3.py rename to azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/container_service_ssh_configuration_py3.py index f11d2b896abf..a90c6a77e1bf 100644 --- a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_ssh_configuration_py3.py +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/container_service_ssh_configuration_py3.py @@ -20,7 +20,7 @@ class ContainerServiceSshConfiguration(Model): :param public_keys: Required. The list of SSH public keys used to authenticate with Linux-based VMs. Only expect one key specified. :type public_keys: - list[~azure.mgmt.containerservice.models.ContainerServiceSshPublicKey] + list[~azure.mgmt.containerservice.v2017_07_01.models.ContainerServiceSshPublicKey] """ _validation = { diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_ssh_public_key.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/container_service_ssh_public_key.py similarity index 100% rename from azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_ssh_public_key.py rename to azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/container_service_ssh_public_key.py diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_ssh_public_key_py3.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/container_service_ssh_public_key_py3.py similarity index 100% rename from azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_ssh_public_key_py3.py rename to azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/container_service_ssh_public_key_py3.py diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_vm_diagnostics.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/container_service_vm_diagnostics.py similarity index 100% rename from azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_vm_diagnostics.py rename to azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/container_service_vm_diagnostics.py diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_vm_diagnostics_py3.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/container_service_vm_diagnostics_py3.py similarity index 100% rename from azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_vm_diagnostics_py3.py rename to azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/container_service_vm_diagnostics_py3.py diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_windows_profile.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/container_service_windows_profile.py similarity index 100% rename from azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_windows_profile.py rename to azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/container_service_windows_profile.py diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_windows_profile_py3.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/container_service_windows_profile_py3.py similarity index 100% rename from azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_windows_profile_py3.py rename to azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/container_service_windows_profile_py3.py diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/key_vault_secret_ref.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/key_vault_secret_ref.py similarity index 100% rename from azure-mgmt-containerservice/azure/mgmt/containerservice/models/key_vault_secret_ref.py rename to azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/key_vault_secret_ref.py diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/key_vault_secret_ref_py3.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/key_vault_secret_ref_py3.py similarity index 100% rename from azure-mgmt-containerservice/azure/mgmt/containerservice/models/key_vault_secret_ref_py3.py rename to azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/key_vault_secret_ref_py3.py diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/orchestrator_profile.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/orchestrator_profile.py similarity index 100% rename from azure-mgmt-containerservice/azure/mgmt/containerservice/models/orchestrator_profile.py rename to azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/orchestrator_profile.py diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/orchestrator_profile_py3.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/orchestrator_profile_py3.py similarity index 100% rename from azure-mgmt-containerservice/azure/mgmt/containerservice/models/orchestrator_profile_py3.py rename to azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/orchestrator_profile_py3.py diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/orchestrator_version_profile.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/orchestrator_version_profile.py similarity index 96% rename from azure-mgmt-containerservice/azure/mgmt/containerservice/models/orchestrator_version_profile.py rename to azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/orchestrator_version_profile.py index a906f913f69f..350caf5ea841 100644 --- a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/orchestrator_version_profile.py +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/orchestrator_version_profile.py @@ -27,7 +27,7 @@ class OrchestratorVersionProfile(Model): :type default: bool :param upgrades: Required. The list of available upgrade versions. :type upgrades: - list[~azure.mgmt.containerservice.models.OrchestratorProfile] + list[~azure.mgmt.containerservice.v2017_07_01.models.OrchestratorProfile] """ _validation = { diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/orchestrator_version_profile_list_result.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/orchestrator_version_profile_list_result.py similarity index 95% rename from azure-mgmt-containerservice/azure/mgmt/containerservice/models/orchestrator_version_profile_list_result.py rename to azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/orchestrator_version_profile_list_result.py index 27c2a65798ae..55864934e870 100644 --- a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/orchestrator_version_profile_list_result.py +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/orchestrator_version_profile_list_result.py @@ -28,7 +28,7 @@ class OrchestratorVersionProfileListResult(Model): :vartype type: str :param orchestrators: Required. List of orchestrator version profiles. :type orchestrators: - list[~azure.mgmt.containerservice.models.OrchestratorVersionProfile] + list[~azure.mgmt.containerservice.v2017_07_01.models.OrchestratorVersionProfile] """ _validation = { diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/orchestrator_version_profile_list_result_py3.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/orchestrator_version_profile_list_result_py3.py similarity index 95% rename from azure-mgmt-containerservice/azure/mgmt/containerservice/models/orchestrator_version_profile_list_result_py3.py rename to azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/orchestrator_version_profile_list_result_py3.py index b5bd30a5f546..46030d8b371c 100644 --- a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/orchestrator_version_profile_list_result_py3.py +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/orchestrator_version_profile_list_result_py3.py @@ -28,7 +28,7 @@ class OrchestratorVersionProfileListResult(Model): :vartype type: str :param orchestrators: Required. List of orchestrator version profiles. :type orchestrators: - list[~azure.mgmt.containerservice.models.OrchestratorVersionProfile] + list[~azure.mgmt.containerservice.v2017_07_01.models.OrchestratorVersionProfile] """ _validation = { diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/orchestrator_version_profile_py3.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/orchestrator_version_profile_py3.py similarity index 96% rename from azure-mgmt-containerservice/azure/mgmt/containerservice/models/orchestrator_version_profile_py3.py rename to azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/orchestrator_version_profile_py3.py index c7bf212170a8..db36814c6727 100644 --- a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/orchestrator_version_profile_py3.py +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/orchestrator_version_profile_py3.py @@ -27,7 +27,7 @@ class OrchestratorVersionProfile(Model): :type default: bool :param upgrades: Required. The list of available upgrade versions. :type upgrades: - list[~azure.mgmt.containerservice.models.OrchestratorProfile] + list[~azure.mgmt.containerservice.v2017_07_01.models.OrchestratorProfile] """ _validation = { diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/resource.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/resource.py similarity index 100% rename from azure-mgmt-containerservice/azure/mgmt/containerservice/models/resource.py rename to azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/resource.py diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/resource_py3.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/resource_py3.py similarity index 100% rename from azure-mgmt-containerservice/azure/mgmt/containerservice/models/resource_py3.py rename to azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/models/resource_py3.py diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/operations/__init__.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/operations/__init__.py new file mode 100644 index 000000000000..ab8b7cf8d770 --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/operations/__init__.py @@ -0,0 +1,16 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .container_services_operations import ContainerServicesOperations + +__all__ = [ + 'ContainerServicesOperations', +] diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/operations/container_services_operations.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/operations/container_services_operations.py similarity index 97% rename from azure-mgmt-containerservice/azure/mgmt/containerservice/operations/container_services_operations.py rename to azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/operations/container_services_operations.py index 887569a8a13a..48018b4fcbce 100644 --- a/azure-mgmt-containerservice/azure/mgmt/containerservice/operations/container_services_operations.py +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/operations/container_services_operations.py @@ -53,7 +53,7 @@ def list( overrides`. :return: An iterator like instance of ContainerService :rtype: - ~azure.mgmt.containerservice.models.ContainerServicePaged[~azure.mgmt.containerservice.models.ContainerService] + ~azure.mgmt.containerservice.v2017_07_01.models.ContainerServicePaged[~azure.mgmt.containerservice.v2017_07_01.models.ContainerService] :raises: :class:`CloudError` """ api_version = "2017-07-01" @@ -178,7 +178,8 @@ def create_or_update( :type container_service_name: str :param parameters: Parameters supplied to the Create or Update a Container Service operation. - :type parameters: ~azure.mgmt.containerservice.models.ContainerService + :type parameters: + ~azure.mgmt.containerservice.v2017_07_01.models.ContainerService :param dict custom_headers: headers that will be added to the request :param bool raw: The poller return type is ClientRawResponse, the direct response alongside the deserialized response @@ -187,9 +188,9 @@ def create_or_update( :return: An instance of LROPoller that returns ContainerService or ClientRawResponse if raw==True :rtype: - ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.containerservice.models.ContainerService] + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.containerservice.v2017_07_01.models.ContainerService] or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.containerservice.models.ContainerService]] + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.containerservice.v2017_07_01.models.ContainerService]] :raises: :class:`CloudError` """ raw_result = self._create_or_update_initial( @@ -239,7 +240,8 @@ def get( :param operation_config: :ref:`Operation configuration overrides`. :return: ContainerService or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.containerservice.models.ContainerService or + :rtype: + ~azure.mgmt.containerservice.v2017_07_01.models.ContainerService or ~msrest.pipeline.ClientRawResponse :raises: :class:`CloudError` """ @@ -396,7 +398,7 @@ def list_by_resource_group( overrides`. :return: An iterator like instance of ContainerService :rtype: - ~azure.mgmt.containerservice.models.ContainerServicePaged[~azure.mgmt.containerservice.models.ContainerService] + ~azure.mgmt.containerservice.v2017_07_01.models.ContainerServicePaged[~azure.mgmt.containerservice.v2017_07_01.models.ContainerService] :raises: :class:`CloudError` """ api_version = "2017-07-01" @@ -473,7 +475,7 @@ def list_orchestrators( :return: OrchestratorVersionProfileListResult or ClientRawResponse if raw=true :rtype: - ~azure.mgmt.containerservice.models.OrchestratorVersionProfileListResult + ~azure.mgmt.containerservice.v2017_07_01.models.OrchestratorVersionProfileListResult or ~msrest.pipeline.ClientRawResponse :raises: :class:`CloudError` """ diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/version.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/version.py new file mode 100644 index 000000000000..53a203f32aaf --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2017_07_01/version.py @@ -0,0 +1,13 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +VERSION = "" + diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/__init__.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/__init__.py new file mode 100644 index 000000000000..9854e4f7645e --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/__init__.py @@ -0,0 +1,18 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .container_service_client import ContainerServiceClient +from .version import VERSION + +__all__ = ['ContainerServiceClient'] + +__version__ = VERSION + diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/container_service_client.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/container_service_client.py new file mode 100644 index 000000000000..88d08e19a8e1 --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/container_service_client.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.service_client import SDKClient +from msrest import Serializer, Deserializer +from msrestazure import AzureConfiguration +from .version import VERSION +from .operations.operations import Operations +from .operations.managed_clusters_operations import ManagedClustersOperations +from . import models + + +class ContainerServiceClientConfiguration(AzureConfiguration): + """Configuration for ContainerServiceClient + Note that all parameters used to create this instance are saved as instance + attributes. + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param subscription_id: Subscription credentials which uniquely identify + Microsoft Azure subscription. The subscription ID forms part of the URI + for every service call. + :type subscription_id: str + :param str base_url: Service URL + """ + + def __init__( + self, credentials, subscription_id, base_url=None): + + if credentials is None: + raise ValueError("Parameter 'credentials' must not be None.") + if subscription_id is None: + raise ValueError("Parameter 'subscription_id' must not be None.") + if not base_url: + base_url = 'https://management.azure.com' + + super(ContainerServiceClientConfiguration, self).__init__(base_url) + + self.add_user_agent('azure-mgmt-containerservice/{}'.format(VERSION)) + self.add_user_agent('Azure-SDK-For-Python') + + self.credentials = credentials + self.subscription_id = subscription_id + + +class ContainerServiceClient(SDKClient): + """The Container Service Client. + + :ivar config: Configuration for client. + :vartype config: ContainerServiceClientConfiguration + + :ivar operations: Operations operations + :vartype operations: azure.mgmt.containerservice.v2018_03_31.operations.Operations + :ivar managed_clusters: ManagedClusters operations + :vartype managed_clusters: azure.mgmt.containerservice.v2018_03_31.operations.ManagedClustersOperations + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param subscription_id: Subscription credentials which uniquely identify + Microsoft Azure subscription. The subscription ID forms part of the URI + for every service call. + :type subscription_id: str + :param str base_url: Service URL + """ + + def __init__( + self, credentials, subscription_id, base_url=None): + + self.config = ContainerServiceClientConfiguration(credentials, subscription_id, base_url) + super(ContainerServiceClient, self).__init__(self.config.credentials, self.config) + + client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} + self.api_version = '2018-03-31' + self._serialize = Serializer(client_models) + self._deserialize = Deserializer(client_models) + + self.operations = Operations( + self._client, self.config, self._serialize, self._deserialize) + self.managed_clusters = ManagedClustersOperations( + self._client, self.config, self._serialize, self._deserialize) diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/__init__.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/__init__.py similarity index 73% rename from azure-mgmt-containerservice/azure/mgmt/containerservice/models/__init__.py rename to azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/__init__.py index f188b0d88cf6..11b7702f82c4 100644 --- a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/__init__.py +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/__init__.py @@ -10,25 +10,19 @@ # -------------------------------------------------------------------------- try: + from .operation_value_py3 import OperationValue from .resource_py3 import Resource - from .container_service_custom_profile_py3 import ContainerServiceCustomProfile - from .key_vault_secret_ref_py3 import KeyVaultSecretRef - from .container_service_service_principal_profile_py3 import ContainerServiceServicePrincipalProfile - from .container_service_orchestrator_profile_py3 import ContainerServiceOrchestratorProfile + from .tags_object_py3 import TagsObject + from .managed_cluster_service_principal_profile_py3 import ManagedClusterServicePrincipalProfile from .container_service_master_profile_py3 import ContainerServiceMasterProfile - from .container_service_agent_pool_profile_py3 import ContainerServiceAgentPoolProfile + from .managed_cluster_agent_pool_profile_py3 import ManagedClusterAgentPoolProfile from .container_service_windows_profile_py3 import ContainerServiceWindowsProfile from .container_service_ssh_public_key_py3 import ContainerServiceSshPublicKey from .container_service_ssh_configuration_py3 import ContainerServiceSshConfiguration from .container_service_linux_profile_py3 import ContainerServiceLinuxProfile + from .container_service_network_profile_py3 import ContainerServiceNetworkProfile from .container_service_vm_diagnostics_py3 import ContainerServiceVMDiagnostics from .container_service_diagnostics_profile_py3 import ContainerServiceDiagnosticsProfile - from .container_service_py3 import ContainerService - from .operation_value_py3 import OperationValue - from .tags_object_py3 import TagsObject - from .managed_cluster_service_principal_profile_py3 import ManagedClusterServicePrincipalProfile - from .managed_cluster_agent_pool_profile_py3 import ManagedClusterAgentPoolProfile - from .container_service_network_profile_py3 import ContainerServiceNetworkProfile from .managed_cluster_addon_profile_py3 import ManagedClusterAddonProfile from .managed_cluster_aad_profile_py3 import ManagedClusterAADProfile from .managed_cluster_py3 import ManagedCluster @@ -38,28 +32,20 @@ from .managed_cluster_upgrade_profile_py3 import ManagedClusterUpgradeProfile from .credential_result_py3 import CredentialResult from .credential_results_py3 import CredentialResults - from .orchestrator_version_profile_py3 import OrchestratorVersionProfile - from .orchestrator_version_profile_list_result_py3 import OrchestratorVersionProfileListResult except (SyntaxError, ImportError): + from .operation_value import OperationValue from .resource import Resource - from .container_service_custom_profile import ContainerServiceCustomProfile - from .key_vault_secret_ref import KeyVaultSecretRef - from .container_service_service_principal_profile import ContainerServiceServicePrincipalProfile - from .container_service_orchestrator_profile import ContainerServiceOrchestratorProfile + from .tags_object import TagsObject + from .managed_cluster_service_principal_profile import ManagedClusterServicePrincipalProfile from .container_service_master_profile import ContainerServiceMasterProfile - from .container_service_agent_pool_profile import ContainerServiceAgentPoolProfile + from .managed_cluster_agent_pool_profile import ManagedClusterAgentPoolProfile from .container_service_windows_profile import ContainerServiceWindowsProfile from .container_service_ssh_public_key import ContainerServiceSshPublicKey from .container_service_ssh_configuration import ContainerServiceSshConfiguration from .container_service_linux_profile import ContainerServiceLinuxProfile + from .container_service_network_profile import ContainerServiceNetworkProfile from .container_service_vm_diagnostics import ContainerServiceVMDiagnostics from .container_service_diagnostics_profile import ContainerServiceDiagnosticsProfile - from .container_service import ContainerService - from .operation_value import OperationValue - from .tags_object import TagsObject - from .managed_cluster_service_principal_profile import ManagedClusterServicePrincipalProfile - from .managed_cluster_agent_pool_profile import ManagedClusterAgentPoolProfile - from .container_service_network_profile import ContainerServiceNetworkProfile from .managed_cluster_addon_profile import ManagedClusterAddonProfile from .managed_cluster_aad_profile import ManagedClusterAADProfile from .managed_cluster import ManagedCluster @@ -69,40 +55,30 @@ from .managed_cluster_upgrade_profile import ManagedClusterUpgradeProfile from .credential_result import CredentialResult from .credential_results import CredentialResults - from .orchestrator_version_profile import OrchestratorVersionProfile - from .orchestrator_version_profile_list_result import OrchestratorVersionProfileListResult -from .container_service_paged import ContainerServicePaged from .operation_value_paged import OperationValuePaged from .managed_cluster_paged import ManagedClusterPaged from .container_service_client_enums import ( ContainerServiceStorageProfileTypes, ContainerServiceVMSizeTypes, - ContainerServiceOrchestratorTypes, OSType, NetworkPlugin, NetworkPolicy, ) __all__ = [ + 'OperationValue', 'Resource', - 'ContainerServiceCustomProfile', - 'KeyVaultSecretRef', - 'ContainerServiceServicePrincipalProfile', - 'ContainerServiceOrchestratorProfile', + 'TagsObject', + 'ManagedClusterServicePrincipalProfile', 'ContainerServiceMasterProfile', - 'ContainerServiceAgentPoolProfile', + 'ManagedClusterAgentPoolProfile', 'ContainerServiceWindowsProfile', 'ContainerServiceSshPublicKey', 'ContainerServiceSshConfiguration', 'ContainerServiceLinuxProfile', + 'ContainerServiceNetworkProfile', 'ContainerServiceVMDiagnostics', 'ContainerServiceDiagnosticsProfile', - 'ContainerService', - 'OperationValue', - 'TagsObject', - 'ManagedClusterServicePrincipalProfile', - 'ManagedClusterAgentPoolProfile', - 'ContainerServiceNetworkProfile', 'ManagedClusterAddonProfile', 'ManagedClusterAADProfile', 'ManagedCluster', @@ -112,14 +88,10 @@ 'ManagedClusterUpgradeProfile', 'CredentialResult', 'CredentialResults', - 'OrchestratorVersionProfile', - 'OrchestratorVersionProfileListResult', - 'ContainerServicePaged', 'OperationValuePaged', 'ManagedClusterPaged', 'ContainerServiceStorageProfileTypes', 'ContainerServiceVMSizeTypes', - 'ContainerServiceOrchestratorTypes', 'OSType', 'NetworkPlugin', 'NetworkPolicy', diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/container_service_client_enums.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/container_service_client_enums.py new file mode 100644 index 000000000000..85b62a2c1805 --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/container_service_client_enums.py @@ -0,0 +1,213 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from enum import Enum + + +class ContainerServiceStorageProfileTypes(str, Enum): + + storage_account = "StorageAccount" + managed_disks = "ManagedDisks" + + +class ContainerServiceVMSizeTypes(str, Enum): + + standard_a1 = "Standard_A1" + standard_a10 = "Standard_A10" + standard_a11 = "Standard_A11" + standard_a1_v2 = "Standard_A1_v2" + standard_a2 = "Standard_A2" + standard_a2_v2 = "Standard_A2_v2" + standard_a2m_v2 = "Standard_A2m_v2" + standard_a3 = "Standard_A3" + standard_a4 = "Standard_A4" + standard_a4_v2 = "Standard_A4_v2" + standard_a4m_v2 = "Standard_A4m_v2" + standard_a5 = "Standard_A5" + standard_a6 = "Standard_A6" + standard_a7 = "Standard_A7" + standard_a8 = "Standard_A8" + standard_a8_v2 = "Standard_A8_v2" + standard_a8m_v2 = "Standard_A8m_v2" + standard_a9 = "Standard_A9" + standard_b2ms = "Standard_B2ms" + standard_b2s = "Standard_B2s" + standard_b4ms = "Standard_B4ms" + standard_b8ms = "Standard_B8ms" + standard_d1 = "Standard_D1" + standard_d11 = "Standard_D11" + standard_d11_v2 = "Standard_D11_v2" + standard_d11_v2_promo = "Standard_D11_v2_Promo" + standard_d12 = "Standard_D12" + standard_d12_v2 = "Standard_D12_v2" + standard_d12_v2_promo = "Standard_D12_v2_Promo" + standard_d13 = "Standard_D13" + standard_d13_v2 = "Standard_D13_v2" + standard_d13_v2_promo = "Standard_D13_v2_Promo" + standard_d14 = "Standard_D14" + standard_d14_v2 = "Standard_D14_v2" + standard_d14_v2_promo = "Standard_D14_v2_Promo" + standard_d15_v2 = "Standard_D15_v2" + standard_d16_v3 = "Standard_D16_v3" + standard_d16s_v3 = "Standard_D16s_v3" + standard_d1_v2 = "Standard_D1_v2" + standard_d2 = "Standard_D2" + standard_d2_v2 = "Standard_D2_v2" + standard_d2_v2_promo = "Standard_D2_v2_Promo" + standard_d2_v3 = "Standard_D2_v3" + standard_d2s_v3 = "Standard_D2s_v3" + standard_d3 = "Standard_D3" + standard_d32_v3 = "Standard_D32_v3" + standard_d32s_v3 = "Standard_D32s_v3" + standard_d3_v2 = "Standard_D3_v2" + standard_d3_v2_promo = "Standard_D3_v2_Promo" + standard_d4 = "Standard_D4" + standard_d4_v2 = "Standard_D4_v2" + standard_d4_v2_promo = "Standard_D4_v2_Promo" + standard_d4_v3 = "Standard_D4_v3" + standard_d4s_v3 = "Standard_D4s_v3" + standard_d5_v2 = "Standard_D5_v2" + standard_d5_v2_promo = "Standard_D5_v2_Promo" + standard_d64_v3 = "Standard_D64_v3" + standard_d64s_v3 = "Standard_D64s_v3" + standard_d8_v3 = "Standard_D8_v3" + standard_d8s_v3 = "Standard_D8s_v3" + standard_ds1 = "Standard_DS1" + standard_ds11 = "Standard_DS11" + standard_ds11_v2 = "Standard_DS11_v2" + standard_ds11_v2_promo = "Standard_DS11_v2_Promo" + standard_ds12 = "Standard_DS12" + standard_ds12_v2 = "Standard_DS12_v2" + standard_ds12_v2_promo = "Standard_DS12_v2_Promo" + standard_ds13 = "Standard_DS13" + standard_ds13_2_v2 = "Standard_DS13-2_v2" + standard_ds13_4_v2 = "Standard_DS13-4_v2" + standard_ds13_v2 = "Standard_DS13_v2" + standard_ds13_v2_promo = "Standard_DS13_v2_Promo" + standard_ds14 = "Standard_DS14" + standard_ds14_4_v2 = "Standard_DS14-4_v2" + standard_ds14_8_v2 = "Standard_DS14-8_v2" + standard_ds14_v2 = "Standard_DS14_v2" + standard_ds14_v2_promo = "Standard_DS14_v2_Promo" + standard_ds15_v2 = "Standard_DS15_v2" + standard_ds1_v2 = "Standard_DS1_v2" + standard_ds2 = "Standard_DS2" + standard_ds2_v2 = "Standard_DS2_v2" + standard_ds2_v2_promo = "Standard_DS2_v2_Promo" + standard_ds3 = "Standard_DS3" + standard_ds3_v2 = "Standard_DS3_v2" + standard_ds3_v2_promo = "Standard_DS3_v2_Promo" + standard_ds4 = "Standard_DS4" + standard_ds4_v2 = "Standard_DS4_v2" + standard_ds4_v2_promo = "Standard_DS4_v2_Promo" + standard_ds5_v2 = "Standard_DS5_v2" + standard_ds5_v2_promo = "Standard_DS5_v2_Promo" + standard_e16_v3 = "Standard_E16_v3" + standard_e16s_v3 = "Standard_E16s_v3" + standard_e2_v3 = "Standard_E2_v3" + standard_e2s_v3 = "Standard_E2s_v3" + standard_e32_16s_v3 = "Standard_E32-16s_v3" + standard_e32_8s_v3 = "Standard_E32-8s_v3" + standard_e32_v3 = "Standard_E32_v3" + standard_e32s_v3 = "Standard_E32s_v3" + standard_e4_v3 = "Standard_E4_v3" + standard_e4s_v3 = "Standard_E4s_v3" + standard_e64_16s_v3 = "Standard_E64-16s_v3" + standard_e64_32s_v3 = "Standard_E64-32s_v3" + standard_e64_v3 = "Standard_E64_v3" + standard_e64s_v3 = "Standard_E64s_v3" + standard_e8_v3 = "Standard_E8_v3" + standard_e8s_v3 = "Standard_E8s_v3" + standard_f1 = "Standard_F1" + standard_f16 = "Standard_F16" + standard_f16s = "Standard_F16s" + standard_f16s_v2 = "Standard_F16s_v2" + standard_f1s = "Standard_F1s" + standard_f2 = "Standard_F2" + standard_f2s = "Standard_F2s" + standard_f2s_v2 = "Standard_F2s_v2" + standard_f32s_v2 = "Standard_F32s_v2" + standard_f4 = "Standard_F4" + standard_f4s = "Standard_F4s" + standard_f4s_v2 = "Standard_F4s_v2" + standard_f64s_v2 = "Standard_F64s_v2" + standard_f72s_v2 = "Standard_F72s_v2" + standard_f8 = "Standard_F8" + standard_f8s = "Standard_F8s" + standard_f8s_v2 = "Standard_F8s_v2" + standard_g1 = "Standard_G1" + standard_g2 = "Standard_G2" + standard_g3 = "Standard_G3" + standard_g4 = "Standard_G4" + standard_g5 = "Standard_G5" + standard_gs1 = "Standard_GS1" + standard_gs2 = "Standard_GS2" + standard_gs3 = "Standard_GS3" + standard_gs4 = "Standard_GS4" + standard_gs4_4 = "Standard_GS4-4" + standard_gs4_8 = "Standard_GS4-8" + standard_gs5 = "Standard_GS5" + standard_gs5_16 = "Standard_GS5-16" + standard_gs5_8 = "Standard_GS5-8" + standard_h16 = "Standard_H16" + standard_h16m = "Standard_H16m" + standard_h16mr = "Standard_H16mr" + standard_h16r = "Standard_H16r" + standard_h8 = "Standard_H8" + standard_h8m = "Standard_H8m" + standard_l16s = "Standard_L16s" + standard_l32s = "Standard_L32s" + standard_l4s = "Standard_L4s" + standard_l8s = "Standard_L8s" + standard_m128_32ms = "Standard_M128-32ms" + standard_m128_64ms = "Standard_M128-64ms" + standard_m128ms = "Standard_M128ms" + standard_m128s = "Standard_M128s" + standard_m64_16ms = "Standard_M64-16ms" + standard_m64_32ms = "Standard_M64-32ms" + standard_m64ms = "Standard_M64ms" + standard_m64s = "Standard_M64s" + standard_nc12 = "Standard_NC12" + standard_nc12s_v2 = "Standard_NC12s_v2" + standard_nc12s_v3 = "Standard_NC12s_v3" + standard_nc24 = "Standard_NC24" + standard_nc24r = "Standard_NC24r" + standard_nc24rs_v2 = "Standard_NC24rs_v2" + standard_nc24rs_v3 = "Standard_NC24rs_v3" + standard_nc24s_v2 = "Standard_NC24s_v2" + standard_nc24s_v3 = "Standard_NC24s_v3" + standard_nc6 = "Standard_NC6" + standard_nc6s_v2 = "Standard_NC6s_v2" + standard_nc6s_v3 = "Standard_NC6s_v3" + standard_nd12s = "Standard_ND12s" + standard_nd24rs = "Standard_ND24rs" + standard_nd24s = "Standard_ND24s" + standard_nd6s = "Standard_ND6s" + standard_nv12 = "Standard_NV12" + standard_nv24 = "Standard_NV24" + standard_nv6 = "Standard_NV6" + + +class OSType(str, Enum): + + linux = "Linux" + windows = "Windows" + + +class NetworkPlugin(str, Enum): + + azure = "azure" + kubenet = "kubenet" + + +class NetworkPolicy(str, Enum): + + calico = "calico" diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/container_service_diagnostics_profile.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/container_service_diagnostics_profile.py new file mode 100644 index 000000000000..e23957766666 --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/container_service_diagnostics_profile.py @@ -0,0 +1,36 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ContainerServiceDiagnosticsProfile(Model): + """Profile for diagnostics on the container service cluster. + + All required parameters must be populated in order to send to Azure. + + :param vm_diagnostics: Required. Profile for diagnostics on the container + service VMs. + :type vm_diagnostics: + ~azure.mgmt.containerservice.v2018_03_31.models.ContainerServiceVMDiagnostics + """ + + _validation = { + 'vm_diagnostics': {'required': True}, + } + + _attribute_map = { + 'vm_diagnostics': {'key': 'vmDiagnostics', 'type': 'ContainerServiceVMDiagnostics'}, + } + + def __init__(self, **kwargs): + super(ContainerServiceDiagnosticsProfile, self).__init__(**kwargs) + self.vm_diagnostics = kwargs.get('vm_diagnostics', None) diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/container_service_diagnostics_profile_py3.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/container_service_diagnostics_profile_py3.py new file mode 100644 index 000000000000..090009f95bb0 --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/container_service_diagnostics_profile_py3.py @@ -0,0 +1,36 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ContainerServiceDiagnosticsProfile(Model): + """Profile for diagnostics on the container service cluster. + + All required parameters must be populated in order to send to Azure. + + :param vm_diagnostics: Required. Profile for diagnostics on the container + service VMs. + :type vm_diagnostics: + ~azure.mgmt.containerservice.v2018_03_31.models.ContainerServiceVMDiagnostics + """ + + _validation = { + 'vm_diagnostics': {'required': True}, + } + + _attribute_map = { + 'vm_diagnostics': {'key': 'vmDiagnostics', 'type': 'ContainerServiceVMDiagnostics'}, + } + + def __init__(self, *, vm_diagnostics, **kwargs) -> None: + super(ContainerServiceDiagnosticsProfile, self).__init__(**kwargs) + self.vm_diagnostics = vm_diagnostics diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/container_service_linux_profile.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/container_service_linux_profile.py new file mode 100644 index 000000000000..f38fc63810d1 --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/container_service_linux_profile.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ContainerServiceLinuxProfile(Model): + """Profile for Linux VMs in the container service cluster. + + All required parameters must be populated in order to send to Azure. + + :param admin_username: Required. The administrator username to use for + Linux VMs. + :type admin_username: str + :param ssh: Required. SSH configuration for Linux-based VMs running on + Azure. + :type ssh: + ~azure.mgmt.containerservice.v2018_03_31.models.ContainerServiceSshConfiguration + """ + + _validation = { + 'admin_username': {'required': True, 'pattern': r'^[A-Za-z][-A-Za-z0-9_]*$'}, + 'ssh': {'required': True}, + } + + _attribute_map = { + 'admin_username': {'key': 'adminUsername', 'type': 'str'}, + 'ssh': {'key': 'ssh', 'type': 'ContainerServiceSshConfiguration'}, + } + + def __init__(self, **kwargs): + super(ContainerServiceLinuxProfile, self).__init__(**kwargs) + self.admin_username = kwargs.get('admin_username', None) + self.ssh = kwargs.get('ssh', None) diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/container_service_linux_profile_py3.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/container_service_linux_profile_py3.py new file mode 100644 index 000000000000..2b27bf258b9e --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/container_service_linux_profile_py3.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ContainerServiceLinuxProfile(Model): + """Profile for Linux VMs in the container service cluster. + + All required parameters must be populated in order to send to Azure. + + :param admin_username: Required. The administrator username to use for + Linux VMs. + :type admin_username: str + :param ssh: Required. SSH configuration for Linux-based VMs running on + Azure. + :type ssh: + ~azure.mgmt.containerservice.v2018_03_31.models.ContainerServiceSshConfiguration + """ + + _validation = { + 'admin_username': {'required': True, 'pattern': r'^[A-Za-z][-A-Za-z0-9_]*$'}, + 'ssh': {'required': True}, + } + + _attribute_map = { + 'admin_username': {'key': 'adminUsername', 'type': 'str'}, + 'ssh': {'key': 'ssh', 'type': 'ContainerServiceSshConfiguration'}, + } + + def __init__(self, *, admin_username: str, ssh, **kwargs) -> None: + super(ContainerServiceLinuxProfile, self).__init__(**kwargs) + self.admin_username = admin_username + self.ssh = ssh diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/container_service_master_profile.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/container_service_master_profile.py new file mode 100644 index 000000000000..1a50eee13fba --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/container_service_master_profile.py @@ -0,0 +1,128 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ContainerServiceMasterProfile(Model): + """Profile for the container service master. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param count: Number of masters (VMs) in the container service cluster. + Allowed values are 1, 3, and 5. The default value is 1. Default value: 1 . + :type count: int + :param dns_prefix: Required. DNS prefix to be used to create the FQDN for + the master pool. + :type dns_prefix: str + :param vm_size: Required. Size of agent VMs. Possible values include: + 'Standard_A1', 'Standard_A10', 'Standard_A11', 'Standard_A1_v2', + 'Standard_A2', 'Standard_A2_v2', 'Standard_A2m_v2', 'Standard_A3', + 'Standard_A4', 'Standard_A4_v2', 'Standard_A4m_v2', 'Standard_A5', + 'Standard_A6', 'Standard_A7', 'Standard_A8', 'Standard_A8_v2', + 'Standard_A8m_v2', 'Standard_A9', 'Standard_B2ms', 'Standard_B2s', + 'Standard_B4ms', 'Standard_B8ms', 'Standard_D1', 'Standard_D11', + 'Standard_D11_v2', 'Standard_D11_v2_Promo', 'Standard_D12', + 'Standard_D12_v2', 'Standard_D12_v2_Promo', 'Standard_D13', + 'Standard_D13_v2', 'Standard_D13_v2_Promo', 'Standard_D14', + 'Standard_D14_v2', 'Standard_D14_v2_Promo', 'Standard_D15_v2', + 'Standard_D16_v3', 'Standard_D16s_v3', 'Standard_D1_v2', 'Standard_D2', + 'Standard_D2_v2', 'Standard_D2_v2_Promo', 'Standard_D2_v3', + 'Standard_D2s_v3', 'Standard_D3', 'Standard_D32_v3', 'Standard_D32s_v3', + 'Standard_D3_v2', 'Standard_D3_v2_Promo', 'Standard_D4', 'Standard_D4_v2', + 'Standard_D4_v2_Promo', 'Standard_D4_v3', 'Standard_D4s_v3', + 'Standard_D5_v2', 'Standard_D5_v2_Promo', 'Standard_D64_v3', + 'Standard_D64s_v3', 'Standard_D8_v3', 'Standard_D8s_v3', 'Standard_DS1', + 'Standard_DS11', 'Standard_DS11_v2', 'Standard_DS11_v2_Promo', + 'Standard_DS12', 'Standard_DS12_v2', 'Standard_DS12_v2_Promo', + 'Standard_DS13', 'Standard_DS13-2_v2', 'Standard_DS13-4_v2', + 'Standard_DS13_v2', 'Standard_DS13_v2_Promo', 'Standard_DS14', + 'Standard_DS14-4_v2', 'Standard_DS14-8_v2', 'Standard_DS14_v2', + 'Standard_DS14_v2_Promo', 'Standard_DS15_v2', 'Standard_DS1_v2', + 'Standard_DS2', 'Standard_DS2_v2', 'Standard_DS2_v2_Promo', + 'Standard_DS3', 'Standard_DS3_v2', 'Standard_DS3_v2_Promo', + 'Standard_DS4', 'Standard_DS4_v2', 'Standard_DS4_v2_Promo', + 'Standard_DS5_v2', 'Standard_DS5_v2_Promo', 'Standard_E16_v3', + 'Standard_E16s_v3', 'Standard_E2_v3', 'Standard_E2s_v3', + 'Standard_E32-16s_v3', 'Standard_E32-8s_v3', 'Standard_E32_v3', + 'Standard_E32s_v3', 'Standard_E4_v3', 'Standard_E4s_v3', + 'Standard_E64-16s_v3', 'Standard_E64-32s_v3', 'Standard_E64_v3', + 'Standard_E64s_v3', 'Standard_E8_v3', 'Standard_E8s_v3', 'Standard_F1', + 'Standard_F16', 'Standard_F16s', 'Standard_F16s_v2', 'Standard_F1s', + 'Standard_F2', 'Standard_F2s', 'Standard_F2s_v2', 'Standard_F32s_v2', + 'Standard_F4', 'Standard_F4s', 'Standard_F4s_v2', 'Standard_F64s_v2', + 'Standard_F72s_v2', 'Standard_F8', 'Standard_F8s', 'Standard_F8s_v2', + 'Standard_G1', 'Standard_G2', 'Standard_G3', 'Standard_G4', 'Standard_G5', + 'Standard_GS1', 'Standard_GS2', 'Standard_GS3', 'Standard_GS4', + 'Standard_GS4-4', 'Standard_GS4-8', 'Standard_GS5', 'Standard_GS5-16', + 'Standard_GS5-8', 'Standard_H16', 'Standard_H16m', 'Standard_H16mr', + 'Standard_H16r', 'Standard_H8', 'Standard_H8m', 'Standard_L16s', + 'Standard_L32s', 'Standard_L4s', 'Standard_L8s', 'Standard_M128-32ms', + 'Standard_M128-64ms', 'Standard_M128ms', 'Standard_M128s', + 'Standard_M64-16ms', 'Standard_M64-32ms', 'Standard_M64ms', + 'Standard_M64s', 'Standard_NC12', 'Standard_NC12s_v2', + 'Standard_NC12s_v3', 'Standard_NC24', 'Standard_NC24r', + 'Standard_NC24rs_v2', 'Standard_NC24rs_v3', 'Standard_NC24s_v2', + 'Standard_NC24s_v3', 'Standard_NC6', 'Standard_NC6s_v2', + 'Standard_NC6s_v3', 'Standard_ND12s', 'Standard_ND24rs', 'Standard_ND24s', + 'Standard_ND6s', 'Standard_NV12', 'Standard_NV24', 'Standard_NV6' + :type vm_size: str or + ~azure.mgmt.containerservice.v2018_03_31.models.ContainerServiceVMSizeTypes + :param os_disk_size_gb: OS Disk Size in GB to be used to specify the disk + size for every machine in this master/agent pool. If you specify 0, it + will apply the default osDisk size according to the vmSize specified. + :type os_disk_size_gb: int + :param vnet_subnet_id: VNet SubnetID specifies the vnet's subnet + identifier. + :type vnet_subnet_id: str + :param first_consecutive_static_ip: FirstConsecutiveStaticIP used to + specify the first static ip of masters. Default value: "10.240.255.5" . + :type first_consecutive_static_ip: str + :param storage_profile: Storage profile specifies what kind of storage + used. Choose from StorageAccount and ManagedDisks. Leave it empty, we will + choose for you based on the orchestrator choice. Possible values include: + 'StorageAccount', 'ManagedDisks' + :type storage_profile: str or + ~azure.mgmt.containerservice.v2018_03_31.models.ContainerServiceStorageProfileTypes + :ivar fqdn: FDQN for the master pool. + :vartype fqdn: str + """ + + _validation = { + 'dns_prefix': {'required': True}, + 'vm_size': {'required': True}, + 'fqdn': {'readonly': True}, + } + + _attribute_map = { + 'count': {'key': 'count', 'type': 'int'}, + 'dns_prefix': {'key': 'dnsPrefix', 'type': 'str'}, + 'vm_size': {'key': 'vmSize', 'type': 'str'}, + 'os_disk_size_gb': {'key': 'osDiskSizeGB', 'type': 'int'}, + 'vnet_subnet_id': {'key': 'vnetSubnetID', 'type': 'str'}, + 'first_consecutive_static_ip': {'key': 'firstConsecutiveStaticIP', 'type': 'str'}, + 'storage_profile': {'key': 'storageProfile', 'type': 'str'}, + 'fqdn': {'key': 'fqdn', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ContainerServiceMasterProfile, self).__init__(**kwargs) + self.count = kwargs.get('count', 1) + self.dns_prefix = kwargs.get('dns_prefix', None) + self.vm_size = kwargs.get('vm_size', None) + self.os_disk_size_gb = kwargs.get('os_disk_size_gb', None) + self.vnet_subnet_id = kwargs.get('vnet_subnet_id', None) + self.first_consecutive_static_ip = kwargs.get('first_consecutive_static_ip', "10.240.255.5") + self.storage_profile = kwargs.get('storage_profile', None) + self.fqdn = None diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/container_service_master_profile_py3.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/container_service_master_profile_py3.py new file mode 100644 index 000000000000..f05f0f4b44ac --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/container_service_master_profile_py3.py @@ -0,0 +1,128 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ContainerServiceMasterProfile(Model): + """Profile for the container service master. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param count: Number of masters (VMs) in the container service cluster. + Allowed values are 1, 3, and 5. The default value is 1. Default value: 1 . + :type count: int + :param dns_prefix: Required. DNS prefix to be used to create the FQDN for + the master pool. + :type dns_prefix: str + :param vm_size: Required. Size of agent VMs. Possible values include: + 'Standard_A1', 'Standard_A10', 'Standard_A11', 'Standard_A1_v2', + 'Standard_A2', 'Standard_A2_v2', 'Standard_A2m_v2', 'Standard_A3', + 'Standard_A4', 'Standard_A4_v2', 'Standard_A4m_v2', 'Standard_A5', + 'Standard_A6', 'Standard_A7', 'Standard_A8', 'Standard_A8_v2', + 'Standard_A8m_v2', 'Standard_A9', 'Standard_B2ms', 'Standard_B2s', + 'Standard_B4ms', 'Standard_B8ms', 'Standard_D1', 'Standard_D11', + 'Standard_D11_v2', 'Standard_D11_v2_Promo', 'Standard_D12', + 'Standard_D12_v2', 'Standard_D12_v2_Promo', 'Standard_D13', + 'Standard_D13_v2', 'Standard_D13_v2_Promo', 'Standard_D14', + 'Standard_D14_v2', 'Standard_D14_v2_Promo', 'Standard_D15_v2', + 'Standard_D16_v3', 'Standard_D16s_v3', 'Standard_D1_v2', 'Standard_D2', + 'Standard_D2_v2', 'Standard_D2_v2_Promo', 'Standard_D2_v3', + 'Standard_D2s_v3', 'Standard_D3', 'Standard_D32_v3', 'Standard_D32s_v3', + 'Standard_D3_v2', 'Standard_D3_v2_Promo', 'Standard_D4', 'Standard_D4_v2', + 'Standard_D4_v2_Promo', 'Standard_D4_v3', 'Standard_D4s_v3', + 'Standard_D5_v2', 'Standard_D5_v2_Promo', 'Standard_D64_v3', + 'Standard_D64s_v3', 'Standard_D8_v3', 'Standard_D8s_v3', 'Standard_DS1', + 'Standard_DS11', 'Standard_DS11_v2', 'Standard_DS11_v2_Promo', + 'Standard_DS12', 'Standard_DS12_v2', 'Standard_DS12_v2_Promo', + 'Standard_DS13', 'Standard_DS13-2_v2', 'Standard_DS13-4_v2', + 'Standard_DS13_v2', 'Standard_DS13_v2_Promo', 'Standard_DS14', + 'Standard_DS14-4_v2', 'Standard_DS14-8_v2', 'Standard_DS14_v2', + 'Standard_DS14_v2_Promo', 'Standard_DS15_v2', 'Standard_DS1_v2', + 'Standard_DS2', 'Standard_DS2_v2', 'Standard_DS2_v2_Promo', + 'Standard_DS3', 'Standard_DS3_v2', 'Standard_DS3_v2_Promo', + 'Standard_DS4', 'Standard_DS4_v2', 'Standard_DS4_v2_Promo', + 'Standard_DS5_v2', 'Standard_DS5_v2_Promo', 'Standard_E16_v3', + 'Standard_E16s_v3', 'Standard_E2_v3', 'Standard_E2s_v3', + 'Standard_E32-16s_v3', 'Standard_E32-8s_v3', 'Standard_E32_v3', + 'Standard_E32s_v3', 'Standard_E4_v3', 'Standard_E4s_v3', + 'Standard_E64-16s_v3', 'Standard_E64-32s_v3', 'Standard_E64_v3', + 'Standard_E64s_v3', 'Standard_E8_v3', 'Standard_E8s_v3', 'Standard_F1', + 'Standard_F16', 'Standard_F16s', 'Standard_F16s_v2', 'Standard_F1s', + 'Standard_F2', 'Standard_F2s', 'Standard_F2s_v2', 'Standard_F32s_v2', + 'Standard_F4', 'Standard_F4s', 'Standard_F4s_v2', 'Standard_F64s_v2', + 'Standard_F72s_v2', 'Standard_F8', 'Standard_F8s', 'Standard_F8s_v2', + 'Standard_G1', 'Standard_G2', 'Standard_G3', 'Standard_G4', 'Standard_G5', + 'Standard_GS1', 'Standard_GS2', 'Standard_GS3', 'Standard_GS4', + 'Standard_GS4-4', 'Standard_GS4-8', 'Standard_GS5', 'Standard_GS5-16', + 'Standard_GS5-8', 'Standard_H16', 'Standard_H16m', 'Standard_H16mr', + 'Standard_H16r', 'Standard_H8', 'Standard_H8m', 'Standard_L16s', + 'Standard_L32s', 'Standard_L4s', 'Standard_L8s', 'Standard_M128-32ms', + 'Standard_M128-64ms', 'Standard_M128ms', 'Standard_M128s', + 'Standard_M64-16ms', 'Standard_M64-32ms', 'Standard_M64ms', + 'Standard_M64s', 'Standard_NC12', 'Standard_NC12s_v2', + 'Standard_NC12s_v3', 'Standard_NC24', 'Standard_NC24r', + 'Standard_NC24rs_v2', 'Standard_NC24rs_v3', 'Standard_NC24s_v2', + 'Standard_NC24s_v3', 'Standard_NC6', 'Standard_NC6s_v2', + 'Standard_NC6s_v3', 'Standard_ND12s', 'Standard_ND24rs', 'Standard_ND24s', + 'Standard_ND6s', 'Standard_NV12', 'Standard_NV24', 'Standard_NV6' + :type vm_size: str or + ~azure.mgmt.containerservice.v2018_03_31.models.ContainerServiceVMSizeTypes + :param os_disk_size_gb: OS Disk Size in GB to be used to specify the disk + size for every machine in this master/agent pool. If you specify 0, it + will apply the default osDisk size according to the vmSize specified. + :type os_disk_size_gb: int + :param vnet_subnet_id: VNet SubnetID specifies the vnet's subnet + identifier. + :type vnet_subnet_id: str + :param first_consecutive_static_ip: FirstConsecutiveStaticIP used to + specify the first static ip of masters. Default value: "10.240.255.5" . + :type first_consecutive_static_ip: str + :param storage_profile: Storage profile specifies what kind of storage + used. Choose from StorageAccount and ManagedDisks. Leave it empty, we will + choose for you based on the orchestrator choice. Possible values include: + 'StorageAccount', 'ManagedDisks' + :type storage_profile: str or + ~azure.mgmt.containerservice.v2018_03_31.models.ContainerServiceStorageProfileTypes + :ivar fqdn: FDQN for the master pool. + :vartype fqdn: str + """ + + _validation = { + 'dns_prefix': {'required': True}, + 'vm_size': {'required': True}, + 'fqdn': {'readonly': True}, + } + + _attribute_map = { + 'count': {'key': 'count', 'type': 'int'}, + 'dns_prefix': {'key': 'dnsPrefix', 'type': 'str'}, + 'vm_size': {'key': 'vmSize', 'type': 'str'}, + 'os_disk_size_gb': {'key': 'osDiskSizeGB', 'type': 'int'}, + 'vnet_subnet_id': {'key': 'vnetSubnetID', 'type': 'str'}, + 'first_consecutive_static_ip': {'key': 'firstConsecutiveStaticIP', 'type': 'str'}, + 'storage_profile': {'key': 'storageProfile', 'type': 'str'}, + 'fqdn': {'key': 'fqdn', 'type': 'str'}, + } + + def __init__(self, *, dns_prefix: str, vm_size, count: int=1, os_disk_size_gb: int=None, vnet_subnet_id: str=None, first_consecutive_static_ip: str="10.240.255.5", storage_profile=None, **kwargs) -> None: + super(ContainerServiceMasterProfile, self).__init__(**kwargs) + self.count = count + self.dns_prefix = dns_prefix + self.vm_size = vm_size + self.os_disk_size_gb = os_disk_size_gb + self.vnet_subnet_id = vnet_subnet_id + self.first_consecutive_static_ip = first_consecutive_static_ip + self.storage_profile = storage_profile + self.fqdn = None diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_network_profile.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/container_service_network_profile.py similarity index 96% rename from azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_network_profile.py rename to azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/container_service_network_profile.py index 45d3bb48aec7..11f0734b9f03 100644 --- a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_network_profile.py +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/container_service_network_profile.py @@ -19,11 +19,11 @@ class ContainerServiceNetworkProfile(Model): network. Possible values include: 'azure', 'kubenet'. Default value: "kubenet" . :type network_plugin: str or - ~azure.mgmt.containerservice.models.NetworkPlugin + ~azure.mgmt.containerservice.v2018_03_31.models.NetworkPlugin :param network_policy: Network policy used for building Kubernetes network. Possible values include: 'calico' :type network_policy: str or - ~azure.mgmt.containerservice.models.NetworkPolicy + ~azure.mgmt.containerservice.v2018_03_31.models.NetworkPolicy :param pod_cidr: A CIDR notation IP range from which to assign pod IPs when kubenet is used. Default value: "10.244.0.0/16" . :type pod_cidr: str diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_network_profile_py3.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/container_service_network_profile_py3.py similarity index 96% rename from azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_network_profile_py3.py rename to azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/container_service_network_profile_py3.py index ec728075a040..4305f618480c 100644 --- a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/container_service_network_profile_py3.py +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/container_service_network_profile_py3.py @@ -19,11 +19,11 @@ class ContainerServiceNetworkProfile(Model): network. Possible values include: 'azure', 'kubenet'. Default value: "kubenet" . :type network_plugin: str or - ~azure.mgmt.containerservice.models.NetworkPlugin + ~azure.mgmt.containerservice.v2018_03_31.models.NetworkPlugin :param network_policy: Network policy used for building Kubernetes network. Possible values include: 'calico' :type network_policy: str or - ~azure.mgmt.containerservice.models.NetworkPolicy + ~azure.mgmt.containerservice.v2018_03_31.models.NetworkPolicy :param pod_cidr: A CIDR notation IP range from which to assign pod IPs when kubenet is used. Default value: "10.244.0.0/16" . :type pod_cidr: str diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/container_service_ssh_configuration.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/container_service_ssh_configuration.py new file mode 100644 index 000000000000..2f9fcd9f2c68 --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/container_service_ssh_configuration.py @@ -0,0 +1,36 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ContainerServiceSshConfiguration(Model): + """SSH configuration for Linux-based VMs running on Azure. + + All required parameters must be populated in order to send to Azure. + + :param public_keys: Required. The list of SSH public keys used to + authenticate with Linux-based VMs. Only expect one key specified. + :type public_keys: + list[~azure.mgmt.containerservice.v2018_03_31.models.ContainerServiceSshPublicKey] + """ + + _validation = { + 'public_keys': {'required': True}, + } + + _attribute_map = { + 'public_keys': {'key': 'publicKeys', 'type': '[ContainerServiceSshPublicKey]'}, + } + + def __init__(self, **kwargs): + super(ContainerServiceSshConfiguration, self).__init__(**kwargs) + self.public_keys = kwargs.get('public_keys', None) diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/container_service_ssh_configuration_py3.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/container_service_ssh_configuration_py3.py new file mode 100644 index 000000000000..06827f589194 --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/container_service_ssh_configuration_py3.py @@ -0,0 +1,36 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ContainerServiceSshConfiguration(Model): + """SSH configuration for Linux-based VMs running on Azure. + + All required parameters must be populated in order to send to Azure. + + :param public_keys: Required. The list of SSH public keys used to + authenticate with Linux-based VMs. Only expect one key specified. + :type public_keys: + list[~azure.mgmt.containerservice.v2018_03_31.models.ContainerServiceSshPublicKey] + """ + + _validation = { + 'public_keys': {'required': True}, + } + + _attribute_map = { + 'public_keys': {'key': 'publicKeys', 'type': '[ContainerServiceSshPublicKey]'}, + } + + def __init__(self, *, public_keys, **kwargs) -> None: + super(ContainerServiceSshConfiguration, self).__init__(**kwargs) + self.public_keys = public_keys diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/container_service_ssh_public_key.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/container_service_ssh_public_key.py new file mode 100644 index 000000000000..da7609ba2226 --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/container_service_ssh_public_key.py @@ -0,0 +1,36 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ContainerServiceSshPublicKey(Model): + """Contains information about SSH certificate public key data. + + All required parameters must be populated in order to send to Azure. + + :param key_data: Required. Certificate public key used to authenticate + with VMs through SSH. The certificate must be in PEM format with or + without headers. + :type key_data: str + """ + + _validation = { + 'key_data': {'required': True}, + } + + _attribute_map = { + 'key_data': {'key': 'keyData', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ContainerServiceSshPublicKey, self).__init__(**kwargs) + self.key_data = kwargs.get('key_data', None) diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/container_service_ssh_public_key_py3.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/container_service_ssh_public_key_py3.py new file mode 100644 index 000000000000..8e8c10544ef4 --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/container_service_ssh_public_key_py3.py @@ -0,0 +1,36 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ContainerServiceSshPublicKey(Model): + """Contains information about SSH certificate public key data. + + All required parameters must be populated in order to send to Azure. + + :param key_data: Required. Certificate public key used to authenticate + with VMs through SSH. The certificate must be in PEM format with or + without headers. + :type key_data: str + """ + + _validation = { + 'key_data': {'required': True}, + } + + _attribute_map = { + 'key_data': {'key': 'keyData', 'type': 'str'}, + } + + def __init__(self, *, key_data: str, **kwargs) -> None: + super(ContainerServiceSshPublicKey, self).__init__(**kwargs) + self.key_data = key_data diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/container_service_vm_diagnostics.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/container_service_vm_diagnostics.py new file mode 100644 index 000000000000..f1804c66b683 --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/container_service_vm_diagnostics.py @@ -0,0 +1,44 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ContainerServiceVMDiagnostics(Model): + """Profile for diagnostics on the container service VMs. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param enabled: Required. Whether the VM diagnostic agent is provisioned + on the VM. + :type enabled: bool + :ivar storage_uri: The URI of the storage account where diagnostics are + stored. + :vartype storage_uri: str + """ + + _validation = { + 'enabled': {'required': True}, + 'storage_uri': {'readonly': True}, + } + + _attribute_map = { + 'enabled': {'key': 'enabled', 'type': 'bool'}, + 'storage_uri': {'key': 'storageUri', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ContainerServiceVMDiagnostics, self).__init__(**kwargs) + self.enabled = kwargs.get('enabled', None) + self.storage_uri = None diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/container_service_vm_diagnostics_py3.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/container_service_vm_diagnostics_py3.py new file mode 100644 index 000000000000..a716fc269548 --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/container_service_vm_diagnostics_py3.py @@ -0,0 +1,44 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ContainerServiceVMDiagnostics(Model): + """Profile for diagnostics on the container service VMs. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param enabled: Required. Whether the VM diagnostic agent is provisioned + on the VM. + :type enabled: bool + :ivar storage_uri: The URI of the storage account where diagnostics are + stored. + :vartype storage_uri: str + """ + + _validation = { + 'enabled': {'required': True}, + 'storage_uri': {'readonly': True}, + } + + _attribute_map = { + 'enabled': {'key': 'enabled', 'type': 'bool'}, + 'storage_uri': {'key': 'storageUri', 'type': 'str'}, + } + + def __init__(self, *, enabled: bool, **kwargs) -> None: + super(ContainerServiceVMDiagnostics, self).__init__(**kwargs) + self.enabled = enabled + self.storage_uri = None diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/container_service_windows_profile.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/container_service_windows_profile.py new file mode 100644 index 000000000000..463253c6d6a9 --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/container_service_windows_profile.py @@ -0,0 +1,41 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ContainerServiceWindowsProfile(Model): + """Profile for Windows VMs in the container service cluster. + + All required parameters must be populated in order to send to Azure. + + :param admin_username: Required. The administrator username to use for + Windows VMs. + :type admin_username: str + :param admin_password: Required. The administrator password to use for + Windows VMs. + :type admin_password: str + """ + + _validation = { + 'admin_username': {'required': True, 'pattern': r'^[a-zA-Z0-9]+([._]?[a-zA-Z0-9]+)*$'}, + 'admin_password': {'required': True, 'pattern': r'^(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%\^&\*\(\)])[a-zA-Z\d!@#$%\^&\*\(\)]{12,123}$'}, + } + + _attribute_map = { + 'admin_username': {'key': 'adminUsername', 'type': 'str'}, + 'admin_password': {'key': 'adminPassword', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ContainerServiceWindowsProfile, self).__init__(**kwargs) + self.admin_username = kwargs.get('admin_username', None) + self.admin_password = kwargs.get('admin_password', None) diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/container_service_windows_profile_py3.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/container_service_windows_profile_py3.py new file mode 100644 index 000000000000..667c96367aa9 --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/container_service_windows_profile_py3.py @@ -0,0 +1,41 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ContainerServiceWindowsProfile(Model): + """Profile for Windows VMs in the container service cluster. + + All required parameters must be populated in order to send to Azure. + + :param admin_username: Required. The administrator username to use for + Windows VMs. + :type admin_username: str + :param admin_password: Required. The administrator password to use for + Windows VMs. + :type admin_password: str + """ + + _validation = { + 'admin_username': {'required': True, 'pattern': r'^[a-zA-Z0-9]+([._]?[a-zA-Z0-9]+)*$'}, + 'admin_password': {'required': True, 'pattern': r'^(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%\^&\*\(\)])[a-zA-Z\d!@#$%\^&\*\(\)]{12,123}$'}, + } + + _attribute_map = { + 'admin_username': {'key': 'adminUsername', 'type': 'str'}, + 'admin_password': {'key': 'adminPassword', 'type': 'str'}, + } + + def __init__(self, *, admin_username: str, admin_password: str, **kwargs) -> None: + super(ContainerServiceWindowsProfile, self).__init__(**kwargs) + self.admin_username = admin_username + self.admin_password = admin_password diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/credential_result.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/credential_result.py similarity index 100% rename from azure-mgmt-containerservice/azure/mgmt/containerservice/models/credential_result.py rename to azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/credential_result.py diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/credential_result_py3.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/credential_result_py3.py similarity index 100% rename from azure-mgmt-containerservice/azure/mgmt/containerservice/models/credential_result_py3.py rename to azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/credential_result_py3.py diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/credential_results.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/credential_results.py similarity index 93% rename from azure-mgmt-containerservice/azure/mgmt/containerservice/models/credential_results.py rename to azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/credential_results.py index 6360ae308c44..c5ca40679b57 100644 --- a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/credential_results.py +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/credential_results.py @@ -20,7 +20,7 @@ class CredentialResults(Model): :ivar kubeconfigs: :vartype kubeconfigs: - list[~azure.mgmt.containerservice.models.CredentialResult] + list[~azure.mgmt.containerservice.v2018_03_31.models.CredentialResult] """ _validation = { diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/credential_results_py3.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/credential_results_py3.py similarity index 93% rename from azure-mgmt-containerservice/azure/mgmt/containerservice/models/credential_results_py3.py rename to azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/credential_results_py3.py index ac5e843261f6..fd9d664319cf 100644 --- a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/credential_results_py3.py +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/credential_results_py3.py @@ -20,7 +20,7 @@ class CredentialResults(Model): :ivar kubeconfigs: :vartype kubeconfigs: - list[~azure.mgmt.containerservice.models.CredentialResult] + list[~azure.mgmt.containerservice.v2018_03_31.models.CredentialResult] """ _validation = { diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/managed_cluster.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/managed_cluster.py similarity index 90% rename from azure-mgmt-containerservice/azure/mgmt/containerservice/models/managed_cluster.py rename to azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/managed_cluster.py index 502abb1807da..ef6b9e0597dc 100644 --- a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/managed_cluster.py +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/managed_cluster.py @@ -43,18 +43,18 @@ class ManagedCluster(Resource): :param agent_pool_profiles: Properties of the agent pool. Currently only one agent pool can exist. :type agent_pool_profiles: - list[~azure.mgmt.containerservice.models.ManagedClusterAgentPoolProfile] + list[~azure.mgmt.containerservice.v2018_03_31.models.ManagedClusterAgentPoolProfile] :param linux_profile: Profile for Linux VMs in the container service cluster. :type linux_profile: - ~azure.mgmt.containerservice.models.ContainerServiceLinuxProfile + ~azure.mgmt.containerservice.v2018_03_31.models.ContainerServiceLinuxProfile :param service_principal_profile: Information about a service principal identity for the cluster to use for manipulating Azure APIs. :type service_principal_profile: - ~azure.mgmt.containerservice.models.ManagedClusterServicePrincipalProfile + ~azure.mgmt.containerservice.v2018_03_31.models.ManagedClusterServicePrincipalProfile :param addon_profiles: Profile of managed cluster add-on. :type addon_profiles: dict[str, - ~azure.mgmt.containerservice.models.ManagedClusterAddonProfile] + ~azure.mgmt.containerservice.v2018_03_31.models.ManagedClusterAddonProfile] :ivar node_resource_group: Name of the resource group containing agent pool nodes. :vartype node_resource_group: str @@ -63,10 +63,10 @@ class ManagedCluster(Resource): :type enable_rbac: bool :param network_profile: Profile of network configuration. :type network_profile: - ~azure.mgmt.containerservice.models.ContainerServiceNetworkProfile + ~azure.mgmt.containerservice.v2018_03_31.models.ContainerServiceNetworkProfile :param aad_profile: Profile of Azure Active Directory configuration. :type aad_profile: - ~azure.mgmt.containerservice.models.ManagedClusterAADProfile + ~azure.mgmt.containerservice.v2018_03_31.models.ManagedClusterAADProfile """ _validation = { diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/managed_cluster_aad_profile.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/managed_cluster_aad_profile.py similarity index 93% rename from azure-mgmt-containerservice/azure/mgmt/containerservice/models/managed_cluster_aad_profile.py rename to azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/managed_cluster_aad_profile.py index 50e3acd14b60..6a48639de342 100644 --- a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/managed_cluster_aad_profile.py +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/managed_cluster_aad_profile.py @@ -21,7 +21,7 @@ class ManagedClusterAADProfile(Model): :type client_app_id: str :param server_app_id: Required. The server AAD application ID. :type server_app_id: str - :param server_app_secret: Required. The server AAD application secret. + :param server_app_secret: The server AAD application secret. :type server_app_secret: str :param tenant_id: The AAD tenant ID to use for authentication. If not specified, will use the tenant of the deployment subscription. @@ -31,7 +31,6 @@ class ManagedClusterAADProfile(Model): _validation = { 'client_app_id': {'required': True}, 'server_app_id': {'required': True}, - 'server_app_secret': {'required': True}, } _attribute_map = { diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/managed_cluster_aad_profile_py3.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/managed_cluster_aad_profile_py3.py similarity index 90% rename from azure-mgmt-containerservice/azure/mgmt/containerservice/models/managed_cluster_aad_profile_py3.py rename to azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/managed_cluster_aad_profile_py3.py index 6db15c1dd6c2..76289f3ddc3f 100644 --- a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/managed_cluster_aad_profile_py3.py +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/managed_cluster_aad_profile_py3.py @@ -21,7 +21,7 @@ class ManagedClusterAADProfile(Model): :type client_app_id: str :param server_app_id: Required. The server AAD application ID. :type server_app_id: str - :param server_app_secret: Required. The server AAD application secret. + :param server_app_secret: The server AAD application secret. :type server_app_secret: str :param tenant_id: The AAD tenant ID to use for authentication. If not specified, will use the tenant of the deployment subscription. @@ -31,7 +31,6 @@ class ManagedClusterAADProfile(Model): _validation = { 'client_app_id': {'required': True}, 'server_app_id': {'required': True}, - 'server_app_secret': {'required': True}, } _attribute_map = { @@ -41,7 +40,7 @@ class ManagedClusterAADProfile(Model): 'tenant_id': {'key': 'tenantID', 'type': 'str'}, } - def __init__(self, *, client_app_id: str, server_app_id: str, server_app_secret: str, tenant_id: str=None, **kwargs) -> None: + def __init__(self, *, client_app_id: str, server_app_id: str, server_app_secret: str=None, tenant_id: str=None, **kwargs) -> None: super(ManagedClusterAADProfile, self).__init__(**kwargs) self.client_app_id = client_app_id self.server_app_id = server_app_id diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/managed_cluster_access_profile.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/managed_cluster_access_profile.py similarity index 100% rename from azure-mgmt-containerservice/azure/mgmt/containerservice/models/managed_cluster_access_profile.py rename to azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/managed_cluster_access_profile.py diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/managed_cluster_access_profile_py3.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/managed_cluster_access_profile_py3.py similarity index 100% rename from azure-mgmt-containerservice/azure/mgmt/containerservice/models/managed_cluster_access_profile_py3.py rename to azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/managed_cluster_access_profile_py3.py diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/managed_cluster_addon_profile.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/managed_cluster_addon_profile.py similarity index 100% rename from azure-mgmt-containerservice/azure/mgmt/containerservice/models/managed_cluster_addon_profile.py rename to azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/managed_cluster_addon_profile.py diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/managed_cluster_addon_profile_py3.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/managed_cluster_addon_profile_py3.py similarity index 100% rename from azure-mgmt-containerservice/azure/mgmt/containerservice/models/managed_cluster_addon_profile_py3.py rename to azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/managed_cluster_addon_profile_py3.py diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/managed_cluster_agent_pool_profile.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/managed_cluster_agent_pool_profile.py similarity index 96% rename from azure-mgmt-containerservice/azure/mgmt/containerservice/models/managed_cluster_agent_pool_profile.py rename to azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/managed_cluster_agent_pool_profile.py index b3213bf8b328..5a73307e88b3 100644 --- a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/managed_cluster_agent_pool_profile.py +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/managed_cluster_agent_pool_profile.py @@ -79,7 +79,7 @@ class ManagedClusterAgentPoolProfile(Model): 'Standard_NC6s_v3', 'Standard_ND12s', 'Standard_ND24rs', 'Standard_ND24s', 'Standard_ND6s', 'Standard_NV12', 'Standard_NV24', 'Standard_NV6' :type vm_size: str or - ~azure.mgmt.containerservice.models.ContainerServiceVMSizeTypes + ~azure.mgmt.containerservice.v2018_03_31.models.ContainerServiceVMSizeTypes :param os_disk_size_gb: OS Disk Size in GB to be used to specify the disk size for every machine in this master/agent pool. If you specify 0, it will apply the default osDisk size according to the vmSize specified. @@ -88,7 +88,7 @@ class ManagedClusterAgentPoolProfile(Model): used. Defaults to ManagedDisks. Possible values include: 'StorageAccount', 'ManagedDisks' :vartype storage_profile: str or - ~azure.mgmt.containerservice.models.ContainerServiceStorageProfileTypes + ~azure.mgmt.containerservice.v2018_03_31.models.ContainerServiceStorageProfileTypes :param vnet_subnet_id: VNet SubnetID specifies the vnet's subnet identifier. :type vnet_subnet_id: str @@ -97,7 +97,8 @@ class ManagedClusterAgentPoolProfile(Model): :param os_type: OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux. Possible values include: 'Linux', 'Windows'. Default value: "Linux" . - :type os_type: str or ~azure.mgmt.containerservice.models.OSType + :type os_type: str or + ~azure.mgmt.containerservice.v2018_03_31.models.OSType """ _validation = { diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/managed_cluster_agent_pool_profile_py3.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/managed_cluster_agent_pool_profile_py3.py similarity index 96% rename from azure-mgmt-containerservice/azure/mgmt/containerservice/models/managed_cluster_agent_pool_profile_py3.py rename to azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/managed_cluster_agent_pool_profile_py3.py index c545cccfeac1..580fccc6cb5c 100644 --- a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/managed_cluster_agent_pool_profile_py3.py +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/managed_cluster_agent_pool_profile_py3.py @@ -79,7 +79,7 @@ class ManagedClusterAgentPoolProfile(Model): 'Standard_NC6s_v3', 'Standard_ND12s', 'Standard_ND24rs', 'Standard_ND24s', 'Standard_ND6s', 'Standard_NV12', 'Standard_NV24', 'Standard_NV6' :type vm_size: str or - ~azure.mgmt.containerservice.models.ContainerServiceVMSizeTypes + ~azure.mgmt.containerservice.v2018_03_31.models.ContainerServiceVMSizeTypes :param os_disk_size_gb: OS Disk Size in GB to be used to specify the disk size for every machine in this master/agent pool. If you specify 0, it will apply the default osDisk size according to the vmSize specified. @@ -88,7 +88,7 @@ class ManagedClusterAgentPoolProfile(Model): used. Defaults to ManagedDisks. Possible values include: 'StorageAccount', 'ManagedDisks' :vartype storage_profile: str or - ~azure.mgmt.containerservice.models.ContainerServiceStorageProfileTypes + ~azure.mgmt.containerservice.v2018_03_31.models.ContainerServiceStorageProfileTypes :param vnet_subnet_id: VNet SubnetID specifies the vnet's subnet identifier. :type vnet_subnet_id: str @@ -97,7 +97,8 @@ class ManagedClusterAgentPoolProfile(Model): :param os_type: OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux. Possible values include: 'Linux', 'Windows'. Default value: "Linux" . - :type os_type: str or ~azure.mgmt.containerservice.models.OSType + :type os_type: str or + ~azure.mgmt.containerservice.v2018_03_31.models.OSType """ _validation = { diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/managed_cluster_paged.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/managed_cluster_paged.py similarity index 91% rename from azure-mgmt-containerservice/azure/mgmt/containerservice/models/managed_cluster_paged.py rename to azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/managed_cluster_paged.py index 0d1fa204a9f3..da0be5d3ca09 100644 --- a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/managed_cluster_paged.py +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/managed_cluster_paged.py @@ -14,7 +14,7 @@ class ManagedClusterPaged(Paged): """ - A paging container for iterating over a list of :class:`ManagedCluster ` object + A paging container for iterating over a list of :class:`ManagedCluster ` object """ _attribute_map = { diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/managed_cluster_pool_upgrade_profile.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/managed_cluster_pool_upgrade_profile.py similarity index 95% rename from azure-mgmt-containerservice/azure/mgmt/containerservice/models/managed_cluster_pool_upgrade_profile.py rename to azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/managed_cluster_pool_upgrade_profile.py index b6967a4a13e7..43350b4a7338 100644 --- a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/managed_cluster_pool_upgrade_profile.py +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/managed_cluster_pool_upgrade_profile.py @@ -25,7 +25,8 @@ class ManagedClusterPoolUpgradeProfile(Model): :param os_type: Required. OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux. Possible values include: 'Linux', 'Windows'. Default value: "Linux" . - :type os_type: str or ~azure.mgmt.containerservice.models.OSType + :type os_type: str or + ~azure.mgmt.containerservice.v2018_03_31.models.OSType :param upgrades: List of orchestrator types and versions available for upgrade. :type upgrades: list[str] diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/managed_cluster_pool_upgrade_profile_py3.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/managed_cluster_pool_upgrade_profile_py3.py similarity index 95% rename from azure-mgmt-containerservice/azure/mgmt/containerservice/models/managed_cluster_pool_upgrade_profile_py3.py rename to azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/managed_cluster_pool_upgrade_profile_py3.py index a7bc407e58e2..eb864f81e765 100644 --- a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/managed_cluster_pool_upgrade_profile_py3.py +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/managed_cluster_pool_upgrade_profile_py3.py @@ -25,7 +25,8 @@ class ManagedClusterPoolUpgradeProfile(Model): :param os_type: Required. OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux. Possible values include: 'Linux', 'Windows'. Default value: "Linux" . - :type os_type: str or ~azure.mgmt.containerservice.models.OSType + :type os_type: str or + ~azure.mgmt.containerservice.v2018_03_31.models.OSType :param upgrades: List of orchestrator types and versions available for upgrade. :type upgrades: list[str] diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/managed_cluster_py3.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/managed_cluster_py3.py similarity index 90% rename from azure-mgmt-containerservice/azure/mgmt/containerservice/models/managed_cluster_py3.py rename to azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/managed_cluster_py3.py index 295ef9894cc9..56055d0fc59c 100644 --- a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/managed_cluster_py3.py +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/managed_cluster_py3.py @@ -43,18 +43,18 @@ class ManagedCluster(Resource): :param agent_pool_profiles: Properties of the agent pool. Currently only one agent pool can exist. :type agent_pool_profiles: - list[~azure.mgmt.containerservice.models.ManagedClusterAgentPoolProfile] + list[~azure.mgmt.containerservice.v2018_03_31.models.ManagedClusterAgentPoolProfile] :param linux_profile: Profile for Linux VMs in the container service cluster. :type linux_profile: - ~azure.mgmt.containerservice.models.ContainerServiceLinuxProfile + ~azure.mgmt.containerservice.v2018_03_31.models.ContainerServiceLinuxProfile :param service_principal_profile: Information about a service principal identity for the cluster to use for manipulating Azure APIs. :type service_principal_profile: - ~azure.mgmt.containerservice.models.ManagedClusterServicePrincipalProfile + ~azure.mgmt.containerservice.v2018_03_31.models.ManagedClusterServicePrincipalProfile :param addon_profiles: Profile of managed cluster add-on. :type addon_profiles: dict[str, - ~azure.mgmt.containerservice.models.ManagedClusterAddonProfile] + ~azure.mgmt.containerservice.v2018_03_31.models.ManagedClusterAddonProfile] :ivar node_resource_group: Name of the resource group containing agent pool nodes. :vartype node_resource_group: str @@ -63,10 +63,10 @@ class ManagedCluster(Resource): :type enable_rbac: bool :param network_profile: Profile of network configuration. :type network_profile: - ~azure.mgmt.containerservice.models.ContainerServiceNetworkProfile + ~azure.mgmt.containerservice.v2018_03_31.models.ContainerServiceNetworkProfile :param aad_profile: Profile of Azure Active Directory configuration. :type aad_profile: - ~azure.mgmt.containerservice.models.ManagedClusterAADProfile + ~azure.mgmt.containerservice.v2018_03_31.models.ManagedClusterAADProfile """ _validation = { diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/managed_cluster_service_principal_profile.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/managed_cluster_service_principal_profile.py similarity index 100% rename from azure-mgmt-containerservice/azure/mgmt/containerservice/models/managed_cluster_service_principal_profile.py rename to azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/managed_cluster_service_principal_profile.py diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/managed_cluster_service_principal_profile_py3.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/managed_cluster_service_principal_profile_py3.py similarity index 100% rename from azure-mgmt-containerservice/azure/mgmt/containerservice/models/managed_cluster_service_principal_profile_py3.py rename to azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/managed_cluster_service_principal_profile_py3.py diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/managed_cluster_upgrade_profile.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/managed_cluster_upgrade_profile.py similarity index 92% rename from azure-mgmt-containerservice/azure/mgmt/containerservice/models/managed_cluster_upgrade_profile.py rename to azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/managed_cluster_upgrade_profile.py index 11825a0b7392..8421022019a6 100644 --- a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/managed_cluster_upgrade_profile.py +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/managed_cluster_upgrade_profile.py @@ -29,11 +29,11 @@ class ManagedClusterUpgradeProfile(Model): :param control_plane_profile: Required. The list of available upgrade versions for the control plane. :type control_plane_profile: - ~azure.mgmt.containerservice.models.ManagedClusterPoolUpgradeProfile + ~azure.mgmt.containerservice.v2018_03_31.models.ManagedClusterPoolUpgradeProfile :param agent_pool_profiles: Required. The list of available upgrade versions for agent pools. :type agent_pool_profiles: - list[~azure.mgmt.containerservice.models.ManagedClusterPoolUpgradeProfile] + list[~azure.mgmt.containerservice.v2018_03_31.models.ManagedClusterPoolUpgradeProfile] """ _validation = { diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/managed_cluster_upgrade_profile_py3.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/managed_cluster_upgrade_profile_py3.py similarity index 92% rename from azure-mgmt-containerservice/azure/mgmt/containerservice/models/managed_cluster_upgrade_profile_py3.py rename to azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/managed_cluster_upgrade_profile_py3.py index ff69e11fb1bc..38a0095eb276 100644 --- a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/managed_cluster_upgrade_profile_py3.py +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/managed_cluster_upgrade_profile_py3.py @@ -29,11 +29,11 @@ class ManagedClusterUpgradeProfile(Model): :param control_plane_profile: Required. The list of available upgrade versions for the control plane. :type control_plane_profile: - ~azure.mgmt.containerservice.models.ManagedClusterPoolUpgradeProfile + ~azure.mgmt.containerservice.v2018_03_31.models.ManagedClusterPoolUpgradeProfile :param agent_pool_profiles: Required. The list of available upgrade versions for agent pools. :type agent_pool_profiles: - list[~azure.mgmt.containerservice.models.ManagedClusterPoolUpgradeProfile] + list[~azure.mgmt.containerservice.v2018_03_31.models.ManagedClusterPoolUpgradeProfile] """ _validation = { diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/operation_value.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/operation_value.py similarity index 100% rename from azure-mgmt-containerservice/azure/mgmt/containerservice/models/operation_value.py rename to azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/operation_value.py diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/operation_value_paged.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/operation_value_paged.py similarity index 91% rename from azure-mgmt-containerservice/azure/mgmt/containerservice/models/operation_value_paged.py rename to azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/operation_value_paged.py index ac39a71819ae..72fd282fd8f6 100644 --- a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/operation_value_paged.py +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/operation_value_paged.py @@ -14,7 +14,7 @@ class OperationValuePaged(Paged): """ - A paging container for iterating over a list of :class:`OperationValue ` object + A paging container for iterating over a list of :class:`OperationValue ` object """ _attribute_map = { diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/operation_value_py3.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/operation_value_py3.py similarity index 100% rename from azure-mgmt-containerservice/azure/mgmt/containerservice/models/operation_value_py3.py rename to azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/operation_value_py3.py diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/orchestrator_profile.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/orchestrator_profile.py new file mode 100644 index 000000000000..d5560a1f8799 --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/orchestrator_profile.py @@ -0,0 +1,40 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class OrchestratorProfile(Model): + """Contains information about orchestrator. + + All required parameters must be populated in order to send to Azure. + + :param orchestrator_type: Required. Orchestrator type. + :type orchestrator_type: str + :param orchestrator_version: Required. Orchestrator version (major, minor, + patch). + :type orchestrator_version: str + """ + + _validation = { + 'orchestrator_type': {'required': True}, + 'orchestrator_version': {'required': True}, + } + + _attribute_map = { + 'orchestrator_type': {'key': 'orchestratorType', 'type': 'str'}, + 'orchestrator_version': {'key': 'orchestratorVersion', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(OrchestratorProfile, self).__init__(**kwargs) + self.orchestrator_type = kwargs.get('orchestrator_type', None) + self.orchestrator_version = kwargs.get('orchestrator_version', None) diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/orchestrator_profile_py3.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/orchestrator_profile_py3.py new file mode 100644 index 000000000000..f16e84a1fe3c --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/orchestrator_profile_py3.py @@ -0,0 +1,40 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class OrchestratorProfile(Model): + """Contains information about orchestrator. + + All required parameters must be populated in order to send to Azure. + + :param orchestrator_type: Required. Orchestrator type. + :type orchestrator_type: str + :param orchestrator_version: Required. Orchestrator version (major, minor, + patch). + :type orchestrator_version: str + """ + + _validation = { + 'orchestrator_type': {'required': True}, + 'orchestrator_version': {'required': True}, + } + + _attribute_map = { + 'orchestrator_type': {'key': 'orchestratorType', 'type': 'str'}, + 'orchestrator_version': {'key': 'orchestratorVersion', 'type': 'str'}, + } + + def __init__(self, *, orchestrator_type: str, orchestrator_version: str, **kwargs) -> None: + super(OrchestratorProfile, self).__init__(**kwargs) + self.orchestrator_type = orchestrator_type + self.orchestrator_version = orchestrator_version diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/resource.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/resource.py new file mode 100644 index 000000000000..5dd7d481c685 --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/resource.py @@ -0,0 +1,56 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class Resource(Model): + """The Resource model definition. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Resource Id + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :param location: Required. Resource location + :type location: str + :param tags: Resource tags + :type tags: dict[str, str] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, **kwargs): + super(Resource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + self.location = kwargs.get('location', None) + self.tags = kwargs.get('tags', None) diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/resource_py3.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/resource_py3.py new file mode 100644 index 000000000000..2f3702caf609 --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/resource_py3.py @@ -0,0 +1,56 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class Resource(Model): + """The Resource model definition. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Resource Id + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :param location: Required. Resource location + :type location: str + :param tags: Resource tags + :type tags: dict[str, str] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, *, location: str, tags=None, **kwargs) -> None: + super(Resource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + self.location = location + self.tags = tags diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/tags_object.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/tags_object.py similarity index 100% rename from azure-mgmt-containerservice/azure/mgmt/containerservice/models/tags_object.py rename to azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/tags_object.py diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/models/tags_object_py3.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/tags_object_py3.py similarity index 100% rename from azure-mgmt-containerservice/azure/mgmt/containerservice/models/tags_object_py3.py rename to azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/models/tags_object_py3.py diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/operations/__init__.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/operations/__init__.py similarity index 85% rename from azure-mgmt-containerservice/azure/mgmt/containerservice/operations/__init__.py rename to azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/operations/__init__.py index 551547c5317b..f517d730f214 100644 --- a/azure-mgmt-containerservice/azure/mgmt/containerservice/operations/__init__.py +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/operations/__init__.py @@ -9,12 +9,10 @@ # regenerated. # -------------------------------------------------------------------------- -from .container_services_operations import ContainerServicesOperations from .operations import Operations from .managed_clusters_operations import ManagedClustersOperations __all__ = [ - 'ContainerServicesOperations', 'Operations', 'ManagedClustersOperations', ] diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/operations/managed_clusters_operations.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/operations/managed_clusters_operations.py similarity index 96% rename from azure-mgmt-containerservice/azure/mgmt/containerservice/operations/managed_clusters_operations.py rename to azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/operations/managed_clusters_operations.py index ee38a71b40e3..5cf09f86960b 100644 --- a/azure-mgmt-containerservice/azure/mgmt/containerservice/operations/managed_clusters_operations.py +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/operations/managed_clusters_operations.py @@ -53,7 +53,7 @@ def list( overrides`. :return: An iterator like instance of ManagedCluster :rtype: - ~azure.mgmt.containerservice.models.ManagedClusterPaged[~azure.mgmt.containerservice.models.ManagedCluster] + ~azure.mgmt.containerservice.v2018_03_31.models.ManagedClusterPaged[~azure.mgmt.containerservice.v2018_03_31.models.ManagedCluster] :raises: :class:`CloudError` """ def internal_paging(next_link=None, raw=False): @@ -123,7 +123,7 @@ def list_by_resource_group( overrides`. :return: An iterator like instance of ManagedCluster :rtype: - ~azure.mgmt.containerservice.models.ManagedClusterPaged[~azure.mgmt.containerservice.models.ManagedCluster] + ~azure.mgmt.containerservice.v2018_03_31.models.ManagedClusterPaged[~azure.mgmt.containerservice.v2018_03_31.models.ManagedCluster] :raises: :class:`CloudError` """ def internal_paging(next_link=None, raw=False): @@ -195,8 +195,8 @@ def get_upgrade_profile( overrides`. :return: ManagedClusterUpgradeProfile or ClientRawResponse if raw=true :rtype: - ~azure.mgmt.containerservice.models.ManagedClusterUpgradeProfile or - ~msrest.pipeline.ClientRawResponse + ~azure.mgmt.containerservice.v2018_03_31.models.ManagedClusterUpgradeProfile + or ~msrest.pipeline.ClientRawResponse :raises: :class:`CloudError` """ # Construct URL @@ -264,8 +264,8 @@ def get_access_profile( overrides`. :return: ManagedClusterAccessProfile or ClientRawResponse if raw=true :rtype: - ~azure.mgmt.containerservice.models.ManagedClusterAccessProfile or - ~msrest.pipeline.ClientRawResponse + ~azure.mgmt.containerservice.v2018_03_31.models.ManagedClusterAccessProfile + or ~msrest.pipeline.ClientRawResponse :raises: :class:`CloudError` """ # Construct URL @@ -330,7 +330,8 @@ def list_cluster_admin_credentials( :param operation_config: :ref:`Operation configuration overrides`. :return: CredentialResults or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.containerservice.models.CredentialResults or + :rtype: + ~azure.mgmt.containerservice.v2018_03_31.models.CredentialResults or ~msrest.pipeline.ClientRawResponse :raises: :class:`CloudError` """ @@ -395,7 +396,8 @@ def list_cluster_user_credentials( :param operation_config: :ref:`Operation configuration overrides`. :return: CredentialResults or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.containerservice.models.CredentialResults or + :rtype: + ~azure.mgmt.containerservice.v2018_03_31.models.CredentialResults or ~msrest.pipeline.ClientRawResponse :raises: :class:`CloudError` """ @@ -460,8 +462,8 @@ def get( :param operation_config: :ref:`Operation configuration overrides`. :return: ManagedCluster or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.containerservice.models.ManagedCluster or - ~msrest.pipeline.ClientRawResponse + :rtype: ~azure.mgmt.containerservice.v2018_03_31.models.ManagedCluster + or ~msrest.pipeline.ClientRawResponse :raises: :class:`CloudError` """ # Construct URL @@ -573,7 +575,8 @@ def create_or_update( :type resource_name: str :param parameters: Parameters supplied to the Create or Update a Managed Cluster operation. - :type parameters: ~azure.mgmt.containerservice.models.ManagedCluster + :type parameters: + ~azure.mgmt.containerservice.v2018_03_31.models.ManagedCluster :param dict custom_headers: headers that will be added to the request :param bool raw: The poller return type is ClientRawResponse, the direct response alongside the deserialized response @@ -582,9 +585,9 @@ def create_or_update( :return: An instance of LROPoller that returns ManagedCluster or ClientRawResponse if raw==True :rtype: - ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.containerservice.models.ManagedCluster] + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.containerservice.v2018_03_31.models.ManagedCluster] or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.containerservice.models.ManagedCluster]] + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.containerservice.v2018_03_31.models.ManagedCluster]] :raises: :class:`CloudError` """ raw_result = self._create_or_update_initial( @@ -686,9 +689,9 @@ def update_tags( :return: An instance of LROPoller that returns ManagedCluster or ClientRawResponse if raw==True :rtype: - ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.containerservice.models.ManagedCluster] + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.containerservice.v2018_03_31.models.ManagedCluster] or - ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.containerservice.models.ManagedCluster]] + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.containerservice.v2018_03_31.models.ManagedCluster]] :raises: :class:`CloudError` """ raw_result = self._update_tags_initial( diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/operations/operations.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/operations/operations.py similarity index 96% rename from azure-mgmt-containerservice/azure/mgmt/containerservice/operations/operations.py rename to azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/operations/operations.py index a43ead3a313c..3334743ed923 100644 --- a/azure-mgmt-containerservice/azure/mgmt/containerservice/operations/operations.py +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/operations/operations.py @@ -48,7 +48,7 @@ def list( overrides`. :return: An iterator like instance of OperationValue :rtype: - ~azure.mgmt.containerservice.models.OperationValuePaged[~azure.mgmt.containerservice.models.OperationValue] + ~azure.mgmt.containerservice.v2018_03_31.models.OperationValuePaged[~azure.mgmt.containerservice.v2018_03_31.models.OperationValue] :raises: :class:`CloudError` """ def internal_paging(next_link=None, raw=False): diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/version.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/version.py new file mode 100644 index 000000000000..f11baca339b2 --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_03_31/version.py @@ -0,0 +1,13 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +VERSION = "2018-03-31" + diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/__init__.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/__init__.py new file mode 100644 index 000000000000..9854e4f7645e --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/__init__.py @@ -0,0 +1,18 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .container_service_client import ContainerServiceClient +from .version import VERSION + +__all__ = ['ContainerServiceClient'] + +__version__ = VERSION + diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/container_service_client.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/container_service_client.py new file mode 100644 index 000000000000..c10bfe67196a --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/container_service_client.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.service_client import SDKClient +from msrest import Serializer, Deserializer +from msrestazure import AzureConfiguration +from .version import VERSION +from .operations.operations import Operations +from .operations.managed_clusters_operations import ManagedClustersOperations +from . import models + + +class ContainerServiceClientConfiguration(AzureConfiguration): + """Configuration for ContainerServiceClient + Note that all parameters used to create this instance are saved as instance + attributes. + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param subscription_id: Subscription credentials which uniquely identify + Microsoft Azure subscription. The subscription ID forms part of the URI + for every service call. + :type subscription_id: str + :param str base_url: Service URL + """ + + def __init__( + self, credentials, subscription_id, base_url=None): + + if credentials is None: + raise ValueError("Parameter 'credentials' must not be None.") + if subscription_id is None: + raise ValueError("Parameter 'subscription_id' must not be None.") + if not base_url: + base_url = 'https://management.azure.com' + + super(ContainerServiceClientConfiguration, self).__init__(base_url) + + self.add_user_agent('azure-mgmt-containerservice/{}'.format(VERSION)) + self.add_user_agent('Azure-SDK-For-Python') + + self.credentials = credentials + self.subscription_id = subscription_id + + +class ContainerServiceClient(SDKClient): + """The Container Service Client. + + :ivar config: Configuration for client. + :vartype config: ContainerServiceClientConfiguration + + :ivar operations: Operations operations + :vartype operations: azure.mgmt.containerservice.v2018_08_01_preview.operations.Operations + :ivar managed_clusters: ManagedClusters operations + :vartype managed_clusters: azure.mgmt.containerservice.v2018_08_01_preview.operations.ManagedClustersOperations + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param subscription_id: Subscription credentials which uniquely identify + Microsoft Azure subscription. The subscription ID forms part of the URI + for every service call. + :type subscription_id: str + :param str base_url: Service URL + """ + + def __init__( + self, credentials, subscription_id, base_url=None): + + self.config = ContainerServiceClientConfiguration(credentials, subscription_id, base_url) + super(ContainerServiceClient, self).__init__(self.config.credentials, self.config) + + client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} + self.api_version = '2018-08-01-preview' + self._serialize = Serializer(client_models) + self._deserialize = Deserializer(client_models) + + self.operations = Operations( + self._client, self.config, self._serialize, self._deserialize) + self.managed_clusters = ManagedClustersOperations( + self._client, self.config, self._serialize, self._deserialize) diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/__init__.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/__init__.py new file mode 100644 index 000000000000..b130d1e5eff6 --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/__init__.py @@ -0,0 +1,100 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +try: + from .operation_value_py3 import OperationValue + from .resource_py3 import Resource + from .tags_object_py3 import TagsObject + from .managed_cluster_service_principal_profile_py3 import ManagedClusterServicePrincipalProfile + from .container_service_master_profile_py3 import ContainerServiceMasterProfile + from .managed_cluster_agent_pool_profile_py3 import ManagedClusterAgentPoolProfile + from .container_service_windows_profile_py3 import ContainerServiceWindowsProfile + from .container_service_ssh_public_key_py3 import ContainerServiceSshPublicKey + from .container_service_ssh_configuration_py3 import ContainerServiceSshConfiguration + from .container_service_linux_profile_py3 import ContainerServiceLinuxProfile + from .container_service_network_profile_py3 import ContainerServiceNetworkProfile + from .container_service_vm_diagnostics_py3 import ContainerServiceVMDiagnostics + from .container_service_diagnostics_profile_py3 import ContainerServiceDiagnosticsProfile + from .managed_cluster_addon_profile_py3 import ManagedClusterAddonProfile + from .managed_cluster_aad_profile_py3 import ManagedClusterAADProfile + from .managed_cluster_py3 import ManagedCluster + from .orchestrator_profile_py3 import OrchestratorProfile + from .managed_cluster_access_profile_py3 import ManagedClusterAccessProfile + from .managed_cluster_pool_upgrade_profile_py3 import ManagedClusterPoolUpgradeProfile + from .managed_cluster_upgrade_profile_py3 import ManagedClusterUpgradeProfile + from .credential_result_py3 import CredentialResult + from .credential_results_py3 import CredentialResults +except (SyntaxError, ImportError): + from .operation_value import OperationValue + from .resource import Resource + from .tags_object import TagsObject + from .managed_cluster_service_principal_profile import ManagedClusterServicePrincipalProfile + from .container_service_master_profile import ContainerServiceMasterProfile + from .managed_cluster_agent_pool_profile import ManagedClusterAgentPoolProfile + from .container_service_windows_profile import ContainerServiceWindowsProfile + from .container_service_ssh_public_key import ContainerServiceSshPublicKey + from .container_service_ssh_configuration import ContainerServiceSshConfiguration + from .container_service_linux_profile import ContainerServiceLinuxProfile + from .container_service_network_profile import ContainerServiceNetworkProfile + from .container_service_vm_diagnostics import ContainerServiceVMDiagnostics + from .container_service_diagnostics_profile import ContainerServiceDiagnosticsProfile + from .managed_cluster_addon_profile import ManagedClusterAddonProfile + from .managed_cluster_aad_profile import ManagedClusterAADProfile + from .managed_cluster import ManagedCluster + from .orchestrator_profile import OrchestratorProfile + from .managed_cluster_access_profile import ManagedClusterAccessProfile + from .managed_cluster_pool_upgrade_profile import ManagedClusterPoolUpgradeProfile + from .managed_cluster_upgrade_profile import ManagedClusterUpgradeProfile + from .credential_result import CredentialResult + from .credential_results import CredentialResults +from .operation_value_paged import OperationValuePaged +from .managed_cluster_paged import ManagedClusterPaged +from .container_service_client_enums import ( + ContainerServiceStorageProfileTypes, + ContainerServiceVMSizeTypes, + OSType, + AgentPoolType, + NetworkPlugin, + NetworkPolicy, +) + +__all__ = [ + 'OperationValue', + 'Resource', + 'TagsObject', + 'ManagedClusterServicePrincipalProfile', + 'ContainerServiceMasterProfile', + 'ManagedClusterAgentPoolProfile', + 'ContainerServiceWindowsProfile', + 'ContainerServiceSshPublicKey', + 'ContainerServiceSshConfiguration', + 'ContainerServiceLinuxProfile', + 'ContainerServiceNetworkProfile', + 'ContainerServiceVMDiagnostics', + 'ContainerServiceDiagnosticsProfile', + 'ManagedClusterAddonProfile', + 'ManagedClusterAADProfile', + 'ManagedCluster', + 'OrchestratorProfile', + 'ManagedClusterAccessProfile', + 'ManagedClusterPoolUpgradeProfile', + 'ManagedClusterUpgradeProfile', + 'CredentialResult', + 'CredentialResults', + 'OperationValuePaged', + 'ManagedClusterPaged', + 'ContainerServiceStorageProfileTypes', + 'ContainerServiceVMSizeTypes', + 'OSType', + 'AgentPoolType', + 'NetworkPlugin', + 'NetworkPolicy', +] diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/container_service_client_enums.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/container_service_client_enums.py new file mode 100644 index 000000000000..f6d7bf60bf47 --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/container_service_client_enums.py @@ -0,0 +1,219 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from enum import Enum + + +class ContainerServiceStorageProfileTypes(str, Enum): + + storage_account = "StorageAccount" + managed_disks = "ManagedDisks" + + +class ContainerServiceVMSizeTypes(str, Enum): + + standard_a1 = "Standard_A1" + standard_a10 = "Standard_A10" + standard_a11 = "Standard_A11" + standard_a1_v2 = "Standard_A1_v2" + standard_a2 = "Standard_A2" + standard_a2_v2 = "Standard_A2_v2" + standard_a2m_v2 = "Standard_A2m_v2" + standard_a3 = "Standard_A3" + standard_a4 = "Standard_A4" + standard_a4_v2 = "Standard_A4_v2" + standard_a4m_v2 = "Standard_A4m_v2" + standard_a5 = "Standard_A5" + standard_a6 = "Standard_A6" + standard_a7 = "Standard_A7" + standard_a8 = "Standard_A8" + standard_a8_v2 = "Standard_A8_v2" + standard_a8m_v2 = "Standard_A8m_v2" + standard_a9 = "Standard_A9" + standard_b2ms = "Standard_B2ms" + standard_b2s = "Standard_B2s" + standard_b4ms = "Standard_B4ms" + standard_b8ms = "Standard_B8ms" + standard_d1 = "Standard_D1" + standard_d11 = "Standard_D11" + standard_d11_v2 = "Standard_D11_v2" + standard_d11_v2_promo = "Standard_D11_v2_Promo" + standard_d12 = "Standard_D12" + standard_d12_v2 = "Standard_D12_v2" + standard_d12_v2_promo = "Standard_D12_v2_Promo" + standard_d13 = "Standard_D13" + standard_d13_v2 = "Standard_D13_v2" + standard_d13_v2_promo = "Standard_D13_v2_Promo" + standard_d14 = "Standard_D14" + standard_d14_v2 = "Standard_D14_v2" + standard_d14_v2_promo = "Standard_D14_v2_Promo" + standard_d15_v2 = "Standard_D15_v2" + standard_d16_v3 = "Standard_D16_v3" + standard_d16s_v3 = "Standard_D16s_v3" + standard_d1_v2 = "Standard_D1_v2" + standard_d2 = "Standard_D2" + standard_d2_v2 = "Standard_D2_v2" + standard_d2_v2_promo = "Standard_D2_v2_Promo" + standard_d2_v3 = "Standard_D2_v3" + standard_d2s_v3 = "Standard_D2s_v3" + standard_d3 = "Standard_D3" + standard_d32_v3 = "Standard_D32_v3" + standard_d32s_v3 = "Standard_D32s_v3" + standard_d3_v2 = "Standard_D3_v2" + standard_d3_v2_promo = "Standard_D3_v2_Promo" + standard_d4 = "Standard_D4" + standard_d4_v2 = "Standard_D4_v2" + standard_d4_v2_promo = "Standard_D4_v2_Promo" + standard_d4_v3 = "Standard_D4_v3" + standard_d4s_v3 = "Standard_D4s_v3" + standard_d5_v2 = "Standard_D5_v2" + standard_d5_v2_promo = "Standard_D5_v2_Promo" + standard_d64_v3 = "Standard_D64_v3" + standard_d64s_v3 = "Standard_D64s_v3" + standard_d8_v3 = "Standard_D8_v3" + standard_d8s_v3 = "Standard_D8s_v3" + standard_ds1 = "Standard_DS1" + standard_ds11 = "Standard_DS11" + standard_ds11_v2 = "Standard_DS11_v2" + standard_ds11_v2_promo = "Standard_DS11_v2_Promo" + standard_ds12 = "Standard_DS12" + standard_ds12_v2 = "Standard_DS12_v2" + standard_ds12_v2_promo = "Standard_DS12_v2_Promo" + standard_ds13 = "Standard_DS13" + standard_ds13_2_v2 = "Standard_DS13-2_v2" + standard_ds13_4_v2 = "Standard_DS13-4_v2" + standard_ds13_v2 = "Standard_DS13_v2" + standard_ds13_v2_promo = "Standard_DS13_v2_Promo" + standard_ds14 = "Standard_DS14" + standard_ds14_4_v2 = "Standard_DS14-4_v2" + standard_ds14_8_v2 = "Standard_DS14-8_v2" + standard_ds14_v2 = "Standard_DS14_v2" + standard_ds14_v2_promo = "Standard_DS14_v2_Promo" + standard_ds15_v2 = "Standard_DS15_v2" + standard_ds1_v2 = "Standard_DS1_v2" + standard_ds2 = "Standard_DS2" + standard_ds2_v2 = "Standard_DS2_v2" + standard_ds2_v2_promo = "Standard_DS2_v2_Promo" + standard_ds3 = "Standard_DS3" + standard_ds3_v2 = "Standard_DS3_v2" + standard_ds3_v2_promo = "Standard_DS3_v2_Promo" + standard_ds4 = "Standard_DS4" + standard_ds4_v2 = "Standard_DS4_v2" + standard_ds4_v2_promo = "Standard_DS4_v2_Promo" + standard_ds5_v2 = "Standard_DS5_v2" + standard_ds5_v2_promo = "Standard_DS5_v2_Promo" + standard_e16_v3 = "Standard_E16_v3" + standard_e16s_v3 = "Standard_E16s_v3" + standard_e2_v3 = "Standard_E2_v3" + standard_e2s_v3 = "Standard_E2s_v3" + standard_e32_16s_v3 = "Standard_E32-16s_v3" + standard_e32_8s_v3 = "Standard_E32-8s_v3" + standard_e32_v3 = "Standard_E32_v3" + standard_e32s_v3 = "Standard_E32s_v3" + standard_e4_v3 = "Standard_E4_v3" + standard_e4s_v3 = "Standard_E4s_v3" + standard_e64_16s_v3 = "Standard_E64-16s_v3" + standard_e64_32s_v3 = "Standard_E64-32s_v3" + standard_e64_v3 = "Standard_E64_v3" + standard_e64s_v3 = "Standard_E64s_v3" + standard_e8_v3 = "Standard_E8_v3" + standard_e8s_v3 = "Standard_E8s_v3" + standard_f1 = "Standard_F1" + standard_f16 = "Standard_F16" + standard_f16s = "Standard_F16s" + standard_f16s_v2 = "Standard_F16s_v2" + standard_f1s = "Standard_F1s" + standard_f2 = "Standard_F2" + standard_f2s = "Standard_F2s" + standard_f2s_v2 = "Standard_F2s_v2" + standard_f32s_v2 = "Standard_F32s_v2" + standard_f4 = "Standard_F4" + standard_f4s = "Standard_F4s" + standard_f4s_v2 = "Standard_F4s_v2" + standard_f64s_v2 = "Standard_F64s_v2" + standard_f72s_v2 = "Standard_F72s_v2" + standard_f8 = "Standard_F8" + standard_f8s = "Standard_F8s" + standard_f8s_v2 = "Standard_F8s_v2" + standard_g1 = "Standard_G1" + standard_g2 = "Standard_G2" + standard_g3 = "Standard_G3" + standard_g4 = "Standard_G4" + standard_g5 = "Standard_G5" + standard_gs1 = "Standard_GS1" + standard_gs2 = "Standard_GS2" + standard_gs3 = "Standard_GS3" + standard_gs4 = "Standard_GS4" + standard_gs4_4 = "Standard_GS4-4" + standard_gs4_8 = "Standard_GS4-8" + standard_gs5 = "Standard_GS5" + standard_gs5_16 = "Standard_GS5-16" + standard_gs5_8 = "Standard_GS5-8" + standard_h16 = "Standard_H16" + standard_h16m = "Standard_H16m" + standard_h16mr = "Standard_H16mr" + standard_h16r = "Standard_H16r" + standard_h8 = "Standard_H8" + standard_h8m = "Standard_H8m" + standard_l16s = "Standard_L16s" + standard_l32s = "Standard_L32s" + standard_l4s = "Standard_L4s" + standard_l8s = "Standard_L8s" + standard_m128_32ms = "Standard_M128-32ms" + standard_m128_64ms = "Standard_M128-64ms" + standard_m128ms = "Standard_M128ms" + standard_m128s = "Standard_M128s" + standard_m64_16ms = "Standard_M64-16ms" + standard_m64_32ms = "Standard_M64-32ms" + standard_m64ms = "Standard_M64ms" + standard_m64s = "Standard_M64s" + standard_nc12 = "Standard_NC12" + standard_nc12s_v2 = "Standard_NC12s_v2" + standard_nc12s_v3 = "Standard_NC12s_v3" + standard_nc24 = "Standard_NC24" + standard_nc24r = "Standard_NC24r" + standard_nc24rs_v2 = "Standard_NC24rs_v2" + standard_nc24rs_v3 = "Standard_NC24rs_v3" + standard_nc24s_v2 = "Standard_NC24s_v2" + standard_nc24s_v3 = "Standard_NC24s_v3" + standard_nc6 = "Standard_NC6" + standard_nc6s_v2 = "Standard_NC6s_v2" + standard_nc6s_v3 = "Standard_NC6s_v3" + standard_nd12s = "Standard_ND12s" + standard_nd24rs = "Standard_ND24rs" + standard_nd24s = "Standard_ND24s" + standard_nd6s = "Standard_ND6s" + standard_nv12 = "Standard_NV12" + standard_nv24 = "Standard_NV24" + standard_nv6 = "Standard_NV6" + + +class OSType(str, Enum): + + linux = "Linux" + windows = "Windows" + + +class AgentPoolType(str, Enum): + + virtual_machine_scale_sets = "VirtualMachineScaleSets" + availability_set = "AvailabilitySet" + + +class NetworkPlugin(str, Enum): + + azure = "azure" + kubenet = "kubenet" + + +class NetworkPolicy(str, Enum): + + calico = "calico" diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/container_service_diagnostics_profile.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/container_service_diagnostics_profile.py new file mode 100644 index 000000000000..f972906b79fe --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/container_service_diagnostics_profile.py @@ -0,0 +1,36 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ContainerServiceDiagnosticsProfile(Model): + """Profile for diagnostics on the container service cluster. + + All required parameters must be populated in order to send to Azure. + + :param vm_diagnostics: Required. Profile for diagnostics on the container + service VMs. + :type vm_diagnostics: + ~azure.mgmt.containerservice.v2018_08_01_preview.models.ContainerServiceVMDiagnostics + """ + + _validation = { + 'vm_diagnostics': {'required': True}, + } + + _attribute_map = { + 'vm_diagnostics': {'key': 'vmDiagnostics', 'type': 'ContainerServiceVMDiagnostics'}, + } + + def __init__(self, **kwargs): + super(ContainerServiceDiagnosticsProfile, self).__init__(**kwargs) + self.vm_diagnostics = kwargs.get('vm_diagnostics', None) diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/container_service_diagnostics_profile_py3.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/container_service_diagnostics_profile_py3.py new file mode 100644 index 000000000000..6684912319a3 --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/container_service_diagnostics_profile_py3.py @@ -0,0 +1,36 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ContainerServiceDiagnosticsProfile(Model): + """Profile for diagnostics on the container service cluster. + + All required parameters must be populated in order to send to Azure. + + :param vm_diagnostics: Required. Profile for diagnostics on the container + service VMs. + :type vm_diagnostics: + ~azure.mgmt.containerservice.v2018_08_01_preview.models.ContainerServiceVMDiagnostics + """ + + _validation = { + 'vm_diagnostics': {'required': True}, + } + + _attribute_map = { + 'vm_diagnostics': {'key': 'vmDiagnostics', 'type': 'ContainerServiceVMDiagnostics'}, + } + + def __init__(self, *, vm_diagnostics, **kwargs) -> None: + super(ContainerServiceDiagnosticsProfile, self).__init__(**kwargs) + self.vm_diagnostics = vm_diagnostics diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/container_service_linux_profile.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/container_service_linux_profile.py new file mode 100644 index 000000000000..8143d72a672a --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/container_service_linux_profile.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ContainerServiceLinuxProfile(Model): + """Profile for Linux VMs in the container service cluster. + + All required parameters must be populated in order to send to Azure. + + :param admin_username: Required. The administrator username to use for + Linux VMs. + :type admin_username: str + :param ssh: Required. SSH configuration for Linux-based VMs running on + Azure. + :type ssh: + ~azure.mgmt.containerservice.v2018_08_01_preview.models.ContainerServiceSshConfiguration + """ + + _validation = { + 'admin_username': {'required': True, 'pattern': r'^[A-Za-z][-A-Za-z0-9_]*$'}, + 'ssh': {'required': True}, + } + + _attribute_map = { + 'admin_username': {'key': 'adminUsername', 'type': 'str'}, + 'ssh': {'key': 'ssh', 'type': 'ContainerServiceSshConfiguration'}, + } + + def __init__(self, **kwargs): + super(ContainerServiceLinuxProfile, self).__init__(**kwargs) + self.admin_username = kwargs.get('admin_username', None) + self.ssh = kwargs.get('ssh', None) diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/container_service_linux_profile_py3.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/container_service_linux_profile_py3.py new file mode 100644 index 000000000000..e1fc61c89148 --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/container_service_linux_profile_py3.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ContainerServiceLinuxProfile(Model): + """Profile for Linux VMs in the container service cluster. + + All required parameters must be populated in order to send to Azure. + + :param admin_username: Required. The administrator username to use for + Linux VMs. + :type admin_username: str + :param ssh: Required. SSH configuration for Linux-based VMs running on + Azure. + :type ssh: + ~azure.mgmt.containerservice.v2018_08_01_preview.models.ContainerServiceSshConfiguration + """ + + _validation = { + 'admin_username': {'required': True, 'pattern': r'^[A-Za-z][-A-Za-z0-9_]*$'}, + 'ssh': {'required': True}, + } + + _attribute_map = { + 'admin_username': {'key': 'adminUsername', 'type': 'str'}, + 'ssh': {'key': 'ssh', 'type': 'ContainerServiceSshConfiguration'}, + } + + def __init__(self, *, admin_username: str, ssh, **kwargs) -> None: + super(ContainerServiceLinuxProfile, self).__init__(**kwargs) + self.admin_username = admin_username + self.ssh = ssh diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/container_service_master_profile.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/container_service_master_profile.py new file mode 100644 index 000000000000..4d0fa2fdb5e8 --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/container_service_master_profile.py @@ -0,0 +1,128 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ContainerServiceMasterProfile(Model): + """Profile for the container service master. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param count: Number of masters (VMs) in the container service cluster. + Allowed values are 1, 3, and 5. The default value is 1. Default value: 1 . + :type count: int + :param dns_prefix: Required. DNS prefix to be used to create the FQDN for + the master pool. + :type dns_prefix: str + :param vm_size: Required. Size of agent VMs. Possible values include: + 'Standard_A1', 'Standard_A10', 'Standard_A11', 'Standard_A1_v2', + 'Standard_A2', 'Standard_A2_v2', 'Standard_A2m_v2', 'Standard_A3', + 'Standard_A4', 'Standard_A4_v2', 'Standard_A4m_v2', 'Standard_A5', + 'Standard_A6', 'Standard_A7', 'Standard_A8', 'Standard_A8_v2', + 'Standard_A8m_v2', 'Standard_A9', 'Standard_B2ms', 'Standard_B2s', + 'Standard_B4ms', 'Standard_B8ms', 'Standard_D1', 'Standard_D11', + 'Standard_D11_v2', 'Standard_D11_v2_Promo', 'Standard_D12', + 'Standard_D12_v2', 'Standard_D12_v2_Promo', 'Standard_D13', + 'Standard_D13_v2', 'Standard_D13_v2_Promo', 'Standard_D14', + 'Standard_D14_v2', 'Standard_D14_v2_Promo', 'Standard_D15_v2', + 'Standard_D16_v3', 'Standard_D16s_v3', 'Standard_D1_v2', 'Standard_D2', + 'Standard_D2_v2', 'Standard_D2_v2_Promo', 'Standard_D2_v3', + 'Standard_D2s_v3', 'Standard_D3', 'Standard_D32_v3', 'Standard_D32s_v3', + 'Standard_D3_v2', 'Standard_D3_v2_Promo', 'Standard_D4', 'Standard_D4_v2', + 'Standard_D4_v2_Promo', 'Standard_D4_v3', 'Standard_D4s_v3', + 'Standard_D5_v2', 'Standard_D5_v2_Promo', 'Standard_D64_v3', + 'Standard_D64s_v3', 'Standard_D8_v3', 'Standard_D8s_v3', 'Standard_DS1', + 'Standard_DS11', 'Standard_DS11_v2', 'Standard_DS11_v2_Promo', + 'Standard_DS12', 'Standard_DS12_v2', 'Standard_DS12_v2_Promo', + 'Standard_DS13', 'Standard_DS13-2_v2', 'Standard_DS13-4_v2', + 'Standard_DS13_v2', 'Standard_DS13_v2_Promo', 'Standard_DS14', + 'Standard_DS14-4_v2', 'Standard_DS14-8_v2', 'Standard_DS14_v2', + 'Standard_DS14_v2_Promo', 'Standard_DS15_v2', 'Standard_DS1_v2', + 'Standard_DS2', 'Standard_DS2_v2', 'Standard_DS2_v2_Promo', + 'Standard_DS3', 'Standard_DS3_v2', 'Standard_DS3_v2_Promo', + 'Standard_DS4', 'Standard_DS4_v2', 'Standard_DS4_v2_Promo', + 'Standard_DS5_v2', 'Standard_DS5_v2_Promo', 'Standard_E16_v3', + 'Standard_E16s_v3', 'Standard_E2_v3', 'Standard_E2s_v3', + 'Standard_E32-16s_v3', 'Standard_E32-8s_v3', 'Standard_E32_v3', + 'Standard_E32s_v3', 'Standard_E4_v3', 'Standard_E4s_v3', + 'Standard_E64-16s_v3', 'Standard_E64-32s_v3', 'Standard_E64_v3', + 'Standard_E64s_v3', 'Standard_E8_v3', 'Standard_E8s_v3', 'Standard_F1', + 'Standard_F16', 'Standard_F16s', 'Standard_F16s_v2', 'Standard_F1s', + 'Standard_F2', 'Standard_F2s', 'Standard_F2s_v2', 'Standard_F32s_v2', + 'Standard_F4', 'Standard_F4s', 'Standard_F4s_v2', 'Standard_F64s_v2', + 'Standard_F72s_v2', 'Standard_F8', 'Standard_F8s', 'Standard_F8s_v2', + 'Standard_G1', 'Standard_G2', 'Standard_G3', 'Standard_G4', 'Standard_G5', + 'Standard_GS1', 'Standard_GS2', 'Standard_GS3', 'Standard_GS4', + 'Standard_GS4-4', 'Standard_GS4-8', 'Standard_GS5', 'Standard_GS5-16', + 'Standard_GS5-8', 'Standard_H16', 'Standard_H16m', 'Standard_H16mr', + 'Standard_H16r', 'Standard_H8', 'Standard_H8m', 'Standard_L16s', + 'Standard_L32s', 'Standard_L4s', 'Standard_L8s', 'Standard_M128-32ms', + 'Standard_M128-64ms', 'Standard_M128ms', 'Standard_M128s', + 'Standard_M64-16ms', 'Standard_M64-32ms', 'Standard_M64ms', + 'Standard_M64s', 'Standard_NC12', 'Standard_NC12s_v2', + 'Standard_NC12s_v3', 'Standard_NC24', 'Standard_NC24r', + 'Standard_NC24rs_v2', 'Standard_NC24rs_v3', 'Standard_NC24s_v2', + 'Standard_NC24s_v3', 'Standard_NC6', 'Standard_NC6s_v2', + 'Standard_NC6s_v3', 'Standard_ND12s', 'Standard_ND24rs', 'Standard_ND24s', + 'Standard_ND6s', 'Standard_NV12', 'Standard_NV24', 'Standard_NV6' + :type vm_size: str or + ~azure.mgmt.containerservice.v2018_08_01_preview.models.ContainerServiceVMSizeTypes + :param os_disk_size_gb: OS Disk Size in GB to be used to specify the disk + size for every machine in this master/agent pool. If you specify 0, it + will apply the default osDisk size according to the vmSize specified. + :type os_disk_size_gb: int + :param vnet_subnet_id: VNet SubnetID specifies the vnet's subnet + identifier. + :type vnet_subnet_id: str + :param first_consecutive_static_ip: FirstConsecutiveStaticIP used to + specify the first static ip of masters. Default value: "10.240.255.5" . + :type first_consecutive_static_ip: str + :param storage_profile: Storage profile specifies what kind of storage + used. Choose from StorageAccount and ManagedDisks. Leave it empty, we will + choose for you based on the orchestrator choice. Possible values include: + 'StorageAccount', 'ManagedDisks' + :type storage_profile: str or + ~azure.mgmt.containerservice.v2018_08_01_preview.models.ContainerServiceStorageProfileTypes + :ivar fqdn: FDQN for the master pool. + :vartype fqdn: str + """ + + _validation = { + 'dns_prefix': {'required': True}, + 'vm_size': {'required': True}, + 'fqdn': {'readonly': True}, + } + + _attribute_map = { + 'count': {'key': 'count', 'type': 'int'}, + 'dns_prefix': {'key': 'dnsPrefix', 'type': 'str'}, + 'vm_size': {'key': 'vmSize', 'type': 'str'}, + 'os_disk_size_gb': {'key': 'osDiskSizeGB', 'type': 'int'}, + 'vnet_subnet_id': {'key': 'vnetSubnetID', 'type': 'str'}, + 'first_consecutive_static_ip': {'key': 'firstConsecutiveStaticIP', 'type': 'str'}, + 'storage_profile': {'key': 'storageProfile', 'type': 'str'}, + 'fqdn': {'key': 'fqdn', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ContainerServiceMasterProfile, self).__init__(**kwargs) + self.count = kwargs.get('count', 1) + self.dns_prefix = kwargs.get('dns_prefix', None) + self.vm_size = kwargs.get('vm_size', None) + self.os_disk_size_gb = kwargs.get('os_disk_size_gb', None) + self.vnet_subnet_id = kwargs.get('vnet_subnet_id', None) + self.first_consecutive_static_ip = kwargs.get('first_consecutive_static_ip', "10.240.255.5") + self.storage_profile = kwargs.get('storage_profile', None) + self.fqdn = None diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/container_service_master_profile_py3.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/container_service_master_profile_py3.py new file mode 100644 index 000000000000..766b911458e4 --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/container_service_master_profile_py3.py @@ -0,0 +1,128 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ContainerServiceMasterProfile(Model): + """Profile for the container service master. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param count: Number of masters (VMs) in the container service cluster. + Allowed values are 1, 3, and 5. The default value is 1. Default value: 1 . + :type count: int + :param dns_prefix: Required. DNS prefix to be used to create the FQDN for + the master pool. + :type dns_prefix: str + :param vm_size: Required. Size of agent VMs. Possible values include: + 'Standard_A1', 'Standard_A10', 'Standard_A11', 'Standard_A1_v2', + 'Standard_A2', 'Standard_A2_v2', 'Standard_A2m_v2', 'Standard_A3', + 'Standard_A4', 'Standard_A4_v2', 'Standard_A4m_v2', 'Standard_A5', + 'Standard_A6', 'Standard_A7', 'Standard_A8', 'Standard_A8_v2', + 'Standard_A8m_v2', 'Standard_A9', 'Standard_B2ms', 'Standard_B2s', + 'Standard_B4ms', 'Standard_B8ms', 'Standard_D1', 'Standard_D11', + 'Standard_D11_v2', 'Standard_D11_v2_Promo', 'Standard_D12', + 'Standard_D12_v2', 'Standard_D12_v2_Promo', 'Standard_D13', + 'Standard_D13_v2', 'Standard_D13_v2_Promo', 'Standard_D14', + 'Standard_D14_v2', 'Standard_D14_v2_Promo', 'Standard_D15_v2', + 'Standard_D16_v3', 'Standard_D16s_v3', 'Standard_D1_v2', 'Standard_D2', + 'Standard_D2_v2', 'Standard_D2_v2_Promo', 'Standard_D2_v3', + 'Standard_D2s_v3', 'Standard_D3', 'Standard_D32_v3', 'Standard_D32s_v3', + 'Standard_D3_v2', 'Standard_D3_v2_Promo', 'Standard_D4', 'Standard_D4_v2', + 'Standard_D4_v2_Promo', 'Standard_D4_v3', 'Standard_D4s_v3', + 'Standard_D5_v2', 'Standard_D5_v2_Promo', 'Standard_D64_v3', + 'Standard_D64s_v3', 'Standard_D8_v3', 'Standard_D8s_v3', 'Standard_DS1', + 'Standard_DS11', 'Standard_DS11_v2', 'Standard_DS11_v2_Promo', + 'Standard_DS12', 'Standard_DS12_v2', 'Standard_DS12_v2_Promo', + 'Standard_DS13', 'Standard_DS13-2_v2', 'Standard_DS13-4_v2', + 'Standard_DS13_v2', 'Standard_DS13_v2_Promo', 'Standard_DS14', + 'Standard_DS14-4_v2', 'Standard_DS14-8_v2', 'Standard_DS14_v2', + 'Standard_DS14_v2_Promo', 'Standard_DS15_v2', 'Standard_DS1_v2', + 'Standard_DS2', 'Standard_DS2_v2', 'Standard_DS2_v2_Promo', + 'Standard_DS3', 'Standard_DS3_v2', 'Standard_DS3_v2_Promo', + 'Standard_DS4', 'Standard_DS4_v2', 'Standard_DS4_v2_Promo', + 'Standard_DS5_v2', 'Standard_DS5_v2_Promo', 'Standard_E16_v3', + 'Standard_E16s_v3', 'Standard_E2_v3', 'Standard_E2s_v3', + 'Standard_E32-16s_v3', 'Standard_E32-8s_v3', 'Standard_E32_v3', + 'Standard_E32s_v3', 'Standard_E4_v3', 'Standard_E4s_v3', + 'Standard_E64-16s_v3', 'Standard_E64-32s_v3', 'Standard_E64_v3', + 'Standard_E64s_v3', 'Standard_E8_v3', 'Standard_E8s_v3', 'Standard_F1', + 'Standard_F16', 'Standard_F16s', 'Standard_F16s_v2', 'Standard_F1s', + 'Standard_F2', 'Standard_F2s', 'Standard_F2s_v2', 'Standard_F32s_v2', + 'Standard_F4', 'Standard_F4s', 'Standard_F4s_v2', 'Standard_F64s_v2', + 'Standard_F72s_v2', 'Standard_F8', 'Standard_F8s', 'Standard_F8s_v2', + 'Standard_G1', 'Standard_G2', 'Standard_G3', 'Standard_G4', 'Standard_G5', + 'Standard_GS1', 'Standard_GS2', 'Standard_GS3', 'Standard_GS4', + 'Standard_GS4-4', 'Standard_GS4-8', 'Standard_GS5', 'Standard_GS5-16', + 'Standard_GS5-8', 'Standard_H16', 'Standard_H16m', 'Standard_H16mr', + 'Standard_H16r', 'Standard_H8', 'Standard_H8m', 'Standard_L16s', + 'Standard_L32s', 'Standard_L4s', 'Standard_L8s', 'Standard_M128-32ms', + 'Standard_M128-64ms', 'Standard_M128ms', 'Standard_M128s', + 'Standard_M64-16ms', 'Standard_M64-32ms', 'Standard_M64ms', + 'Standard_M64s', 'Standard_NC12', 'Standard_NC12s_v2', + 'Standard_NC12s_v3', 'Standard_NC24', 'Standard_NC24r', + 'Standard_NC24rs_v2', 'Standard_NC24rs_v3', 'Standard_NC24s_v2', + 'Standard_NC24s_v3', 'Standard_NC6', 'Standard_NC6s_v2', + 'Standard_NC6s_v3', 'Standard_ND12s', 'Standard_ND24rs', 'Standard_ND24s', + 'Standard_ND6s', 'Standard_NV12', 'Standard_NV24', 'Standard_NV6' + :type vm_size: str or + ~azure.mgmt.containerservice.v2018_08_01_preview.models.ContainerServiceVMSizeTypes + :param os_disk_size_gb: OS Disk Size in GB to be used to specify the disk + size for every machine in this master/agent pool. If you specify 0, it + will apply the default osDisk size according to the vmSize specified. + :type os_disk_size_gb: int + :param vnet_subnet_id: VNet SubnetID specifies the vnet's subnet + identifier. + :type vnet_subnet_id: str + :param first_consecutive_static_ip: FirstConsecutiveStaticIP used to + specify the first static ip of masters. Default value: "10.240.255.5" . + :type first_consecutive_static_ip: str + :param storage_profile: Storage profile specifies what kind of storage + used. Choose from StorageAccount and ManagedDisks. Leave it empty, we will + choose for you based on the orchestrator choice. Possible values include: + 'StorageAccount', 'ManagedDisks' + :type storage_profile: str or + ~azure.mgmt.containerservice.v2018_08_01_preview.models.ContainerServiceStorageProfileTypes + :ivar fqdn: FDQN for the master pool. + :vartype fqdn: str + """ + + _validation = { + 'dns_prefix': {'required': True}, + 'vm_size': {'required': True}, + 'fqdn': {'readonly': True}, + } + + _attribute_map = { + 'count': {'key': 'count', 'type': 'int'}, + 'dns_prefix': {'key': 'dnsPrefix', 'type': 'str'}, + 'vm_size': {'key': 'vmSize', 'type': 'str'}, + 'os_disk_size_gb': {'key': 'osDiskSizeGB', 'type': 'int'}, + 'vnet_subnet_id': {'key': 'vnetSubnetID', 'type': 'str'}, + 'first_consecutive_static_ip': {'key': 'firstConsecutiveStaticIP', 'type': 'str'}, + 'storage_profile': {'key': 'storageProfile', 'type': 'str'}, + 'fqdn': {'key': 'fqdn', 'type': 'str'}, + } + + def __init__(self, *, dns_prefix: str, vm_size, count: int=1, os_disk_size_gb: int=None, vnet_subnet_id: str=None, first_consecutive_static_ip: str="10.240.255.5", storage_profile=None, **kwargs) -> None: + super(ContainerServiceMasterProfile, self).__init__(**kwargs) + self.count = count + self.dns_prefix = dns_prefix + self.vm_size = vm_size + self.os_disk_size_gb = os_disk_size_gb + self.vnet_subnet_id = vnet_subnet_id + self.first_consecutive_static_ip = first_consecutive_static_ip + self.storage_profile = storage_profile + self.fqdn = None diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/container_service_network_profile.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/container_service_network_profile.py new file mode 100644 index 000000000000..d1be0f459ac9 --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/container_service_network_profile.py @@ -0,0 +1,67 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ContainerServiceNetworkProfile(Model): + """Profile of network configuration. + + :param network_plugin: Network plugin used for building Kubernetes + network. Possible values include: 'azure', 'kubenet'. Default value: + "kubenet" . + :type network_plugin: str or + ~azure.mgmt.containerservice.v2018_08_01_preview.models.NetworkPlugin + :param network_policy: Network policy used for building Kubernetes + network. Possible values include: 'calico' + :type network_policy: str or + ~azure.mgmt.containerservice.v2018_08_01_preview.models.NetworkPolicy + :param pod_cidr: A CIDR notation IP range from which to assign pod IPs + when kubenet is used. Default value: "10.244.0.0/16" . + :type pod_cidr: str + :param service_cidr: A CIDR notation IP range from which to assign service + cluster IPs. It must not overlap with any Subnet IP ranges. Default value: + "10.0.0.0/16" . + :type service_cidr: str + :param dns_service_ip: An IP address assigned to the Kubernetes DNS + service. It must be within the Kubernetes service address range specified + in serviceCidr. Default value: "10.0.0.10" . + :type dns_service_ip: str + :param docker_bridge_cidr: A CIDR notation IP range assigned to the Docker + bridge network. It must not overlap with any Subnet IP ranges or the + Kubernetes service address range. Default value: "172.17.0.1/16" . + :type docker_bridge_cidr: str + """ + + _validation = { + 'pod_cidr': {'pattern': r'^([0-9]{1,3}\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$'}, + 'service_cidr': {'pattern': r'^([0-9]{1,3}\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$'}, + 'dns_service_ip': {'pattern': r'^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$'}, + 'docker_bridge_cidr': {'pattern': r'^([0-9]{1,3}\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$'}, + } + + _attribute_map = { + 'network_plugin': {'key': 'networkPlugin', 'type': 'str'}, + 'network_policy': {'key': 'networkPolicy', 'type': 'str'}, + 'pod_cidr': {'key': 'podCidr', 'type': 'str'}, + 'service_cidr': {'key': 'serviceCidr', 'type': 'str'}, + 'dns_service_ip': {'key': 'dnsServiceIP', 'type': 'str'}, + 'docker_bridge_cidr': {'key': 'dockerBridgeCidr', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ContainerServiceNetworkProfile, self).__init__(**kwargs) + self.network_plugin = kwargs.get('network_plugin', "kubenet") + self.network_policy = kwargs.get('network_policy', None) + self.pod_cidr = kwargs.get('pod_cidr', "10.244.0.0/16") + self.service_cidr = kwargs.get('service_cidr', "10.0.0.0/16") + self.dns_service_ip = kwargs.get('dns_service_ip', "10.0.0.10") + self.docker_bridge_cidr = kwargs.get('docker_bridge_cidr', "172.17.0.1/16") diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/container_service_network_profile_py3.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/container_service_network_profile_py3.py new file mode 100644 index 000000000000..e00659a9df56 --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/container_service_network_profile_py3.py @@ -0,0 +1,67 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ContainerServiceNetworkProfile(Model): + """Profile of network configuration. + + :param network_plugin: Network plugin used for building Kubernetes + network. Possible values include: 'azure', 'kubenet'. Default value: + "kubenet" . + :type network_plugin: str or + ~azure.mgmt.containerservice.v2018_08_01_preview.models.NetworkPlugin + :param network_policy: Network policy used for building Kubernetes + network. Possible values include: 'calico' + :type network_policy: str or + ~azure.mgmt.containerservice.v2018_08_01_preview.models.NetworkPolicy + :param pod_cidr: A CIDR notation IP range from which to assign pod IPs + when kubenet is used. Default value: "10.244.0.0/16" . + :type pod_cidr: str + :param service_cidr: A CIDR notation IP range from which to assign service + cluster IPs. It must not overlap with any Subnet IP ranges. Default value: + "10.0.0.0/16" . + :type service_cidr: str + :param dns_service_ip: An IP address assigned to the Kubernetes DNS + service. It must be within the Kubernetes service address range specified + in serviceCidr. Default value: "10.0.0.10" . + :type dns_service_ip: str + :param docker_bridge_cidr: A CIDR notation IP range assigned to the Docker + bridge network. It must not overlap with any Subnet IP ranges or the + Kubernetes service address range. Default value: "172.17.0.1/16" . + :type docker_bridge_cidr: str + """ + + _validation = { + 'pod_cidr': {'pattern': r'^([0-9]{1,3}\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$'}, + 'service_cidr': {'pattern': r'^([0-9]{1,3}\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$'}, + 'dns_service_ip': {'pattern': r'^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$'}, + 'docker_bridge_cidr': {'pattern': r'^([0-9]{1,3}\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))?$'}, + } + + _attribute_map = { + 'network_plugin': {'key': 'networkPlugin', 'type': 'str'}, + 'network_policy': {'key': 'networkPolicy', 'type': 'str'}, + 'pod_cidr': {'key': 'podCidr', 'type': 'str'}, + 'service_cidr': {'key': 'serviceCidr', 'type': 'str'}, + 'dns_service_ip': {'key': 'dnsServiceIP', 'type': 'str'}, + 'docker_bridge_cidr': {'key': 'dockerBridgeCidr', 'type': 'str'}, + } + + def __init__(self, *, network_plugin="kubenet", network_policy=None, pod_cidr: str="10.244.0.0/16", service_cidr: str="10.0.0.0/16", dns_service_ip: str="10.0.0.10", docker_bridge_cidr: str="172.17.0.1/16", **kwargs) -> None: + super(ContainerServiceNetworkProfile, self).__init__(**kwargs) + self.network_plugin = network_plugin + self.network_policy = network_policy + self.pod_cidr = pod_cidr + self.service_cidr = service_cidr + self.dns_service_ip = dns_service_ip + self.docker_bridge_cidr = docker_bridge_cidr diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/container_service_ssh_configuration.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/container_service_ssh_configuration.py new file mode 100644 index 000000000000..936c49ab349c --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/container_service_ssh_configuration.py @@ -0,0 +1,36 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ContainerServiceSshConfiguration(Model): + """SSH configuration for Linux-based VMs running on Azure. + + All required parameters must be populated in order to send to Azure. + + :param public_keys: Required. The list of SSH public keys used to + authenticate with Linux-based VMs. Only expect one key specified. + :type public_keys: + list[~azure.mgmt.containerservice.v2018_08_01_preview.models.ContainerServiceSshPublicKey] + """ + + _validation = { + 'public_keys': {'required': True}, + } + + _attribute_map = { + 'public_keys': {'key': 'publicKeys', 'type': '[ContainerServiceSshPublicKey]'}, + } + + def __init__(self, **kwargs): + super(ContainerServiceSshConfiguration, self).__init__(**kwargs) + self.public_keys = kwargs.get('public_keys', None) diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/container_service_ssh_configuration_py3.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/container_service_ssh_configuration_py3.py new file mode 100644 index 000000000000..86e22820dbfb --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/container_service_ssh_configuration_py3.py @@ -0,0 +1,36 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ContainerServiceSshConfiguration(Model): + """SSH configuration for Linux-based VMs running on Azure. + + All required parameters must be populated in order to send to Azure. + + :param public_keys: Required. The list of SSH public keys used to + authenticate with Linux-based VMs. Only expect one key specified. + :type public_keys: + list[~azure.mgmt.containerservice.v2018_08_01_preview.models.ContainerServiceSshPublicKey] + """ + + _validation = { + 'public_keys': {'required': True}, + } + + _attribute_map = { + 'public_keys': {'key': 'publicKeys', 'type': '[ContainerServiceSshPublicKey]'}, + } + + def __init__(self, *, public_keys, **kwargs) -> None: + super(ContainerServiceSshConfiguration, self).__init__(**kwargs) + self.public_keys = public_keys diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/container_service_ssh_public_key.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/container_service_ssh_public_key.py new file mode 100644 index 000000000000..da7609ba2226 --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/container_service_ssh_public_key.py @@ -0,0 +1,36 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ContainerServiceSshPublicKey(Model): + """Contains information about SSH certificate public key data. + + All required parameters must be populated in order to send to Azure. + + :param key_data: Required. Certificate public key used to authenticate + with VMs through SSH. The certificate must be in PEM format with or + without headers. + :type key_data: str + """ + + _validation = { + 'key_data': {'required': True}, + } + + _attribute_map = { + 'key_data': {'key': 'keyData', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ContainerServiceSshPublicKey, self).__init__(**kwargs) + self.key_data = kwargs.get('key_data', None) diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/container_service_ssh_public_key_py3.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/container_service_ssh_public_key_py3.py new file mode 100644 index 000000000000..8e8c10544ef4 --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/container_service_ssh_public_key_py3.py @@ -0,0 +1,36 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ContainerServiceSshPublicKey(Model): + """Contains information about SSH certificate public key data. + + All required parameters must be populated in order to send to Azure. + + :param key_data: Required. Certificate public key used to authenticate + with VMs through SSH. The certificate must be in PEM format with or + without headers. + :type key_data: str + """ + + _validation = { + 'key_data': {'required': True}, + } + + _attribute_map = { + 'key_data': {'key': 'keyData', 'type': 'str'}, + } + + def __init__(self, *, key_data: str, **kwargs) -> None: + super(ContainerServiceSshPublicKey, self).__init__(**kwargs) + self.key_data = key_data diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/container_service_vm_diagnostics.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/container_service_vm_diagnostics.py new file mode 100644 index 000000000000..f1804c66b683 --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/container_service_vm_diagnostics.py @@ -0,0 +1,44 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ContainerServiceVMDiagnostics(Model): + """Profile for diagnostics on the container service VMs. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param enabled: Required. Whether the VM diagnostic agent is provisioned + on the VM. + :type enabled: bool + :ivar storage_uri: The URI of the storage account where diagnostics are + stored. + :vartype storage_uri: str + """ + + _validation = { + 'enabled': {'required': True}, + 'storage_uri': {'readonly': True}, + } + + _attribute_map = { + 'enabled': {'key': 'enabled', 'type': 'bool'}, + 'storage_uri': {'key': 'storageUri', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ContainerServiceVMDiagnostics, self).__init__(**kwargs) + self.enabled = kwargs.get('enabled', None) + self.storage_uri = None diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/container_service_vm_diagnostics_py3.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/container_service_vm_diagnostics_py3.py new file mode 100644 index 000000000000..a716fc269548 --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/container_service_vm_diagnostics_py3.py @@ -0,0 +1,44 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ContainerServiceVMDiagnostics(Model): + """Profile for diagnostics on the container service VMs. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param enabled: Required. Whether the VM diagnostic agent is provisioned + on the VM. + :type enabled: bool + :ivar storage_uri: The URI of the storage account where diagnostics are + stored. + :vartype storage_uri: str + """ + + _validation = { + 'enabled': {'required': True}, + 'storage_uri': {'readonly': True}, + } + + _attribute_map = { + 'enabled': {'key': 'enabled', 'type': 'bool'}, + 'storage_uri': {'key': 'storageUri', 'type': 'str'}, + } + + def __init__(self, *, enabled: bool, **kwargs) -> None: + super(ContainerServiceVMDiagnostics, self).__init__(**kwargs) + self.enabled = enabled + self.storage_uri = None diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/container_service_windows_profile.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/container_service_windows_profile.py new file mode 100644 index 000000000000..463253c6d6a9 --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/container_service_windows_profile.py @@ -0,0 +1,41 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ContainerServiceWindowsProfile(Model): + """Profile for Windows VMs in the container service cluster. + + All required parameters must be populated in order to send to Azure. + + :param admin_username: Required. The administrator username to use for + Windows VMs. + :type admin_username: str + :param admin_password: Required. The administrator password to use for + Windows VMs. + :type admin_password: str + """ + + _validation = { + 'admin_username': {'required': True, 'pattern': r'^[a-zA-Z0-9]+([._]?[a-zA-Z0-9]+)*$'}, + 'admin_password': {'required': True, 'pattern': r'^(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%\^&\*\(\)])[a-zA-Z\d!@#$%\^&\*\(\)]{12,123}$'}, + } + + _attribute_map = { + 'admin_username': {'key': 'adminUsername', 'type': 'str'}, + 'admin_password': {'key': 'adminPassword', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ContainerServiceWindowsProfile, self).__init__(**kwargs) + self.admin_username = kwargs.get('admin_username', None) + self.admin_password = kwargs.get('admin_password', None) diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/container_service_windows_profile_py3.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/container_service_windows_profile_py3.py new file mode 100644 index 000000000000..667c96367aa9 --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/container_service_windows_profile_py3.py @@ -0,0 +1,41 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ContainerServiceWindowsProfile(Model): + """Profile for Windows VMs in the container service cluster. + + All required parameters must be populated in order to send to Azure. + + :param admin_username: Required. The administrator username to use for + Windows VMs. + :type admin_username: str + :param admin_password: Required. The administrator password to use for + Windows VMs. + :type admin_password: str + """ + + _validation = { + 'admin_username': {'required': True, 'pattern': r'^[a-zA-Z0-9]+([._]?[a-zA-Z0-9]+)*$'}, + 'admin_password': {'required': True, 'pattern': r'^(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%\^&\*\(\)])[a-zA-Z\d!@#$%\^&\*\(\)]{12,123}$'}, + } + + _attribute_map = { + 'admin_username': {'key': 'adminUsername', 'type': 'str'}, + 'admin_password': {'key': 'adminPassword', 'type': 'str'}, + } + + def __init__(self, *, admin_username: str, admin_password: str, **kwargs) -> None: + super(ContainerServiceWindowsProfile, self).__init__(**kwargs) + self.admin_username = admin_username + self.admin_password = admin_password diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/credential_result.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/credential_result.py new file mode 100644 index 000000000000..89e748b481b3 --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/credential_result.py @@ -0,0 +1,40 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class CredentialResult(Model): + """The credential result response. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar name: The name of the credential. + :vartype name: str + :ivar value: Base64-encoded Kubernetes configuration file. + :vartype value: bytearray + """ + + _validation = { + 'name': {'readonly': True}, + 'value': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'bytearray'}, + } + + def __init__(self, **kwargs): + super(CredentialResult, self).__init__(**kwargs) + self.name = None + self.value = None diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/credential_result_py3.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/credential_result_py3.py new file mode 100644 index 000000000000..6f387834bf06 --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/credential_result_py3.py @@ -0,0 +1,40 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class CredentialResult(Model): + """The credential result response. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar name: The name of the credential. + :vartype name: str + :ivar value: Base64-encoded Kubernetes configuration file. + :vartype value: bytearray + """ + + _validation = { + 'name': {'readonly': True}, + 'value': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'bytearray'}, + } + + def __init__(self, **kwargs) -> None: + super(CredentialResult, self).__init__(**kwargs) + self.name = None + self.value = None diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/credential_results.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/credential_results.py new file mode 100644 index 000000000000..163f07728b21 --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/credential_results.py @@ -0,0 +1,36 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class CredentialResults(Model): + """The list of credential result response. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar kubeconfigs: + :vartype kubeconfigs: + list[~azure.mgmt.containerservice.v2018_08_01_preview.models.CredentialResult] + """ + + _validation = { + 'kubeconfigs': {'readonly': True}, + } + + _attribute_map = { + 'kubeconfigs': {'key': 'kubeconfigs', 'type': '[CredentialResult]'}, + } + + def __init__(self, **kwargs): + super(CredentialResults, self).__init__(**kwargs) + self.kubeconfigs = None diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/credential_results_py3.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/credential_results_py3.py new file mode 100644 index 000000000000..767a5b40a5bc --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/credential_results_py3.py @@ -0,0 +1,36 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class CredentialResults(Model): + """The list of credential result response. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar kubeconfigs: + :vartype kubeconfigs: + list[~azure.mgmt.containerservice.v2018_08_01_preview.models.CredentialResult] + """ + + _validation = { + 'kubeconfigs': {'readonly': True}, + } + + _attribute_map = { + 'kubeconfigs': {'key': 'kubeconfigs', 'type': '[CredentialResult]'}, + } + + def __init__(self, **kwargs) -> None: + super(CredentialResults, self).__init__(**kwargs) + self.kubeconfigs = None diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/managed_cluster.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/managed_cluster.py new file mode 100644 index 000000000000..7d6ee7f454bd --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/managed_cluster.py @@ -0,0 +1,114 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource import Resource + + +class ManagedCluster(Resource): + """Managed cluster. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Resource Id + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :param location: Required. Resource location + :type location: str + :param tags: Resource tags + :type tags: dict[str, str] + :ivar provisioning_state: The current deployment or provisioning state, + which only appears in the response. + :vartype provisioning_state: str + :param kubernetes_version: Version of Kubernetes specified when creating + the managed cluster. + :type kubernetes_version: str + :param dns_prefix: DNS prefix specified when creating the managed cluster. + :type dns_prefix: str + :ivar fqdn: FDQN for the master pool. + :vartype fqdn: str + :param agent_pool_profiles: Properties of the agent pool. + :type agent_pool_profiles: + list[~azure.mgmt.containerservice.v2018_08_01_preview.models.ManagedClusterAgentPoolProfile] + :param linux_profile: Profile for Linux VMs in the container service + cluster. + :type linux_profile: + ~azure.mgmt.containerservice.v2018_08_01_preview.models.ContainerServiceLinuxProfile + :param service_principal_profile: Information about a service principal + identity for the cluster to use for manipulating Azure APIs. + :type service_principal_profile: + ~azure.mgmt.containerservice.v2018_08_01_preview.models.ManagedClusterServicePrincipalProfile + :param addon_profiles: Profile of managed cluster add-on. + :type addon_profiles: dict[str, + ~azure.mgmt.containerservice.v2018_08_01_preview.models.ManagedClusterAddonProfile] + :ivar node_resource_group: Name of the resource group containing agent + pool nodes. + :vartype node_resource_group: str + :param enable_rbac: Whether to enable Kubernetes Role-Based Access + Control. + :type enable_rbac: bool + :param network_profile: Profile of network configuration. + :type network_profile: + ~azure.mgmt.containerservice.v2018_08_01_preview.models.ContainerServiceNetworkProfile + :param aad_profile: Profile of Azure Active Directory configuration. + :type aad_profile: + ~azure.mgmt.containerservice.v2018_08_01_preview.models.ManagedClusterAADProfile + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + 'provisioning_state': {'readonly': True}, + 'fqdn': {'readonly': True}, + 'node_resource_group': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'kubernetes_version': {'key': 'properties.kubernetesVersion', 'type': 'str'}, + 'dns_prefix': {'key': 'properties.dnsPrefix', 'type': 'str'}, + 'fqdn': {'key': 'properties.fqdn', 'type': 'str'}, + 'agent_pool_profiles': {'key': 'properties.agentPoolProfiles', 'type': '[ManagedClusterAgentPoolProfile]'}, + 'linux_profile': {'key': 'properties.linuxProfile', 'type': 'ContainerServiceLinuxProfile'}, + 'service_principal_profile': {'key': 'properties.servicePrincipalProfile', 'type': 'ManagedClusterServicePrincipalProfile'}, + 'addon_profiles': {'key': 'properties.addonProfiles', 'type': '{ManagedClusterAddonProfile}'}, + 'node_resource_group': {'key': 'properties.nodeResourceGroup', 'type': 'str'}, + 'enable_rbac': {'key': 'properties.enableRBAC', 'type': 'bool'}, + 'network_profile': {'key': 'properties.networkProfile', 'type': 'ContainerServiceNetworkProfile'}, + 'aad_profile': {'key': 'properties.aadProfile', 'type': 'ManagedClusterAADProfile'}, + } + + def __init__(self, **kwargs): + super(ManagedCluster, self).__init__(**kwargs) + self.provisioning_state = None + self.kubernetes_version = kwargs.get('kubernetes_version', None) + self.dns_prefix = kwargs.get('dns_prefix', None) + self.fqdn = None + self.agent_pool_profiles = kwargs.get('agent_pool_profiles', None) + self.linux_profile = kwargs.get('linux_profile', None) + self.service_principal_profile = kwargs.get('service_principal_profile', None) + self.addon_profiles = kwargs.get('addon_profiles', None) + self.node_resource_group = None + self.enable_rbac = kwargs.get('enable_rbac', None) + self.network_profile = kwargs.get('network_profile', None) + self.aad_profile = kwargs.get('aad_profile', None) diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/managed_cluster_aad_profile.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/managed_cluster_aad_profile.py new file mode 100644 index 000000000000..6a48639de342 --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/managed_cluster_aad_profile.py @@ -0,0 +1,48 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ManagedClusterAADProfile(Model): + """AADProfile specifies attributes for Azure Active Directory integration. + + All required parameters must be populated in order to send to Azure. + + :param client_app_id: Required. The client AAD application ID. + :type client_app_id: str + :param server_app_id: Required. The server AAD application ID. + :type server_app_id: str + :param server_app_secret: The server AAD application secret. + :type server_app_secret: str + :param tenant_id: The AAD tenant ID to use for authentication. If not + specified, will use the tenant of the deployment subscription. + :type tenant_id: str + """ + + _validation = { + 'client_app_id': {'required': True}, + 'server_app_id': {'required': True}, + } + + _attribute_map = { + 'client_app_id': {'key': 'clientAppID', 'type': 'str'}, + 'server_app_id': {'key': 'serverAppID', 'type': 'str'}, + 'server_app_secret': {'key': 'serverAppSecret', 'type': 'str'}, + 'tenant_id': {'key': 'tenantID', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ManagedClusterAADProfile, self).__init__(**kwargs) + self.client_app_id = kwargs.get('client_app_id', None) + self.server_app_id = kwargs.get('server_app_id', None) + self.server_app_secret = kwargs.get('server_app_secret', None) + self.tenant_id = kwargs.get('tenant_id', None) diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/managed_cluster_aad_profile_py3.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/managed_cluster_aad_profile_py3.py new file mode 100644 index 000000000000..76289f3ddc3f --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/managed_cluster_aad_profile_py3.py @@ -0,0 +1,48 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ManagedClusterAADProfile(Model): + """AADProfile specifies attributes for Azure Active Directory integration. + + All required parameters must be populated in order to send to Azure. + + :param client_app_id: Required. The client AAD application ID. + :type client_app_id: str + :param server_app_id: Required. The server AAD application ID. + :type server_app_id: str + :param server_app_secret: The server AAD application secret. + :type server_app_secret: str + :param tenant_id: The AAD tenant ID to use for authentication. If not + specified, will use the tenant of the deployment subscription. + :type tenant_id: str + """ + + _validation = { + 'client_app_id': {'required': True}, + 'server_app_id': {'required': True}, + } + + _attribute_map = { + 'client_app_id': {'key': 'clientAppID', 'type': 'str'}, + 'server_app_id': {'key': 'serverAppID', 'type': 'str'}, + 'server_app_secret': {'key': 'serverAppSecret', 'type': 'str'}, + 'tenant_id': {'key': 'tenantID', 'type': 'str'}, + } + + def __init__(self, *, client_app_id: str, server_app_id: str, server_app_secret: str=None, tenant_id: str=None, **kwargs) -> None: + super(ManagedClusterAADProfile, self).__init__(**kwargs) + self.client_app_id = client_app_id + self.server_app_id = server_app_id + self.server_app_secret = server_app_secret + self.tenant_id = tenant_id diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/managed_cluster_access_profile.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/managed_cluster_access_profile.py new file mode 100644 index 000000000000..6dc2a4ec23be --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/managed_cluster_access_profile.py @@ -0,0 +1,55 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource import Resource + + +class ManagedClusterAccessProfile(Resource): + """Managed cluster Access Profile. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Resource Id + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :param location: Required. Resource location + :type location: str + :param tags: Resource tags + :type tags: dict[str, str] + :param kube_config: Base64-encoded Kubernetes configuration file. + :type kube_config: bytearray + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'kube_config': {'key': 'properties.kubeConfig', 'type': 'bytearray'}, + } + + def __init__(self, **kwargs): + super(ManagedClusterAccessProfile, self).__init__(**kwargs) + self.kube_config = kwargs.get('kube_config', None) diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/managed_cluster_access_profile_py3.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/managed_cluster_access_profile_py3.py new file mode 100644 index 000000000000..0d3fb998e970 --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/managed_cluster_access_profile_py3.py @@ -0,0 +1,55 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource_py3 import Resource + + +class ManagedClusterAccessProfile(Resource): + """Managed cluster Access Profile. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Resource Id + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :param location: Required. Resource location + :type location: str + :param tags: Resource tags + :type tags: dict[str, str] + :param kube_config: Base64-encoded Kubernetes configuration file. + :type kube_config: bytearray + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'kube_config': {'key': 'properties.kubeConfig', 'type': 'bytearray'}, + } + + def __init__(self, *, location: str, tags=None, kube_config: bytearray=None, **kwargs) -> None: + super(ManagedClusterAccessProfile, self).__init__(location=location, tags=tags, **kwargs) + self.kube_config = kube_config diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/managed_cluster_addon_profile.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/managed_cluster_addon_profile.py new file mode 100644 index 000000000000..796f9246a686 --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/managed_cluster_addon_profile.py @@ -0,0 +1,38 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ManagedClusterAddonProfile(Model): + """A Kubernetes add-on profile for a managed cluster. + + All required parameters must be populated in order to send to Azure. + + :param enabled: Required. Whether the add-on is enabled or not. + :type enabled: bool + :param config: Key-value pairs for configuring an add-on. + :type config: dict[str, str] + """ + + _validation = { + 'enabled': {'required': True}, + } + + _attribute_map = { + 'enabled': {'key': 'enabled', 'type': 'bool'}, + 'config': {'key': 'config', 'type': '{str}'}, + } + + def __init__(self, **kwargs): + super(ManagedClusterAddonProfile, self).__init__(**kwargs) + self.enabled = kwargs.get('enabled', None) + self.config = kwargs.get('config', None) diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/managed_cluster_addon_profile_py3.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/managed_cluster_addon_profile_py3.py new file mode 100644 index 000000000000..71e05cd14c0e --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/managed_cluster_addon_profile_py3.py @@ -0,0 +1,38 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ManagedClusterAddonProfile(Model): + """A Kubernetes add-on profile for a managed cluster. + + All required parameters must be populated in order to send to Azure. + + :param enabled: Required. Whether the add-on is enabled or not. + :type enabled: bool + :param config: Key-value pairs for configuring an add-on. + :type config: dict[str, str] + """ + + _validation = { + 'enabled': {'required': True}, + } + + _attribute_map = { + 'enabled': {'key': 'enabled', 'type': 'bool'}, + 'config': {'key': 'config', 'type': '{str}'}, + } + + def __init__(self, *, enabled: bool, config=None, **kwargs) -> None: + super(ManagedClusterAddonProfile, self).__init__(**kwargs) + self.enabled = enabled + self.config = config diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/managed_cluster_agent_pool_profile.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/managed_cluster_agent_pool_profile.py new file mode 100644 index 000000000000..ea955f0b00f7 --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/managed_cluster_agent_pool_profile.py @@ -0,0 +1,138 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ManagedClusterAgentPoolProfile(Model): + """Profile for the container service agent pool. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. Unique name of the agent pool profile in the + context of the subscription and resource group. + :type name: str + :param count: Required. Number of agents (VMs) to host docker containers. + Allowed values must be in the range of 1 to 100 (inclusive). The default + value is 1. . Default value: 1 . + :type count: int + :param vm_size: Required. Size of agent VMs. Possible values include: + 'Standard_A1', 'Standard_A10', 'Standard_A11', 'Standard_A1_v2', + 'Standard_A2', 'Standard_A2_v2', 'Standard_A2m_v2', 'Standard_A3', + 'Standard_A4', 'Standard_A4_v2', 'Standard_A4m_v2', 'Standard_A5', + 'Standard_A6', 'Standard_A7', 'Standard_A8', 'Standard_A8_v2', + 'Standard_A8m_v2', 'Standard_A9', 'Standard_B2ms', 'Standard_B2s', + 'Standard_B4ms', 'Standard_B8ms', 'Standard_D1', 'Standard_D11', + 'Standard_D11_v2', 'Standard_D11_v2_Promo', 'Standard_D12', + 'Standard_D12_v2', 'Standard_D12_v2_Promo', 'Standard_D13', + 'Standard_D13_v2', 'Standard_D13_v2_Promo', 'Standard_D14', + 'Standard_D14_v2', 'Standard_D14_v2_Promo', 'Standard_D15_v2', + 'Standard_D16_v3', 'Standard_D16s_v3', 'Standard_D1_v2', 'Standard_D2', + 'Standard_D2_v2', 'Standard_D2_v2_Promo', 'Standard_D2_v3', + 'Standard_D2s_v3', 'Standard_D3', 'Standard_D32_v3', 'Standard_D32s_v3', + 'Standard_D3_v2', 'Standard_D3_v2_Promo', 'Standard_D4', 'Standard_D4_v2', + 'Standard_D4_v2_Promo', 'Standard_D4_v3', 'Standard_D4s_v3', + 'Standard_D5_v2', 'Standard_D5_v2_Promo', 'Standard_D64_v3', + 'Standard_D64s_v3', 'Standard_D8_v3', 'Standard_D8s_v3', 'Standard_DS1', + 'Standard_DS11', 'Standard_DS11_v2', 'Standard_DS11_v2_Promo', + 'Standard_DS12', 'Standard_DS12_v2', 'Standard_DS12_v2_Promo', + 'Standard_DS13', 'Standard_DS13-2_v2', 'Standard_DS13-4_v2', + 'Standard_DS13_v2', 'Standard_DS13_v2_Promo', 'Standard_DS14', + 'Standard_DS14-4_v2', 'Standard_DS14-8_v2', 'Standard_DS14_v2', + 'Standard_DS14_v2_Promo', 'Standard_DS15_v2', 'Standard_DS1_v2', + 'Standard_DS2', 'Standard_DS2_v2', 'Standard_DS2_v2_Promo', + 'Standard_DS3', 'Standard_DS3_v2', 'Standard_DS3_v2_Promo', + 'Standard_DS4', 'Standard_DS4_v2', 'Standard_DS4_v2_Promo', + 'Standard_DS5_v2', 'Standard_DS5_v2_Promo', 'Standard_E16_v3', + 'Standard_E16s_v3', 'Standard_E2_v3', 'Standard_E2s_v3', + 'Standard_E32-16s_v3', 'Standard_E32-8s_v3', 'Standard_E32_v3', + 'Standard_E32s_v3', 'Standard_E4_v3', 'Standard_E4s_v3', + 'Standard_E64-16s_v3', 'Standard_E64-32s_v3', 'Standard_E64_v3', + 'Standard_E64s_v3', 'Standard_E8_v3', 'Standard_E8s_v3', 'Standard_F1', + 'Standard_F16', 'Standard_F16s', 'Standard_F16s_v2', 'Standard_F1s', + 'Standard_F2', 'Standard_F2s', 'Standard_F2s_v2', 'Standard_F32s_v2', + 'Standard_F4', 'Standard_F4s', 'Standard_F4s_v2', 'Standard_F64s_v2', + 'Standard_F72s_v2', 'Standard_F8', 'Standard_F8s', 'Standard_F8s_v2', + 'Standard_G1', 'Standard_G2', 'Standard_G3', 'Standard_G4', 'Standard_G5', + 'Standard_GS1', 'Standard_GS2', 'Standard_GS3', 'Standard_GS4', + 'Standard_GS4-4', 'Standard_GS4-8', 'Standard_GS5', 'Standard_GS5-16', + 'Standard_GS5-8', 'Standard_H16', 'Standard_H16m', 'Standard_H16mr', + 'Standard_H16r', 'Standard_H8', 'Standard_H8m', 'Standard_L16s', + 'Standard_L32s', 'Standard_L4s', 'Standard_L8s', 'Standard_M128-32ms', + 'Standard_M128-64ms', 'Standard_M128ms', 'Standard_M128s', + 'Standard_M64-16ms', 'Standard_M64-32ms', 'Standard_M64ms', + 'Standard_M64s', 'Standard_NC12', 'Standard_NC12s_v2', + 'Standard_NC12s_v3', 'Standard_NC24', 'Standard_NC24r', + 'Standard_NC24rs_v2', 'Standard_NC24rs_v3', 'Standard_NC24s_v2', + 'Standard_NC24s_v3', 'Standard_NC6', 'Standard_NC6s_v2', + 'Standard_NC6s_v3', 'Standard_ND12s', 'Standard_ND24rs', 'Standard_ND24s', + 'Standard_ND6s', 'Standard_NV12', 'Standard_NV24', 'Standard_NV6' + :type vm_size: str or + ~azure.mgmt.containerservice.v2018_08_01_preview.models.ContainerServiceVMSizeTypes + :param os_disk_size_gb: OS Disk Size in GB to be used to specify the disk + size for every machine in this master/agent pool. If you specify 0, it + will apply the default osDisk size according to the vmSize specified. + :type os_disk_size_gb: int + :param vnet_subnet_id: VNet SubnetID specifies the vnet's subnet + identifier. + :type vnet_subnet_id: str + :param max_pods: Maximum number of pods that can run on a node. + :type max_pods: int + :param os_type: OsType to be used to specify os type. Choose from Linux + and Windows. Default to Linux. Possible values include: 'Linux', + 'Windows'. Default value: "Linux" . + :type os_type: str or + ~azure.mgmt.containerservice.v2018_08_01_preview.models.OSType + :param max_count: Maximum number of nodes for auto-scaling + :type max_count: int + :param min_count: Minimum number of nodes for auto-scaling + :type min_count: int + :param enable_auto_scaling: Whether to enable auto-scaler + :type enable_auto_scaling: bool + :param type: AgentPoolType represents types of agentpool. Possible values + include: 'VirtualMachineScaleSets', 'AvailabilitySet' + :type type: str or + ~azure.mgmt.containerservice.v2018_08_01_preview.models.AgentPoolType + """ + + _validation = { + 'name': {'required': True}, + 'count': {'required': True, 'maximum': 100, 'minimum': 1}, + 'vm_size': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'count': {'key': 'count', 'type': 'int'}, + 'vm_size': {'key': 'vmSize', 'type': 'str'}, + 'os_disk_size_gb': {'key': 'osDiskSizeGB', 'type': 'int'}, + 'vnet_subnet_id': {'key': 'vnetSubnetID', 'type': 'str'}, + 'max_pods': {'key': 'maxPods', 'type': 'int'}, + 'os_type': {'key': 'osType', 'type': 'str'}, + 'max_count': {'key': 'maxCount', 'type': 'int'}, + 'min_count': {'key': 'minCount', 'type': 'int'}, + 'enable_auto_scaling': {'key': 'enableAutoScaling', 'type': 'bool'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ManagedClusterAgentPoolProfile, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.count = kwargs.get('count', 1) + self.vm_size = kwargs.get('vm_size', None) + self.os_disk_size_gb = kwargs.get('os_disk_size_gb', None) + self.vnet_subnet_id = kwargs.get('vnet_subnet_id', None) + self.max_pods = kwargs.get('max_pods', None) + self.os_type = kwargs.get('os_type', "Linux") + self.max_count = kwargs.get('max_count', None) + self.min_count = kwargs.get('min_count', None) + self.enable_auto_scaling = kwargs.get('enable_auto_scaling', None) + self.type = kwargs.get('type', None) diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/managed_cluster_agent_pool_profile_py3.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/managed_cluster_agent_pool_profile_py3.py new file mode 100644 index 000000000000..cf81d418b153 --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/managed_cluster_agent_pool_profile_py3.py @@ -0,0 +1,138 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ManagedClusterAgentPoolProfile(Model): + """Profile for the container service agent pool. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. Unique name of the agent pool profile in the + context of the subscription and resource group. + :type name: str + :param count: Required. Number of agents (VMs) to host docker containers. + Allowed values must be in the range of 1 to 100 (inclusive). The default + value is 1. . Default value: 1 . + :type count: int + :param vm_size: Required. Size of agent VMs. Possible values include: + 'Standard_A1', 'Standard_A10', 'Standard_A11', 'Standard_A1_v2', + 'Standard_A2', 'Standard_A2_v2', 'Standard_A2m_v2', 'Standard_A3', + 'Standard_A4', 'Standard_A4_v2', 'Standard_A4m_v2', 'Standard_A5', + 'Standard_A6', 'Standard_A7', 'Standard_A8', 'Standard_A8_v2', + 'Standard_A8m_v2', 'Standard_A9', 'Standard_B2ms', 'Standard_B2s', + 'Standard_B4ms', 'Standard_B8ms', 'Standard_D1', 'Standard_D11', + 'Standard_D11_v2', 'Standard_D11_v2_Promo', 'Standard_D12', + 'Standard_D12_v2', 'Standard_D12_v2_Promo', 'Standard_D13', + 'Standard_D13_v2', 'Standard_D13_v2_Promo', 'Standard_D14', + 'Standard_D14_v2', 'Standard_D14_v2_Promo', 'Standard_D15_v2', + 'Standard_D16_v3', 'Standard_D16s_v3', 'Standard_D1_v2', 'Standard_D2', + 'Standard_D2_v2', 'Standard_D2_v2_Promo', 'Standard_D2_v3', + 'Standard_D2s_v3', 'Standard_D3', 'Standard_D32_v3', 'Standard_D32s_v3', + 'Standard_D3_v2', 'Standard_D3_v2_Promo', 'Standard_D4', 'Standard_D4_v2', + 'Standard_D4_v2_Promo', 'Standard_D4_v3', 'Standard_D4s_v3', + 'Standard_D5_v2', 'Standard_D5_v2_Promo', 'Standard_D64_v3', + 'Standard_D64s_v3', 'Standard_D8_v3', 'Standard_D8s_v3', 'Standard_DS1', + 'Standard_DS11', 'Standard_DS11_v2', 'Standard_DS11_v2_Promo', + 'Standard_DS12', 'Standard_DS12_v2', 'Standard_DS12_v2_Promo', + 'Standard_DS13', 'Standard_DS13-2_v2', 'Standard_DS13-4_v2', + 'Standard_DS13_v2', 'Standard_DS13_v2_Promo', 'Standard_DS14', + 'Standard_DS14-4_v2', 'Standard_DS14-8_v2', 'Standard_DS14_v2', + 'Standard_DS14_v2_Promo', 'Standard_DS15_v2', 'Standard_DS1_v2', + 'Standard_DS2', 'Standard_DS2_v2', 'Standard_DS2_v2_Promo', + 'Standard_DS3', 'Standard_DS3_v2', 'Standard_DS3_v2_Promo', + 'Standard_DS4', 'Standard_DS4_v2', 'Standard_DS4_v2_Promo', + 'Standard_DS5_v2', 'Standard_DS5_v2_Promo', 'Standard_E16_v3', + 'Standard_E16s_v3', 'Standard_E2_v3', 'Standard_E2s_v3', + 'Standard_E32-16s_v3', 'Standard_E32-8s_v3', 'Standard_E32_v3', + 'Standard_E32s_v3', 'Standard_E4_v3', 'Standard_E4s_v3', + 'Standard_E64-16s_v3', 'Standard_E64-32s_v3', 'Standard_E64_v3', + 'Standard_E64s_v3', 'Standard_E8_v3', 'Standard_E8s_v3', 'Standard_F1', + 'Standard_F16', 'Standard_F16s', 'Standard_F16s_v2', 'Standard_F1s', + 'Standard_F2', 'Standard_F2s', 'Standard_F2s_v2', 'Standard_F32s_v2', + 'Standard_F4', 'Standard_F4s', 'Standard_F4s_v2', 'Standard_F64s_v2', + 'Standard_F72s_v2', 'Standard_F8', 'Standard_F8s', 'Standard_F8s_v2', + 'Standard_G1', 'Standard_G2', 'Standard_G3', 'Standard_G4', 'Standard_G5', + 'Standard_GS1', 'Standard_GS2', 'Standard_GS3', 'Standard_GS4', + 'Standard_GS4-4', 'Standard_GS4-8', 'Standard_GS5', 'Standard_GS5-16', + 'Standard_GS5-8', 'Standard_H16', 'Standard_H16m', 'Standard_H16mr', + 'Standard_H16r', 'Standard_H8', 'Standard_H8m', 'Standard_L16s', + 'Standard_L32s', 'Standard_L4s', 'Standard_L8s', 'Standard_M128-32ms', + 'Standard_M128-64ms', 'Standard_M128ms', 'Standard_M128s', + 'Standard_M64-16ms', 'Standard_M64-32ms', 'Standard_M64ms', + 'Standard_M64s', 'Standard_NC12', 'Standard_NC12s_v2', + 'Standard_NC12s_v3', 'Standard_NC24', 'Standard_NC24r', + 'Standard_NC24rs_v2', 'Standard_NC24rs_v3', 'Standard_NC24s_v2', + 'Standard_NC24s_v3', 'Standard_NC6', 'Standard_NC6s_v2', + 'Standard_NC6s_v3', 'Standard_ND12s', 'Standard_ND24rs', 'Standard_ND24s', + 'Standard_ND6s', 'Standard_NV12', 'Standard_NV24', 'Standard_NV6' + :type vm_size: str or + ~azure.mgmt.containerservice.v2018_08_01_preview.models.ContainerServiceVMSizeTypes + :param os_disk_size_gb: OS Disk Size in GB to be used to specify the disk + size for every machine in this master/agent pool. If you specify 0, it + will apply the default osDisk size according to the vmSize specified. + :type os_disk_size_gb: int + :param vnet_subnet_id: VNet SubnetID specifies the vnet's subnet + identifier. + :type vnet_subnet_id: str + :param max_pods: Maximum number of pods that can run on a node. + :type max_pods: int + :param os_type: OsType to be used to specify os type. Choose from Linux + and Windows. Default to Linux. Possible values include: 'Linux', + 'Windows'. Default value: "Linux" . + :type os_type: str or + ~azure.mgmt.containerservice.v2018_08_01_preview.models.OSType + :param max_count: Maximum number of nodes for auto-scaling + :type max_count: int + :param min_count: Minimum number of nodes for auto-scaling + :type min_count: int + :param enable_auto_scaling: Whether to enable auto-scaler + :type enable_auto_scaling: bool + :param type: AgentPoolType represents types of agentpool. Possible values + include: 'VirtualMachineScaleSets', 'AvailabilitySet' + :type type: str or + ~azure.mgmt.containerservice.v2018_08_01_preview.models.AgentPoolType + """ + + _validation = { + 'name': {'required': True}, + 'count': {'required': True, 'maximum': 100, 'minimum': 1}, + 'vm_size': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'count': {'key': 'count', 'type': 'int'}, + 'vm_size': {'key': 'vmSize', 'type': 'str'}, + 'os_disk_size_gb': {'key': 'osDiskSizeGB', 'type': 'int'}, + 'vnet_subnet_id': {'key': 'vnetSubnetID', 'type': 'str'}, + 'max_pods': {'key': 'maxPods', 'type': 'int'}, + 'os_type': {'key': 'osType', 'type': 'str'}, + 'max_count': {'key': 'maxCount', 'type': 'int'}, + 'min_count': {'key': 'minCount', 'type': 'int'}, + 'enable_auto_scaling': {'key': 'enableAutoScaling', 'type': 'bool'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, *, name: str, vm_size, count: int=1, os_disk_size_gb: int=None, vnet_subnet_id: str=None, max_pods: int=None, os_type="Linux", max_count: int=None, min_count: int=None, enable_auto_scaling: bool=None, type=None, **kwargs) -> None: + super(ManagedClusterAgentPoolProfile, self).__init__(**kwargs) + self.name = name + self.count = count + self.vm_size = vm_size + self.os_disk_size_gb = os_disk_size_gb + self.vnet_subnet_id = vnet_subnet_id + self.max_pods = max_pods + self.os_type = os_type + self.max_count = max_count + self.min_count = min_count + self.enable_auto_scaling = enable_auto_scaling + self.type = type diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/managed_cluster_paged.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/managed_cluster_paged.py new file mode 100644 index 000000000000..3e57bbc42ecc --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/managed_cluster_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class ManagedClusterPaged(Paged): + """ + A paging container for iterating over a list of :class:`ManagedCluster ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[ManagedCluster]'} + } + + def __init__(self, *args, **kwargs): + + super(ManagedClusterPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/managed_cluster_pool_upgrade_profile.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/managed_cluster_pool_upgrade_profile.py new file mode 100644 index 000000000000..988132b10b4c --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/managed_cluster_pool_upgrade_profile.py @@ -0,0 +1,52 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ManagedClusterPoolUpgradeProfile(Model): + """The list of available upgrade versions. + + All required parameters must be populated in order to send to Azure. + + :param kubernetes_version: Required. Kubernetes version (major, minor, + patch). + :type kubernetes_version: str + :param name: Pool name. + :type name: str + :param os_type: Required. OsType to be used to specify os type. Choose + from Linux and Windows. Default to Linux. Possible values include: + 'Linux', 'Windows'. Default value: "Linux" . + :type os_type: str or + ~azure.mgmt.containerservice.v2018_08_01_preview.models.OSType + :param upgrades: List of orchestrator types and versions available for + upgrade. + :type upgrades: list[str] + """ + + _validation = { + 'kubernetes_version': {'required': True}, + 'os_type': {'required': True}, + } + + _attribute_map = { + 'kubernetes_version': {'key': 'kubernetesVersion', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'os_type': {'key': 'osType', 'type': 'str'}, + 'upgrades': {'key': 'upgrades', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(ManagedClusterPoolUpgradeProfile, self).__init__(**kwargs) + self.kubernetes_version = kwargs.get('kubernetes_version', None) + self.name = kwargs.get('name', None) + self.os_type = kwargs.get('os_type', "Linux") + self.upgrades = kwargs.get('upgrades', None) diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/managed_cluster_pool_upgrade_profile_py3.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/managed_cluster_pool_upgrade_profile_py3.py new file mode 100644 index 000000000000..9eae9ae9fed3 --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/managed_cluster_pool_upgrade_profile_py3.py @@ -0,0 +1,52 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ManagedClusterPoolUpgradeProfile(Model): + """The list of available upgrade versions. + + All required parameters must be populated in order to send to Azure. + + :param kubernetes_version: Required. Kubernetes version (major, minor, + patch). + :type kubernetes_version: str + :param name: Pool name. + :type name: str + :param os_type: Required. OsType to be used to specify os type. Choose + from Linux and Windows. Default to Linux. Possible values include: + 'Linux', 'Windows'. Default value: "Linux" . + :type os_type: str or + ~azure.mgmt.containerservice.v2018_08_01_preview.models.OSType + :param upgrades: List of orchestrator types and versions available for + upgrade. + :type upgrades: list[str] + """ + + _validation = { + 'kubernetes_version': {'required': True}, + 'os_type': {'required': True}, + } + + _attribute_map = { + 'kubernetes_version': {'key': 'kubernetesVersion', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'os_type': {'key': 'osType', 'type': 'str'}, + 'upgrades': {'key': 'upgrades', 'type': '[str]'}, + } + + def __init__(self, *, kubernetes_version: str, name: str=None, os_type="Linux", upgrades=None, **kwargs) -> None: + super(ManagedClusterPoolUpgradeProfile, self).__init__(**kwargs) + self.kubernetes_version = kubernetes_version + self.name = name + self.os_type = os_type + self.upgrades = upgrades diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/managed_cluster_py3.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/managed_cluster_py3.py new file mode 100644 index 000000000000..47228ad49c09 --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/managed_cluster_py3.py @@ -0,0 +1,114 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource_py3 import Resource + + +class ManagedCluster(Resource): + """Managed cluster. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Resource Id + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :param location: Required. Resource location + :type location: str + :param tags: Resource tags + :type tags: dict[str, str] + :ivar provisioning_state: The current deployment or provisioning state, + which only appears in the response. + :vartype provisioning_state: str + :param kubernetes_version: Version of Kubernetes specified when creating + the managed cluster. + :type kubernetes_version: str + :param dns_prefix: DNS prefix specified when creating the managed cluster. + :type dns_prefix: str + :ivar fqdn: FDQN for the master pool. + :vartype fqdn: str + :param agent_pool_profiles: Properties of the agent pool. + :type agent_pool_profiles: + list[~azure.mgmt.containerservice.v2018_08_01_preview.models.ManagedClusterAgentPoolProfile] + :param linux_profile: Profile for Linux VMs in the container service + cluster. + :type linux_profile: + ~azure.mgmt.containerservice.v2018_08_01_preview.models.ContainerServiceLinuxProfile + :param service_principal_profile: Information about a service principal + identity for the cluster to use for manipulating Azure APIs. + :type service_principal_profile: + ~azure.mgmt.containerservice.v2018_08_01_preview.models.ManagedClusterServicePrincipalProfile + :param addon_profiles: Profile of managed cluster add-on. + :type addon_profiles: dict[str, + ~azure.mgmt.containerservice.v2018_08_01_preview.models.ManagedClusterAddonProfile] + :ivar node_resource_group: Name of the resource group containing agent + pool nodes. + :vartype node_resource_group: str + :param enable_rbac: Whether to enable Kubernetes Role-Based Access + Control. + :type enable_rbac: bool + :param network_profile: Profile of network configuration. + :type network_profile: + ~azure.mgmt.containerservice.v2018_08_01_preview.models.ContainerServiceNetworkProfile + :param aad_profile: Profile of Azure Active Directory configuration. + :type aad_profile: + ~azure.mgmt.containerservice.v2018_08_01_preview.models.ManagedClusterAADProfile + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + 'provisioning_state': {'readonly': True}, + 'fqdn': {'readonly': True}, + 'node_resource_group': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'kubernetes_version': {'key': 'properties.kubernetesVersion', 'type': 'str'}, + 'dns_prefix': {'key': 'properties.dnsPrefix', 'type': 'str'}, + 'fqdn': {'key': 'properties.fqdn', 'type': 'str'}, + 'agent_pool_profiles': {'key': 'properties.agentPoolProfiles', 'type': '[ManagedClusterAgentPoolProfile]'}, + 'linux_profile': {'key': 'properties.linuxProfile', 'type': 'ContainerServiceLinuxProfile'}, + 'service_principal_profile': {'key': 'properties.servicePrincipalProfile', 'type': 'ManagedClusterServicePrincipalProfile'}, + 'addon_profiles': {'key': 'properties.addonProfiles', 'type': '{ManagedClusterAddonProfile}'}, + 'node_resource_group': {'key': 'properties.nodeResourceGroup', 'type': 'str'}, + 'enable_rbac': {'key': 'properties.enableRBAC', 'type': 'bool'}, + 'network_profile': {'key': 'properties.networkProfile', 'type': 'ContainerServiceNetworkProfile'}, + 'aad_profile': {'key': 'properties.aadProfile', 'type': 'ManagedClusterAADProfile'}, + } + + def __init__(self, *, location: str, tags=None, kubernetes_version: str=None, dns_prefix: str=None, agent_pool_profiles=None, linux_profile=None, service_principal_profile=None, addon_profiles=None, enable_rbac: bool=None, network_profile=None, aad_profile=None, **kwargs) -> None: + super(ManagedCluster, self).__init__(location=location, tags=tags, **kwargs) + self.provisioning_state = None + self.kubernetes_version = kubernetes_version + self.dns_prefix = dns_prefix + self.fqdn = None + self.agent_pool_profiles = agent_pool_profiles + self.linux_profile = linux_profile + self.service_principal_profile = service_principal_profile + self.addon_profiles = addon_profiles + self.node_resource_group = None + self.enable_rbac = enable_rbac + self.network_profile = network_profile + self.aad_profile = aad_profile diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/managed_cluster_service_principal_profile.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/managed_cluster_service_principal_profile.py new file mode 100644 index 000000000000..4610cedac547 --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/managed_cluster_service_principal_profile.py @@ -0,0 +1,40 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ManagedClusterServicePrincipalProfile(Model): + """Information about a service principal identity for the cluster to use for + manipulating Azure APIs. + + All required parameters must be populated in order to send to Azure. + + :param client_id: Required. The ID for the service principal. + :type client_id: str + :param secret: The secret password associated with the service principal + in plain text. + :type secret: str + """ + + _validation = { + 'client_id': {'required': True}, + } + + _attribute_map = { + 'client_id': {'key': 'clientId', 'type': 'str'}, + 'secret': {'key': 'secret', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ManagedClusterServicePrincipalProfile, self).__init__(**kwargs) + self.client_id = kwargs.get('client_id', None) + self.secret = kwargs.get('secret', None) diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/managed_cluster_service_principal_profile_py3.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/managed_cluster_service_principal_profile_py3.py new file mode 100644 index 000000000000..6ea9e92dc407 --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/managed_cluster_service_principal_profile_py3.py @@ -0,0 +1,40 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ManagedClusterServicePrincipalProfile(Model): + """Information about a service principal identity for the cluster to use for + manipulating Azure APIs. + + All required parameters must be populated in order to send to Azure. + + :param client_id: Required. The ID for the service principal. + :type client_id: str + :param secret: The secret password associated with the service principal + in plain text. + :type secret: str + """ + + _validation = { + 'client_id': {'required': True}, + } + + _attribute_map = { + 'client_id': {'key': 'clientId', 'type': 'str'}, + 'secret': {'key': 'secret', 'type': 'str'}, + } + + def __init__(self, *, client_id: str, secret: str=None, **kwargs) -> None: + super(ManagedClusterServicePrincipalProfile, self).__init__(**kwargs) + self.client_id = client_id + self.secret = secret diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/managed_cluster_upgrade_profile.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/managed_cluster_upgrade_profile.py new file mode 100644 index 000000000000..b4a98f4cd2a2 --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/managed_cluster_upgrade_profile.py @@ -0,0 +1,61 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ManagedClusterUpgradeProfile(Model): + """The list of available upgrades for compute pools. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Id of upgrade profile. + :vartype id: str + :ivar name: Name of upgrade profile. + :vartype name: str + :ivar type: Type of upgrade profile. + :vartype type: str + :param control_plane_profile: Required. The list of available upgrade + versions for the control plane. + :type control_plane_profile: + ~azure.mgmt.containerservice.v2018_08_01_preview.models.ManagedClusterPoolUpgradeProfile + :param agent_pool_profiles: Required. The list of available upgrade + versions for agent pools. + :type agent_pool_profiles: + list[~azure.mgmt.containerservice.v2018_08_01_preview.models.ManagedClusterPoolUpgradeProfile] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'control_plane_profile': {'required': True}, + 'agent_pool_profiles': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'control_plane_profile': {'key': 'properties.controlPlaneProfile', 'type': 'ManagedClusterPoolUpgradeProfile'}, + 'agent_pool_profiles': {'key': 'properties.agentPoolProfiles', 'type': '[ManagedClusterPoolUpgradeProfile]'}, + } + + def __init__(self, **kwargs): + super(ManagedClusterUpgradeProfile, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + self.control_plane_profile = kwargs.get('control_plane_profile', None) + self.agent_pool_profiles = kwargs.get('agent_pool_profiles', None) diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/managed_cluster_upgrade_profile_py3.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/managed_cluster_upgrade_profile_py3.py new file mode 100644 index 000000000000..bed444fa378d --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/managed_cluster_upgrade_profile_py3.py @@ -0,0 +1,61 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ManagedClusterUpgradeProfile(Model): + """The list of available upgrades for compute pools. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Id of upgrade profile. + :vartype id: str + :ivar name: Name of upgrade profile. + :vartype name: str + :ivar type: Type of upgrade profile. + :vartype type: str + :param control_plane_profile: Required. The list of available upgrade + versions for the control plane. + :type control_plane_profile: + ~azure.mgmt.containerservice.v2018_08_01_preview.models.ManagedClusterPoolUpgradeProfile + :param agent_pool_profiles: Required. The list of available upgrade + versions for agent pools. + :type agent_pool_profiles: + list[~azure.mgmt.containerservice.v2018_08_01_preview.models.ManagedClusterPoolUpgradeProfile] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'control_plane_profile': {'required': True}, + 'agent_pool_profiles': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'control_plane_profile': {'key': 'properties.controlPlaneProfile', 'type': 'ManagedClusterPoolUpgradeProfile'}, + 'agent_pool_profiles': {'key': 'properties.agentPoolProfiles', 'type': '[ManagedClusterPoolUpgradeProfile]'}, + } + + def __init__(self, *, control_plane_profile, agent_pool_profiles, **kwargs) -> None: + super(ManagedClusterUpgradeProfile, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + self.control_plane_profile = control_plane_profile + self.agent_pool_profiles = agent_pool_profiles diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/operation_value.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/operation_value.py new file mode 100644 index 000000000000..911f9fc80881 --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/operation_value.py @@ -0,0 +1,60 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class OperationValue(Model): + """Describes the properties of a Compute Operation value. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar origin: The origin of the compute operation. + :vartype origin: str + :ivar name: The name of the compute operation. + :vartype name: str + :ivar operation: The display name of the compute operation. + :vartype operation: str + :ivar resource: The display name of the resource the operation applies to. + :vartype resource: str + :ivar description: The description of the operation. + :vartype description: str + :ivar provider: The resource provider for the operation. + :vartype provider: str + """ + + _validation = { + 'origin': {'readonly': True}, + 'name': {'readonly': True}, + 'operation': {'readonly': True}, + 'resource': {'readonly': True}, + 'description': {'readonly': True}, + 'provider': {'readonly': True}, + } + + _attribute_map = { + 'origin': {'key': 'origin', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'operation': {'key': 'display.operation', 'type': 'str'}, + 'resource': {'key': 'display.resource', 'type': 'str'}, + 'description': {'key': 'display.description', 'type': 'str'}, + 'provider': {'key': 'display.provider', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(OperationValue, self).__init__(**kwargs) + self.origin = None + self.name = None + self.operation = None + self.resource = None + self.description = None + self.provider = None diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/operation_value_paged.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/operation_value_paged.py new file mode 100644 index 000000000000..47310584f245 --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/operation_value_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class OperationValuePaged(Paged): + """ + A paging container for iterating over a list of :class:`OperationValue ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[OperationValue]'} + } + + def __init__(self, *args, **kwargs): + + super(OperationValuePaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/operation_value_py3.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/operation_value_py3.py new file mode 100644 index 000000000000..55bceaa75439 --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/operation_value_py3.py @@ -0,0 +1,60 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class OperationValue(Model): + """Describes the properties of a Compute Operation value. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar origin: The origin of the compute operation. + :vartype origin: str + :ivar name: The name of the compute operation. + :vartype name: str + :ivar operation: The display name of the compute operation. + :vartype operation: str + :ivar resource: The display name of the resource the operation applies to. + :vartype resource: str + :ivar description: The description of the operation. + :vartype description: str + :ivar provider: The resource provider for the operation. + :vartype provider: str + """ + + _validation = { + 'origin': {'readonly': True}, + 'name': {'readonly': True}, + 'operation': {'readonly': True}, + 'resource': {'readonly': True}, + 'description': {'readonly': True}, + 'provider': {'readonly': True}, + } + + _attribute_map = { + 'origin': {'key': 'origin', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'operation': {'key': 'display.operation', 'type': 'str'}, + 'resource': {'key': 'display.resource', 'type': 'str'}, + 'description': {'key': 'display.description', 'type': 'str'}, + 'provider': {'key': 'display.provider', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(OperationValue, self).__init__(**kwargs) + self.origin = None + self.name = None + self.operation = None + self.resource = None + self.description = None + self.provider = None diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/orchestrator_profile.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/orchestrator_profile.py new file mode 100644 index 000000000000..d5560a1f8799 --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/orchestrator_profile.py @@ -0,0 +1,40 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class OrchestratorProfile(Model): + """Contains information about orchestrator. + + All required parameters must be populated in order to send to Azure. + + :param orchestrator_type: Required. Orchestrator type. + :type orchestrator_type: str + :param orchestrator_version: Required. Orchestrator version (major, minor, + patch). + :type orchestrator_version: str + """ + + _validation = { + 'orchestrator_type': {'required': True}, + 'orchestrator_version': {'required': True}, + } + + _attribute_map = { + 'orchestrator_type': {'key': 'orchestratorType', 'type': 'str'}, + 'orchestrator_version': {'key': 'orchestratorVersion', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(OrchestratorProfile, self).__init__(**kwargs) + self.orchestrator_type = kwargs.get('orchestrator_type', None) + self.orchestrator_version = kwargs.get('orchestrator_version', None) diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/orchestrator_profile_py3.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/orchestrator_profile_py3.py new file mode 100644 index 000000000000..f16e84a1fe3c --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/orchestrator_profile_py3.py @@ -0,0 +1,40 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class OrchestratorProfile(Model): + """Contains information about orchestrator. + + All required parameters must be populated in order to send to Azure. + + :param orchestrator_type: Required. Orchestrator type. + :type orchestrator_type: str + :param orchestrator_version: Required. Orchestrator version (major, minor, + patch). + :type orchestrator_version: str + """ + + _validation = { + 'orchestrator_type': {'required': True}, + 'orchestrator_version': {'required': True}, + } + + _attribute_map = { + 'orchestrator_type': {'key': 'orchestratorType', 'type': 'str'}, + 'orchestrator_version': {'key': 'orchestratorVersion', 'type': 'str'}, + } + + def __init__(self, *, orchestrator_type: str, orchestrator_version: str, **kwargs) -> None: + super(OrchestratorProfile, self).__init__(**kwargs) + self.orchestrator_type = orchestrator_type + self.orchestrator_version = orchestrator_version diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/resource.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/resource.py new file mode 100644 index 000000000000..5dd7d481c685 --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/resource.py @@ -0,0 +1,56 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class Resource(Model): + """The Resource model definition. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Resource Id + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :param location: Required. Resource location + :type location: str + :param tags: Resource tags + :type tags: dict[str, str] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, **kwargs): + super(Resource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + self.location = kwargs.get('location', None) + self.tags = kwargs.get('tags', None) diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/resource_py3.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/resource_py3.py new file mode 100644 index 000000000000..2f3702caf609 --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/resource_py3.py @@ -0,0 +1,56 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class Resource(Model): + """The Resource model definition. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Resource Id + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :param location: Required. Resource location + :type location: str + :param tags: Resource tags + :type tags: dict[str, str] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, *, location: str, tags=None, **kwargs) -> None: + super(Resource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + self.location = location + self.tags = tags diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/tags_object.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/tags_object.py new file mode 100644 index 000000000000..2966ec220f94 --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/tags_object.py @@ -0,0 +1,28 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class TagsObject(Model): + """Tags object for patch operations. + + :param tags: Resource tags. + :type tags: dict[str, str] + """ + + _attribute_map = { + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, **kwargs): + super(TagsObject, self).__init__(**kwargs) + self.tags = kwargs.get('tags', None) diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/tags_object_py3.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/tags_object_py3.py new file mode 100644 index 000000000000..8be0bb4a15d7 --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/models/tags_object_py3.py @@ -0,0 +1,28 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class TagsObject(Model): + """Tags object for patch operations. + + :param tags: Resource tags. + :type tags: dict[str, str] + """ + + _attribute_map = { + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, *, tags=None, **kwargs) -> None: + super(TagsObject, self).__init__(**kwargs) + self.tags = tags diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/operations/__init__.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/operations/__init__.py new file mode 100644 index 000000000000..f517d730f214 --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/operations/__init__.py @@ -0,0 +1,18 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .operations import Operations +from .managed_clusters_operations import ManagedClustersOperations + +__all__ = [ + 'Operations', + 'ManagedClustersOperations', +] diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/operations/managed_clusters_operations.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/operations/managed_clusters_operations.py new file mode 100644 index 000000000000..e6d866e020ac --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/operations/managed_clusters_operations.py @@ -0,0 +1,804 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +from msrest.polling import LROPoller, NoPolling +from msrestazure.polling.arm_polling import ARMPolling + +from .. import models + + +class ManagedClustersOperations(object): + """ManagedClustersOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client Api Version. Constant value: "2018-08-01-preview". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-08-01-preview" + + self.config = config + + def list( + self, custom_headers=None, raw=False, **operation_config): + """Gets a list of managed clusters in the specified subscription. + + Gets a list of managed clusters in the specified subscription. The + operation returns properties of each managed cluster. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of ManagedCluster + :rtype: + ~azure.mgmt.containerservice.v2018_08_01_preview.models.ManagedClusterPaged[~azure.mgmt.containerservice.v2018_08_01_preview.models.ManagedCluster] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.ManagedClusterPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.ManagedClusterPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/managedClusters'} + + def list_by_resource_group( + self, resource_group_name, custom_headers=None, raw=False, **operation_config): + """Lists managed clusters in the specified subscription and resource + group. + + Lists managed clusters in the specified subscription and resource + group. The operation returns properties of each managed cluster. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of ManagedCluster + :rtype: + ~azure.mgmt.containerservice.v2018_08_01_preview.models.ManagedClusterPaged[~azure.mgmt.containerservice.v2018_08_01_preview.models.ManagedCluster] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_by_resource_group.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.ManagedClusterPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.ManagedClusterPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters'} + + def get_upgrade_profile( + self, resource_group_name, resource_name, custom_headers=None, raw=False, **operation_config): + """Gets upgrade profile for a managed cluster. + + Gets the details of the upgrade profile for a managed cluster with a + specified resource group and name. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param resource_name: The name of the managed cluster resource. + :type resource_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: ManagedClusterUpgradeProfile or ClientRawResponse if raw=true + :rtype: + ~azure.mgmt.containerservice.v2018_08_01_preview.models.ManagedClusterUpgradeProfile + or ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get_upgrade_profile.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceName': self._serialize.url("resource_name", resource_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ManagedClusterUpgradeProfile', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get_upgrade_profile.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/upgradeProfiles/default'} + + def get_access_profile( + self, resource_group_name, resource_name, role_name, custom_headers=None, raw=False, **operation_config): + """Gets an access profile of a managed cluster. + + Gets the accessProfile for the specified role name of the managed + cluster with a specified resource group and name. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param resource_name: The name of the managed cluster resource. + :type resource_name: str + :param role_name: The name of the role for managed cluster + accessProfile resource. + :type role_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: ManagedClusterAccessProfile or ClientRawResponse if raw=true + :rtype: + ~azure.mgmt.containerservice.v2018_08_01_preview.models.ManagedClusterAccessProfile + or ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get_access_profile.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceName': self._serialize.url("resource_name", resource_name, 'str'), + 'roleName': self._serialize.url("role_name", role_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ManagedClusterAccessProfile', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get_access_profile.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/accessProfiles/{roleName}/listCredential'} + + def list_cluster_admin_credentials( + self, resource_group_name, resource_name, custom_headers=None, raw=False, **operation_config): + """Gets clusteradmin credential of a managed cluster. + + Gets clusteradmin credential of the managed cluster with a specified + resource group and name. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param resource_name: The name of the managed cluster resource. + :type resource_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: CredentialResults or ClientRawResponse if raw=true + :rtype: + ~azure.mgmt.containerservice.v2018_08_01_preview.models.CredentialResults + or ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.list_cluster_admin_credentials.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceName': self._serialize.url("resource_name", resource_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('CredentialResults', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + list_cluster_admin_credentials.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/listClusterAdminCredential'} + + def list_cluster_user_credentials( + self, resource_group_name, resource_name, custom_headers=None, raw=False, **operation_config): + """Gets clusteruser credential of a managed cluster. + + Gets clusteruser credential of the managed cluster with a specified + resource group and name. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param resource_name: The name of the managed cluster resource. + :type resource_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: CredentialResults or ClientRawResponse if raw=true + :rtype: + ~azure.mgmt.containerservice.v2018_08_01_preview.models.CredentialResults + or ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.list_cluster_user_credentials.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceName': self._serialize.url("resource_name", resource_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('CredentialResults', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + list_cluster_user_credentials.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/listClusterUserCredential'} + + def get( + self, resource_group_name, resource_name, custom_headers=None, raw=False, **operation_config): + """Gets a managed cluster. + + Gets the details of the managed cluster with a specified resource group + and name. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param resource_name: The name of the managed cluster resource. + :type resource_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: ManagedCluster or ClientRawResponse if raw=true + :rtype: + ~azure.mgmt.containerservice.v2018_08_01_preview.models.ManagedCluster + or ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceName': self._serialize.url("resource_name", resource_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ManagedCluster', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}'} + + + def _create_or_update_initial( + self, resource_group_name, resource_name, parameters, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceName': self._serialize.url("resource_name", resource_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'ManagedCluster') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ManagedCluster', response) + if response.status_code == 201: + deserialized = self._deserialize('ManagedCluster', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update( + self, resource_group_name, resource_name, parameters, custom_headers=None, raw=False, polling=True, **operation_config): + """Creates or updates a managed cluster. + + Creates or updates a managed cluster with the specified configuration + for agents and Kubernetes version. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param resource_name: The name of the managed cluster resource. + :type resource_name: str + :param parameters: Parameters supplied to the Create or Update a + Managed Cluster operation. + :type parameters: + ~azure.mgmt.containerservice.v2018_08_01_preview.models.ManagedCluster + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns ManagedCluster or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.containerservice.v2018_08_01_preview.models.ManagedCluster] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.containerservice.v2018_08_01_preview.models.ManagedCluster]] + :raises: :class:`CloudError` + """ + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + resource_name=resource_name, + parameters=parameters, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('ManagedCluster', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}'} + + + def _update_tags_initial( + self, resource_group_name, resource_name, tags=None, custom_headers=None, raw=False, **operation_config): + parameters = models.TagsObject(tags=tags) + + # Construct URL + url = self.update_tags.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceName': self._serialize.url("resource_name", resource_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'TagsObject') + + # Construct and send request + request = self._client.patch(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ManagedCluster', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def update_tags( + self, resource_group_name, resource_name, tags=None, custom_headers=None, raw=False, polling=True, **operation_config): + """Updates tags on a managed cluster. + + Updates a managed cluster with the specified tags. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param resource_name: The name of the managed cluster resource. + :type resource_name: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns ManagedCluster or + ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.containerservice.v2018_08_01_preview.models.ManagedCluster] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.containerservice.v2018_08_01_preview.models.ManagedCluster]] + :raises: :class:`CloudError` + """ + raw_result = self._update_tags_initial( + resource_group_name=resource_group_name, + resource_name=resource_name, + tags=tags, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('ManagedCluster', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + update_tags.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}'} + + + def _delete_initial( + self, resource_group_name, resource_name, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceName': self._serialize.url("resource_name", resource_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [202, 204]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def delete( + self, resource_group_name, resource_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Deletes a managed cluster. + + Deletes the managed cluster with a specified resource group and name. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param resource_name: The name of the managed cluster resource. + :type resource_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: :class:`CloudError` + """ + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + resource_name=resource_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}'} diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/operations/operations.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/operations/operations.py new file mode 100644 index 000000000000..513e518a911e --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/operations/operations.py @@ -0,0 +1,98 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError + +from .. import models + + +class Operations(object): + """Operations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client Api Version. Constant value: "2018-08-01-preview". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-08-01-preview" + + self.config = config + + def list( + self, custom_headers=None, raw=False, **operation_config): + """Gets a list of compute operations. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of OperationValue + :rtype: + ~azure.mgmt.containerservice.v2018_08_01_preview.models.OperationValuePaged[~azure.mgmt.containerservice.v2018_08_01_preview.models.OperationValue] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.OperationValuePaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.OperationValuePaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/providers/Microsoft.ContainerService/operations'} diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/version.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/version.py new file mode 100644 index 000000000000..391827c689e9 --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_08_01_preview/version.py @@ -0,0 +1,13 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +VERSION = "2018-08-01-preview" + diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/__init__.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/__init__.py new file mode 100644 index 000000000000..9854e4f7645e --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/__init__.py @@ -0,0 +1,18 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .container_service_client import ContainerServiceClient +from .version import VERSION + +__all__ = ['ContainerServiceClient'] + +__version__ = VERSION + diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/container_service_client.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/container_service_client.py new file mode 100644 index 000000000000..6b18f0905fd0 --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/container_service_client.py @@ -0,0 +1,85 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.service_client import SDKClient +from msrest import Serializer, Deserializer +from msrestazure import AzureConfiguration +from .version import VERSION +from .operations.open_shift_managed_clusters_operations import OpenShiftManagedClustersOperations +from . import models + + +class ContainerServiceClientConfiguration(AzureConfiguration): + """Configuration for ContainerServiceClient + Note that all parameters used to create this instance are saved as instance + attributes. + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param subscription_id: Subscription credentials which uniquely identify + Microsoft Azure subscription. The subscription ID forms part of the URI + for every service call. + :type subscription_id: str + :param str base_url: Service URL + """ + + def __init__( + self, credentials, subscription_id, base_url=None): + + if credentials is None: + raise ValueError("Parameter 'credentials' must not be None.") + if subscription_id is None: + raise ValueError("Parameter 'subscription_id' must not be None.") + if not base_url: + base_url = 'https://management.azure.com' + + super(ContainerServiceClientConfiguration, self).__init__(base_url) + + self.add_user_agent('azure-mgmt-containerservice/{}'.format(VERSION)) + self.add_user_agent('Azure-SDK-For-Python') + + self.credentials = credentials + self.subscription_id = subscription_id + + +class ContainerServiceClient(SDKClient): + """The Container Service Client. + + :ivar config: Configuration for client. + :vartype config: ContainerServiceClientConfiguration + + :ivar open_shift_managed_clusters: OpenShiftManagedClusters operations + :vartype open_shift_managed_clusters: azure.mgmt.containerservice.v2018_09_30_preview.operations.OpenShiftManagedClustersOperations + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param subscription_id: Subscription credentials which uniquely identify + Microsoft Azure subscription. The subscription ID forms part of the URI + for every service call. + :type subscription_id: str + :param str base_url: Service URL + """ + + def __init__( + self, credentials, subscription_id, base_url=None): + + self.config = ContainerServiceClientConfiguration(credentials, subscription_id, base_url) + super(ContainerServiceClient, self).__init__(self.config.credentials, self.config) + + client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} + self.api_version = '2018-09-30-preview' + self._serialize = Serializer(client_models) + self._deserialize = Deserializer(client_models) + + self.open_shift_managed_clusters = OpenShiftManagedClustersOperations( + self._client, self.config, self._serialize, self._deserialize) diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/__init__.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/__init__.py new file mode 100644 index 000000000000..8cf1355ba98a --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/__init__.py @@ -0,0 +1,62 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +try: + from .resource_py3 import Resource + from .purchase_plan_py3 import PurchasePlan + from .open_shift_router_profile_py3 import OpenShiftRouterProfile + from .network_profile_py3 import NetworkProfile + from .open_shift_managed_cluster_master_pool_profile_py3 import OpenShiftManagedClusterMasterPoolProfile + from .open_shift_managed_cluster_agent_pool_profile_py3 import OpenShiftManagedClusterAgentPoolProfile + from .open_shift_managed_cluster_base_identity_provider_py3 import OpenShiftManagedClusterBaseIdentityProvider + from .open_shift_managed_cluster_identity_provider_py3 import OpenShiftManagedClusterIdentityProvider + from .open_shift_managed_cluster_auth_profile_py3 import OpenShiftManagedClusterAuthProfile + from .open_shift_managed_cluster_py3 import OpenShiftManagedCluster + from .open_shift_managed_cluster_aad_identity_provider_py3 import OpenShiftManagedClusterAADIdentityProvider + from .tags_object_py3 import TagsObject +except (SyntaxError, ImportError): + from .resource import Resource + from .purchase_plan import PurchasePlan + from .open_shift_router_profile import OpenShiftRouterProfile + from .network_profile import NetworkProfile + from .open_shift_managed_cluster_master_pool_profile import OpenShiftManagedClusterMasterPoolProfile + from .open_shift_managed_cluster_agent_pool_profile import OpenShiftManagedClusterAgentPoolProfile + from .open_shift_managed_cluster_base_identity_provider import OpenShiftManagedClusterBaseIdentityProvider + from .open_shift_managed_cluster_identity_provider import OpenShiftManagedClusterIdentityProvider + from .open_shift_managed_cluster_auth_profile import OpenShiftManagedClusterAuthProfile + from .open_shift_managed_cluster import OpenShiftManagedCluster + from .open_shift_managed_cluster_aad_identity_provider import OpenShiftManagedClusterAADIdentityProvider + from .tags_object import TagsObject +from .open_shift_managed_cluster_paged import OpenShiftManagedClusterPaged +from .container_service_client_enums import ( + OSType, + OpenShiftContainerServiceVMSize, + OpenShiftAgentPoolProfileRole, +) + +__all__ = [ + 'Resource', + 'PurchasePlan', + 'OpenShiftRouterProfile', + 'NetworkProfile', + 'OpenShiftManagedClusterMasterPoolProfile', + 'OpenShiftManagedClusterAgentPoolProfile', + 'OpenShiftManagedClusterBaseIdentityProvider', + 'OpenShiftManagedClusterIdentityProvider', + 'OpenShiftManagedClusterAuthProfile', + 'OpenShiftManagedCluster', + 'OpenShiftManagedClusterAADIdentityProvider', + 'TagsObject', + 'OpenShiftManagedClusterPaged', + 'OSType', + 'OpenShiftContainerServiceVMSize', + 'OpenShiftAgentPoolProfileRole', +] diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/container_service_client_enums.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/container_service_client_enums.py new file mode 100644 index 000000000000..237179cc909e --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/container_service_client_enums.py @@ -0,0 +1,61 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from enum import Enum + + +class OSType(str, Enum): + + linux = "Linux" + windows = "Windows" + + +class OpenShiftContainerServiceVMSize(str, Enum): + + standard_d2s_v3 = "Standard_D2s_v3" + standard_d4s_v3 = "Standard_D4s_v3" + standard_d8s_v3 = "Standard_D8s_v3" + standard_d16s_v3 = "Standard_D16s_v3" + standard_d32s_v3 = "Standard_D32s_v3" + standard_d64s_v3 = "Standard_D64s_v3" + standard_ds4_v2 = "Standard_DS4_v2" + standard_ds5_v2 = "Standard_DS5_v2" + standard_f8s_v2 = "Standard_F8s_v2" + standard_f16s_v2 = "Standard_F16s_v2" + standard_f32s_v2 = "Standard_F32s_v2" + standard_f64s_v2 = "Standard_F64s_v2" + standard_f72s_v2 = "Standard_F72s_v2" + standard_f8s = "Standard_F8s" + standard_f16s = "Standard_F16s" + standard_e4s_v3 = "Standard_E4s_v3" + standard_e8s_v3 = "Standard_E8s_v3" + standard_e16s_v3 = "Standard_E16s_v3" + standard_e20s_v3 = "Standard_E20s_v3" + standard_e32s_v3 = "Standard_E32s_v3" + standard_e64s_v3 = "Standard_E64s_v3" + standard_gs2 = "Standard_GS2" + standard_gs3 = "Standard_GS3" + standard_gs4 = "Standard_GS4" + standard_gs5 = "Standard_GS5" + standard_ds12_v2 = "Standard_DS12_v2" + standard_ds13_v2 = "Standard_DS13_v2" + standard_ds14_v2 = "Standard_DS14_v2" + standard_ds15_v2 = "Standard_DS15_v2" + standard_l4s = "Standard_L4s" + standard_l8s = "Standard_L8s" + standard_l16s = "Standard_L16s" + standard_l32s = "Standard_L32s" + + +class OpenShiftAgentPoolProfileRole(str, Enum): + + compute = "compute" + infra = "infra" diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/network_profile.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/network_profile.py new file mode 100644 index 000000000000..bb1f3c403e5d --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/network_profile.py @@ -0,0 +1,33 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class NetworkProfile(Model): + """Represents the OpenShift networking configuration. + + :param vnet_cidr: CIDR for the OpenShift Vnet. Default value: "10.0.0.0/8" + . + :type vnet_cidr: str + :param peer_vnet_id: CIDR of the Vnet to peer. + :type peer_vnet_id: str + """ + + _attribute_map = { + 'vnet_cidr': {'key': 'vnetCidr', 'type': 'str'}, + 'peer_vnet_id': {'key': 'peerVnetId', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(NetworkProfile, self).__init__(**kwargs) + self.vnet_cidr = kwargs.get('vnet_cidr', "10.0.0.0/8") + self.peer_vnet_id = kwargs.get('peer_vnet_id', None) diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/network_profile_py3.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/network_profile_py3.py new file mode 100644 index 000000000000..886d8941f2c5 --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/network_profile_py3.py @@ -0,0 +1,33 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class NetworkProfile(Model): + """Represents the OpenShift networking configuration. + + :param vnet_cidr: CIDR for the OpenShift Vnet. Default value: "10.0.0.0/8" + . + :type vnet_cidr: str + :param peer_vnet_id: CIDR of the Vnet to peer. + :type peer_vnet_id: str + """ + + _attribute_map = { + 'vnet_cidr': {'key': 'vnetCidr', 'type': 'str'}, + 'peer_vnet_id': {'key': 'peerVnetId', 'type': 'str'}, + } + + def __init__(self, *, vnet_cidr: str="10.0.0.0/8", peer_vnet_id: str=None, **kwargs) -> None: + super(NetworkProfile, self).__init__(**kwargs) + self.vnet_cidr = vnet_cidr + self.peer_vnet_id = peer_vnet_id diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/open_shift_managed_cluster.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/open_shift_managed_cluster.py new file mode 100644 index 000000000000..4dfab287e72a --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/open_shift_managed_cluster.py @@ -0,0 +1,104 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource import Resource + + +class OpenShiftManagedCluster(Resource): + """OpenShift Managed cluster. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Resource Id + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :param location: Required. Resource location + :type location: str + :param tags: Resource tags + :type tags: dict[str, str] + :param plan: Define the resource plan as required by ARM for billing + purposes + :type plan: + ~azure.mgmt.containerservice.v2018_09_30_preview.models.PurchasePlan + :ivar provisioning_state: The current deployment or provisioning state, + which only appears in the response. + :vartype provisioning_state: str + :param open_shift_version: Required. Version of OpenShift specified when + creating the cluster. + :type open_shift_version: str + :param public_hostname: Optional user-specified FQDN for OpenShift API + server. + :type public_hostname: str + :param fqdn: User-specified FQDN for OpenShift API server loadbalancer + internal hostname. + :type fqdn: str + :param network_profile: Configuration for OpenShift networking. + :type network_profile: + ~azure.mgmt.containerservice.v2018_09_30_preview.models.NetworkProfile + :param router_profiles: Configuration for OpenShift router(s). + :type router_profiles: + list[~azure.mgmt.containerservice.v2018_09_30_preview.models.OpenShiftRouterProfile] + :param master_pool_profile: Configuration for OpenShift master VMs. + :type master_pool_profile: + ~azure.mgmt.containerservice.v2018_09_30_preview.models.OpenShiftManagedClusterMasterPoolProfile + :param agent_pool_profiles: Configuration of OpenShift cluster VMs. + :type agent_pool_profiles: + list[~azure.mgmt.containerservice.v2018_09_30_preview.models.OpenShiftManagedClusterAgentPoolProfile] + :param auth_profile: Configures OpenShift authentication. + :type auth_profile: + ~azure.mgmt.containerservice.v2018_09_30_preview.models.OpenShiftManagedClusterAuthProfile + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + 'provisioning_state': {'readonly': True}, + 'open_shift_version': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'plan': {'key': 'plan', 'type': 'PurchasePlan'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'open_shift_version': {'key': 'properties.openShiftVersion', 'type': 'str'}, + 'public_hostname': {'key': 'properties.publicHostname', 'type': 'str'}, + 'fqdn': {'key': 'properties.fqdn', 'type': 'str'}, + 'network_profile': {'key': 'properties.networkProfile', 'type': 'NetworkProfile'}, + 'router_profiles': {'key': 'properties.routerProfiles', 'type': '[OpenShiftRouterProfile]'}, + 'master_pool_profile': {'key': 'properties.masterPoolProfile', 'type': 'OpenShiftManagedClusterMasterPoolProfile'}, + 'agent_pool_profiles': {'key': 'properties.agentPoolProfiles', 'type': '[OpenShiftManagedClusterAgentPoolProfile]'}, + 'auth_profile': {'key': 'properties.authProfile', 'type': 'OpenShiftManagedClusterAuthProfile'}, + } + + def __init__(self, **kwargs): + super(OpenShiftManagedCluster, self).__init__(**kwargs) + self.plan = kwargs.get('plan', None) + self.provisioning_state = None + self.open_shift_version = kwargs.get('open_shift_version', None) + self.public_hostname = kwargs.get('public_hostname', None) + self.fqdn = kwargs.get('fqdn', None) + self.network_profile = kwargs.get('network_profile', None) + self.router_profiles = kwargs.get('router_profiles', None) + self.master_pool_profile = kwargs.get('master_pool_profile', None) + self.agent_pool_profiles = kwargs.get('agent_pool_profiles', None) + self.auth_profile = kwargs.get('auth_profile', None) diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/open_shift_managed_cluster_aad_identity_provider.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/open_shift_managed_cluster_aad_identity_provider.py new file mode 100644 index 000000000000..0241ca8dbfad --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/open_shift_managed_cluster_aad_identity_provider.py @@ -0,0 +1,46 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .open_shift_managed_cluster_base_identity_provider import OpenShiftManagedClusterBaseIdentityProvider + + +class OpenShiftManagedClusterAADIdentityProvider(OpenShiftManagedClusterBaseIdentityProvider): + """Defines the Identity provider for MS AAD. + + All required parameters must be populated in order to send to Azure. + + :param kind: Required. Constant filled by server. + :type kind: str + :param client_id: The clientId password associated with the provider. + :type client_id: str + :param secret: The secret password associated with the provider. + :type secret: str + :param tenant_id: The tenantId associated with the provider. + :type tenant_id: str + """ + + _validation = { + 'kind': {'required': True}, + } + + _attribute_map = { + 'kind': {'key': 'kind', 'type': 'str'}, + 'client_id': {'key': 'clientId', 'type': 'str'}, + 'secret': {'key': 'secret', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(OpenShiftManagedClusterAADIdentityProvider, self).__init__(**kwargs) + self.client_id = kwargs.get('client_id', None) + self.secret = kwargs.get('secret', None) + self.tenant_id = kwargs.get('tenant_id', None) + self.kind = 'AADIdentityProvider' diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/open_shift_managed_cluster_aad_identity_provider_py3.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/open_shift_managed_cluster_aad_identity_provider_py3.py new file mode 100644 index 000000000000..d0f258de6231 --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/open_shift_managed_cluster_aad_identity_provider_py3.py @@ -0,0 +1,46 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .open_shift_managed_cluster_base_identity_provider_py3 import OpenShiftManagedClusterBaseIdentityProvider + + +class OpenShiftManagedClusterAADIdentityProvider(OpenShiftManagedClusterBaseIdentityProvider): + """Defines the Identity provider for MS AAD. + + All required parameters must be populated in order to send to Azure. + + :param kind: Required. Constant filled by server. + :type kind: str + :param client_id: The clientId password associated with the provider. + :type client_id: str + :param secret: The secret password associated with the provider. + :type secret: str + :param tenant_id: The tenantId associated with the provider. + :type tenant_id: str + """ + + _validation = { + 'kind': {'required': True}, + } + + _attribute_map = { + 'kind': {'key': 'kind', 'type': 'str'}, + 'client_id': {'key': 'clientId', 'type': 'str'}, + 'secret': {'key': 'secret', 'type': 'str'}, + 'tenant_id': {'key': 'tenantId', 'type': 'str'}, + } + + def __init__(self, *, client_id: str=None, secret: str=None, tenant_id: str=None, **kwargs) -> None: + super(OpenShiftManagedClusterAADIdentityProvider, self).__init__(**kwargs) + self.client_id = client_id + self.secret = secret + self.tenant_id = tenant_id + self.kind = 'AADIdentityProvider' diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/open_shift_managed_cluster_agent_pool_profile.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/open_shift_managed_cluster_agent_pool_profile.py new file mode 100644 index 000000000000..6f9baad9695f --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/open_shift_managed_cluster_agent_pool_profile.py @@ -0,0 +1,74 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class OpenShiftManagedClusterAgentPoolProfile(Model): + """Defines the configuration of the OpenShift cluster VMs. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. Unique name of the pool profile in the context of + the subscription and resource group. + :type name: str + :param count: Required. Number of agents (VMs) to host docker containers. + :type count: int + :param vm_size: Required. Size of agent VMs. Possible values include: + 'Standard_D2s_v3', 'Standard_D4s_v3', 'Standard_D8s_v3', + 'Standard_D16s_v3', 'Standard_D32s_v3', 'Standard_D64s_v3', + 'Standard_DS4_v2', 'Standard_DS5_v2', 'Standard_F8s_v2', + 'Standard_F16s_v2', 'Standard_F32s_v2', 'Standard_F64s_v2', + 'Standard_F72s_v2', 'Standard_F8s', 'Standard_F16s', 'Standard_E4s_v3', + 'Standard_E8s_v3', 'Standard_E16s_v3', 'Standard_E20s_v3', + 'Standard_E32s_v3', 'Standard_E64s_v3', 'Standard_GS2', 'Standard_GS3', + 'Standard_GS4', 'Standard_GS5', 'Standard_DS12_v2', 'Standard_DS13_v2', + 'Standard_DS14_v2', 'Standard_DS15_v2', 'Standard_L4s', 'Standard_L8s', + 'Standard_L16s', 'Standard_L32s' + :type vm_size: str or + ~azure.mgmt.containerservice.v2018_09_30_preview.models.OpenShiftContainerServiceVMSize + :param subnet_cidr: Subnet CIDR for the peering. Default value: + "10.0.0.0/24" . + :type subnet_cidr: str + :param os_type: OsType to be used to specify os type. Choose from Linux + and Windows. Default to Linux. Possible values include: 'Linux', + 'Windows'. Default value: "Linux" . + :type os_type: str or + ~azure.mgmt.containerservice.v2018_09_30_preview.models.OSType + :param role: Define the role of the AgentPoolProfile. Possible values + include: 'compute', 'infra' + :type role: str or + ~azure.mgmt.containerservice.v2018_09_30_preview.models.OpenShiftAgentPoolProfileRole + """ + + _validation = { + 'name': {'required': True}, + 'count': {'required': True}, + 'vm_size': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'count': {'key': 'count', 'type': 'int'}, + 'vm_size': {'key': 'vmSize', 'type': 'str'}, + 'subnet_cidr': {'key': 'subnetCidr', 'type': 'str'}, + 'os_type': {'key': 'osType', 'type': 'str'}, + 'role': {'key': 'role', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(OpenShiftManagedClusterAgentPoolProfile, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.count = kwargs.get('count', None) + self.vm_size = kwargs.get('vm_size', None) + self.subnet_cidr = kwargs.get('subnet_cidr', "10.0.0.0/24") + self.os_type = kwargs.get('os_type', "Linux") + self.role = kwargs.get('role', None) diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/open_shift_managed_cluster_agent_pool_profile_py3.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/open_shift_managed_cluster_agent_pool_profile_py3.py new file mode 100644 index 000000000000..6b92b76b5e71 --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/open_shift_managed_cluster_agent_pool_profile_py3.py @@ -0,0 +1,74 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class OpenShiftManagedClusterAgentPoolProfile(Model): + """Defines the configuration of the OpenShift cluster VMs. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. Unique name of the pool profile in the context of + the subscription and resource group. + :type name: str + :param count: Required. Number of agents (VMs) to host docker containers. + :type count: int + :param vm_size: Required. Size of agent VMs. Possible values include: + 'Standard_D2s_v3', 'Standard_D4s_v3', 'Standard_D8s_v3', + 'Standard_D16s_v3', 'Standard_D32s_v3', 'Standard_D64s_v3', + 'Standard_DS4_v2', 'Standard_DS5_v2', 'Standard_F8s_v2', + 'Standard_F16s_v2', 'Standard_F32s_v2', 'Standard_F64s_v2', + 'Standard_F72s_v2', 'Standard_F8s', 'Standard_F16s', 'Standard_E4s_v3', + 'Standard_E8s_v3', 'Standard_E16s_v3', 'Standard_E20s_v3', + 'Standard_E32s_v3', 'Standard_E64s_v3', 'Standard_GS2', 'Standard_GS3', + 'Standard_GS4', 'Standard_GS5', 'Standard_DS12_v2', 'Standard_DS13_v2', + 'Standard_DS14_v2', 'Standard_DS15_v2', 'Standard_L4s', 'Standard_L8s', + 'Standard_L16s', 'Standard_L32s' + :type vm_size: str or + ~azure.mgmt.containerservice.v2018_09_30_preview.models.OpenShiftContainerServiceVMSize + :param subnet_cidr: Subnet CIDR for the peering. Default value: + "10.0.0.0/24" . + :type subnet_cidr: str + :param os_type: OsType to be used to specify os type. Choose from Linux + and Windows. Default to Linux. Possible values include: 'Linux', + 'Windows'. Default value: "Linux" . + :type os_type: str or + ~azure.mgmt.containerservice.v2018_09_30_preview.models.OSType + :param role: Define the role of the AgentPoolProfile. Possible values + include: 'compute', 'infra' + :type role: str or + ~azure.mgmt.containerservice.v2018_09_30_preview.models.OpenShiftAgentPoolProfileRole + """ + + _validation = { + 'name': {'required': True}, + 'count': {'required': True}, + 'vm_size': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'count': {'key': 'count', 'type': 'int'}, + 'vm_size': {'key': 'vmSize', 'type': 'str'}, + 'subnet_cidr': {'key': 'subnetCidr', 'type': 'str'}, + 'os_type': {'key': 'osType', 'type': 'str'}, + 'role': {'key': 'role', 'type': 'str'}, + } + + def __init__(self, *, name: str, count: int, vm_size, subnet_cidr: str="10.0.0.0/24", os_type="Linux", role=None, **kwargs) -> None: + super(OpenShiftManagedClusterAgentPoolProfile, self).__init__(**kwargs) + self.name = name + self.count = count + self.vm_size = vm_size + self.subnet_cidr = subnet_cidr + self.os_type = os_type + self.role = role diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/open_shift_managed_cluster_auth_profile.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/open_shift_managed_cluster_auth_profile.py new file mode 100644 index 000000000000..88d093d53434 --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/open_shift_managed_cluster_auth_profile.py @@ -0,0 +1,29 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class OpenShiftManagedClusterAuthProfile(Model): + """Defines all possible authentication profiles for the OpenShift cluster. + + :param identity_providers: Type of authentication profile to use. + :type identity_providers: + list[~azure.mgmt.containerservice.v2018_09_30_preview.models.OpenShiftManagedClusterIdentityProvider] + """ + + _attribute_map = { + 'identity_providers': {'key': 'identityProviders', 'type': '[OpenShiftManagedClusterIdentityProvider]'}, + } + + def __init__(self, **kwargs): + super(OpenShiftManagedClusterAuthProfile, self).__init__(**kwargs) + self.identity_providers = kwargs.get('identity_providers', None) diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/open_shift_managed_cluster_auth_profile_py3.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/open_shift_managed_cluster_auth_profile_py3.py new file mode 100644 index 000000000000..b6c879151fc5 --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/open_shift_managed_cluster_auth_profile_py3.py @@ -0,0 +1,29 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class OpenShiftManagedClusterAuthProfile(Model): + """Defines all possible authentication profiles for the OpenShift cluster. + + :param identity_providers: Type of authentication profile to use. + :type identity_providers: + list[~azure.mgmt.containerservice.v2018_09_30_preview.models.OpenShiftManagedClusterIdentityProvider] + """ + + _attribute_map = { + 'identity_providers': {'key': 'identityProviders', 'type': '[OpenShiftManagedClusterIdentityProvider]'}, + } + + def __init__(self, *, identity_providers=None, **kwargs) -> None: + super(OpenShiftManagedClusterAuthProfile, self).__init__(**kwargs) + self.identity_providers = identity_providers diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/open_shift_managed_cluster_base_identity_provider.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/open_shift_managed_cluster_base_identity_provider.py new file mode 100644 index 000000000000..c6b92691d5a0 --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/open_shift_managed_cluster_base_identity_provider.py @@ -0,0 +1,41 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class OpenShiftManagedClusterBaseIdentityProvider(Model): + """Structure for any Identity provider. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: OpenShiftManagedClusterAADIdentityProvider + + All required parameters must be populated in order to send to Azure. + + :param kind: Required. Constant filled by server. + :type kind: str + """ + + _validation = { + 'kind': {'required': True}, + } + + _attribute_map = { + 'kind': {'key': 'kind', 'type': 'str'}, + } + + _subtype_map = { + 'kind': {'AADIdentityProvider': 'OpenShiftManagedClusterAADIdentityProvider'} + } + + def __init__(self, **kwargs): + super(OpenShiftManagedClusterBaseIdentityProvider, self).__init__(**kwargs) + self.kind = None diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/open_shift_managed_cluster_base_identity_provider_py3.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/open_shift_managed_cluster_base_identity_provider_py3.py new file mode 100644 index 000000000000..91ef9f1b5f13 --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/open_shift_managed_cluster_base_identity_provider_py3.py @@ -0,0 +1,41 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class OpenShiftManagedClusterBaseIdentityProvider(Model): + """Structure for any Identity provider. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: OpenShiftManagedClusterAADIdentityProvider + + All required parameters must be populated in order to send to Azure. + + :param kind: Required. Constant filled by server. + :type kind: str + """ + + _validation = { + 'kind': {'required': True}, + } + + _attribute_map = { + 'kind': {'key': 'kind', 'type': 'str'}, + } + + _subtype_map = { + 'kind': {'AADIdentityProvider': 'OpenShiftManagedClusterAADIdentityProvider'} + } + + def __init__(self, **kwargs) -> None: + super(OpenShiftManagedClusterBaseIdentityProvider, self).__init__(**kwargs) + self.kind = None diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/open_shift_managed_cluster_identity_provider.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/open_shift_managed_cluster_identity_provider.py new file mode 100644 index 000000000000..126fd4371152 --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/open_shift_managed_cluster_identity_provider.py @@ -0,0 +1,34 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class OpenShiftManagedClusterIdentityProvider(Model): + """Defines the configuration of the identity providers to be used in the + OpenShift cluster. + + :param name: Name of the provider. + :type name: str + :param provider: Configuration of the provider. + :type provider: + ~azure.mgmt.containerservice.v2018_09_30_preview.models.OpenShiftManagedClusterBaseIdentityProvider + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'provider': {'key': 'provider', 'type': 'OpenShiftManagedClusterBaseIdentityProvider'}, + } + + def __init__(self, **kwargs): + super(OpenShiftManagedClusterIdentityProvider, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.provider = kwargs.get('provider', None) diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/open_shift_managed_cluster_identity_provider_py3.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/open_shift_managed_cluster_identity_provider_py3.py new file mode 100644 index 000000000000..2465cad26389 --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/open_shift_managed_cluster_identity_provider_py3.py @@ -0,0 +1,34 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class OpenShiftManagedClusterIdentityProvider(Model): + """Defines the configuration of the identity providers to be used in the + OpenShift cluster. + + :param name: Name of the provider. + :type name: str + :param provider: Configuration of the provider. + :type provider: + ~azure.mgmt.containerservice.v2018_09_30_preview.models.OpenShiftManagedClusterBaseIdentityProvider + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'provider': {'key': 'provider', 'type': 'OpenShiftManagedClusterBaseIdentityProvider'}, + } + + def __init__(self, *, name: str=None, provider=None, **kwargs) -> None: + super(OpenShiftManagedClusterIdentityProvider, self).__init__(**kwargs) + self.name = name + self.provider = provider diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/open_shift_managed_cluster_master_pool_profile.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/open_shift_managed_cluster_master_pool_profile.py new file mode 100644 index 000000000000..e3800fb6a4fc --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/open_shift_managed_cluster_master_pool_profile.py @@ -0,0 +1,68 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class OpenShiftManagedClusterMasterPoolProfile(Model): + """OpenShiftManagedClusterMaterPoolProfile contains configuration for + OpenShift master VMs. + + All required parameters must be populated in order to send to Azure. + + :param name: Unique name of the master pool profile in the context of the + subscription and resource group. + :type name: str + :param count: Required. Number of masters (VMs) to host docker containers. + The default value is 3. + :type count: int + :param vm_size: Required. Size of agent VMs. Possible values include: + 'Standard_D2s_v3', 'Standard_D4s_v3', 'Standard_D8s_v3', + 'Standard_D16s_v3', 'Standard_D32s_v3', 'Standard_D64s_v3', + 'Standard_DS4_v2', 'Standard_DS5_v2', 'Standard_F8s_v2', + 'Standard_F16s_v2', 'Standard_F32s_v2', 'Standard_F64s_v2', + 'Standard_F72s_v2', 'Standard_F8s', 'Standard_F16s', 'Standard_E4s_v3', + 'Standard_E8s_v3', 'Standard_E16s_v3', 'Standard_E20s_v3', + 'Standard_E32s_v3', 'Standard_E64s_v3', 'Standard_GS2', 'Standard_GS3', + 'Standard_GS4', 'Standard_GS5', 'Standard_DS12_v2', 'Standard_DS13_v2', + 'Standard_DS14_v2', 'Standard_DS15_v2', 'Standard_L4s', 'Standard_L8s', + 'Standard_L16s', 'Standard_L32s' + :type vm_size: str or + ~azure.mgmt.containerservice.v2018_09_30_preview.models.OpenShiftContainerServiceVMSize + :param subnet_cidr: Subnet CIDR for the peering. + :type subnet_cidr: str + :param os_type: OsType to be used to specify os type. Choose from Linux + and Windows. Default to Linux. Possible values include: 'Linux', + 'Windows'. Default value: "Linux" . + :type os_type: str or + ~azure.mgmt.containerservice.v2018_09_30_preview.models.OSType + """ + + _validation = { + 'count': {'required': True}, + 'vm_size': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'count': {'key': 'count', 'type': 'int'}, + 'vm_size': {'key': 'vmSize', 'type': 'str'}, + 'subnet_cidr': {'key': 'subnetCidr', 'type': 'str'}, + 'os_type': {'key': 'osType', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(OpenShiftManagedClusterMasterPoolProfile, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.count = kwargs.get('count', None) + self.vm_size = kwargs.get('vm_size', None) + self.subnet_cidr = kwargs.get('subnet_cidr', None) + self.os_type = kwargs.get('os_type', "Linux") diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/open_shift_managed_cluster_master_pool_profile_py3.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/open_shift_managed_cluster_master_pool_profile_py3.py new file mode 100644 index 000000000000..f2e85cae7c2a --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/open_shift_managed_cluster_master_pool_profile_py3.py @@ -0,0 +1,68 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class OpenShiftManagedClusterMasterPoolProfile(Model): + """OpenShiftManagedClusterMaterPoolProfile contains configuration for + OpenShift master VMs. + + All required parameters must be populated in order to send to Azure. + + :param name: Unique name of the master pool profile in the context of the + subscription and resource group. + :type name: str + :param count: Required. Number of masters (VMs) to host docker containers. + The default value is 3. + :type count: int + :param vm_size: Required. Size of agent VMs. Possible values include: + 'Standard_D2s_v3', 'Standard_D4s_v3', 'Standard_D8s_v3', + 'Standard_D16s_v3', 'Standard_D32s_v3', 'Standard_D64s_v3', + 'Standard_DS4_v2', 'Standard_DS5_v2', 'Standard_F8s_v2', + 'Standard_F16s_v2', 'Standard_F32s_v2', 'Standard_F64s_v2', + 'Standard_F72s_v2', 'Standard_F8s', 'Standard_F16s', 'Standard_E4s_v3', + 'Standard_E8s_v3', 'Standard_E16s_v3', 'Standard_E20s_v3', + 'Standard_E32s_v3', 'Standard_E64s_v3', 'Standard_GS2', 'Standard_GS3', + 'Standard_GS4', 'Standard_GS5', 'Standard_DS12_v2', 'Standard_DS13_v2', + 'Standard_DS14_v2', 'Standard_DS15_v2', 'Standard_L4s', 'Standard_L8s', + 'Standard_L16s', 'Standard_L32s' + :type vm_size: str or + ~azure.mgmt.containerservice.v2018_09_30_preview.models.OpenShiftContainerServiceVMSize + :param subnet_cidr: Subnet CIDR for the peering. + :type subnet_cidr: str + :param os_type: OsType to be used to specify os type. Choose from Linux + and Windows. Default to Linux. Possible values include: 'Linux', + 'Windows'. Default value: "Linux" . + :type os_type: str or + ~azure.mgmt.containerservice.v2018_09_30_preview.models.OSType + """ + + _validation = { + 'count': {'required': True}, + 'vm_size': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'count': {'key': 'count', 'type': 'int'}, + 'vm_size': {'key': 'vmSize', 'type': 'str'}, + 'subnet_cidr': {'key': 'subnetCidr', 'type': 'str'}, + 'os_type': {'key': 'osType', 'type': 'str'}, + } + + def __init__(self, *, count: int, vm_size, name: str=None, subnet_cidr: str=None, os_type="Linux", **kwargs) -> None: + super(OpenShiftManagedClusterMasterPoolProfile, self).__init__(**kwargs) + self.name = name + self.count = count + self.vm_size = vm_size + self.subnet_cidr = subnet_cidr + self.os_type = os_type diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/open_shift_managed_cluster_paged.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/open_shift_managed_cluster_paged.py new file mode 100644 index 000000000000..c2ed81303b23 --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/open_shift_managed_cluster_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class OpenShiftManagedClusterPaged(Paged): + """ + A paging container for iterating over a list of :class:`OpenShiftManagedCluster ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[OpenShiftManagedCluster]'} + } + + def __init__(self, *args, **kwargs): + + super(OpenShiftManagedClusterPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/open_shift_managed_cluster_py3.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/open_shift_managed_cluster_py3.py new file mode 100644 index 000000000000..fc9784159ef9 --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/open_shift_managed_cluster_py3.py @@ -0,0 +1,104 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource_py3 import Resource + + +class OpenShiftManagedCluster(Resource): + """OpenShift Managed cluster. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Resource Id + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :param location: Required. Resource location + :type location: str + :param tags: Resource tags + :type tags: dict[str, str] + :param plan: Define the resource plan as required by ARM for billing + purposes + :type plan: + ~azure.mgmt.containerservice.v2018_09_30_preview.models.PurchasePlan + :ivar provisioning_state: The current deployment or provisioning state, + which only appears in the response. + :vartype provisioning_state: str + :param open_shift_version: Required. Version of OpenShift specified when + creating the cluster. + :type open_shift_version: str + :param public_hostname: Optional user-specified FQDN for OpenShift API + server. + :type public_hostname: str + :param fqdn: User-specified FQDN for OpenShift API server loadbalancer + internal hostname. + :type fqdn: str + :param network_profile: Configuration for OpenShift networking. + :type network_profile: + ~azure.mgmt.containerservice.v2018_09_30_preview.models.NetworkProfile + :param router_profiles: Configuration for OpenShift router(s). + :type router_profiles: + list[~azure.mgmt.containerservice.v2018_09_30_preview.models.OpenShiftRouterProfile] + :param master_pool_profile: Configuration for OpenShift master VMs. + :type master_pool_profile: + ~azure.mgmt.containerservice.v2018_09_30_preview.models.OpenShiftManagedClusterMasterPoolProfile + :param agent_pool_profiles: Configuration of OpenShift cluster VMs. + :type agent_pool_profiles: + list[~azure.mgmt.containerservice.v2018_09_30_preview.models.OpenShiftManagedClusterAgentPoolProfile] + :param auth_profile: Configures OpenShift authentication. + :type auth_profile: + ~azure.mgmt.containerservice.v2018_09_30_preview.models.OpenShiftManagedClusterAuthProfile + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + 'provisioning_state': {'readonly': True}, + 'open_shift_version': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'plan': {'key': 'plan', 'type': 'PurchasePlan'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'open_shift_version': {'key': 'properties.openShiftVersion', 'type': 'str'}, + 'public_hostname': {'key': 'properties.publicHostname', 'type': 'str'}, + 'fqdn': {'key': 'properties.fqdn', 'type': 'str'}, + 'network_profile': {'key': 'properties.networkProfile', 'type': 'NetworkProfile'}, + 'router_profiles': {'key': 'properties.routerProfiles', 'type': '[OpenShiftRouterProfile]'}, + 'master_pool_profile': {'key': 'properties.masterPoolProfile', 'type': 'OpenShiftManagedClusterMasterPoolProfile'}, + 'agent_pool_profiles': {'key': 'properties.agentPoolProfiles', 'type': '[OpenShiftManagedClusterAgentPoolProfile]'}, + 'auth_profile': {'key': 'properties.authProfile', 'type': 'OpenShiftManagedClusterAuthProfile'}, + } + + def __init__(self, *, location: str, open_shift_version: str, tags=None, plan=None, public_hostname: str=None, fqdn: str=None, network_profile=None, router_profiles=None, master_pool_profile=None, agent_pool_profiles=None, auth_profile=None, **kwargs) -> None: + super(OpenShiftManagedCluster, self).__init__(location=location, tags=tags, **kwargs) + self.plan = plan + self.provisioning_state = None + self.open_shift_version = open_shift_version + self.public_hostname = public_hostname + self.fqdn = fqdn + self.network_profile = network_profile + self.router_profiles = router_profiles + self.master_pool_profile = master_pool_profile + self.agent_pool_profiles = agent_pool_profiles + self.auth_profile = auth_profile diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/open_shift_router_profile.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/open_shift_router_profile.py new file mode 100644 index 000000000000..f11707f25044 --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/open_shift_router_profile.py @@ -0,0 +1,43 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class OpenShiftRouterProfile(Model): + """Represents an OpenShift router. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param name: Name of the router profile. + :type name: str + :param public_subdomain: DNS subdomain for openshift router. + :type public_subdomain: str + :ivar fqdn: Auto-allocated FQDN for the OpenShift router. + :vartype fqdn: str + """ + + _validation = { + 'fqdn': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'public_subdomain': {'key': 'publicSubdomain', 'type': 'str'}, + 'fqdn': {'key': 'fqdn', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(OpenShiftRouterProfile, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.public_subdomain = kwargs.get('public_subdomain', None) + self.fqdn = None diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/open_shift_router_profile_py3.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/open_shift_router_profile_py3.py new file mode 100644 index 000000000000..d3057ec0292a --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/open_shift_router_profile_py3.py @@ -0,0 +1,43 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class OpenShiftRouterProfile(Model): + """Represents an OpenShift router. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param name: Name of the router profile. + :type name: str + :param public_subdomain: DNS subdomain for openshift router. + :type public_subdomain: str + :ivar fqdn: Auto-allocated FQDN for the OpenShift router. + :vartype fqdn: str + """ + + _validation = { + 'fqdn': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'public_subdomain': {'key': 'publicSubdomain', 'type': 'str'}, + 'fqdn': {'key': 'fqdn', 'type': 'str'}, + } + + def __init__(self, *, name: str=None, public_subdomain: str=None, **kwargs) -> None: + super(OpenShiftRouterProfile, self).__init__(**kwargs) + self.name = name + self.public_subdomain = public_subdomain + self.fqdn = None diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/purchase_plan.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/purchase_plan.py new file mode 100644 index 000000000000..d3a749eafd1a --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/purchase_plan.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class PurchasePlan(Model): + """Used for establishing the purchase context of any 3rd Party artifact + through MarketPlace. + + :param name: The plan ID. + :type name: str + :param product: Specifies the product of the image from the marketplace. + This is the same value as Offer under the imageReference element. + :type product: str + :param promotion_code: The promotion code. + :type promotion_code: str + :param publisher: The plan ID. + :type publisher: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'product': {'key': 'product', 'type': 'str'}, + 'promotion_code': {'key': 'promotionCode', 'type': 'str'}, + 'publisher': {'key': 'publisher', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(PurchasePlan, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.product = kwargs.get('product', None) + self.promotion_code = kwargs.get('promotion_code', None) + self.publisher = kwargs.get('publisher', None) diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/purchase_plan_py3.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/purchase_plan_py3.py new file mode 100644 index 000000000000..5ba5d6c85cea --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/purchase_plan_py3.py @@ -0,0 +1,42 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class PurchasePlan(Model): + """Used for establishing the purchase context of any 3rd Party artifact + through MarketPlace. + + :param name: The plan ID. + :type name: str + :param product: Specifies the product of the image from the marketplace. + This is the same value as Offer under the imageReference element. + :type product: str + :param promotion_code: The promotion code. + :type promotion_code: str + :param publisher: The plan ID. + :type publisher: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'product': {'key': 'product', 'type': 'str'}, + 'promotion_code': {'key': 'promotionCode', 'type': 'str'}, + 'publisher': {'key': 'publisher', 'type': 'str'}, + } + + def __init__(self, *, name: str=None, product: str=None, promotion_code: str=None, publisher: str=None, **kwargs) -> None: + super(PurchasePlan, self).__init__(**kwargs) + self.name = name + self.product = product + self.promotion_code = promotion_code + self.publisher = publisher diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/resource.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/resource.py new file mode 100644 index 000000000000..5dd7d481c685 --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/resource.py @@ -0,0 +1,56 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class Resource(Model): + """The Resource model definition. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Resource Id + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :param location: Required. Resource location + :type location: str + :param tags: Resource tags + :type tags: dict[str, str] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, **kwargs): + super(Resource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + self.location = kwargs.get('location', None) + self.tags = kwargs.get('tags', None) diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/resource_py3.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/resource_py3.py new file mode 100644 index 000000000000..2f3702caf609 --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/resource_py3.py @@ -0,0 +1,56 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class Resource(Model): + """The Resource model definition. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Resource Id + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :param location: Required. Resource location + :type location: str + :param tags: Resource tags + :type tags: dict[str, str] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, *, location: str, tags=None, **kwargs) -> None: + super(Resource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + self.location = location + self.tags = tags diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/tags_object.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/tags_object.py new file mode 100644 index 000000000000..2966ec220f94 --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/tags_object.py @@ -0,0 +1,28 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class TagsObject(Model): + """Tags object for patch operations. + + :param tags: Resource tags. + :type tags: dict[str, str] + """ + + _attribute_map = { + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, **kwargs): + super(TagsObject, self).__init__(**kwargs) + self.tags = kwargs.get('tags', None) diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/tags_object_py3.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/tags_object_py3.py new file mode 100644 index 000000000000..8be0bb4a15d7 --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/models/tags_object_py3.py @@ -0,0 +1,28 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class TagsObject(Model): + """Tags object for patch operations. + + :param tags: Resource tags. + :type tags: dict[str, str] + """ + + _attribute_map = { + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, *, tags=None, **kwargs) -> None: + super(TagsObject, self).__init__(**kwargs) + self.tags = tags diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/operations/__init__.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/operations/__init__.py new file mode 100644 index 000000000000..d6d4c3e5f6f9 --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/operations/__init__.py @@ -0,0 +1,16 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .open_shift_managed_clusters_operations import OpenShiftManagedClustersOperations + +__all__ = [ + 'OpenShiftManagedClustersOperations', +] diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/operations/open_shift_managed_clusters_operations.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/operations/open_shift_managed_clusters_operations.py new file mode 100644 index 000000000000..bf66833db5f6 --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/operations/open_shift_managed_clusters_operations.py @@ -0,0 +1,544 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +from msrest.polling import LROPoller, NoPolling +from msrestazure.polling.arm_polling import ARMPolling + +from .. import models + + +class OpenShiftManagedClustersOperations(object): + """OpenShiftManagedClustersOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client Api Version. Constant value: "2018-09-30-preview". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2018-09-30-preview" + + self.config = config + + def list( + self, custom_headers=None, raw=False, **operation_config): + """Gets a list of OpenShift managed clusters in the specified + subscription. + + Gets a list of OpenShift managed clusters in the specified + subscription. The operation returns properties of each OpenShift + managed cluster. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of OpenShiftManagedCluster + :rtype: + ~azure.mgmt.containerservice.v2018_09_30_preview.models.OpenShiftManagedClusterPaged[~azure.mgmt.containerservice.v2018_09_30_preview.models.OpenShiftManagedCluster] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.OpenShiftManagedClusterPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.OpenShiftManagedClusterPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/openShiftManagedClusters'} + + def list_by_resource_group( + self, resource_group_name, custom_headers=None, raw=False, **operation_config): + """Lists OpenShift managed clusters in the specified subscription and + resource group. + + Lists OpenShift managed clusters in the specified subscription and + resource group. The operation returns properties of each OpenShift + managed cluster. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of OpenShiftManagedCluster + :rtype: + ~azure.mgmt.containerservice.v2018_09_30_preview.models.OpenShiftManagedClusterPaged[~azure.mgmt.containerservice.v2018_09_30_preview.models.OpenShiftManagedCluster] + :raises: :class:`CloudError` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_by_resource_group.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + return response + + # Deserialize response + deserialized = models.OpenShiftManagedClusterPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.OpenShiftManagedClusterPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/openShiftManagedClusters'} + + def get( + self, resource_group_name, resource_name, custom_headers=None, raw=False, **operation_config): + """Gets a openshift managed cluster. + + Gets the details of the managed openshift cluster with a specified + resource group and name. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param resource_name: The name of the openshift managed cluster + resource. + :type resource_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: OpenShiftManagedCluster or ClientRawResponse if raw=true + :rtype: + ~azure.mgmt.containerservice.v2018_09_30_preview.models.OpenShiftManagedCluster + or ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceName': self._serialize.url("resource_name", resource_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('OpenShiftManagedCluster', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/openShiftManagedClusters/{resourceName}'} + + + def _create_or_update_initial( + self, resource_group_name, resource_name, parameters, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.create_or_update.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceName': self._serialize.url("resource_name", resource_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'OpenShiftManagedCluster') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 201]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('OpenShiftManagedCluster', response) + if response.status_code == 201: + deserialized = self._deserialize('OpenShiftManagedCluster', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def create_or_update( + self, resource_group_name, resource_name, parameters, custom_headers=None, raw=False, polling=True, **operation_config): + """Creates or updates an openshift managed cluster. + + Creates or updates a openshift managed cluster with the specified + configuration for agents and OpenShift version. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param resource_name: The name of the openshift managed cluster + resource. + :type resource_name: str + :param parameters: Parameters supplied to the Create or Update an + OpenShift Managed Cluster operation. + :type parameters: + ~azure.mgmt.containerservice.v2018_09_30_preview.models.OpenShiftManagedCluster + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns OpenShiftManagedCluster + or ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.containerservice.v2018_09_30_preview.models.OpenShiftManagedCluster] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.containerservice.v2018_09_30_preview.models.OpenShiftManagedCluster]] + :raises: :class:`CloudError` + """ + raw_result = self._create_or_update_initial( + resource_group_name=resource_group_name, + resource_name=resource_name, + parameters=parameters, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('OpenShiftManagedCluster', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/openShiftManagedClusters/{resourceName}'} + + + def _update_tags_initial( + self, resource_group_name, resource_name, tags=None, custom_headers=None, raw=False, **operation_config): + parameters = models.TagsObject(tags=tags) + + # Construct URL + url = self.update_tags.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceName': self._serialize.url("resource_name", resource_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(parameters, 'TagsObject') + + # Construct and send request + request = self._client.patch(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('OpenShiftManagedCluster', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def update_tags( + self, resource_group_name, resource_name, tags=None, custom_headers=None, raw=False, polling=True, **operation_config): + """Updates tags on an openshift managed cluster. + + Updates an openshift managed cluster with the specified tags. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param resource_name: The name of the openshift managed cluster + resource. + :type resource_name: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns OpenShiftManagedCluster + or ClientRawResponse if raw==True + :rtype: + ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.containerservice.v2018_09_30_preview.models.OpenShiftManagedCluster] + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.containerservice.v2018_09_30_preview.models.OpenShiftManagedCluster]] + :raises: :class:`CloudError` + """ + raw_result = self._update_tags_initial( + resource_group_name=resource_group_name, + resource_name=resource_name, + tags=tags, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + deserialized = self._deserialize('OpenShiftManagedCluster', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + update_tags.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/openShiftManagedClusters/{resourceName}'} + + + def _delete_initial( + self, resource_group_name, resource_name, custom_headers=None, raw=False, **operation_config): + # Construct URL + url = self.delete.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'resourceName': self._serialize.url("resource_name", resource_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [202, 204]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def delete( + self, resource_group_name, resource_name, custom_headers=None, raw=False, polling=True, **operation_config): + """Deletes an openshift managed cluster. + + Deletes the openshift managed cluster with a specified resource group + and name. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param resource_name: The name of the openshift managed cluster + resource. + :type resource_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True + :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] + :raises: :class:`CloudError` + """ + raw_result = self._delete_initial( + resource_group_name=resource_group_name, + resource_name=resource_name, + custom_headers=custom_headers, + raw=True, + **operation_config + ) + + def get_long_running_output(response): + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + lro_delay = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/openShiftManagedClusters/{resourceName}'} diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/version.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/version.py new file mode 100644 index 000000000000..c48085a263da --- /dev/null +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/v2018_09_30_preview/version.py @@ -0,0 +1,13 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +VERSION = "2018-09-30-preview" + diff --git a/azure-mgmt-containerservice/azure/mgmt/containerservice/version.py b/azure-mgmt-containerservice/azure/mgmt/containerservice/version.py index c215e51b49fe..e66ef3b2af16 100644 --- a/azure-mgmt-containerservice/azure/mgmt/containerservice/version.py +++ b/azure-mgmt-containerservice/azure/mgmt/containerservice/version.py @@ -9,5 +9,5 @@ # regenerated. # -------------------------------------------------------------------------- -VERSION = "4.2.2" +VERSION = "4.3.0" From 50e66f824c5dac440f8285b9a5d958e4bb35e6d1 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Fri, 14 Dec 2018 00:01:00 +0000 Subject: [PATCH 12/12] Generated from f2e0fa789dbdbdb599809b597bf3c778be91e9d7 Revert "Swagger changes for App Gw Server Variables APIs (#4345)" This reverts commit 1a5e0f4e76a901d9813609370a7e8571c253dffc. --- .../operations/express_route_circuits_operations.py | 8 ++++---- .../models/express_route_circuit_peering_config.py | 2 +- .../models/express_route_circuit_peering_config_py3.py | 2 +- .../models/express_route_circuit_peering_config.py | 2 +- .../models/express_route_circuit_peering_config_py3.py | 2 +- .../models/express_route_circuit_peering_config.py | 2 +- .../models/express_route_circuit_peering_config_py3.py | 2 +- .../models/express_route_circuit_peering_config.py | 2 +- .../models/express_route_circuit_peering_config_py3.py | 2 +- .../models/express_route_circuit_peering_config.py | 2 +- .../models/express_route_circuit_peering_config_py3.py | 2 +- .../models/express_route_circuit_peering_config.py | 2 +- .../models/express_route_circuit_peering_config_py3.py | 2 +- .../models/express_route_circuit_connection.py | 2 +- .../models/express_route_circuit_connection_py3.py | 2 +- .../models/express_route_circuit_peering_config.py | 2 +- .../models/express_route_circuit_peering_config_py3.py | 2 +- .../express_route_circuit_connections_operations.py | 4 ++-- .../models/express_route_circuit_connection.py | 2 +- .../models/express_route_circuit_connection_py3.py | 2 +- .../models/express_route_circuit_peering_config.py | 2 +- .../models/express_route_circuit_peering_config_py3.py | 2 +- .../express_route_circuit_connections_operations.py | 4 ++-- .../models/express_route_circuit_connection.py | 2 +- .../models/express_route_circuit_connection_py3.py | 2 +- .../models/express_route_circuit_peering_config.py | 2 +- .../models/express_route_circuit_peering_config_py3.py | 2 +- .../express_route_circuit_connections_operations.py | 4 ++-- .../models/express_route_circuit_connection.py | 2 +- .../models/express_route_circuit_connection_py3.py | 2 +- .../models/express_route_circuit_peering_config.py | 2 +- .../models/express_route_circuit_peering_config_py3.py | 2 +- .../express_route_circuit_connections_operations.py | 4 ++-- .../models/express_route_circuit_connection.py | 2 +- .../models/express_route_circuit_connection_py3.py | 2 +- .../models/express_route_circuit_peering_config.py | 2 +- .../models/express_route_circuit_peering_config_py3.py | 2 +- .../express_route_circuit_connections_operations.py | 4 ++-- 38 files changed, 46 insertions(+), 46 deletions(-) diff --git a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/express_route_circuits_operations.py b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/express_route_circuits_operations.py index b4ecc4abbd04..ff81652376ab 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/express_route_circuits_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2015_06_15/operations/express_route_circuits_operations.py @@ -286,7 +286,7 @@ def get_long_running_output(response): def list_arp_table( self, resource_group_name, circuit_name, custom_headers=None, raw=False, **operation_config): - """The ListArpTable from ExpressRouteCircuit opertion retrieves the + """The ListArpTable from ExpressRouteCircuit operation retrieves the currently advertised arp table associated with the ExpressRouteCircuits in a resource group. @@ -358,7 +358,7 @@ def internal_paging(next_link=None, raw=False): def list_routes_table( self, resource_group_name, circuit_name, custom_headers=None, raw=False, **operation_config): - """The ListRoutesTable from ExpressRouteCircuit opertion retrieves the + """The ListRoutesTable from ExpressRouteCircuit operation retrieves the currently advertised routes table associated with the ExpressRouteCircuits in a resource group. @@ -430,8 +430,8 @@ def internal_paging(next_link=None, raw=False): def list_stats( self, resource_group_name, circuit_name, custom_headers=None, raw=False, **operation_config): - """The Liststats ExpressRouteCircuit opertion retrieves all the stats from - a ExpressRouteCircuits in a resource group. + """The ListStats ExpressRouteCircuit operation retrieves all the stats + from a ExpressRouteCircuits in a resource group. :param resource_group_name: The name of the resource group. :type resource_group_name: str diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/express_route_circuit_peering_config.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/express_route_circuit_peering_config.py index 27afb5ce6d1e..38486bd2b9ce 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/express_route_circuit_peering_config.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/express_route_circuit_peering_config.py @@ -18,7 +18,7 @@ class ExpressRouteCircuitPeeringConfig(Model): :param advertised_public_prefixes: The reference of AdvertisedPublicPrefixes. :type advertised_public_prefixes: list[str] - :param advertised_communities: The communities of bgp peering. Spepcified + :param advertised_communities: The communities of bgp peering. Specified for microsoft peering :type advertised_communities: list[str] :param advertised_public_prefixes_state: AdvertisedPublicPrefixState of diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/express_route_circuit_peering_config_py3.py b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/express_route_circuit_peering_config_py3.py index b1ffd9ef70aa..922d2d8cdcf1 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/express_route_circuit_peering_config_py3.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_06_01/models/express_route_circuit_peering_config_py3.py @@ -18,7 +18,7 @@ class ExpressRouteCircuitPeeringConfig(Model): :param advertised_public_prefixes: The reference of AdvertisedPublicPrefixes. :type advertised_public_prefixes: list[str] - :param advertised_communities: The communities of bgp peering. Spepcified + :param advertised_communities: The communities of bgp peering. Specified for microsoft peering :type advertised_communities: list[str] :param advertised_public_prefixes_state: AdvertisedPublicPrefixState of diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_08_01/models/express_route_circuit_peering_config.py b/azure-mgmt-network/azure/mgmt/network/v2017_08_01/models/express_route_circuit_peering_config.py index 6c485ade7278..e9f9382ab381 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_08_01/models/express_route_circuit_peering_config.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_08_01/models/express_route_circuit_peering_config.py @@ -18,7 +18,7 @@ class ExpressRouteCircuitPeeringConfig(Model): :param advertised_public_prefixes: The reference of AdvertisedPublicPrefixes. :type advertised_public_prefixes: list[str] - :param advertised_communities: The communities of bgp peering. Spepcified + :param advertised_communities: The communities of bgp peering. Specified for microsoft peering :type advertised_communities: list[str] :param advertised_public_prefixes_state: AdvertisedPublicPrefixState of diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_08_01/models/express_route_circuit_peering_config_py3.py b/azure-mgmt-network/azure/mgmt/network/v2017_08_01/models/express_route_circuit_peering_config_py3.py index 08b2f3f731cf..e24254d1784a 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_08_01/models/express_route_circuit_peering_config_py3.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_08_01/models/express_route_circuit_peering_config_py3.py @@ -18,7 +18,7 @@ class ExpressRouteCircuitPeeringConfig(Model): :param advertised_public_prefixes: The reference of AdvertisedPublicPrefixes. :type advertised_public_prefixes: list[str] - :param advertised_communities: The communities of bgp peering. Spepcified + :param advertised_communities: The communities of bgp peering. Specified for microsoft peering :type advertised_communities: list[str] :param advertised_public_prefixes_state: AdvertisedPublicPrefixState of diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/express_route_circuit_peering_config.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/express_route_circuit_peering_config.py index 9c3cdb8f7677..72f6072caee9 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/express_route_circuit_peering_config.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/express_route_circuit_peering_config.py @@ -18,7 +18,7 @@ class ExpressRouteCircuitPeeringConfig(Model): :param advertised_public_prefixes: The reference of AdvertisedPublicPrefixes. :type advertised_public_prefixes: list[str] - :param advertised_communities: The communities of bgp peering. Spepcified + :param advertised_communities: The communities of bgp peering. Specified for microsoft peering :type advertised_communities: list[str] :param advertised_public_prefixes_state: AdvertisedPublicPrefixState of diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/express_route_circuit_peering_config_py3.py b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/express_route_circuit_peering_config_py3.py index 19d62646d798..33a12cc3e78d 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/express_route_circuit_peering_config_py3.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/express_route_circuit_peering_config_py3.py @@ -18,7 +18,7 @@ class ExpressRouteCircuitPeeringConfig(Model): :param advertised_public_prefixes: The reference of AdvertisedPublicPrefixes. :type advertised_public_prefixes: list[str] - :param advertised_communities: The communities of bgp peering. Spepcified + :param advertised_communities: The communities of bgp peering. Specified for microsoft peering :type advertised_communities: list[str] :param advertised_public_prefixes_state: AdvertisedPublicPrefixState of diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_10_01/models/express_route_circuit_peering_config.py b/azure-mgmt-network/azure/mgmt/network/v2017_10_01/models/express_route_circuit_peering_config.py index 0b46aac29615..9a25624f34c0 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_10_01/models/express_route_circuit_peering_config.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_10_01/models/express_route_circuit_peering_config.py @@ -18,7 +18,7 @@ class ExpressRouteCircuitPeeringConfig(Model): :param advertised_public_prefixes: The reference of AdvertisedPublicPrefixes. :type advertised_public_prefixes: list[str] - :param advertised_communities: The communities of bgp peering. Spepcified + :param advertised_communities: The communities of bgp peering. Specified for microsoft peering :type advertised_communities: list[str] :param advertised_public_prefixes_state: AdvertisedPublicPrefixState of diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_10_01/models/express_route_circuit_peering_config_py3.py b/azure-mgmt-network/azure/mgmt/network/v2017_10_01/models/express_route_circuit_peering_config_py3.py index e215423ddba7..38a8720c506f 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_10_01/models/express_route_circuit_peering_config_py3.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_10_01/models/express_route_circuit_peering_config_py3.py @@ -18,7 +18,7 @@ class ExpressRouteCircuitPeeringConfig(Model): :param advertised_public_prefixes: The reference of AdvertisedPublicPrefixes. :type advertised_public_prefixes: list[str] - :param advertised_communities: The communities of bgp peering. Spepcified + :param advertised_communities: The communities of bgp peering. Specified for microsoft peering :type advertised_communities: list[str] :param advertised_public_prefixes_state: AdvertisedPublicPrefixState of diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_11_01/models/express_route_circuit_peering_config.py b/azure-mgmt-network/azure/mgmt/network/v2017_11_01/models/express_route_circuit_peering_config.py index e37485acf7db..9bc0924773c6 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_11_01/models/express_route_circuit_peering_config.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_11_01/models/express_route_circuit_peering_config.py @@ -18,7 +18,7 @@ class ExpressRouteCircuitPeeringConfig(Model): :param advertised_public_prefixes: The reference of AdvertisedPublicPrefixes. :type advertised_public_prefixes: list[str] - :param advertised_communities: The communities of bgp peering. Spepcified + :param advertised_communities: The communities of bgp peering. Specified for microsoft peering :type advertised_communities: list[str] :param advertised_public_prefixes_state: AdvertisedPublicPrefixState of diff --git a/azure-mgmt-network/azure/mgmt/network/v2017_11_01/models/express_route_circuit_peering_config_py3.py b/azure-mgmt-network/azure/mgmt/network/v2017_11_01/models/express_route_circuit_peering_config_py3.py index 3813a5866a94..6204d587ecc7 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2017_11_01/models/express_route_circuit_peering_config_py3.py +++ b/azure-mgmt-network/azure/mgmt/network/v2017_11_01/models/express_route_circuit_peering_config_py3.py @@ -18,7 +18,7 @@ class ExpressRouteCircuitPeeringConfig(Model): :param advertised_public_prefixes: The reference of AdvertisedPublicPrefixes. :type advertised_public_prefixes: list[str] - :param advertised_communities: The communities of bgp peering. Spepcified + :param advertised_communities: The communities of bgp peering. Specified for microsoft peering :type advertised_communities: list[str] :param advertised_public_prefixes_state: AdvertisedPublicPrefixState of diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_01_01/models/express_route_circuit_peering_config.py b/azure-mgmt-network/azure/mgmt/network/v2018_01_01/models/express_route_circuit_peering_config.py index f5b1e35d1e17..f361c64bd9cf 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2018_01_01/models/express_route_circuit_peering_config.py +++ b/azure-mgmt-network/azure/mgmt/network/v2018_01_01/models/express_route_circuit_peering_config.py @@ -18,7 +18,7 @@ class ExpressRouteCircuitPeeringConfig(Model): :param advertised_public_prefixes: The reference of AdvertisedPublicPrefixes. :type advertised_public_prefixes: list[str] - :param advertised_communities: The communities of bgp peering. Spepcified + :param advertised_communities: The communities of bgp peering. Specified for microsoft peering :type advertised_communities: list[str] :param advertised_public_prefixes_state: AdvertisedPublicPrefixState of diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_01_01/models/express_route_circuit_peering_config_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_01_01/models/express_route_circuit_peering_config_py3.py index 35d68b4512ac..fcbe1a064205 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2018_01_01/models/express_route_circuit_peering_config_py3.py +++ b/azure-mgmt-network/azure/mgmt/network/v2018_01_01/models/express_route_circuit_peering_config_py3.py @@ -18,7 +18,7 @@ class ExpressRouteCircuitPeeringConfig(Model): :param advertised_public_prefixes: The reference of AdvertisedPublicPrefixes. :type advertised_public_prefixes: list[str] - :param advertised_communities: The communities of bgp peering. Spepcified + :param advertised_communities: The communities of bgp peering. Specified for microsoft peering :type advertised_communities: list[str] :param advertised_public_prefixes_state: AdvertisedPublicPrefixState of diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_02_01/models/express_route_circuit_connection.py b/azure-mgmt-network/azure/mgmt/network/v2018_02_01/models/express_route_circuit_connection.py index 4122dde509df..a41958e8610b 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2018_02_01/models/express_route_circuit_connection.py +++ b/azure-mgmt-network/azure/mgmt/network/v2018_02_01/models/express_route_circuit_connection.py @@ -39,7 +39,7 @@ class ExpressRouteCircuitConnection(SubResource): :vartype circuit_connection_status: str or ~azure.mgmt.network.v2018_02_01.models.CircuitConnectionStatus :ivar provisioning_state: Provisioning state of the circuit connection - resource. Possible values are: 'Succeded', 'Updating', 'Deleting', and + resource. Possible values are: 'Succeeded', 'Updating', 'Deleting', and 'Failed'. :vartype provisioning_state: str :param name: Gets name of the resource that is unique within a resource diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_02_01/models/express_route_circuit_connection_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_02_01/models/express_route_circuit_connection_py3.py index f8703a416b75..ca91862945aa 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2018_02_01/models/express_route_circuit_connection_py3.py +++ b/azure-mgmt-network/azure/mgmt/network/v2018_02_01/models/express_route_circuit_connection_py3.py @@ -39,7 +39,7 @@ class ExpressRouteCircuitConnection(SubResource): :vartype circuit_connection_status: str or ~azure.mgmt.network.v2018_02_01.models.CircuitConnectionStatus :ivar provisioning_state: Provisioning state of the circuit connection - resource. Possible values are: 'Succeded', 'Updating', 'Deleting', and + resource. Possible values are: 'Succeeded', 'Updating', 'Deleting', and 'Failed'. :vartype provisioning_state: str :param name: Gets name of the resource that is unique within a resource diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_02_01/models/express_route_circuit_peering_config.py b/azure-mgmt-network/azure/mgmt/network/v2018_02_01/models/express_route_circuit_peering_config.py index 926c7cbd808c..462f97943c6f 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2018_02_01/models/express_route_circuit_peering_config.py +++ b/azure-mgmt-network/azure/mgmt/network/v2018_02_01/models/express_route_circuit_peering_config.py @@ -18,7 +18,7 @@ class ExpressRouteCircuitPeeringConfig(Model): :param advertised_public_prefixes: The reference of AdvertisedPublicPrefixes. :type advertised_public_prefixes: list[str] - :param advertised_communities: The communities of bgp peering. Spepcified + :param advertised_communities: The communities of bgp peering. Specified for microsoft peering :type advertised_communities: list[str] :param advertised_public_prefixes_state: AdvertisedPublicPrefixState of diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_02_01/models/express_route_circuit_peering_config_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_02_01/models/express_route_circuit_peering_config_py3.py index 68321598a594..fa6abb8bc35e 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2018_02_01/models/express_route_circuit_peering_config_py3.py +++ b/azure-mgmt-network/azure/mgmt/network/v2018_02_01/models/express_route_circuit_peering_config_py3.py @@ -18,7 +18,7 @@ class ExpressRouteCircuitPeeringConfig(Model): :param advertised_public_prefixes: The reference of AdvertisedPublicPrefixes. :type advertised_public_prefixes: list[str] - :param advertised_communities: The communities of bgp peering. Spepcified + :param advertised_communities: The communities of bgp peering. Specified for microsoft peering :type advertised_communities: list[str] :param advertised_public_prefixes_state: AdvertisedPublicPrefixState of diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_02_01/operations/express_route_circuit_connections_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_02_01/operations/express_route_circuit_connections_operations.py index 20c7e3f22a9e..1bc8001e7c78 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2018_02_01/operations/express_route_circuit_connections_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2018_02_01/operations/express_route_circuit_connections_operations.py @@ -269,8 +269,8 @@ def create_or_update( connection. :type connection_name: str :param express_route_circuit_connection_parameters: Parameters - supplied to the create or update express route circuit circuit - connection operation. + supplied to the create or update express route circuit connection + operation. :type express_route_circuit_connection_parameters: ~azure.mgmt.network.v2018_02_01.models.ExpressRouteCircuitConnection :param dict custom_headers: headers that will be added to the request diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_04_01/models/express_route_circuit_connection.py b/azure-mgmt-network/azure/mgmt/network/v2018_04_01/models/express_route_circuit_connection.py index bd47ce4926e7..f39429a25955 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2018_04_01/models/express_route_circuit_connection.py +++ b/azure-mgmt-network/azure/mgmt/network/v2018_04_01/models/express_route_circuit_connection.py @@ -39,7 +39,7 @@ class ExpressRouteCircuitConnection(SubResource): :vartype circuit_connection_status: str or ~azure.mgmt.network.v2018_04_01.models.CircuitConnectionStatus :ivar provisioning_state: Provisioning state of the circuit connection - resource. Possible values are: 'Succeded', 'Updating', 'Deleting', and + resource. Possible values are: 'Succeeded', 'Updating', 'Deleting', and 'Failed'. :vartype provisioning_state: str :param name: Gets name of the resource that is unique within a resource diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_04_01/models/express_route_circuit_connection_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_04_01/models/express_route_circuit_connection_py3.py index 3a123aae7a60..034748965cd2 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2018_04_01/models/express_route_circuit_connection_py3.py +++ b/azure-mgmt-network/azure/mgmt/network/v2018_04_01/models/express_route_circuit_connection_py3.py @@ -39,7 +39,7 @@ class ExpressRouteCircuitConnection(SubResource): :vartype circuit_connection_status: str or ~azure.mgmt.network.v2018_04_01.models.CircuitConnectionStatus :ivar provisioning_state: Provisioning state of the circuit connection - resource. Possible values are: 'Succeded', 'Updating', 'Deleting', and + resource. Possible values are: 'Succeeded', 'Updating', 'Deleting', and 'Failed'. :vartype provisioning_state: str :param name: Gets name of the resource that is unique within a resource diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_04_01/models/express_route_circuit_peering_config.py b/azure-mgmt-network/azure/mgmt/network/v2018_04_01/models/express_route_circuit_peering_config.py index 51d249bb1f84..7811a96d0b7b 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2018_04_01/models/express_route_circuit_peering_config.py +++ b/azure-mgmt-network/azure/mgmt/network/v2018_04_01/models/express_route_circuit_peering_config.py @@ -18,7 +18,7 @@ class ExpressRouteCircuitPeeringConfig(Model): :param advertised_public_prefixes: The reference of AdvertisedPublicPrefixes. :type advertised_public_prefixes: list[str] - :param advertised_communities: The communities of bgp peering. Spepcified + :param advertised_communities: The communities of bgp peering. Specified for microsoft peering :type advertised_communities: list[str] :param advertised_public_prefixes_state: AdvertisedPublicPrefixState of diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_04_01/models/express_route_circuit_peering_config_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_04_01/models/express_route_circuit_peering_config_py3.py index f223b1e4dba4..4dbcd43749e6 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2018_04_01/models/express_route_circuit_peering_config_py3.py +++ b/azure-mgmt-network/azure/mgmt/network/v2018_04_01/models/express_route_circuit_peering_config_py3.py @@ -18,7 +18,7 @@ class ExpressRouteCircuitPeeringConfig(Model): :param advertised_public_prefixes: The reference of AdvertisedPublicPrefixes. :type advertised_public_prefixes: list[str] - :param advertised_communities: The communities of bgp peering. Spepcified + :param advertised_communities: The communities of bgp peering. Specified for microsoft peering :type advertised_communities: list[str] :param advertised_public_prefixes_state: AdvertisedPublicPrefixState of diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_04_01/operations/express_route_circuit_connections_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_04_01/operations/express_route_circuit_connections_operations.py index 8d58da485368..75db598423b0 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2018_04_01/operations/express_route_circuit_connections_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2018_04_01/operations/express_route_circuit_connections_operations.py @@ -269,8 +269,8 @@ def create_or_update( connection. :type connection_name: str :param express_route_circuit_connection_parameters: Parameters - supplied to the create or update express route circuit circuit - connection operation. + supplied to the create or update express route circuit connection + operation. :type express_route_circuit_connection_parameters: ~azure.mgmt.network.v2018_04_01.models.ExpressRouteCircuitConnection :param dict custom_headers: headers that will be added to the request diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_06_01/models/express_route_circuit_connection.py b/azure-mgmt-network/azure/mgmt/network/v2018_06_01/models/express_route_circuit_connection.py index 1253508ffcfc..1805723ad63f 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2018_06_01/models/express_route_circuit_connection.py +++ b/azure-mgmt-network/azure/mgmt/network/v2018_06_01/models/express_route_circuit_connection.py @@ -39,7 +39,7 @@ class ExpressRouteCircuitConnection(SubResource): :vartype circuit_connection_status: str or ~azure.mgmt.network.v2018_06_01.models.CircuitConnectionStatus :ivar provisioning_state: Provisioning state of the circuit connection - resource. Possible values are: 'Succeded', 'Updating', 'Deleting', and + resource. Possible values are: 'Succeeded', 'Updating', 'Deleting', and 'Failed'. :vartype provisioning_state: str :param name: Gets name of the resource that is unique within a resource diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_06_01/models/express_route_circuit_connection_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_06_01/models/express_route_circuit_connection_py3.py index 93ce64e6c213..88cab23c3462 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2018_06_01/models/express_route_circuit_connection_py3.py +++ b/azure-mgmt-network/azure/mgmt/network/v2018_06_01/models/express_route_circuit_connection_py3.py @@ -39,7 +39,7 @@ class ExpressRouteCircuitConnection(SubResource): :vartype circuit_connection_status: str or ~azure.mgmt.network.v2018_06_01.models.CircuitConnectionStatus :ivar provisioning_state: Provisioning state of the circuit connection - resource. Possible values are: 'Succeded', 'Updating', 'Deleting', and + resource. Possible values are: 'Succeeded', 'Updating', 'Deleting', and 'Failed'. :vartype provisioning_state: str :param name: Gets name of the resource that is unique within a resource diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_06_01/models/express_route_circuit_peering_config.py b/azure-mgmt-network/azure/mgmt/network/v2018_06_01/models/express_route_circuit_peering_config.py index 0c078cf17079..072312fad4e0 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2018_06_01/models/express_route_circuit_peering_config.py +++ b/azure-mgmt-network/azure/mgmt/network/v2018_06_01/models/express_route_circuit_peering_config.py @@ -18,7 +18,7 @@ class ExpressRouteCircuitPeeringConfig(Model): :param advertised_public_prefixes: The reference of AdvertisedPublicPrefixes. :type advertised_public_prefixes: list[str] - :param advertised_communities: The communities of bgp peering. Spepcified + :param advertised_communities: The communities of bgp peering. Specified for microsoft peering :type advertised_communities: list[str] :param advertised_public_prefixes_state: AdvertisedPublicPrefixState of diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_06_01/models/express_route_circuit_peering_config_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_06_01/models/express_route_circuit_peering_config_py3.py index 239a8f1aa0c7..6e55aa04a1f7 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2018_06_01/models/express_route_circuit_peering_config_py3.py +++ b/azure-mgmt-network/azure/mgmt/network/v2018_06_01/models/express_route_circuit_peering_config_py3.py @@ -18,7 +18,7 @@ class ExpressRouteCircuitPeeringConfig(Model): :param advertised_public_prefixes: The reference of AdvertisedPublicPrefixes. :type advertised_public_prefixes: list[str] - :param advertised_communities: The communities of bgp peering. Spepcified + :param advertised_communities: The communities of bgp peering. Specified for microsoft peering :type advertised_communities: list[str] :param advertised_public_prefixes_state: AdvertisedPublicPrefixState of diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_06_01/operations/express_route_circuit_connections_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_06_01/operations/express_route_circuit_connections_operations.py index 241a062428df..e5fe8608369d 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2018_06_01/operations/express_route_circuit_connections_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2018_06_01/operations/express_route_circuit_connections_operations.py @@ -269,8 +269,8 @@ def create_or_update( connection. :type connection_name: str :param express_route_circuit_connection_parameters: Parameters - supplied to the create or update express route circuit circuit - connection operation. + supplied to the create or update express route circuit connection + operation. :type express_route_circuit_connection_parameters: ~azure.mgmt.network.v2018_06_01.models.ExpressRouteCircuitConnection :param dict custom_headers: headers that will be added to the request diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_07_01/models/express_route_circuit_connection.py b/azure-mgmt-network/azure/mgmt/network/v2018_07_01/models/express_route_circuit_connection.py index cdde179cf634..48591da069c8 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2018_07_01/models/express_route_circuit_connection.py +++ b/azure-mgmt-network/azure/mgmt/network/v2018_07_01/models/express_route_circuit_connection.py @@ -39,7 +39,7 @@ class ExpressRouteCircuitConnection(SubResource): :vartype circuit_connection_status: str or ~azure.mgmt.network.v2018_07_01.models.CircuitConnectionStatus :ivar provisioning_state: Provisioning state of the circuit connection - resource. Possible values are: 'Succeded', 'Updating', 'Deleting', and + resource. Possible values are: 'Succeeded', 'Updating', 'Deleting', and 'Failed'. :vartype provisioning_state: str :param name: Gets name of the resource that is unique within a resource diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_07_01/models/express_route_circuit_connection_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_07_01/models/express_route_circuit_connection_py3.py index 190675dd2a06..0b2aa61c7adb 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2018_07_01/models/express_route_circuit_connection_py3.py +++ b/azure-mgmt-network/azure/mgmt/network/v2018_07_01/models/express_route_circuit_connection_py3.py @@ -39,7 +39,7 @@ class ExpressRouteCircuitConnection(SubResource): :vartype circuit_connection_status: str or ~azure.mgmt.network.v2018_07_01.models.CircuitConnectionStatus :ivar provisioning_state: Provisioning state of the circuit connection - resource. Possible values are: 'Succeded', 'Updating', 'Deleting', and + resource. Possible values are: 'Succeeded', 'Updating', 'Deleting', and 'Failed'. :vartype provisioning_state: str :param name: Gets name of the resource that is unique within a resource diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_07_01/models/express_route_circuit_peering_config.py b/azure-mgmt-network/azure/mgmt/network/v2018_07_01/models/express_route_circuit_peering_config.py index 5b617175d797..9bd0f40dfbe3 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2018_07_01/models/express_route_circuit_peering_config.py +++ b/azure-mgmt-network/azure/mgmt/network/v2018_07_01/models/express_route_circuit_peering_config.py @@ -18,7 +18,7 @@ class ExpressRouteCircuitPeeringConfig(Model): :param advertised_public_prefixes: The reference of AdvertisedPublicPrefixes. :type advertised_public_prefixes: list[str] - :param advertised_communities: The communities of bgp peering. Spepcified + :param advertised_communities: The communities of bgp peering. Specified for microsoft peering :type advertised_communities: list[str] :param advertised_public_prefixes_state: AdvertisedPublicPrefixState of diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_07_01/models/express_route_circuit_peering_config_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_07_01/models/express_route_circuit_peering_config_py3.py index 6903aae45815..abbc3b486b8d 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2018_07_01/models/express_route_circuit_peering_config_py3.py +++ b/azure-mgmt-network/azure/mgmt/network/v2018_07_01/models/express_route_circuit_peering_config_py3.py @@ -18,7 +18,7 @@ class ExpressRouteCircuitPeeringConfig(Model): :param advertised_public_prefixes: The reference of AdvertisedPublicPrefixes. :type advertised_public_prefixes: list[str] - :param advertised_communities: The communities of bgp peering. Spepcified + :param advertised_communities: The communities of bgp peering. Specified for microsoft peering :type advertised_communities: list[str] :param advertised_public_prefixes_state: AdvertisedPublicPrefixState of diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_07_01/operations/express_route_circuit_connections_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_07_01/operations/express_route_circuit_connections_operations.py index 45a4bbe7f173..f82304e9af43 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2018_07_01/operations/express_route_circuit_connections_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2018_07_01/operations/express_route_circuit_connections_operations.py @@ -269,8 +269,8 @@ def create_or_update( connection. :type connection_name: str :param express_route_circuit_connection_parameters: Parameters - supplied to the create or update express route circuit circuit - connection operation. + supplied to the create or update express route circuit connection + operation. :type express_route_circuit_connection_parameters: ~azure.mgmt.network.v2018_07_01.models.ExpressRouteCircuitConnection :param dict custom_headers: headers that will be added to the request diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/express_route_circuit_connection.py b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/express_route_circuit_connection.py index 6ad789473637..d0464590c47d 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/express_route_circuit_connection.py +++ b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/express_route_circuit_connection.py @@ -39,7 +39,7 @@ class ExpressRouteCircuitConnection(SubResource): :vartype circuit_connection_status: str or ~azure.mgmt.network.v2018_08_01.models.CircuitConnectionStatus :ivar provisioning_state: Provisioning state of the circuit connection - resource. Possible values are: 'Succeded', 'Updating', 'Deleting', and + resource. Possible values are: 'Succeeded', 'Updating', 'Deleting', and 'Failed'. :vartype provisioning_state: str :param name: Gets name of the resource that is unique within a resource diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/express_route_circuit_connection_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/express_route_circuit_connection_py3.py index a995b009ffc8..a0c409c672a9 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/express_route_circuit_connection_py3.py +++ b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/express_route_circuit_connection_py3.py @@ -39,7 +39,7 @@ class ExpressRouteCircuitConnection(SubResource): :vartype circuit_connection_status: str or ~azure.mgmt.network.v2018_08_01.models.CircuitConnectionStatus :ivar provisioning_state: Provisioning state of the circuit connection - resource. Possible values are: 'Succeded', 'Updating', 'Deleting', and + resource. Possible values are: 'Succeeded', 'Updating', 'Deleting', and 'Failed'. :vartype provisioning_state: str :param name: Gets name of the resource that is unique within a resource diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/express_route_circuit_peering_config.py b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/express_route_circuit_peering_config.py index ca8c3c067976..9439fb059c6e 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/express_route_circuit_peering_config.py +++ b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/express_route_circuit_peering_config.py @@ -18,7 +18,7 @@ class ExpressRouteCircuitPeeringConfig(Model): :param advertised_public_prefixes: The reference of AdvertisedPublicPrefixes. :type advertised_public_prefixes: list[str] - :param advertised_communities: The communities of bgp peering. Spepcified + :param advertised_communities: The communities of bgp peering. Specified for microsoft peering :type advertised_communities: list[str] :param advertised_public_prefixes_state: AdvertisedPublicPrefixState of diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/express_route_circuit_peering_config_py3.py b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/express_route_circuit_peering_config_py3.py index 25b26582f310..c8cec6227119 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/express_route_circuit_peering_config_py3.py +++ b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/models/express_route_circuit_peering_config_py3.py @@ -18,7 +18,7 @@ class ExpressRouteCircuitPeeringConfig(Model): :param advertised_public_prefixes: The reference of AdvertisedPublicPrefixes. :type advertised_public_prefixes: list[str] - :param advertised_communities: The communities of bgp peering. Spepcified + :param advertised_communities: The communities of bgp peering. Specified for microsoft peering :type advertised_communities: list[str] :param advertised_public_prefixes_state: AdvertisedPublicPrefixState of diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/operations/express_route_circuit_connections_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/operations/express_route_circuit_connections_operations.py index c18565a28bd0..5e2d4518466e 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/operations/express_route_circuit_connections_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/operations/express_route_circuit_connections_operations.py @@ -269,8 +269,8 @@ def create_or_update( connection. :type connection_name: str :param express_route_circuit_connection_parameters: Parameters - supplied to the create or update express route circuit circuit - connection operation. + supplied to the create or update express route circuit connection + operation. :type express_route_circuit_connection_parameters: ~azure.mgmt.network.v2018_08_01.models.ExpressRouteCircuitConnection :param dict custom_headers: headers that will be added to the request